@maggioli-design-system/mds-paginator-item 2.4.0 → 2.4.2
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/dist/cjs/{index-30ee4c25.js → index-ca3ab5ae.js} +104 -20
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-paginator-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-paginator-item.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/common/aria.js +9 -1
- package/dist/collection/common/keyboard-manager.js +2 -2
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +13 -17
- package/dist/components/mds-paginator-item.js +3 -3
- package/dist/documentation.json +3 -3
- package/dist/esm/{index-3fa51808.js → index-1d7e2aea.js} +104 -20
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-paginator-item.entry.js +4 -4
- package/dist/esm/mds-paginator-item.js +3 -3
- package/dist/esm-es5/index-1d7e2aea.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator-item.js +1 -1
- package/dist/mds-paginator-item/mds-paginator-item.esm.js +1 -1
- package/dist/mds-paginator-item/mds-paginator-item.js +1 -1
- package/dist/mds-paginator-item/p-01d3926b.js +2 -0
- package/dist/mds-paginator-item/p-16362e7e.entry.js +1 -0
- package/dist/mds-paginator-item/p-27589d35.system.js +1 -0
- package/dist/mds-paginator-item/p-75e9f93d.system.entry.js +1 -0
- package/dist/mds-paginator-item/p-902d51ca.system.js +2 -0
- package/dist/stats.json +32 -30
- package/dist/types/common/aria.d.ts +2 -1
- package/dist/types/stencil-public-runtime.d.ts +19 -0
- package/documentation.json +15 -5
- package/package.json +3 -3
- package/readme.md +3 -1
- package/src/common/aria.ts +12 -0
- package/src/common/keyboard-manager.ts +2 -2
- package/src/components/mds-paginator-item/mds-paginator-item.css +11 -13
- package/src/components/mds-paginator-item/readme.md +1 -1
- package/src/fixtures/icons.json +2 -0
- package/www/build/mds-paginator-item.esm.js +1 -1
- package/www/build/mds-paginator-item.js +1 -1
- package/www/build/p-01d3926b.js +2 -0
- package/www/build/p-16362e7e.entry.js +1 -0
- package/www/build/p-27589d35.system.js +1 -0
- package/www/build/p-75e9f93d.system.entry.js +1 -0
- package/www/build/p-902d51ca.system.js +2 -0
- package/dist/esm-es5/index-3fa51808.js +0 -2
- package/dist/mds-paginator-item/p-2e3a33e5.js +0 -2
- package/dist/mds-paginator-item/p-2f534d96.system.entry.js +0 -1
- package/dist/mds-paginator-item/p-61d399b8.system.js +0 -1
- package/dist/mds-paginator-item/p-8e675782.system.js +0 -2
- package/dist/mds-paginator-item/p-e78a049a.entry.js +0 -1
- package/www/build/p-2e3a33e5.js +0 -2
- package/www/build/p-2f534d96.system.entry.js +0 -1
- package/www/build/p-61d399b8.system.js +0 -1
- package/www/build/p-8e675782.system.js +0 -2
- package/www/build/p-e78a049a.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-1d7e2aea.js';
|
|
2
2
|
|
|
3
3
|
class KeyboardManager {
|
|
4
4
|
constructor() {
|
|
@@ -28,20 +28,20 @@ class KeyboardManager {
|
|
|
28
28
|
};
|
|
29
29
|
this.attachEscapeBehavior = (callBack) => {
|
|
30
30
|
this.escapeCallback = callBack;
|
|
31
|
-
if (
|
|
31
|
+
if (window !== undefined) {
|
|
32
32
|
window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
this.detachEscapeBehavior = () => {
|
|
36
36
|
this.escapeCallback = () => { return; };
|
|
37
|
-
if (
|
|
37
|
+
if (window !== undefined) {
|
|
38
38
|
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
const mdsPaginatorItemCss = "@tailwind components; .fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08));--mds-paginator-item-background-selected:rgb(var(--brand-maggioli-03));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02));--mds-paginator-item-color-selected:rgb(var(--tone-neutral));--mds-paginator-item-color:rgb(var(--tone-neutral-02));--mds-paginator-item-radius:200px;--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:0 0 1px 1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);--mds-paginator-item-shadow:none;--mds-paginator-item-size:2.25rem;outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform
|
|
44
|
+
const mdsPaginatorItemCss = "@tailwind components; .fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08));--mds-paginator-item-background-selected:rgb(var(--brand-maggioli-03));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02));--mds-paginator-item-color-selected:rgb(var(--tone-neutral));--mds-paginator-item-color:rgb(var(--tone-neutral-02));--mds-paginator-item-radius:200px;--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:0 0 1px 1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);--mds-paginator-item-shadow:none;--mds-paginator-item-size:2.25rem;outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;padding-left:0.75rem;padding-right:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-paginator-item-background);border-radius:var(--mds-paginator-item-radius);-webkit-box-shadow:var(--mds-paginator-item-shadow);box-shadow:var(--mds-paginator-item-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--mds-paginator-item-color);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:var(--mds-paginator-item-size);-ms-flex-pack:center;justify-content:center;min-width:var(--mds-paginator-item-size);-webkit-transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, box-shadow, color, outline, outline-offset;transition-property:background-color, box-shadow, color, outline, outline-offset, -webkit-box-shadow;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(:focus-visible){--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}:host(:hover){background-color:var(--mds-paginator-item-background-hover);-webkit-box-shadow:var(--mds-paginator-item-shadow-hover);box-shadow:var(--mds-paginator-item-shadow-hover);color:var(--mds-paginator-item-color-hover);fill:var(--mds-paginator-item-color-hover)}:host([icon]){padding:0px}:host([selected]){background-color:var(--mds-paginator-item-background-selected);-webkit-box-shadow:var(--mds-paginator-item-shadow-selected);box-shadow:var(--mds-paginator-item-shadow-selected);color:var(--mds-paginator-item-color-selected);fill:var(--mds-paginator-item-color-selected);pointer-events:none}:host([disabled]){background-color:var(--mds-paginator-item-background-disabled);-webkit-box-shadow:var(--mds-paginator-item-shadow-disabled);box-shadow:var(--mds-paginator-item-shadow-disabled);color:var(--mds-paginator-item-color-disabled);fill:var(--mds-paginator-item-color-disabled);pointer-events:none}.icon{padding-left:0px;padding-right:0px}";
|
|
45
45
|
|
|
46
46
|
const MdsPaginatorItem = class {
|
|
47
47
|
constructor(hostRef) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-1d7e2aea.js';
|
|
2
|
+
export { s as setNonce } from './index-1d7e2aea.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.
|
|
5
|
+
Stencil Client Patch Browser v4.5.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(n,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r))e[r]=n[r]};return e(n,r)};return function(n,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(n,r);function t(){this.constructor=n}n.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(e,n,r,t){function a(e){return e instanceof r?e:new r((function(n){n(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{s(t.next(e))}catch(e){i(e)}}function u(e){try{s(t["throw"](e))}catch(e){i(e)}}function s(e){e.done?r(e.value):a(e.value).then(o,u)}s((t=t.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,a,i,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(n){return s([e,n])}}function s(u){if(t)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(r=0)),r)try{if(t=1,a&&(i=u[0]&2?a["return"]:u[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;if(a=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;a=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1];i=u;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(u);break}if(i[2])r.ops.pop();r.trys.pop();continue}u=n.call(e,r)}catch(e){u=[6,e];a=0}finally{t=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,n,r){if(r||arguments.length===2)for(var t=0,a=n.length,i;t<a;t++){if(i||!(t in n)){if(!i)i=Array.prototype.slice.call(n,0,t);i[t]=n[t]}}return e.concat(i||Array.prototype.slice.call(n))};var NAMESPACE="mds-paginator-item";var scopeId;var hostTagName;var isSvgMode=false;var queuePending=false;var createTime=function(e,n){if(n===void 0){n=""}{return function(){return}}};var uniqueTime=function(e,n){{return function(){return}}};var HYDRATED_CSS="{visibility:hidden}[hydrated]{visibility:inherit}";var EMPTY_OBJ={};var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var n,r,t;return(t=(r=(n=e.head)===null||n===void 0?void 0:n.querySelector('meta[name="csp-nonce"]'))===null||r===void 0?void 0:r.getAttribute("content"))!==null&&t!==void 0?t:undefined}var h=function(e,n){var r=[];for(var t=2;t<arguments.length;t++){r[t-2]=arguments[t]}var a=null;var i=false;var o=false;var u=[];var s=function(n){for(var r=0;r<n.length;r++){a=n[r];if(Array.isArray(a)){s(a)}else if(a!=null&&typeof a!=="boolean"){if(i=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(i&&o){u[u.length-1].t+=a}else{u.push(i?newVNode(null,a):a)}o=i}}};s(r);if(n){{var f=n.className||n.class;if(f){n.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}var l=newVNode(e,null);l.i=n;if(u.length>0){l.o=u}return l};var newVNode=function(e,n){var r={u:0,l:e,t:n,v:null,o:null};{r.i=null}return r};var Host={};var isHost=function(e){return e&&e.l===Host};var parsePropertyValue=function(e,n){if(e!=null&&!isComplexType(e)){if(n&4){return e==="false"?false:e===""||!!e}if(n&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var emitEvent=function(e,n,r){var t=plt.ce(n,r);e.dispatchEvent(t);return t};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,n,r){var t=styles.get(e);if(supportsConstructableStylesheets&&r){t=t||new CSSStyleSheet;if(typeof t==="string"){t=n}else{t.replaceSync(n)}}else{t=n}styles.set(e,t)};var addStyle=function(e,n,r){var t;var a=getScopeId(n);var i=styles.get(a);e=e.nodeType===11?e:doc;if(i){if(typeof i==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var u=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(a)){{u=doc.createElement("style");u.innerHTML=i;var s=(t=plt.p)!==null&&t!==void 0?t:queryNonceMetaTagContent(doc);if(s!=null){u.setAttribute("nonce",s)}e.insertBefore(u,e.querySelector("link"))}if(o){o.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return a};var attachStyles=function(e){var n=e.m;var r=e.$hostElement$;var t=n.u;var a=createTime("attachStyles",n.h);var i=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),n);if(t&10){r["s-sc"]=i;r.classList.add(i+"-h")}a()};var getScopeId=function(e,n){return"sc-"+e.h};var setAccessor=function(e,n,r,t,a,i){if(r!==t){var o=isMemberInElement(e,n);n.toLowerCase();if(n==="class"){var u=e.classList;var s=parseClassList(r);var f=parseClassList(t);u.remove.apply(u,s.filter((function(e){return e&&!f.includes(e)})));u.add.apply(u,f.filter((function(e){return e&&!s.includes(e)})))}else{var l=isComplexType(t);if((o||l&&t!==null)&&!a){try{if(!e.tagName.includes("-")){var c=t==null?"":t;if(n==="list"){o=false}else if(r==null||e[n]!=c){e[n]=c}}else{e[n]=t}}catch(e){}}if(t==null||t===false){if(t!==false||e.getAttribute(n)===""){{e.removeAttribute(n)}}}else if((!o||i&4||a)&&!l){t=t===true?"":t;{e.setAttribute(n,t)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var updateElement=function(e,n,r,t){var a=n.v.nodeType===11&&n.v.host?n.v.host:n.v;var i=e&&e.i||EMPTY_OBJ;var o=n.i||EMPTY_OBJ;{for(t in i){if(!(t in o)){setAccessor(a,t,i[t],undefined,r,n.u)}}}for(t in o){setAccessor(a,t,i[t],o[t],r,n.u)}};var createElm=function(e,n,r,t){var a=n.o[r];var i=0;var o;var u;if(a.t!==null){o=a.v=doc.createTextNode(a.t)}else{o=a.v=doc.createElement(a.l);{updateElement(null,a,isSvgMode)}if(isDef(scopeId)&&o["s-si"]!==scopeId){o.classList.add(o["s-si"]=scopeId)}if(a.o){for(i=0;i<a.o.length;++i){u=createElm(e,a,i);if(u){o.appendChild(u)}}}}return o};var addVnodes=function(e,n,r,t,a,i){var o=e;var u;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;a<=i;++a){if(t[a]){u=createElm(null,r,a);if(u){t[a].v=u;o.insertBefore(u,n)}}}};var removeVnodes=function(e,n,r){for(var t=n;t<=r;++t){var a=e[t];if(a){var i=a.v;if(i){i.remove()}}}};var updateChildren=function(e,n,r,t){var a=0;var i=0;var o=n.length-1;var u=n[0];var s=n[o];var f=t.length-1;var l=t[0];var c=t[f];var v;while(a<=o&&i<=f){if(u==null){u=n[++a]}else if(s==null){s=n[--o]}else if(l==null){l=t[++i]}else if(c==null){c=t[--f]}else if(isSameVnode(u,l)){patch(u,l);u=n[++a];l=t[++i]}else if(isSameVnode(s,c)){patch(s,c);s=n[--o];c=t[--f]}else if(isSameVnode(u,c)){patch(u,c);e.insertBefore(u.v,s.v.nextSibling);u=n[++a];c=t[--f]}else if(isSameVnode(s,l)){patch(s,l);e.insertBefore(s.v,u.v);s=n[--o];l=t[++i]}else{{v=createElm(n&&n[i],r,i);l=t[++i]}if(v){{u.v.parentNode.insertBefore(v,u.v)}}}}if(a>o){addVnodes(e,t[f+1]==null?null:t[f+1].v,r,t,i,f)}else if(i>f){removeVnodes(n,a,o)}};var isSameVnode=function(e,n){if(e.l===n.l){return true}return false};var patch=function(e,n){var r=n.v=e.v;var t=e.o;var a=n.o;var i=n.l;var o=n.t;if(o===null){{if(i==="slot");else{updateElement(e,n,isSvgMode)}}if(t!==null&&a!==null){updateChildren(r,t,n,a)}else if(a!==null){if(e.t!==null){r.textContent=""}addVnodes(r,null,n,a,0,a.length-1)}else if(t!==null){removeVnodes(t,0,t.length-1)}}else if(e.t!==o){r.data=o}};var renderVdom=function(e,n,r){if(r===void 0){r=false}var t=e.$hostElement$;var a=e.m;var i=e.S||newVNode(null,null);var o=isHost(n)?n:h(null,null,n);hostTagName=t.tagName;if(a.C){o.i=o.i||{};a.C.map((function(e){var n=e[0],r=e[1];return o.i[r]=t[n]}))}if(r&&o.i){for(var u=0,s=Object.keys(o.i);u<s.length;u++){var f=s[u];if(t.hasAttribute(f)&&!["key","ref","style","class"].includes(f)){o.i[f]=t[f]}}}o.l=null;o.u|=4;e.S=o;o.v=i.v=t.shadowRoot||t;{scopeId=t["s-sc"]}patch(i,o)};var attachToAncestor=function(e,n){if(n&&!e.T&&n["s-p"]){n["s-p"].push(new Promise((function(n){return e.T=n})))}};var scheduleUpdate=function(e,n){{e.u|=16}if(e.u&4){e.u|=512;return}attachToAncestor(e,e._);var r=function(){return dispatchHooks(e,n)};return writeTask(r)};var dispatchHooks=function(e,n){var r=createTime("scheduleUpdate",e.m.h);var t=e.$;var a;r();return enqueue(a,(function(){return updateComponent(e,t,n)}))};var enqueue=function(e,n){return isPromisey(e)?e.then(n):n()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,n,r){return __awaiter(void 0,void 0,void 0,(function(){var t,a,i,o,u,s,f;return __generator(this,(function(l){a=e.$hostElement$;i=createTime("update",e.m.h);o=a["s-rc"];if(r){attachStyles(e)}u=createTime("render",e.m.h);{callRender(e,n,a,r)}if(o){o.map((function(e){return e()}));a["s-rc"]=undefined}u();i();{s=(t=a["s-p"])!==null&&t!==void 0?t:[];f=function(){return postUpdateComponent(e)};if(s.length===0){f()}else{Promise.all(s).then(f);e.u|=4;s.length=0}}return[2]}))}))};var callRender=function(e,n,r,t){try{n=n.render();{e.u&=~16}{e.u|=2}{{{renderVdom(e,n,t)}}}}catch(n){consoleError(n,e.$hostElement$)}return null};var postUpdateComponent=function(e){var n=e.m.h;var r=e.$hostElement$;var t=createTime("postUpdate",n);var a=e._;if(!(e.u&64)){e.u|=64;{addHydratedFlag(r)}t();{e.M(r);if(!a){appDidLoad()}}}else{t()}{if(e.T){e.T();e.T=undefined}if(e.u&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.u&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var addHydratedFlag=function(e){return e.setAttribute("hydrated","")};var getValue=function(e,n){return getHostRef(e).k.get(n)};var setValue=function(e,n,r,t){var a=getHostRef(e);var i=a.k.get(n);var o=a.u;var u=a.$;r=parsePropertyValue(r,t.A[n][0]);var s=Number.isNaN(i)&&Number.isNaN(r);var f=r!==i&&!s;if((!(o&8)||i===undefined)&&f){a.k.set(n,r);if(u){if((o&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,n,r){var t;if(n.A){var a=Object.entries(n.A);var i=e.prototype;a.map((function(e){var t=e[0],a=e[1][0];if(a&31||r&2&&a&32){Object.defineProperty(i,t,{get:function(){return getValue(this,t)},set:function(e){setValue(this,t,e,n)},configurable:true,enumerable:true})}}));if(r&1){var o=new Map;i.attributeChangedCallback=function(e,r,t){var a=this;plt.jmp((function(){var u=o.get(e);if(a.hasOwnProperty(u)){t=a[u];delete a[u]}else if(i.hasOwnProperty(u)&&typeof a[u]==="number"&&a[u]==t){return}else if(u==null){var s=getHostRef(a);var f=s===null||s===void 0?void 0:s.u;if(!(f&8)&&f&128&&t!==r){var l=s.$;var c=n.R[e];c===null||c===void 0?void 0:c.forEach((function(n){if(l[n]!=null){l[n].call(l,t,r,e)}}))}return}a[u]=t===null&&typeof a[u]==="boolean"?false:t}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((t=n.R)!==null&&t!==void 0?t:{}),true),a.filter((function(e){var n=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],t=e[1];var a=t[1]||r;o.set(a,r);if(t[0]&512){n.C.push([r,a])}return a})),true)))}}return e};var initializeComponent=function(e,n,r,t){return __awaiter(void 0,void 0,void 0,(function(){var e,t,a,i,o,u,s,f;return __generator(this,(function(l){switch(l.label){case 0:if(!((n.u&32)===0))return[3,3];n.u|=32;e=loadModule(r);if(!e.then)return[3,2];t=uniqueTime();return[4,e];case 1:e=l.sent();t();l.label=2;case 2:if(!e.isProxied){proxyComponent(e,r,2);e.isProxied=true}a=createTime("createInstance",r.h);{n.u|=8}try{new e(n)}catch(e){consoleError(e)}{n.u&=~8}a();if(e.style){i=e.style;o=getScopeId(r);if(!styles.has(o)){u=createTime("registerStyles",r.h);registerStyle(o,i,!!(r.u&1));u()}}l.label=3;case 3:s=n._;f=function(){return scheduleUpdate(n,true)};if(s&&s["s-rc"]){s["s-rc"].push(f)}else{f()}return[2]}}))}))};var fireConnectedCallback=function(e){};var connectedCallback=function(e){if((plt.u&1)===0){var n=getHostRef(e);var r=n.m;var t=createTime("connectedCallback",r.h);if(!(n.u&1)){n.u|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(n,n._=a);break}}}if(r.A){Object.entries(r.A).map((function(n){var r=n[0],t=n[1][0];if(t&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{initializeComponent(e,n,r)}}else{if(n===null||n===void 0?void 0:n.$);else if(n===null||n===void 0?void 0:n.H){n.H.then((function(){return fireConnectedCallback()}))}}t()}};var disconnectInstance=function(e){};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var n;return __generator(this,(function(r){if((plt.u&1)===0){n=getHostRef(e);if(n===null||n===void 0?void 0:n.$);else if(n===null||n===void 0?void 0:n.H){n.H.then((function(){return disconnectInstance()}))}}return[2]}))}))};var bootstrapLazy=function(e,n){if(n===void 0){n={}}var r;var t=createTime();var a=[];var i=n.exclude||[];var o=win.customElements;var u=doc.head;var s=u.querySelector("meta[charset]");var f=doc.createElement("style");var l=[];var c;var v=true;Object.assign(plt,n);plt.V=new URL(n.resourcesUrl||"./",doc.baseURI).href;e.map((function(e){e[1].map((function(n){var r={u:n[0],h:n[1],A:n[2],q:n[3]};{r.A=n[2]}{r.C=[]}var t=r.h;var u=function(e){__extends(n,e);function n(n){var t=e.call(this,n)||this;n=t;registerHost(n,r);if(r.u&1){{{n.attachShadow({mode:"open"})}}}return t}n.prototype.connectedCallback=function(){var e=this;if(c){clearTimeout(c);c=null}if(v){l.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};n.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};n.prototype.componentOnReady=function(){return getHostRef(this).H};return n}(HTMLElement);r.P=e[0];if(!i.includes(t)&&!o.get(t)){a.push(t);o.define(t,proxyComponent(u,r,1))}}))}));{f.innerHTML=a+HYDRATED_CSS;f.setAttribute("data-styles","");var d=(r=plt.p)!==null&&r!==void 0?r:queryNonceMetaTagContent(doc);if(d!=null){f.setAttribute("nonce",d)}u.insertBefore(f,s?s.nextSibling:u.firstChild)}v=false;if(l.length){l.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}t()};var setNonce=function(e){return plt.p=e};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,n){return hostRefs.set(n.$=e,n)};var registerHost=function(e,n){var r={u:0,$hostElement$:e,m:n,k:new Map};{r.H=new Promise((function(e){return r.M=e}));e["s-p"]=[];e["s-rc"]=[]}return hostRefs.set(e,r)};var isMemberInElement=function(e,n){return n in e};var consoleError=function(e,n){return(0,console.error)(e,n)};var cmpModules=new Map;var loadModule=function(e,n,r){var t=e.h.replace(/-/g,"_");var a=e.P;var i=cmpModules.get(a);if(i){return i[t]}if(!r||!BUILD.hotModuleReplacement){var o=function(e){cmpModules.set(a,e);return e[t]};switch(a){case"mds-paginator-item":return import("./mds-paginator-item.entry.js").then(o,consoleError)}}return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[t]}),consoleError)};var styles=new Map;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={u:0,V:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,n,r,t){return e.addEventListener(n,r,t)},rel:function(e,n,r,t){return e.removeEventListener(n,r,t)},ce:function(e,n){return new CustomEvent(e,n)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,n){return function(r){e.push(r);if(!queuePending){queuePending=true;if(n&&plt.u&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var n=0;n<e.length;n++){try{e[n](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Host as H,bootstrapLazy as b,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as bootstrapLazy}from"./index-
|
|
1
|
+
import{b as bootstrapLazy}from"./index-1d7e2aea.js";export{s as setNonce}from"./index-1d7e2aea.js";var defineCustomElements=function(e,t){if(typeof window==="undefined")return undefined;return bootstrapLazy([["mds-paginator-item",[[1,"mds-paginator-item",{icon:[513],selected:[516],disabled:[516]}]]]],t)};export{defineCustomElements};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host,g as getElement}from"./index-
|
|
1
|
+
import{r as registerInstance,h,H as Host,g as getElement}from"./index-1d7e2aea.js";var KeyboardManager=function(){function o(){var o=this;this.elements=[];this.handleClickBehaviorDispatchEvent=function(o){if(o.code==="Space"||o.code==="Enter"||o.code==="NumpadEnter"){o.target.click()}};this.handleEscapeBehaviorDispatchEvent=function(t){if(t.code==="Escape"&&o.escapeCallback){o.escapeCallback()}};this.addElement=function(t,e){if(e===void 0){e="element"}o.elements[e]=t};this.attachClickBehavior=function(t){if(t===void 0){t="element"}if(o.elements[t]){o.elements[t].addEventListener("keydown",o.handleClickBehaviorDispatchEvent)}};this.detachClickBehavior=function(t){if(t===void 0){t="element"}if(o.elements[t]){o.elements[t].removeEventListener("keydown",o.handleClickBehaviorDispatchEvent)}};this.attachEscapeBehavior=function(t){o.escapeCallback=t;if(window!==undefined){window.addEventListener("keydown",o.handleEscapeBehaviorDispatchEvent.bind(o))}};this.detachEscapeBehavior=function(){o.escapeCallback=function(){return};if(window!==undefined){window.removeEventListener("keydown",o.handleEscapeBehaviorDispatchEvent.bind(o))}}}return o}();var mdsPaginatorItemCss="@tailwind components; .fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08));--mds-paginator-item-background-selected:rgb(var(--brand-maggioli-03));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02));--mds-paginator-item-color-selected:rgb(var(--tone-neutral));--mds-paginator-item-color:rgb(var(--tone-neutral-02));--mds-paginator-item-radius:200px;--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:0 0 1px 1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);--mds-paginator-item-shadow:none;--mds-paginator-item-size:2.25rem;outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;padding-left:0.75rem;padding-right:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-paginator-item-background);border-radius:var(--mds-paginator-item-radius);-webkit-box-shadow:var(--mds-paginator-item-shadow);box-shadow:var(--mds-paginator-item-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--mds-paginator-item-color);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:var(--mds-paginator-item-size);-ms-flex-pack:center;justify-content:center;min-width:var(--mds-paginator-item-size);-webkit-transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, box-shadow, color, outline, outline-offset;transition-property:background-color, box-shadow, color, outline, outline-offset, -webkit-box-shadow;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(:focus-visible){--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}:host(:hover){background-color:var(--mds-paginator-item-background-hover);-webkit-box-shadow:var(--mds-paginator-item-shadow-hover);box-shadow:var(--mds-paginator-item-shadow-hover);color:var(--mds-paginator-item-color-hover);fill:var(--mds-paginator-item-color-hover)}:host([icon]){padding:0px}:host([selected]){background-color:var(--mds-paginator-item-background-selected);-webkit-box-shadow:var(--mds-paginator-item-shadow-selected);box-shadow:var(--mds-paginator-item-shadow-selected);color:var(--mds-paginator-item-color-selected);fill:var(--mds-paginator-item-color-selected);pointer-events:none}:host([disabled]){background-color:var(--mds-paginator-item-background-disabled);-webkit-box-shadow:var(--mds-paginator-item-shadow-disabled);box-shadow:var(--mds-paginator-item-shadow-disabled);color:var(--mds-paginator-item-color-disabled);fill:var(--mds-paginator-item-color-disabled);pointer-events:none}.icon{padding-left:0px;padding-right:0px}";var MdsPaginatorItem=function(){function o(o){var t=this;registerInstance(this,o);this.km=new KeyboardManager;this.componentDidLoad=function(){t.km.addElement(t.host);t.km.attachClickBehavior()};this.componentDidUpdate=function(){if(!t.disabled&&!t.selected){t.km.attachClickBehavior();return}t.km.detachClickBehavior()};this.disconnectedCallback=function(){t.km.detachClickBehavior()};this.icon=undefined;this.selected=undefined;this.disabled=undefined}o.prototype.render=function(){return h(Host,{tabindex:"0"},this.icon!==undefined?h("mds-icon",{name:this.icon}):h("mds-text",{class:"text",typography:"detail"},h("slot",null)))};Object.defineProperty(o.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return o}();MdsPaginatorItem.style=mdsPaginatorItemCss;export{MdsPaginatorItem as mds_paginator_item};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-1d7e2aea.js";export{s as setNonce}from"./index-1d7e2aea.js";var patchBrowser=function(){var e=import.meta.url;var a={};if(e!==""){a.resourcesUrl=new URL(".",e).href}return promiseResolve(a)};patchBrowser().then((function(e){return bootstrapLazy([["mds-paginator-item",[[1,"mds-paginator-item",{icon:[513],selected:[516],disabled:[516]}]]]],e)}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as
|
|
1
|
+
import{p as e,b as t}from"./p-01d3926b.js";export{s as setNonce}from"./p-01d3926b.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((e=>t([["p-16362e7e",[[1,"mds-paginator-item",{icon:[513],selected:[516],disabled:[516]}]]]],e)));
|
|
@@ -115,7 +115,7 @@ DOMTokenList
|
|
|
115
115
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
116
116
|
var start = function() {
|
|
117
117
|
// if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
|
|
118
|
-
var url = new URL('./p-
|
|
118
|
+
var url = new URL('./p-27589d35.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
119
119
|
System.import(url.href);
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let n,t,e=!1;const l={},o=n=>"object"==(n=typeof n)||"function"===n;function s(n){var t,e,l;return null!==(l=null===(e=null===(t=n.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const i=(n,t,...e)=>{let l=null,s=!1,i=!1;const r=[],u=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!o(l))&&(l+=""),s&&i?r[r.length-1].t+=l:r.push(s?c(null,l):l),i=s)};if(u(e),t){const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}const a=c(n,null);return a.l=t,r.length>0&&(a.o=r),a},c=(n,t)=>({i:0,u:n,t,$:null,o:null,l:null}),r={},u=n=>L(n).$hostElement$,a=new WeakMap,f=n=>"sc-"+n.h,d=(n,t,e,l,s,i)=>{if(e!==l){let c=W(n,t);if(t.toLowerCase(),"class"===t){const t=n.classList,o=$(e),s=$(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else{const r=o(l);if((c||r&&null!==l)&&!s)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?c=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!c||4&i||s)&&!r&&n.setAttribute(t,l=!0===l?"":l)}}},y=/\s/,$=n=>n?n.split(y):[],h=(n,t,e,o)=>{const s=11===t.$.nodeType&&t.$.host?t.$.host:t.$,i=n&&n.l||l,c=t.l||l;for(o in i)o in c||d(s,o,i[o],void 0,e,t.i);for(o in c)d(s,o,i[o],c[o],e,t.i)},m=(t,e,l)=>{const o=e.o[l];let s,i,c=0;if(null!==o.t)s=o.$=B.createTextNode(o.t);else if(s=o.$=B.createElement(o.u),h(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(c=0;c<o.o.length;++c)i=m(t,o,c),i&&s.appendChild(i);return s},p=(n,e,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=m(null,l,s),c&&(o[s].$=c,r.insertBefore(c,e)))},v=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.$;n&&n.remove()}}},b=(n,t)=>n.u===t.u,w=(n,t)=>{const e=t.$=n.$,l=n.o,o=t.o,s=t.t;null===s?("slot"===t.u||h(n,t,!1),null!==l&&null!==o?((n,t,e,l)=>{let o,s=0,i=0,c=t.length-1,r=t[0],u=t[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=t[++s]:null==u?u=t[--c]:null==f?f=l[++i]:null==d?d=l[--a]:b(r,f)?(w(r,f),r=t[++s],f=l[++i]):b(u,d)?(w(u,d),u=t[--c],d=l[--a]):b(r,d)?(w(r,d),n.insertBefore(r.$,u.$.nextSibling),r=t[++s],d=l[--a]):b(u,f)?(w(u,f),n.insertBefore(u.$,r.$),u=t[--c],f=l[++i]):(o=m(t&&t[i],e,i),f=l[++i],o&&r.$.parentNode.insertBefore(o,r.$));s>c?p(n,null==l[a+1]?null:l[a+1].$,e,l,i,a):i>a&&v(t,s,c)})(e,l,t,o):null!==o?(null!==n.t&&(e.textContent=""),p(e,null,t,o,0,o.length-1)):null!==l&&v(l,0,l.length-1)):n.t!==s&&(e.data=s)},S=(n,t)=>{t&&!n.m&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.m=t)))},g=(n,t)=>{if(n.i|=16,!(4&n.i))return S(n,n.p),nn((()=>j(n,t)));n.i|=512},j=(n,t)=>{const e=n.v;return M(void 0,(()=>k(n,e,t)))},M=(n,t)=>O(n)?n.then(t):t(),O=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,k=async(n,t,e)=>{var l;const o=n.$hostElement$,i=o["s-rc"];e&&(n=>{const t=n.S,e=n.$hostElement$,l=t.i,o=((n,t)=>{var e;const l=f(t),o=_.get(l);if(n=11===n.nodeType?n:B,o)if("string"==typeof o){let t,i=a.get(n=n.head||n);if(i||a.set(n,i=new Set),!i.has(l)){{t=B.createElement("style"),t.innerHTML=o;const l=null!==(e=D.j)&&void 0!==e?e:s(B);null!=l&&t.setAttribute("nonce",l),n.insertBefore(t,n.querySelector("link"))}i&&i.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(e.shadowRoot?e.shadowRoot:e.getRootNode(),t);10&l&&(e["s-sc"]=o,e.classList.add(o+"-h"))})(n);C(n,t,o,e),i&&(i.map((n=>n())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>P(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},C=(e,l,o,s)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l,o=!1)=>{const s=e.$hostElement$,u=e.S,a=e.M||c(null,null),f=(n=>n&&n.u===r)(l)?l:i(null,null,l);if(t=s.tagName,u.O&&(f.l=f.l||{},u.O.map((([n,t])=>f.l[t]=s[n]))),o&&f.l)for(const n of Object.keys(f.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(f.l[n]=s[n]);f.u=null,f.i|=4,e.M=f,f.$=a.$=s.shadowRoot||s,n=s["s-sc"],w(a,f)})(e,l,s)}catch(n){q(n,e.$hostElement$)}return null},P=n=>{const t=n.$hostElement$,e=n.p;64&n.i||(n.i|=64,A(t),n.k(t),e||x()),n.m&&(n.m(),n.m=void 0),512&n.i&&Z((()=>g(n,!1))),n.i&=-517},x=()=>{A(B.documentElement),Z((()=>(n=>{const t=D.ce("appload",{detail:{namespace:"mds-paginator-item"}});return n.dispatchEvent(t),t})(z)))},A=n=>n.setAttribute("hydrated",""),E=(n,t,e)=>{var l;if(t.C){const s=Object.entries(t.C),i=n.prototype;if(s.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(i,n,{get(){return((n,t)=>L(this).P.get(t))(0,n)},set(e){((n,t,e,l)=>{const s=L(n),i=s.P.get(t),c=s.i,r=s.v;e=((n,t)=>null==n||o(n)?n:4&t?"false"!==n&&(""===n||!!n):1&t?n+"":n)(e,l.C[t][0]),8&c&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(s.P.set(t,e),r&&2==(18&c)&&g(s,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;i.attributeChangedCallback=function(n,l,o){D.jmp((()=>{const s=e.get(n);if(this.hasOwnProperty(s))o=this[s],delete this[s];else{if(i.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==o)return;if(null==s){const e=L(this),s=null==e?void 0:e.i;if(!(8&s)&&128&s&&o!==l){const s=e.v,i=t.A[n];null==i||i.forEach((t=>{null!=s[t]&&s[t].call(s,o,l,n)}))}return}}this[s]=(null!==o||"boolean"!=typeof this[s])&&o}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=t.A)&&void 0!==l?l:{}),...s.filter((([n,t])=>15&t[0])).map((([n,l])=>{const o=l[1]||n;return e.set(o,n),512&l[0]&&t.O.push([n,o]),o}))]))}}return n},N=(n,t={})=>{var e;const l=[],o=t.exclude||[],i=z.customElements,c=B.head,r=c.querySelector("meta[charset]"),u=B.createElement("style"),a=[];let d,y=!0;Object.assign(D,t),D.N=new URL(t.resourcesUrl||"./",B.baseURI).href,n.map((n=>{n[1].map((t=>{const e={i:t[0],h:t[1],C:t[2],T:t[3]};e.C=t[2],e.O=[];const s=e.h,c=class extends HTMLElement{constructor(n){super(n),U(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?a.push(this):D.jmp((()=>(n=>{if(0==(1&D.i)){const t=L(n),e=t.S,l=()=>{};if(1&t.i)(null==t?void 0:t.v)||(null==t?void 0:t.H)&&t.H.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){S(t,t.p=e);break}}e.C&&Object.entries(e.C).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e)=>{let l;if(0==(32&t.i)){t.i|=32;{if(l=V(e),l.then){const n=()=>{};l=await l,n()}l.isProxied||(E(l,e,2),l.isProxied=!0);const n=()=>{};t.i|=8;try{new l(t)}catch(n){q(n)}t.i&=-9,n()}if(l.style){let n=l.style;const t=f(e);if(!_.has(t)){const l=()=>{};((n,t,e)=>{let l=_.get(n);I&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,_.set(n,l)})(t,n,!!(1&e.i)),l()}}}const o=t.p,s=()=>g(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,e)}l()}})(this)))}disconnectedCallback(){D.jmp((()=>(async()=>{if(0==(1&D.i)){const n=L(this);(null==n?void 0:n.v)||(null==n?void 0:n.H)&&n.H.then((()=>{}))}})()))}componentOnReady(){return L(this).H}};e.L=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,E(c,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}[hydrated]{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=D.j)&&void 0!==e?e:s(B);null!=n&&u.setAttribute("nonce",n),c.insertBefore(u,r?r.nextSibling:c.firstChild)}y=!1,a.length?a.map((n=>n.connectedCallback())):D.jmp((()=>d=setTimeout(x,30)))},T=n=>D.j=n,H=new WeakMap,L=n=>H.get(n),R=(n,t)=>H.set(t.v=n,t),U=(n,t)=>{const e={i:0,$hostElement$:n,S:t,P:new Map};return e.H=new Promise((n=>e.k=n)),n["s-p"]=[],n["s-rc"]=[],H.set(n,e)},W=(n,t)=>t in n,q=(n,t)=>(0,console.error)(n,t),F=new Map,V=n=>{const t=n.h.replace(/-/g,"_"),e=n.L,l=F.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(F.set(e,n),n[t])),q)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z="undefined"!=typeof window?window:{},B=z.document||{head:{}},D={i:0,N:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,t,e,l)=>n.addEventListener(t,e,l),rel:(n,t,e,l)=>n.removeEventListener(t,e,l),ce:(n,t)=>new CustomEvent(n,t)},G=n=>Promise.resolve(n),I=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),J=[],K=[],Q=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&D.i?Z(Y):D.raf(Y))},X=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){q(n)}n.length=0},Y=()=>{X(J),X(K),(e=J.length>0)&&D.raf(Y)},Z=n=>G().then(n),nn=Q(K,!0);export{r as H,N as b,u as g,i as h,G as p,R as r,T as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as t,H as i,g as r}from"./p-01d3926b.js";class e{constructor(){this.elements=[],this.handleClickBehaviorDispatchEvent=o=>{"Space"!==o.code&&"Enter"!==o.code&&"NumpadEnter"!==o.code||o.target.click()},this.handleEscapeBehaviorDispatchEvent=o=>{"Escape"===o.code&&this.escapeCallback&&this.escapeCallback()},this.addElement=(o,t="element")=>{this.elements[t]=o},this.attachClickBehavior=(o="element")=>{this.elements[o]&&this.elements[o].addEventListener("keydown",this.handleClickBehaviorDispatchEvent)},this.detachClickBehavior=(o="element")=>{this.elements[o]&&this.elements[o].removeEventListener("keydown",this.handleClickBehaviorDispatchEvent)},this.attachEscapeBehavior=o=>{this.escapeCallback=o,void 0!==window&&window.addEventListener("keydown",this.handleEscapeBehaviorDispatchEvent.bind(this))},this.detachEscapeBehavior=()=>{this.escapeCallback=()=>{},void 0!==window&&window.removeEventListener("keydown",this.handleEscapeBehaviorDispatchEvent.bind(this))}}}const a=class{constructor(t){o(this,t),this.km=new e,this.componentDidLoad=()=>{this.km.addElement(this.host),this.km.attachClickBehavior()},this.componentDidUpdate=()=>{this.disabled||this.selected?this.km.detachClickBehavior():this.km.attachClickBehavior()},this.disconnectedCallback=()=>{this.km.detachClickBehavior()},this.icon=void 0,this.selected=void 0,this.disabled=void 0}render(){return t(i,{tabindex:"0"},void 0!==this.icon?t("mds-icon",{name:this.icon}):t("mds-text",{class:"text",typography:"detail"},t("slot",null)))}get host(){return r(this)}};a.style="@tailwind components; .fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08));--mds-paginator-item-background-selected:rgb(var(--brand-maggioli-03));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02));--mds-paginator-item-color-selected:rgb(var(--tone-neutral));--mds-paginator-item-color:rgb(var(--tone-neutral-02));--mds-paginator-item-radius:200px;--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:0 0 1px 1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);--mds-paginator-item-shadow:none;--mds-paginator-item-size:2.25rem;outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;padding-left:0.75rem;padding-right:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-paginator-item-background);border-radius:var(--mds-paginator-item-radius);-webkit-box-shadow:var(--mds-paginator-item-shadow);box-shadow:var(--mds-paginator-item-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--mds-paginator-item-color);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:var(--mds-paginator-item-size);-ms-flex-pack:center;justify-content:center;min-width:var(--mds-paginator-item-size);-webkit-transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, box-shadow, color, outline, outline-offset;transition-property:background-color, box-shadow, color, outline, outline-offset, -webkit-box-shadow;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(:focus-visible){--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}:host(:hover){background-color:var(--mds-paginator-item-background-hover);-webkit-box-shadow:var(--mds-paginator-item-shadow-hover);box-shadow:var(--mds-paginator-item-shadow-hover);color:var(--mds-paginator-item-color-hover);fill:var(--mds-paginator-item-color-hover)}:host([icon]){padding:0px}:host([selected]){background-color:var(--mds-paginator-item-background-selected);-webkit-box-shadow:var(--mds-paginator-item-shadow-selected);box-shadow:var(--mds-paginator-item-shadow-selected);color:var(--mds-paginator-item-color-selected);fill:var(--mds-paginator-item-color-selected);pointer-events:none}:host([disabled]){background-color:var(--mds-paginator-item-background-disabled);-webkit-box-shadow:var(--mds-paginator-item-shadow-disabled);box-shadow:var(--mds-paginator-item-shadow-disabled);color:var(--mds-paginator-item-color-disabled);fill:var(--mds-paginator-item-color-disabled);pointer-events:none}.icon{padding-left:0px;padding-right:0px}";export{a as mds_paginator_item}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-902d51ca.system.js"],(function(e,t){"use strict";var n,s;return{setters:[function(t){n=t.p;s=t.b;e("setNonce",t.s)}],execute:function(){var e=function(){var e=t.meta.url;var s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return n(s)};e().then((function(e){return s([["p-75e9f93d.system",[[1,"mds-paginator-item",{icon:[513],selected:[516],disabled:[516]}]]]],e)}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-902d51ca.system.js"],(function(o){"use strict";var t,e,i,r;return{setters:[function(o){t=o.r;e=o.h;i=o.H;r=o.g}],execute:function(){var n=function(){function o(){var o=this;this.elements=[];this.handleClickBehaviorDispatchEvent=function(o){if(o.code==="Space"||o.code==="Enter"||o.code==="NumpadEnter"){o.target.click()}};this.handleEscapeBehaviorDispatchEvent=function(t){if(t.code==="Escape"&&o.escapeCallback){o.escapeCallback()}};this.addElement=function(t,e){if(e===void 0){e="element"}o.elements[e]=t};this.attachClickBehavior=function(t){if(t===void 0){t="element"}if(o.elements[t]){o.elements[t].addEventListener("keydown",o.handleClickBehaviorDispatchEvent)}};this.detachClickBehavior=function(t){if(t===void 0){t="element"}if(o.elements[t]){o.elements[t].removeEventListener("keydown",o.handleClickBehaviorDispatchEvent)}};this.attachEscapeBehavior=function(t){o.escapeCallback=t;if(window!==undefined){window.addEventListener("keydown",o.handleEscapeBehaviorDispatchEvent.bind(o))}};this.detachEscapeBehavior=function(){o.escapeCallback=function(){return};if(window!==undefined){window.removeEventListener("keydown",o.handleEscapeBehaviorDispatchEvent.bind(o))}}}return o}();var a="@tailwind components; .fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08));--mds-paginator-item-background-selected:rgb(var(--brand-maggioli-03));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02));--mds-paginator-item-color-selected:rgb(var(--tone-neutral));--mds-paginator-item-color:rgb(var(--tone-neutral-02));--mds-paginator-item-radius:200px;--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:0 0 1px 1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);--mds-paginator-item-shadow:none;--mds-paginator-item-size:2.25rem;outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;padding-left:0.75rem;padding-right:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-paginator-item-background);border-radius:var(--mds-paginator-item-radius);-webkit-box-shadow:var(--mds-paginator-item-shadow);box-shadow:var(--mds-paginator-item-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--mds-paginator-item-color);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:var(--mds-paginator-item-size);-ms-flex-pack:center;justify-content:center;min-width:var(--mds-paginator-item-size);-webkit-transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, box-shadow, color, outline, outline-offset;transition-property:background-color, box-shadow, color, outline, outline-offset, -webkit-box-shadow;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(:focus-visible){--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}:host(:hover){background-color:var(--mds-paginator-item-background-hover);-webkit-box-shadow:var(--mds-paginator-item-shadow-hover);box-shadow:var(--mds-paginator-item-shadow-hover);color:var(--mds-paginator-item-color-hover);fill:var(--mds-paginator-item-color-hover)}:host([icon]){padding:0px}:host([selected]){background-color:var(--mds-paginator-item-background-selected);-webkit-box-shadow:var(--mds-paginator-item-shadow-selected);box-shadow:var(--mds-paginator-item-shadow-selected);color:var(--mds-paginator-item-color-selected);fill:var(--mds-paginator-item-color-selected);pointer-events:none}:host([disabled]){background-color:var(--mds-paginator-item-background-disabled);-webkit-box-shadow:var(--mds-paginator-item-shadow-disabled);box-shadow:var(--mds-paginator-item-shadow-disabled);color:var(--mds-paginator-item-color-disabled);fill:var(--mds-paginator-item-color-disabled);pointer-events:none}.icon{padding-left:0px;padding-right:0px}";var s=o("mds_paginator_item",function(){function o(o){var e=this;t(this,o);this.km=new n;this.componentDidLoad=function(){e.km.addElement(e.host);e.km.attachClickBehavior()};this.componentDidUpdate=function(){if(!e.disabled&&!e.selected){e.km.attachClickBehavior();return}e.km.detachClickBehavior()};this.disconnectedCallback=function(){e.km.detachClickBehavior()};this.icon=undefined;this.selected=undefined;this.disabled=undefined}o.prototype.render=function(){return e(i,{tabindex:"0"},this.icon!==undefined?e("mds-icon",{name:this.icon}):e("mds-text",{class:"text",typography:"detail"},e("slot",null)))};Object.defineProperty(o.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return o}());s.style=a}}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var r=function(n,e){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var e in n)if(Object.prototype.hasOwnProperty.call(n,e))r[e]=n[e]};return r(n,e)};return function(n,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(r,n,e,t){function i(r){return r instanceof e?r:new e((function(n){n(r)}))}return new(e||(e=Promise))((function(e,a){function u(r){try{o(t.next(r))}catch(r){a(r)}}function f(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?e(r.value):i(r.value).then(u,f)}o((t=t.apply(r,n||[])).next())}))};var __generator=this&&this.__generator||function(r,n){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(r){return function(n){return o([r,n])}}function o(f){if(t)throw new TypeError("Generator is already executing.");while(u&&(u=0,f[0]&&(e=0)),e)try{if(t=1,i&&(a=f[0]&2?i["return"]:f[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;if(i=0,a)f=[f[0]&2,a.value];switch(f[0]){case 0:case 1:a=f;break;case 4:e.label++;return{value:f[1],done:false};case 5:e.label++;i=f[1];f=[0];continue;case 7:f=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){e=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){e.label=f[1];break}if(f[0]===6&&e.label<a[1]){e.label=a[1];a=f;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(f);break}if(a[2])e.ops.pop();e.trys.pop();continue}f=n.call(r,e)}catch(r){f=[6,r];i=0}finally{t=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,a;t<i;t++){if(a||!(t in n)){if(!a)a=Array.prototype.slice.call(n,0,t);a[t]=n[t]}}return r.concat(a||Array.prototype.slice.call(n))};System.register([],(function(r,n){"use strict";return{execute:function(){var e=this;var t="mds-paginator-item";var i;var a;var u=false;var f=false;var o=function(r,n){if(n===void 0){n=""}{return function(){return}}};var v=function(r,n){{return function(){return}}};var l="{visibility:hidden}[hydrated]{visibility:inherit}";var c={};var s=function(r){return r!=null};var d=function(r){r=typeof r;return r==="object"||r==="function"};function h(r){var n,e,t;return(t=(e=(n=r.head)===null||n===void 0?void 0:n.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&t!==void 0?t:undefined}var y=r("h",(function(r,n){var e=[];for(var t=2;t<arguments.length;t++){e[t-2]=arguments[t]}var i=null;var a=false;var u=false;var f=[];var o=function(n){for(var e=0;e<n.length;e++){i=n[e];if(Array.isArray(i)){o(i)}else if(i!=null&&typeof i!=="boolean"){if(a=typeof r!=="function"&&!d(i)){i=String(i)}if(a&&u){f[f.length-1].t+=i}else{f.push(a?p(null,i):i)}u=a}}};o(e);if(n){{var v=n.className||n.class;if(v){n.class=typeof v!=="object"?v:Object.keys(v).filter((function(r){return v[r]})).join(" ")}}}var l=p(r,null);l.i=n;if(f.length>0){l.u=f}return l}));var p=function(r,n){var e={o:0,v:r,t:n,l:null,u:null};{e.i=null}return e};var w=r("H",{});var _=function(r){return r&&r.v===w};var m=function(r,n){if(r!=null&&!d(r)){if(n&4){return r==="false"?false:r===""||!!r}if(n&1){return String(r)}return r}return r};var b=r("g",(function(r){return ar(r).$hostElement$}));var $=function(r,n,e){var t=yr.ce(n,e);r.dispatchEvent(t);return t};var g=new WeakMap;var S=function(r,n,e){var t=sr.get(r);if(wr&&e){t=t||new CSSStyleSheet;if(typeof t==="string"){t=n}else{t.replaceSync(n)}}else{t=n}sr.set(r,t)};var j=function(r,n,e){var t;var i=k(n);var a=sr.get(i);r=r.nodeType===11?r:hr;if(a){if(typeof a==="string"){r=r.head||r;var u=g.get(r);var f=void 0;if(!u){g.set(r,u=new Set)}if(!u.has(i)){{f=hr.createElement("style");f.innerHTML=a;var o=(t=yr.h)!==null&&t!==void 0?t:h(hr);if(o!=null){f.setAttribute("nonce",o)}r.insertBefore(f,r.querySelector("link"))}if(u){u.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}return i};var A=function(r){var n=r.p;var e=r.$hostElement$;var t=n.o;var i=o("attachStyles",n._);var a=j(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);if(t&10){e["s-sc"]=a;e.classList.add(a+"-h")}i()};var k=function(r,n){return"sc-"+r._};var O=function(r,n,e,t,i,a){if(e!==t){var u=or(r,n);n.toLowerCase();if(n==="class"){var f=r.classList;var o=x(e);var v=x(t);f.remove.apply(f,o.filter((function(r){return r&&!v.includes(r)})));f.add.apply(f,v.filter((function(r){return r&&!o.includes(r)})))}else{var l=d(t);if((u||l&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var c=t==null?"":t;if(n==="list"){u=false}else if(e==null||r[n]!=c){r[n]=c}}else{r[n]=t}}catch(r){}}if(t==null||t===false){if(t!==false||r.getAttribute(n)===""){{r.removeAttribute(n)}}}else if((!u||a&4||i)&&!l){t=t===true?"":t;{r.setAttribute(n,t)}}}}};var M=/\s/;var x=function(r){return!r?[]:r.split(M)};var C=function(r,n,e,t){var i=n.l.nodeType===11&&n.l.host?n.l.host:n.l;var a=r&&r.i||c;var u=n.i||c;{for(t in a){if(!(t in u)){O(i,t,a[t],undefined,e,n.o)}}}for(t in u){O(i,t,a[t],u[t],e,n.o)}};var P=function(r,n,e,t){var a=n.u[e];var f=0;var o;var v;if(a.t!==null){o=a.l=hr.createTextNode(a.t)}else{o=a.l=hr.createElement(a.v);{C(null,a,u)}if(s(i)&&o["s-si"]!==i){o.classList.add(o["s-si"]=i)}if(a.u){for(f=0;f<a.u.length;++f){v=P(r,a,f);if(v){o.appendChild(v)}}}}return o};var E=function(r,n,e,t,i,u){var f=r;var o;if(f.shadowRoot&&f.tagName===a){f=f.shadowRoot}for(;i<=u;++i){if(t[i]){o=P(null,e,i);if(o){t[i].l=o;f.insertBefore(o,n)}}}};var T=function(r,n,e){for(var t=n;t<=e;++t){var i=r[t];if(i){var a=i.l;if(a){a.remove()}}}};var U=function(r,n,e,t){var i=0;var a=0;var u=n.length-1;var f=n[0];var o=n[u];var v=t.length-1;var l=t[0];var c=t[v];var s;while(i<=u&&a<=v){if(f==null){f=n[++i]}else if(o==null){o=n[--u]}else if(l==null){l=t[++a]}else if(c==null){c=t[--v]}else if(N(f,l)){H(f,l);f=n[++i];l=t[++a]}else if(N(o,c)){H(o,c);o=n[--u];c=t[--v]}else if(N(f,c)){H(f,c);r.insertBefore(f.l,o.l.nextSibling);f=n[++i];c=t[--v]}else if(N(o,l)){H(o,l);r.insertBefore(o.l,f.l);o=n[--u];l=t[++a]}else{{s=P(n&&n[a],e,a);l=t[++a]}if(s){{f.l.parentNode.insertBefore(s,f.l)}}}}if(i>u){E(r,t[v+1]==null?null:t[v+1].l,e,t,a,v)}else if(a>v){T(n,i,u)}};var N=function(r,n){if(r.v===n.v){return true}return false};var H=function(r,n){var e=n.l=r.l;var t=r.u;var i=n.u;var a=n.v;var f=n.t;if(f===null){{if(a==="slot");else{C(r,n,u)}}if(t!==null&&i!==null){U(e,t,n,i)}else if(i!==null){if(r.t!==null){e.textContent=""}E(e,null,n,i,0,i.length-1)}else if(t!==null){T(t,0,t.length-1)}}else if(r.t!==f){e.data=f}};var L=function(r,n,e){if(e===void 0){e=false}var t=r.$hostElement$;var u=r.p;var f=r.m||p(null,null);var o=_(n)?n:y(null,null,n);a=t.tagName;if(u.$){o.i=o.i||{};u.$.map((function(r){var n=r[0],e=r[1];return o.i[e]=t[n]}))}if(e&&o.i){for(var v=0,l=Object.keys(o.i);v<l.length;v++){var c=l[v];if(t.hasAttribute(c)&&!["key","ref","style","class"].includes(c)){o.i[c]=t[c]}}}o.v=null;o.o|=4;r.m=o;o.l=f.l=t.shadowRoot||t;{i=t["s-sc"]}H(f,o)};var W=function(r,n){if(n&&!r.S&&n["s-p"]){n["s-p"].push(new Promise((function(n){return r.S=n})))}};var q=function(r,n){{r.o|=16}if(r.o&4){r.o|=512;return}W(r,r.j);var e=function(){return F(r,n)};return jr(e)};var F=function(r,n){var e=o("scheduleUpdate",r.p._);var t=r.A;var i;e();return G(i,(function(){return R(r,t,n)}))};var G=function(r,n){return I(r)?r.then(n):n()};var I=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var R=function(r,n,t){return __awaiter(e,void 0,void 0,(function(){var e,i,a,u,f,v,l;return __generator(this,(function(c){i=r.$hostElement$;a=o("update",r.p._);u=i["s-rc"];if(t){A(r)}f=o("render",r.p._);{V(r,n,i,t)}if(u){u.map((function(r){return r()}));i["s-rc"]=undefined}f();a();{v=(e=i["s-p"])!==null&&e!==void 0?e:[];l=function(){return z(r)};if(v.length===0){l()}else{Promise.all(v).then(l);r.o|=4;v.length=0}}return[2]}))}))};var V=function(r,n,e,t){try{n=n.render();{r.o&=~16}{r.o|=2}{{{L(r,n,t)}}}}catch(n){vr(n,r.$hostElement$)}return null};var z=function(r){var n=r.p._;var e=r.$hostElement$;var t=o("postUpdate",n);var i=r.j;if(!(r.o&64)){r.o|=64;{D(e)}t();{r.k(e);if(!i){B()}}}else{t()}{if(r.S){r.S();r.S=undefined}if(r.o&512){Sr((function(){return q(r,false)}))}r.o&=~(4|512)}};var B=function(r){{D(hr.documentElement)}Sr((function(){return $(dr,"appload",{detail:{namespace:t}})}))};var D=function(r){return r.setAttribute("hydrated","")};var J=function(r,n){return ar(r).O.get(n)};var K=function(r,n,e,t){var i=ar(r);var a=i.O.get(n);var u=i.o;var f=i.A;e=m(e,t.M[n][0]);var o=Number.isNaN(a)&&Number.isNaN(e);var v=e!==a&&!o;if((!(u&8)||a===undefined)&&v){i.O.set(n,e);if(f){if((u&(2|16))===2){q(i,false)}}}};var Q=function(r,n,e){var t;if(n.M){var i=Object.entries(n.M);var a=r.prototype;i.map((function(r){var t=r[0],i=r[1][0];if(i&31||e&2&&i&32){Object.defineProperty(a,t,{get:function(){return J(this,t)},set:function(r){K(this,t,r,n)},configurable:true,enumerable:true})}}));if(e&1){var u=new Map;a.attributeChangedCallback=function(r,e,t){var i=this;yr.jmp((function(){var f=u.get(r);if(i.hasOwnProperty(f)){t=i[f];delete i[f]}else if(a.hasOwnProperty(f)&&typeof i[f]==="number"&&i[f]==t){return}else if(f==null){var o=ar(i);var v=o===null||o===void 0?void 0:o.o;if(!(v&8)&&v&128&&t!==e){var l=o.A;var c=n.C[r];c===null||c===void 0?void 0:c.forEach((function(n){if(l[n]!=null){l[n].call(l,t,e,r)}}))}return}i[f]=t===null&&typeof i[f]==="boolean"?false:t}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((t=n.C)!==null&&t!==void 0?t:{}),true),i.filter((function(r){var n=r[0],e=r[1];return e[0]&15})).map((function(r){var e=r[0],t=r[1];var i=t[1]||e;u.set(i,e);if(t[0]&512){n.$.push([e,i])}return i})),true)))}}return r};var X=function(r,n,t,i){return __awaiter(e,void 0,void 0,(function(){var r,e,i,a,u,f,l,c;return __generator(this,(function(s){switch(s.label){case 0:if(!((n.o&32)===0))return[3,3];n.o|=32;r=cr(t);if(!r.then)return[3,2];e=v();return[4,r];case 1:r=s.sent();e();s.label=2;case 2:if(!r.isProxied){Q(r,t,2);r.isProxied=true}i=o("createInstance",t._);{n.o|=8}try{new r(n)}catch(r){vr(r)}{n.o&=~8}i();if(r.style){a=r.style;u=k(t);if(!sr.has(u)){f=o("registerStyles",t._);S(u,a,!!(t.o&1));f()}}s.label=3;case 3:l=n.j;c=function(){return q(n,true)};if(l&&l["s-rc"]){l["s-rc"].push(c)}else{c()}return[2]}}))}))};var Y=function(r){};var Z=function(r){if((yr.o&1)===0){var n=ar(r);var e=n.p;var t=o("connectedCallback",e._);if(!(n.o&1)){n.o|=1;{var i=r;while(i=i.parentNode||i.host){if(i["s-p"]){W(n,n.j=i);break}}}if(e.M){Object.entries(e.M).map((function(n){var e=n[0],t=n[1][0];if(t&31&&r.hasOwnProperty(e)){var i=r[e];delete r[e];r[e]=i}}))}{X(r,n,e)}}else{if(n===null||n===void 0?void 0:n.A);else if(n===null||n===void 0?void 0:n.P){n.P.then((function(){return Y()}))}}t()}};var rr=function(r){};var nr=function(r){return __awaiter(e,void 0,void 0,(function(){var n;return __generator(this,(function(e){if((yr.o&1)===0){n=ar(r);if(n===null||n===void 0?void 0:n.A);else if(n===null||n===void 0?void 0:n.P){n.P.then((function(){return rr()}))}}return[2]}))}))};var er=r("b",(function(r,n){if(n===void 0){n={}}var e;var t=o();var i=[];var a=n.exclude||[];var u=dr.customElements;var f=hr.head;var v=f.querySelector("meta[charset]");var c=hr.createElement("style");var s=[];var d;var y=true;Object.assign(yr,n);yr.T=new URL(n.resourcesUrl||"./",hr.baseURI).href;r.map((function(r){r[1].map((function(n){var e={o:n[0],_:n[1],M:n[2],U:n[3]};{e.M=n[2]}{e.$=[]}var t=e._;var f=function(r){__extends(n,r);function n(n){var t=r.call(this,n)||this;n=t;fr(n,e);if(e.o&1){{{n.attachShadow({mode:"open"})}}}return t}n.prototype.connectedCallback=function(){var r=this;if(d){clearTimeout(d);d=null}if(y){s.push(this)}else{yr.jmp((function(){return Z(r)}))}};n.prototype.disconnectedCallback=function(){var r=this;yr.jmp((function(){return nr(r)}))};n.prototype.componentOnReady=function(){return ar(this).P};return n}(HTMLElement);e.N=r[0];if(!a.includes(t)&&!u.get(t)){i.push(t);u.define(t,Q(f,e,1))}}))}));{c.innerHTML=i+l;c.setAttribute("data-styles","");var p=(e=yr.h)!==null&&e!==void 0?e:h(hr);if(p!=null){c.setAttribute("nonce",p)}f.insertBefore(c,v?v.nextSibling:f.firstChild)}y=false;if(s.length){s.map((function(r){return r.connectedCallback()}))}else{{yr.jmp((function(){return d=setTimeout(B,30)}))}}t()}));var tr=r("s",(function(r){return yr.h=r}));var ir=new WeakMap;var ar=function(r){return ir.get(r)};var ur=r("r",(function(r,n){return ir.set(n.A=r,n)}));var fr=function(r,n){var e={o:0,$hostElement$:r,p:n,O:new Map};{e.P=new Promise((function(r){return e.k=r}));r["s-p"]=[];r["s-rc"]=[]}return ir.set(r,e)};var or=function(r,n){return n in r};var vr=function(r,n){return(0,console.error)(r,n)};var lr=new Map;var cr=function(r,e,t){var i=r._.replace(/-/g,"_");var a=r.N;var u=lr.get(a);if(u){return u[i]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return n.import("./".concat(a,".entry.js").concat("")).then((function(r){{lr.set(a,r)}return r[i]}),vr)};var sr=new Map;var dr=typeof window!=="undefined"?window:{};var hr=dr.document||{head:{}};var yr={o:0,T:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,n,e,t){return r.addEventListener(n,e,t)},rel:function(r,n,e,t){return r.removeEventListener(n,e,t)},ce:function(r,n){return new CustomEvent(r,n)}};var pr=r("p",(function(r){return Promise.resolve(r)}));var wr=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var _r=[];var mr=[];var br=function(r,n){return function(e){r.push(e);if(!f){f=true;if(n&&yr.o&4){Sr(gr)}else{yr.raf(gr)}}}};var $r=function(r){for(var n=0;n<r.length;n++){try{r[n](performance.now())}catch(r){vr(r)}}r.length=0};var gr=function(){$r(_r);{$r(mr);if(f=_r.length>0){yr.raf(gr)}}};var Sr=function(r){return pr().then(r)};var jr=br(mr,true)}}}));
|
package/dist/stats.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2023-
|
|
2
|
+
"timestamp": "2023-10-19T09:55:48",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
|
-
"version": "18.
|
|
5
|
+
"version": "18.16.1"
|
|
6
6
|
},
|
|
7
7
|
"app": {
|
|
8
8
|
"namespace": "MdsPaginatorItem",
|
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
"name": "dist-lazy",
|
|
56
56
|
"files": 35,
|
|
57
57
|
"generatedFiles": [
|
|
58
|
-
"./dist/cjs/index-
|
|
58
|
+
"./dist/cjs/index-ca3ab5ae.js",
|
|
59
59
|
"./dist/cjs/index.cjs.js",
|
|
60
60
|
"./dist/cjs/loader.cjs.js",
|
|
61
61
|
"./dist/cjs/mds-paginator-item.cjs.entry.js",
|
|
62
62
|
"./dist/cjs/mds-paginator-item.cjs.js",
|
|
63
|
-
"./dist/esm-es5/index-
|
|
63
|
+
"./dist/esm-es5/index-1d7e2aea.js",
|
|
64
64
|
"./dist/esm-es5/index.js",
|
|
65
65
|
"./dist/esm-es5/loader.js",
|
|
66
66
|
"./dist/esm-es5/mds-paginator-item.entry.js",
|
|
67
67
|
"./dist/esm-es5/mds-paginator-item.js",
|
|
68
|
-
"./dist/esm/index-
|
|
68
|
+
"./dist/esm/index-1d7e2aea.js",
|
|
69
69
|
"./dist/esm/index.js",
|
|
70
70
|
"./dist/esm/loader.js",
|
|
71
71
|
"./dist/esm/mds-paginator-item.entry.js",
|
|
@@ -75,21 +75,21 @@
|
|
|
75
75
|
"./dist/mds-paginator-item/index.esm.js",
|
|
76
76
|
"./dist/mds-paginator-item/mds-paginator-item.esm.js",
|
|
77
77
|
"./dist/mds-paginator-item/mds-paginator-item.js",
|
|
78
|
-
"./dist/mds-paginator-item/p-
|
|
79
|
-
"./dist/mds-paginator-item/p-
|
|
78
|
+
"./dist/mds-paginator-item/p-01d3926b.js",
|
|
79
|
+
"./dist/mds-paginator-item/p-16362e7e.entry.js",
|
|
80
|
+
"./dist/mds-paginator-item/p-27589d35.system.js",
|
|
80
81
|
"./dist/mds-paginator-item/p-50ea2036.system.js",
|
|
81
|
-
"./dist/mds-paginator-item/p-
|
|
82
|
-
"./dist/mds-paginator-item/p-
|
|
83
|
-
"./dist/mds-paginator-item/p-e78a049a.entry.js",
|
|
82
|
+
"./dist/mds-paginator-item/p-75e9f93d.system.entry.js",
|
|
83
|
+
"./dist/mds-paginator-item/p-902d51ca.system.js",
|
|
84
84
|
"./www/build/index.esm.js",
|
|
85
85
|
"./www/build/mds-paginator-item.esm.js",
|
|
86
86
|
"./www/build/mds-paginator-item.js",
|
|
87
|
-
"./www/build/p-
|
|
88
|
-
"./www/build/p-
|
|
87
|
+
"./www/build/p-01d3926b.js",
|
|
88
|
+
"./www/build/p-16362e7e.entry.js",
|
|
89
|
+
"./www/build/p-27589d35.system.js",
|
|
89
90
|
"./www/build/p-50ea2036.system.js",
|
|
90
|
-
"./www/build/p-
|
|
91
|
-
"./www/build/p-
|
|
92
|
-
"./www/build/p-e78a049a.entry.js"
|
|
91
|
+
"./www/build/p-75e9f93d.system.entry.js",
|
|
92
|
+
"./www/build/p-902d51ca.system.js"
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
95
|
{
|
|
@@ -122,12 +122,12 @@
|
|
|
122
122
|
"components": [
|
|
123
123
|
"mds-paginator-item"
|
|
124
124
|
],
|
|
125
|
-
"bundleId": "p-
|
|
126
|
-
"fileName": "p-
|
|
125
|
+
"bundleId": "p-16362e7e",
|
|
126
|
+
"fileName": "p-16362e7e.entry.js",
|
|
127
127
|
"imports": [
|
|
128
|
-
"p-
|
|
128
|
+
"p-01d3926b.js"
|
|
129
129
|
],
|
|
130
|
-
"originalByteSize":
|
|
130
|
+
"originalByteSize": 6693
|
|
131
131
|
}
|
|
132
132
|
],
|
|
133
133
|
"esm": [
|
|
@@ -139,9 +139,9 @@
|
|
|
139
139
|
"bundleId": "mds-paginator-item",
|
|
140
140
|
"fileName": "mds-paginator-item.entry.js",
|
|
141
141
|
"imports": [
|
|
142
|
-
"index-
|
|
142
|
+
"index-1d7e2aea.js"
|
|
143
143
|
],
|
|
144
|
-
"originalByteSize":
|
|
144
|
+
"originalByteSize": 6697
|
|
145
145
|
}
|
|
146
146
|
],
|
|
147
147
|
"es5": [
|
|
@@ -153,9 +153,9 @@
|
|
|
153
153
|
"bundleId": "mds-paginator-item",
|
|
154
154
|
"fileName": "mds-paginator-item.entry.js",
|
|
155
155
|
"imports": [
|
|
156
|
-
"index-
|
|
156
|
+
"index-1d7e2aea.js"
|
|
157
157
|
],
|
|
158
|
-
"originalByteSize":
|
|
158
|
+
"originalByteSize": 6697
|
|
159
159
|
}
|
|
160
160
|
],
|
|
161
161
|
"system": [
|
|
@@ -164,12 +164,12 @@
|
|
|
164
164
|
"components": [
|
|
165
165
|
"mds-paginator-item"
|
|
166
166
|
],
|
|
167
|
-
"bundleId": "p-
|
|
168
|
-
"fileName": "p-
|
|
167
|
+
"bundleId": "p-75e9f93d.system",
|
|
168
|
+
"fileName": "p-75e9f93d.system.entry.js",
|
|
169
169
|
"imports": [
|
|
170
|
-
"p-
|
|
170
|
+
"p-902d51ca.system.js"
|
|
171
171
|
],
|
|
172
|
-
"originalByteSize":
|
|
172
|
+
"originalByteSize": 7339
|
|
173
173
|
}
|
|
174
174
|
],
|
|
175
175
|
"commonjs": [
|
|
@@ -181,9 +181,9 @@
|
|
|
181
181
|
"bundleId": "mds-paginator-item.cjs",
|
|
182
182
|
"fileName": "mds-paginator-item.cjs.entry.js",
|
|
183
183
|
"imports": [
|
|
184
|
-
"index-
|
|
184
|
+
"index-ca3ab5ae.js"
|
|
185
185
|
],
|
|
186
|
-
"originalByteSize":
|
|
186
|
+
"originalByteSize": 6768
|
|
187
187
|
}
|
|
188
188
|
]
|
|
189
189
|
},
|
|
@@ -285,6 +285,8 @@
|
|
|
285
285
|
{
|
|
286
286
|
"cmps": [
|
|
287
287
|
{
|
|
288
|
+
"attachInternalsMemberName": null,
|
|
289
|
+
"formAssociated": false,
|
|
288
290
|
"tagName": "mds-paginator-item",
|
|
289
291
|
"excludeFromCollection": false,
|
|
290
292
|
"isCollectionDependency": false,
|
|
@@ -532,7 +534,7 @@
|
|
|
532
534
|
],
|
|
533
535
|
"componentGraph": {
|
|
534
536
|
"sc-mds-paginator-item": [
|
|
535
|
-
"p-
|
|
537
|
+
"p-01d3926b.js"
|
|
536
538
|
]
|
|
537
539
|
},
|
|
538
540
|
"sourceGraph": {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const unslugName: (name: string) => string;
|
|
2
2
|
declare const setAttributeIfEmpty: (element: HTMLElement, attribute: string, value: string) => string;
|
|
3
3
|
declare const hashValue: (value: string) => string;
|
|
4
|
-
|
|
4
|
+
declare const hashRandomValue: (value?: string) => string;
|
|
5
|
+
export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, };
|
|
@@ -3,6 +3,16 @@ export interface ComponentDecorator {
|
|
|
3
3
|
(opts?: ComponentOptions): ClassDecorator;
|
|
4
4
|
}
|
|
5
5
|
export interface ComponentOptions {
|
|
6
|
+
/**
|
|
7
|
+
* When set to `true` this component will be form-associated. See
|
|
8
|
+
* https://stenciljs.com/docs/next/form-associated documentation on how to
|
|
9
|
+
* build form-associated Stencil components that integrate into forms like
|
|
10
|
+
* native browser elements such as `<input>` and `<textarea>`.
|
|
11
|
+
*
|
|
12
|
+
* The {@link AttachInternals} decorator allows for access to the
|
|
13
|
+
* `ElementInternals` object to modify the associated form.
|
|
14
|
+
*/
|
|
15
|
+
formAssociated?: boolean;
|
|
6
16
|
/**
|
|
7
17
|
* Tag name of the web component. Ideally, the tag name must be globally unique,
|
|
8
18
|
* so it's recommended to choose an unique prefix for all your components within the same collection.
|
|
@@ -107,6 +117,9 @@ export interface EventOptions {
|
|
|
107
117
|
*/
|
|
108
118
|
composed?: boolean;
|
|
109
119
|
}
|
|
120
|
+
export interface AttachInternalsDecorator {
|
|
121
|
+
(): PropertyDecorator;
|
|
122
|
+
}
|
|
110
123
|
export interface ListenDecorator {
|
|
111
124
|
(eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
|
|
112
125
|
}
|
|
@@ -175,6 +188,12 @@ export declare const Element: ElementDecorator;
|
|
|
175
188
|
* https://stenciljs.com/docs/events
|
|
176
189
|
*/
|
|
177
190
|
export declare const Event: EventDecorator;
|
|
191
|
+
/**
|
|
192
|
+
* If the `formAssociated` option is set in options passed to the
|
|
193
|
+
* `@Component()` decorator then this decorator may be used to get access to the
|
|
194
|
+
* `ElementInternals` instance associated with the component.
|
|
195
|
+
*/
|
|
196
|
+
export declare const AttachInternals: AttachInternalsDecorator;
|
|
178
197
|
/**
|
|
179
198
|
* The `Listen()` decorator is for listening DOM events, including the ones
|
|
180
199
|
* dispatched from `@Events()`.
|
package/documentation.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2023-
|
|
2
|
+
"timestamp": "2023-10-19T09:23:19",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
|
-
"version": "4.
|
|
6
|
-
"typescriptVersion": "5.
|
|
5
|
+
"version": "4.5.0",
|
|
6
|
+
"typescriptVersion": "5.2.2"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
9
9
|
{
|
|
10
10
|
"filePath": "src/components/mds-paginator-item/mds-paginator-item.tsx",
|
|
11
11
|
"encapsulation": "shadow",
|
|
12
12
|
"tag": "mds-paginator-item",
|
|
13
|
-
"readme": "# mds-paginator-item\n\n\n",
|
|
14
|
-
"docs": "",
|
|
13
|
+
"readme": "# mds-paginator-item\n\n\n\nThis is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.\n",
|
|
14
|
+
"docs": "This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.",
|
|
15
15
|
"docsTags": [
|
|
16
16
|
{
|
|
17
17
|
"name": "slot",
|
|
@@ -359,6 +359,11 @@
|
|
|
359
359
|
"docstring": "",
|
|
360
360
|
"path": "src/components/mds-form/meta/types.ts"
|
|
361
361
|
},
|
|
362
|
+
"src/components/mds-header-bar/meta/types.ts::MenuType": {
|
|
363
|
+
"declaration": "export type MenuType =\n | 'all'\n | 'desktop'\n | 'mobile'\n | 'none'",
|
|
364
|
+
"docstring": "",
|
|
365
|
+
"path": "src/components/mds-header-bar/meta/types.ts"
|
|
366
|
+
},
|
|
362
367
|
"src/components/mds-header/meta/event-detail.ts::MdsHeaderEventDetail": {
|
|
363
368
|
"declaration": "export interface MdsHeaderEventDetail {\n bar: HTMLMdsHeaderBarElement\n}",
|
|
364
369
|
"docstring": "",
|
|
@@ -464,6 +469,11 @@
|
|
|
464
469
|
"docstring": "",
|
|
465
470
|
"path": "src/components/mds-paginator/meta/event-detail.ts"
|
|
466
471
|
},
|
|
472
|
+
"src/components/mds-price-table-features-cell/meta/types.ts::PriceTableFeaturesCellType": {
|
|
473
|
+
"declaration": "export type PriceTableFeaturesCellType =\n | 'custom'\n | 'label'\n | 'supported'\n | 'text'\n | 'unsupported'",
|
|
474
|
+
"docstring": "",
|
|
475
|
+
"path": "src/components/mds-price-table-features-cell/meta/types.ts"
|
|
476
|
+
},
|
|
467
477
|
"src/components/mds-progress/meta/types.ts::DirectionType": {
|
|
468
478
|
"declaration": "export type DirectionType =\n | 'horizontal'\n | 'vertical'",
|
|
469
479
|
"docstring": "",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/mds-paginator-item",
|
|
3
|
-
"version": "2.4.
|
|
4
|
-
"description": "mds-paginator-item is a web-component from
|
|
3
|
+
"version": "2.4.2",
|
|
4
|
+
"description": "mds-paginator-item is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"es2015": "dist/esm/index.mjs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@maggioli-design-system/styles": "^11.7.0",
|
|
28
|
-
"@stencil/core": "^4.
|
|
28
|
+
"@stencil/core": "^4.3.0"
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"author": {
|
package/readme.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.
|
|
6
|
+
|
|
5
7
|
<!-- Auto Generated Below -->
|
|
6
8
|
|
|
7
9
|
|
|
@@ -63,4 +65,4 @@ graph TD;
|
|
|
63
65
|
|
|
64
66
|
----------------------------------------------
|
|
65
67
|
|
|
66
|
-
Built with love @
|
|
68
|
+
Built with love @ [Gruppo Maggioli](https://www.maggioli.com) from [R&D Department](https://www.maggioli.com/it-it/chi-siamo/ricerca-sviluppo)
|
package/src/common/aria.ts
CHANGED
|
@@ -6,6 +6,8 @@ const hash = (s: string): string => {
|
|
|
6
6
|
return h.toString()
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
const randomInt = (max: number): number => Math.floor(Math.random() * max)
|
|
10
|
+
|
|
9
11
|
const unslugName = (name: string): string => {
|
|
10
12
|
return name.split('/')?.slice(-1).pop()?.replace(/-/g, ' ') ?? name
|
|
11
13
|
}
|
|
@@ -20,8 +22,18 @@ const setAttributeIfEmpty = (element: HTMLElement, attribute: string, value: str
|
|
|
20
22
|
|
|
21
23
|
const hashValue = (value: string): string => `${value}-${hash(value)}`
|
|
22
24
|
|
|
25
|
+
const hashRandomValue = (value?: string): string => {
|
|
26
|
+
const randomValue = randomInt(1000000)
|
|
27
|
+
if (value) {
|
|
28
|
+
return `${value}-${hash(randomValue.toString())}`
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return hash(randomValue.toString())
|
|
32
|
+
}
|
|
33
|
+
|
|
23
34
|
export {
|
|
24
35
|
unslugName,
|
|
25
36
|
setAttributeIfEmpty,
|
|
37
|
+
hashRandomValue,
|
|
26
38
|
hashValue,
|
|
27
39
|
}
|
|
@@ -32,14 +32,14 @@ export class KeyboardManager {
|
|
|
32
32
|
|
|
33
33
|
attachEscapeBehavior = (callBack: () => void): void => {
|
|
34
34
|
this.escapeCallback = callBack
|
|
35
|
-
if (
|
|
35
|
+
if (window !== undefined) {
|
|
36
36
|
window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
detachEscapeBehavior = (): void => {
|
|
41
41
|
this.escapeCallback = () => {return}
|
|
42
|
-
if (
|
|
42
|
+
if (window !== undefined) {
|
|
43
43
|
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))
|
|
44
44
|
}
|
|
45
45
|
}
|