@maggioli-design-system/mds-paginator-item 2.2.0 → 2.4.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/dist/cjs/{index-969219be.js → index-30ee4c25.js} +166 -32
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/cjs/mds-paginator-item.cjs.entry.js +5 -5
- package/dist/cjs/mds-paginator-item.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/common/aria.js +4 -2
- package/dist/collection/common/keyboard-manager.js +1 -1
- package/dist/collection/common/unit.js +10 -0
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +4 -3
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +13 -10
- package/dist/collection/dictionary/button.js +5 -1
- package/dist/collection/dictionary/icon.js +2 -2
- package/dist/collection/dictionary/variant.js +9 -1
- package/dist/components/index.d.ts +5 -3
- package/dist/components/index.js +1 -2
- package/dist/components/mds-paginator-item.js +6 -6
- package/dist/documentation.d.ts +421 -0
- package/dist/documentation.json +183 -0
- package/dist/esm/{index-43abfe8a.js → index-3fa51808.js} +166 -32
- package/dist/esm/loader.js +4 -13
- package/dist/esm/mds-paginator-item.entry.js +5 -5
- package/dist/esm/mds-paginator-item.js +4 -4
- package/dist/esm-es5/index-3fa51808.js +2 -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 +2 -6
- package/dist/mds-paginator-item/p-2e3a33e5.js +2 -0
- package/dist/mds-paginator-item/p-2f534d96.system.entry.js +1 -0
- package/dist/mds-paginator-item/p-61d399b8.system.js +1 -0
- package/dist/mds-paginator-item/p-8e675782.system.js +2 -0
- package/dist/mds-paginator-item/p-e78a049a.entry.js +1 -0
- package/dist/stats.json +76 -68
- package/dist/types/common/unit.d.ts +2 -0
- package/dist/types/components.d.ts +8 -8
- package/dist/types/dictionary/button.d.ts +2 -1
- package/dist/types/dictionary/variant.d.ts +2 -1
- package/dist/types/interface/input-value.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +32 -17
- package/dist/types/{types → type}/button.d.ts +1 -0
- package/dist/types/{types → type}/variant.d.ts +1 -0
- package/documentation.json +538 -0
- package/loader/index.d.ts +2 -2
- package/package.json +10 -4
- package/readme.md +12 -5
- package/src/common/aria.ts +2 -2
- package/src/common/keyboard-manager.ts +1 -1
- package/src/common/unit.ts +14 -0
- package/src/components/mds-paginator-item/mds-paginator-item.css +4 -4
- package/src/components/mds-paginator-item/mds-paginator-item.tsx +7 -3
- package/src/components/mds-paginator-item/readme.md +12 -5
- package/src/components.d.ts +8 -8
- package/src/dictionary/button.ts +7 -1
- package/src/dictionary/variant.ts +10 -0
- package/src/fixtures/icons.json +40 -0
- package/src/fixtures/iconsauce.json +38 -0
- package/src/interface/input-value.ts +1 -1
- package/src/{types → type}/button.ts +4 -0
- package/src/{types → type}/variant.ts +9 -0
- package/www/build/mds-paginator-item.esm.js +1 -1
- package/www/build/mds-paginator-item.js +2 -6
- package/www/build/p-2e3a33e5.js +2 -0
- package/www/build/p-2f534d96.system.entry.js +1 -0
- package/www/build/p-61d399b8.system.js +1 -0
- package/www/build/p-8e675782.system.js +2 -0
- package/www/build/p-e78a049a.entry.js +1 -0
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm-es5/index-43abfe8a.js +0 -2
- package/dist/mds-paginator-item/p-043d636e.system.js +0 -1
- package/dist/mds-paginator-item/p-545e4388.system.js +0 -2
- package/dist/mds-paginator-item/p-632f225a.system.entry.js +0 -1
- package/dist/mds-paginator-item/p-6f0a5176.entry.js +0 -1
- package/dist/mds-paginator-item/p-cd35cb31.js +0 -2
- package/www/build/p-043d636e.system.js +0 -1
- package/www/build/p-545e4388.system.js +0 -2
- package/www/build/p-632f225a.system.entry.js +0 -1
- package/www/build/p-6f0a5176.entry.js +0 -1
- package/www/build/p-cd35cb31.js +0 -2
- /package/dist/collection/{types → type}/autocomplete.js +0 -0
- /package/dist/collection/{types → type}/button.js +0 -0
- /package/dist/collection/{types → type}/floating-ui.js +0 -0
- /package/dist/collection/{types → type}/form-rel.js +0 -0
- /package/dist/collection/{types → type}/input-text-type.js +0 -0
- /package/dist/collection/{types → type}/input-value-type.js +0 -0
- /package/dist/collection/{types → type}/loading.js +0 -0
- /package/dist/collection/{types → type}/typography.js +0 -0
- /package/dist/collection/{types → type}/variant.js +0 -0
- /package/dist/types/{types → type}/autocomplete.d.ts +0 -0
- /package/dist/types/{types → type}/floating-ui.d.ts +0 -0
- /package/dist/types/{types → type}/form-rel.d.ts +0 -0
- /package/dist/types/{types → type}/input-text-type.d.ts +0 -0
- /package/dist/types/{types → type}/input-value-type.d.ts +0 -0
- /package/dist/types/{types → type}/loading.d.ts +0 -0
- /package/dist/types/{types → type}/typography.d.ts +0 -0
- /package/src/{types → type}/autocomplete.ts +0 -0
- /package/src/{types → type}/floating-ui.ts +0 -0
- /package/src/{types → type}/form-rel.ts +0 -0
- /package/src/{types → type}/input-text-type.ts +0 -0
- /package/src/{types → type}/input-value-type.ts +0 -0
- /package/src/{types → type}/loading.ts +0 -0
- /package/src/{types → type}/typography.ts +0 -0
|
@@ -36,6 +36,13 @@ const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
|
|
|
36
36
|
*/
|
|
37
37
|
const EMPTY_OBJ = {};
|
|
38
38
|
const isDef = (v) => v != null;
|
|
39
|
+
/**
|
|
40
|
+
* Check whether a value is a 'complex type', defined here as an object or a
|
|
41
|
+
* function.
|
|
42
|
+
*
|
|
43
|
+
* @param o the value to check
|
|
44
|
+
* @returns whether it's a complex type or not
|
|
45
|
+
*/
|
|
39
46
|
const isComplexType = (o) => {
|
|
40
47
|
// https://jsperf.com/typeof-fn-object/5
|
|
41
48
|
o = typeof o;
|
|
@@ -92,6 +99,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
92
99
|
};
|
|
93
100
|
walk(children);
|
|
94
101
|
if (vnodeData) {
|
|
102
|
+
// normalize class / className attributes
|
|
95
103
|
{
|
|
96
104
|
const classData = vnodeData.className || vnodeData.class;
|
|
97
105
|
if (classData) {
|
|
@@ -213,9 +221,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
213
221
|
}
|
|
214
222
|
styles.set(scopeId, style);
|
|
215
223
|
};
|
|
216
|
-
const addStyle = (styleContainerNode, cmpMeta, mode
|
|
224
|
+
const addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
217
225
|
var _a;
|
|
218
|
-
|
|
226
|
+
const scopeId = getScopeId(cmpMeta);
|
|
219
227
|
const style = styles.get(scopeId);
|
|
220
228
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
221
229
|
// so the fallback is to always use the document for the root node in those cases
|
|
@@ -230,10 +238,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
230
238
|
}
|
|
231
239
|
if (!appliedStyles.has(scopeId)) {
|
|
232
240
|
{
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
styleElm.innerHTML = style;
|
|
236
|
-
}
|
|
241
|
+
styleElm = doc.createElement('style');
|
|
242
|
+
styleElm.innerHTML = style;
|
|
237
243
|
// Apply CSP nonce to the style tag if it exists
|
|
238
244
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
239
245
|
if (nonce != null) {
|
|
@@ -280,6 +286,21 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
280
286
|
*
|
|
281
287
|
* Modified for Stencil's compiler and vdom
|
|
282
288
|
*/
|
|
289
|
+
/**
|
|
290
|
+
* When running a VDom render set properties present on a VDom node onto the
|
|
291
|
+
* corresponding HTML element.
|
|
292
|
+
*
|
|
293
|
+
* Note that this function has special functionality for the `class`,
|
|
294
|
+
* `style`, `key`, and `ref` attributes, as well as event handlers (like
|
|
295
|
+
* `onClick`, etc). All others are just passed through as-is.
|
|
296
|
+
*
|
|
297
|
+
* @param elm the HTMLElement onto which attributes should be set
|
|
298
|
+
* @param memberName the name of the attribute to set
|
|
299
|
+
* @param oldValue the old value for the attribute
|
|
300
|
+
* @param newValue the new value for the attribute
|
|
301
|
+
* @param isSvg whether we're in an svg context or not
|
|
302
|
+
* @param flags bitflags for Vdom variables
|
|
303
|
+
*/
|
|
283
304
|
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
284
305
|
if (oldValue !== newValue) {
|
|
285
306
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -439,15 +460,16 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
439
460
|
* @param vnodes a list of virtual DOM nodes to remove
|
|
440
461
|
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
441
462
|
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
442
|
-
* @param vnode a VNode
|
|
443
|
-
* @param elm an element
|
|
444
463
|
*/
|
|
445
|
-
const removeVnodes = (vnodes, startIdx, endIdx
|
|
446
|
-
for (
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
elm
|
|
464
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
465
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
466
|
+
const vnode = vnodes[index];
|
|
467
|
+
if (vnode) {
|
|
468
|
+
const elm = vnode.$elm$;
|
|
469
|
+
if (elm) {
|
|
470
|
+
// remove the vnode's element from the dom
|
|
471
|
+
elm.remove();
|
|
472
|
+
}
|
|
451
473
|
}
|
|
452
474
|
}
|
|
453
475
|
};
|
|
@@ -709,17 +731,44 @@ const patch = (oldVNode, newVNode) => {
|
|
|
709
731
|
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
710
732
|
* the DOM node into which it should be rendered.
|
|
711
733
|
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
734
|
+
* @param isInitialLoad whether or not this is the first call after page load
|
|
712
735
|
*/
|
|
713
|
-
const renderVdom = (hostRef, renderFnResults) => {
|
|
736
|
+
const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
714
737
|
const hostElm = hostRef.$hostElement$;
|
|
715
738
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
716
739
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
740
|
+
// if `renderFnResults` is a Host node then we can use it directly. If not,
|
|
741
|
+
// we need to call `h` again to wrap the children of our component in a
|
|
742
|
+
// 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
|
|
743
|
+
// implicitly that the top-level vdom node is 1) an only child and 2)
|
|
744
|
+
// contains attrs that need to be set on the host element.
|
|
717
745
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
718
746
|
hostTagName = hostElm.tagName;
|
|
719
747
|
if (cmpMeta.$attrsToReflect$) {
|
|
720
748
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
721
749
|
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
722
750
|
}
|
|
751
|
+
// On the first render and *only* on the first render we want to check for
|
|
752
|
+
// any attributes set on the host element which are also set on the vdom
|
|
753
|
+
// node. If we find them, we override the value on the VDom node attrs with
|
|
754
|
+
// the value from the host element, which allows developers building apps
|
|
755
|
+
// with Stencil components to override e.g. the `role` attribute on a
|
|
756
|
+
// component even if it's already set on the `Host`.
|
|
757
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
758
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
759
|
+
// We have a special implementation in `setAccessor` for `style` and
|
|
760
|
+
// `class` which reconciles values coming from the VDom with values
|
|
761
|
+
// already present on the DOM element, so we don't want to override those
|
|
762
|
+
// attributes on the VDom tree with values from the host element if they
|
|
763
|
+
// are present.
|
|
764
|
+
//
|
|
765
|
+
// Likewise, `ref` and `key` are special internal values for the Stencil
|
|
766
|
+
// runtime and we don't want to override those either.
|
|
767
|
+
if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
|
|
768
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
}
|
|
723
772
|
rootVnode.$tag$ = null;
|
|
724
773
|
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
725
774
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -750,15 +799,76 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
750
799
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
751
800
|
return writeTask(dispatch) ;
|
|
752
801
|
};
|
|
802
|
+
/**
|
|
803
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
804
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
805
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
806
|
+
*
|
|
807
|
+
* @param hostRef a reference to a host DOM node
|
|
808
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
809
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
810
|
+
* the component
|
|
811
|
+
*/
|
|
753
812
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
754
813
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
755
814
|
const instance = hostRef.$lazyInstance$ ;
|
|
756
|
-
|
|
815
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
816
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
817
|
+
// the first function to the queue we'll set this variable to be that
|
|
818
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
819
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
820
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
821
|
+
// queue two nice properties:
|
|
822
|
+
//
|
|
823
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
824
|
+
// synchronously right away.
|
|
825
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
826
|
+
// called in order after `dispatchHooks` exits.
|
|
827
|
+
let maybePromise;
|
|
757
828
|
endSchedule();
|
|
758
|
-
return
|
|
829
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
759
830
|
};
|
|
831
|
+
/**
|
|
832
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
833
|
+
* of functions to be called.
|
|
834
|
+
*
|
|
835
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
836
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
837
|
+
* be called synchronously (although note that this function may return a
|
|
838
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
839
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
840
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
841
|
+
* as the first argument.
|
|
842
|
+
*
|
|
843
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
844
|
+
* @param fn a function to enqueue
|
|
845
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
846
|
+
*/
|
|
847
|
+
const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
|
|
848
|
+
/**
|
|
849
|
+
* Check that a value is a `Promise`. To check, we first see if the value is an
|
|
850
|
+
* instance of the `Promise` global. In a few circumstances, in particular if
|
|
851
|
+
* the global has been overwritten, this is could be misleading, so we also do
|
|
852
|
+
* a little 'duck typing' check to see if the `.then` property of the value is
|
|
853
|
+
* defined and a function.
|
|
854
|
+
*
|
|
855
|
+
* @param maybePromise it might be a promise!
|
|
856
|
+
* @returns whether it is or not
|
|
857
|
+
*/
|
|
858
|
+
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
859
|
+
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
860
|
+
/**
|
|
861
|
+
* Update a component given reference to its host elements and so on.
|
|
862
|
+
*
|
|
863
|
+
* @param hostRef an object containing references to the element's host node,
|
|
864
|
+
* VDom nodes, and other metadata
|
|
865
|
+
* @param instance a reference to the underlying host element where it will be
|
|
866
|
+
* rendered
|
|
867
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
868
|
+
* the first render cycle
|
|
869
|
+
*/
|
|
760
870
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
761
|
-
|
|
871
|
+
var _a;
|
|
762
872
|
const elm = hostRef.$hostElement$;
|
|
763
873
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
764
874
|
const rc = elm['s-rc'];
|
|
@@ -768,7 +878,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
768
878
|
}
|
|
769
879
|
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
770
880
|
{
|
|
771
|
-
callRender(hostRef, instance);
|
|
881
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
772
882
|
}
|
|
773
883
|
if (rc) {
|
|
774
884
|
// ok, so turns out there are some child host elements
|
|
@@ -780,7 +890,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
780
890
|
endRender();
|
|
781
891
|
endUpdate();
|
|
782
892
|
{
|
|
783
|
-
const childrenPromises = elm['s-p'];
|
|
893
|
+
const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
|
|
784
894
|
const postUpdate = () => postUpdateComponent(hostRef);
|
|
785
895
|
if (childrenPromises.length === 0) {
|
|
786
896
|
postUpdate();
|
|
@@ -792,7 +902,19 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
792
902
|
}
|
|
793
903
|
}
|
|
794
904
|
};
|
|
795
|
-
|
|
905
|
+
/**
|
|
906
|
+
* Handle making the call to the VDom renderer with the proper context given
|
|
907
|
+
* various build variables
|
|
908
|
+
*
|
|
909
|
+
* @param hostRef an object containing references to the element's host node,
|
|
910
|
+
* VDom nodes, and other metadata
|
|
911
|
+
* @param instance a reference to the underlying host element where it will be
|
|
912
|
+
* rendered
|
|
913
|
+
* @param elm the Host element for the component
|
|
914
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
915
|
+
* @returns an empty promise
|
|
916
|
+
*/
|
|
917
|
+
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
796
918
|
try {
|
|
797
919
|
instance = instance.render() ;
|
|
798
920
|
{
|
|
@@ -807,7 +929,7 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
807
929
|
// or we need to update the css class/attrs on the host element
|
|
808
930
|
// DOM WRITE!
|
|
809
931
|
{
|
|
810
|
-
renderVdom(hostRef, instance);
|
|
932
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
811
933
|
}
|
|
812
934
|
}
|
|
813
935
|
}
|
|
@@ -863,9 +985,6 @@ const appDidLoad = (who) => {
|
|
|
863
985
|
}
|
|
864
986
|
nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
|
|
865
987
|
};
|
|
866
|
-
const then = (promise, thenFn) => {
|
|
867
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
868
|
-
};
|
|
869
988
|
const addHydratedFlag = (elm) => elm.setAttribute('hydrated', '')
|
|
870
989
|
;
|
|
871
990
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
@@ -952,12 +1071,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
952
1071
|
// customElements.define('my-component', MyComponent);
|
|
953
1072
|
// </script>
|
|
954
1073
|
// ```
|
|
955
|
-
// In this case if we do not
|
|
1074
|
+
// In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
|
|
956
1075
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
957
1076
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
958
|
-
// the connectedCallback attempts to
|
|
1077
|
+
// the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
|
|
959
1078
|
//
|
|
960
|
-
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/
|
|
1079
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
|
|
961
1080
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
962
1081
|
//
|
|
963
1082
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
@@ -999,9 +1118,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
999
1118
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1000
1119
|
// initializeComponent
|
|
1001
1120
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1121
|
+
// Let the runtime know that the component has been initialized
|
|
1122
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1002
1123
|
{
|
|
1003
|
-
// we haven't initialized this element yet
|
|
1004
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1005
1124
|
// lazy loaded components
|
|
1006
1125
|
// request the component's implementation to be
|
|
1007
1126
|
// wired up with the host element
|
|
@@ -1065,6 +1184,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1065
1184
|
schedule();
|
|
1066
1185
|
}
|
|
1067
1186
|
};
|
|
1187
|
+
const fireConnectedCallback = (instance) => {
|
|
1188
|
+
};
|
|
1068
1189
|
const connectedCallback = (elm) => {
|
|
1069
1190
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1070
1191
|
const hostRef = getHostRef(elm);
|
|
@@ -1103,12 +1224,25 @@ const connectedCallback = (elm) => {
|
|
|
1103
1224
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1104
1225
|
}
|
|
1105
1226
|
}
|
|
1227
|
+
else {
|
|
1228
|
+
// fire off connectedCallback() on component instance
|
|
1229
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1230
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1231
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1106
1234
|
endConnected();
|
|
1107
1235
|
}
|
|
1108
1236
|
};
|
|
1109
|
-
const
|
|
1237
|
+
const disconnectInstance = (instance) => {
|
|
1238
|
+
};
|
|
1239
|
+
const disconnectedCallback = async (elm) => {
|
|
1110
1240
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1111
|
-
getHostRef(elm);
|
|
1241
|
+
const hostRef = getHostRef(elm);
|
|
1242
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1243
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1244
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1245
|
+
}
|
|
1112
1246
|
}
|
|
1113
1247
|
};
|
|
1114
1248
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { s as setNonce } from './index-
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
Stencil Client Patch Esm v2.22.2 | MIT Licensed | https://stenciljs.com
|
|
6
|
-
*/
|
|
7
|
-
const patchEsm = () => {
|
|
8
|
-
return promiseResolve();
|
|
9
|
-
};
|
|
1
|
+
import { b as bootstrapLazy } from './index-3fa51808.js';
|
|
2
|
+
export { s as setNonce } from './index-3fa51808.js';
|
|
10
3
|
|
|
11
4
|
const defineCustomElements = (win, options) => {
|
|
12
|
-
if (typeof window === 'undefined') return
|
|
13
|
-
return
|
|
14
|
-
return bootstrapLazy([["mds-paginator-item",[[1,"mds-paginator-item",{"icon":[513],"active":[516],"disabled":[516]}]]]], options);
|
|
15
|
-
});
|
|
5
|
+
if (typeof window === 'undefined') return undefined;
|
|
6
|
+
return bootstrapLazy([["mds-paginator-item",[[1,"mds-paginator-item",{"icon":[513],"selected":[516],"disabled":[516]}]]]], options);
|
|
16
7
|
};
|
|
17
8
|
|
|
18
9
|
export { defineCustomElements };
|
|
@@ -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-3fa51808.js';
|
|
2
2
|
|
|
3
3
|
class KeyboardManager {
|
|
4
4
|
constructor() {
|
|
@@ -33,7 +33,7 @@ class KeyboardManager {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
this.detachEscapeBehavior = () => {
|
|
36
|
-
this.escapeCallback =
|
|
36
|
+
this.escapeCallback = () => { return; };
|
|
37
37
|
if (typeof window !== undefined) {
|
|
38
38
|
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
|
|
39
39
|
}
|
|
@@ -41,7 +41,7 @@ class KeyboardManager {
|
|
|
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;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;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);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);color:var(--mds-paginator-item-color);height:var(--mds-paginator-item-size);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}: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([
|
|
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;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;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);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);color:var(--mds-paginator-item-color);height:var(--mds-paginator-item-size);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}: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]){pointer-events:none;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)}:host([disabled]){pointer-events:none;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)}.icon{padding-left:0px;padding-right:0px}";
|
|
45
45
|
|
|
46
46
|
const MdsPaginatorItem = class {
|
|
47
47
|
constructor(hostRef) {
|
|
@@ -52,7 +52,7 @@ const MdsPaginatorItem = class {
|
|
|
52
52
|
this.km.attachClickBehavior();
|
|
53
53
|
};
|
|
54
54
|
this.componentDidUpdate = () => {
|
|
55
|
-
if (!this.disabled && !this.
|
|
55
|
+
if (!this.disabled && !this.selected) {
|
|
56
56
|
this.km.attachClickBehavior();
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
@@ -62,7 +62,7 @@ const MdsPaginatorItem = class {
|
|
|
62
62
|
this.km.detachClickBehavior();
|
|
63
63
|
};
|
|
64
64
|
this.icon = undefined;
|
|
65
|
-
this.
|
|
65
|
+
this.selected = undefined;
|
|
66
66
|
this.disabled = undefined;
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
@@ -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-3fa51808.js';
|
|
2
|
+
export { s as setNonce } from './index-3fa51808.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser
|
|
5
|
+
Stencil Client Patch Browser v4.2.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy([["mds-paginator-item",[[1,"mds-paginator-item",{"icon":[513],"
|
|
17
|
+
return bootstrapLazy([["mds-paginator-item",[[1,"mds-paginator-item",{"icon":[513],"selected":[516],"disabled":[516]}]]]], options);
|
|
18
18
|
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r["throw"](e))}catch(e){o(e)}}function l(e){e.done?n(e.value):a(e.value).then(i,s)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(n=0)),n)try{if(r=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];a=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};var NAMESPACE="mds-paginator-item";var scopeId;var hostTagName;var isSvgMode=false;var queuePending=false;var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{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 t,n,r;return(r=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&r!==void 0?r:undefined}var h=function(e,t){var n=[];for(var r=2;r<arguments.length;r++){n[r-2]=arguments[r]}var a=null;var o=false;var i=false;var s=[];var l=function(t){for(var n=0;n<t.length;n++){a=t[n];if(Array.isArray(a)){l(a)}else if(a!=null&&typeof a!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(o&&i){s[s.length-1].$text$+=a}else{s.push(o?newVNode(null,a):a)}i=o}}};l(n);if(t){{var u=t.className||t.class;if(u){t.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}var c=newVNode(e,null);c.$attrs$=t;if(s.length>0){c.$children$=s}return c};var newVNode=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{n.$attrs$=null}return n};var Host={};var isHost=function(e){return e&&e.$tag$===Host};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var emitEvent=function(e,t,n){var r=plt.ce(t,n);e.dispatchEvent(r);return r};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,n){var r=styles.get(e);if(supportsConstructableStylesheets&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}styles.set(e,r)};var addStyle=function(e,t,n){var r;var a=getScopeId(t);var o=styles.get(a);e=e.nodeType===11?e:doc;if(o){if(typeof o==="string"){e=e.head||e;var i=rootAppliedStyles.get(e);var s=void 0;if(!i){rootAppliedStyles.set(e,i=new Set)}if(!i.has(a)){{s=doc.createElement("style");s.innerHTML=o;var l=(r=plt.$nonce$)!==null&&r!==void 0?r:queryNonceMetaTagContent(doc);if(l!=null){s.setAttribute("nonce",l)}e.insertBefore(s,e.querySelector("link"))}if(i){i.add(a)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[o],false)}}return a};var attachStyles=function(e){var t=e.$cmpMeta$;var n=e.$hostElement$;var r=t.$flags$;var a=createTime("attachStyles",t.$tagName$);var o=addStyle(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=o;n.classList.add(o+"-h")}a()};var getScopeId=function(e,t){return"sc-"+e.$tagName$};var setAccessor=function(e,t,n,r,a,o){if(n!==r){var i=isMemberInElement(e,t);t.toLowerCase();if(t==="class"){var s=e.classList;var l=parseClassList(n);var u=parseClassList(r);s.remove.apply(s,l.filter((function(e){return e&&!u.includes(e)})));s.add.apply(s,u.filter((function(e){return e&&!l.includes(e)})))}else{var c=isComplexType(r);if((i||c&&r!==null)&&!a){try{if(!e.tagName.includes("-")){var f=r==null?"":r;if(t==="list"){i=false}else if(n==null||e[t]!=f){e[t]=f}}else{e[t]=r}}catch(e){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!i||o&4||a)&&!c){r=r===true?"":r;{e.setAttribute(t,r)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var updateElement=function(e,t,n,r){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var o=e&&e.$attrs$||EMPTY_OBJ;var i=t.$attrs$||EMPTY_OBJ;{for(r in o){if(!(r in i)){setAccessor(a,r,o[r],undefined,n,t.$flags$)}}}for(r in i){setAccessor(a,r,o[r],i[r],n,t.$flags$)}};var createElm=function(e,t,n,r){var a=t.$children$[n];var o=0;var i;var s;if(a.$text$!==null){i=a.$elm$=doc.createTextNode(a.$text$)}else{i=a.$elm$=doc.createElement(a.$tag$);{updateElement(null,a,isSvgMode)}if(isDef(scopeId)&&i["s-si"]!==scopeId){i.classList.add(i["s-si"]=scopeId)}if(a.$children$){for(o=0;o<a.$children$.length;++o){s=createElm(e,a,o);if(s){i.appendChild(s)}}}}return i};var addVnodes=function(e,t,n,r,a,o){var i=e;var s;if(i.shadowRoot&&i.tagName===hostTagName){i=i.shadowRoot}for(;a<=o;++a){if(r[a]){s=createElm(null,n,a);if(s){r[a].$elm$=s;i.insertBefore(s,t)}}}};var removeVnodes=function(e,t,n){for(var r=t;r<=n;++r){var a=e[r];if(a){var o=a.$elm$;if(o){o.remove()}}}};var updateChildren=function(e,t,n,r){var a=0;var o=0;var i=t.length-1;var s=t[0];var l=t[i];var u=r.length-1;var c=r[0];var f=r[u];var $;while(a<=i&&o<=u){if(s==null){s=t[++a]}else if(l==null){l=t[--i]}else if(c==null){c=r[++o]}else if(f==null){f=r[--u]}else if(isSameVnode(s,c)){patch(s,c);s=t[++a];c=r[++o]}else if(isSameVnode(l,f)){patch(l,f);l=t[--i];f=r[--u]}else if(isSameVnode(s,f)){patch(s,f);e.insertBefore(s.$elm$,l.$elm$.nextSibling);s=t[++a];f=r[--u]}else if(isSameVnode(l,c)){patch(l,c);e.insertBefore(l.$elm$,s.$elm$);l=t[--i];c=r[++o]}else{{$=createElm(t&&t[o],n,o);c=r[++o]}if($){{s.$elm$.parentNode.insertBefore($,s.$elm$)}}}}if(a>i){addVnodes(e,r[u+1]==null?null:r[u+1].$elm$,n,r,o,u)}else if(o>u){removeVnodes(t,a,i)}};var isSameVnode=function(e,t){if(e.$tag$===t.$tag$){return true}return false};var patch=function(e,t){var n=t.$elm$=e.$elm$;var r=e.$children$;var a=t.$children$;var o=t.$tag$;var i=t.$text$;if(i===null){{if(o==="slot");else{updateElement(e,t,isSvgMode)}}if(r!==null&&a!==null){updateChildren(n,r,t,a)}else if(a!==null){if(e.$text$!==null){n.textContent=""}addVnodes(n,null,t,a,0,a.length-1)}else if(r!==null){removeVnodes(r,0,r.length-1)}}else if(e.$text$!==i){n.data=i}};var renderVdom=function(e,t,n){if(n===void 0){n=false}var r=e.$hostElement$;var a=e.$cmpMeta$;var o=e.$vnode$||newVNode(null,null);var i=isHost(t)?t:h(null,null,t);hostTagName=r.tagName;if(a.$attrsToReflect$){i.$attrs$=i.$attrs$||{};a.$attrsToReflect$.map((function(e){var t=e[0],n=e[1];return i.$attrs$[n]=r[t]}))}if(n&&i.$attrs$){for(var s=0,l=Object.keys(i.$attrs$);s<l.length;s++){var u=l[s];if(r.hasAttribute(u)&&!["key","ref","style","class"].includes(u)){i.$attrs$[u]=r[u]}}}i.$tag$=null;i.$flags$|=4;e.$vnode$=i;i.$elm$=o.$elm$=r.shadowRoot||r;{scopeId=r["s-sc"]}patch(o,i)};var attachToAncestor=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var scheduleUpdate=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}attachToAncestor(e,e.$ancestorComponent$);var n=function(){return dispatchHooks(e,t)};return writeTask(n)};var dispatchHooks=function(e,t){var n=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$);var r=e.$lazyInstance$;var a;n();return enqueue(a,(function(){return updateComponent(e,r,t)}))};var enqueue=function(e,t){return isPromisey(e)?e.then(t):t()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,t,n){return __awaiter(void 0,void 0,void 0,(function(){var r,a,o,i,s,l,u;return __generator(this,(function(c){a=e.$hostElement$;o=createTime("update",e.$cmpMeta$.$tagName$);i=a["s-rc"];if(n){attachStyles(e)}s=createTime("render",e.$cmpMeta$.$tagName$);{callRender(e,t,a,n)}if(i){i.map((function(e){return e()}));a["s-rc"]=undefined}s();o();{l=(r=a["s-p"])!==null&&r!==void 0?r:[];u=function(){return postUpdateComponent(e)};if(l.length===0){u()}else{Promise.all(l).then(u);e.$flags$|=4;l.length=0}}return[2]}))}))};var callRender=function(e,t,n,r){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{renderVdom(e,t,r)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var r=createTime("postUpdate",t);var a=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{addHydratedFlag(n)}r();{e.$onReadyResolve$(n);if(!a){appDidLoad()}}}else{r()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.$flags$&=~(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,t){return getHostRef(e).$instanceValues$.get(t)};var setValue=function(e,t,n,r){var a=getHostRef(e);var o=a.$instanceValues$.get(t);var i=a.$flags$;var s=a.$lazyInstance$;n=parsePropertyValue(n,r.$members$[t][0]);var l=Number.isNaN(o)&&Number.isNaN(n);var u=n!==o&&!l;if((!(i&8)||o===undefined)&&u){a.$instanceValues$.set(t,n);if(s){if((i&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,n){if(t.$members$){var r=Object.entries(t.$members$);var a=e.prototype;r.map((function(e){var r=e[0],o=e[1][0];if(o&31||n&2&&o&32){Object.defineProperty(a,r,{get:function(){return getValue(this,r)},set:function(e){setValue(this,r,e,t)},configurable:true,enumerable:true})}}));if(n&1){var o=new Map;a.attributeChangedCallback=function(e,t,n){var r=this;plt.jmp((function(){var t=o.get(e);if(r.hasOwnProperty(t)){n=r[t];delete r[t]}else if(a.hasOwnProperty(t)&&typeof r[t]==="number"&&r[t]==n){return}r[t]=n===null&&typeof r[t]==="boolean"?false:n}))};e.observedAttributes=r.filter((function(e){var t=e[0],n=e[1];return n[0]&15})).map((function(e){var n=e[0],r=e[1];var a=r[1]||n;o.set(a,n);if(r[0]&512){t.$attrsToReflect$.push([n,a])}return a}))}}return e};var initializeComponent=function(e,t,n,r,a){return __awaiter(void 0,void 0,void 0,(function(){var e,r,o,i,s,l,u;return __generator(this,(function(c){switch(c.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;a=loadModule(n);if(!a.then)return[3,2];e=uniqueTime();return[4,a];case 1:a=c.sent();e();c.label=2;case 2:if(!a.isProxied){proxyComponent(a,n,2);a.isProxied=true}r=createTime("createInstance",n.$tagName$);{t.$flags$|=8}try{new a(t)}catch(e){consoleError(e)}{t.$flags$&=~8}r();if(a.style){o=a.style;i=getScopeId(n);if(!styles.has(i)){s=createTime("registerStyles",n.$tagName$);registerStyle(i,o,!!(n.$flags$&1));s()}}c.label=3;case 3:l=t.$ancestorComponent$;u=function(){return scheduleUpdate(t,true)};if(l&&l["s-rc"]){l["s-rc"].push(u)}else{u()}return[2]}}))}))};var fireConnectedCallback=function(e){};var connectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var n=t.$cmpMeta$;var r=createTime("connectedCallback",n.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.$ancestorComponent$=a);break}}}if(n.$members$){Object.entries(n.$members$).map((function(t){var n=t[0],r=t[1][0];if(r&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}{initializeComponent(e,t,n)}}else{if(t===null||t===void 0?void 0:t.$lazyInstance$);else if(t===null||t===void 0?void 0:t.$onReadyPromise$){t.$onReadyPromise$.then((function(){return fireConnectedCallback()}))}}r()}};var disconnectInstance=function(e){};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t;return __generator(this,(function(n){if((plt.$flags$&1)===0){t=getHostRef(e);if(t===null||t===void 0?void 0:t.$lazyInstance$);else if(t===null||t===void 0?void 0:t.$onReadyPromise$){t.$onReadyPromise$.then((function(){return disconnectInstance()}))}}return[2]}))}))};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var n;var r=createTime();var a=[];var o=t.exclude||[];var i=win.customElements;var s=doc.head;var l=s.querySelector("meta[charset]");var u=doc.createElement("style");var c=[];var f;var $=true;Object.assign(plt,t);plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href;e.map((function(e){e[1].map((function(t){var n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{n.$members$=t[2]}{n.$attrsToReflect$=[]}var r=n.$tagName$;var s=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;t=r;registerHost(t,n);if(n.$flags$&1){{{t.attachShadow({mode:"open"})}}}return r}t.prototype.connectedCallback=function(){var e=this;if(f){clearTimeout(f);f=null}if($){c.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).$onReadyPromise$};return t}(HTMLElement);n.$lazyBundleId$=e[0];if(!o.includes(r)&&!i.get(r)){a.push(r);i.define(r,proxyComponent(s,n,1))}}))}));{u.innerHTML=a+HYDRATED_CSS;u.setAttribute("data-styles","");var d=(n=plt.$nonce$)!==null&&n!==void 0?n:queryNonceMetaTagContent(doc);if(d!=null){u.setAttribute("nonce",d)}s.insertBefore(u,l?l.nextSibling:s.firstChild)}$=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return f=setTimeout(appDidLoad,30)}))}}r()};var setNonce=function(e){return plt.$nonce$=e};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.$lazyInstance$=e,t)};var registerHost=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}return hostRefs.set(e,n)};var isMemberInElement=function(e,t){return t in e};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,n){var r=e.$tagName$.replace(/-/g,"_");var a=e.$lazyBundleId$;var o=cmpModules.get(a);if(o){return o[r]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[r]}),consoleError)};var styles=new Map;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}};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,t){return function(n){e.push(n);if(!queuePending){queuePending=true;if(t&&plt.$flags$&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](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{
|
|
1
|
+
import{b as bootstrapLazy}from"./index-3fa51808.js";export{s as setNonce}from"./index-3fa51808.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-3fa51808.js";var KeyboardManager=function(){function e(){var e=this;this.elements=[];this.handleClickBehaviorDispatchEvent=function(e){if(e.code==="Space"||e.code==="Enter"||e.code==="NumpadEnter"){e.target.click()}};this.handleEscapeBehaviorDispatchEvent=function(o){if(o.code==="Escape"&&e.escapeCallback){e.escapeCallback()}};this.addElement=function(o,t){if(t===void 0){t="element"}e.elements[t]=o};this.attachClickBehavior=function(o){if(o===void 0){o="element"}if(e.elements[o]){e.elements[o].addEventListener("keydown",e.handleClickBehaviorDispatchEvent)}};this.detachClickBehavior=function(o){if(o===void 0){o="element"}if(e.elements[o]){e.elements[o].removeEventListener("keydown",e.handleClickBehaviorDispatchEvent)}};this.attachEscapeBehavior=function(o){e.escapeCallback=o;if(typeof window!==undefined){window.addEventListener("keydown",e.handleEscapeBehaviorDispatchEvent.bind(e))}};this.detachEscapeBehavior=function(){e.escapeCallback=function(){return};if(typeof window!==undefined){window.removeEventListener("keydown",e.handleEscapeBehaviorDispatchEvent.bind(e))}}}return e}();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;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;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);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);color:var(--mds-paginator-item-color);height:var(--mds-paginator-item-size);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}: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]){pointer-events:none;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)}:host([disabled]){pointer-events:none;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)}.icon{padding-left:0px;padding-right:0px}";var MdsPaginatorItem=function(){function e(e){var o=this;registerInstance(this,e);this.km=new KeyboardManager;this.componentDidLoad=function(){o.km.addElement(o.host);o.km.attachClickBehavior()};this.componentDidUpdate=function(){if(!o.disabled&&!o.selected){o.km.attachClickBehavior();return}o.km.detachClickBehavior()};this.disconnectedCallback=function(){o.km.detachClickBehavior()};this.icon=undefined;this.selected=undefined;this.disabled=undefined}e.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(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();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-3fa51808.js";export{s as setNonce}from"./index-3fa51808.js";var patchBrowser=function(){var e=import.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return promiseResolve(r)};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
|
|
1
|
+
import{p as e,b as a}from"./p-2e3a33e5.js";export{s as setNonce}from"./p-2e3a33e5.js";(()=>{const a=import.meta.url,s={};return""!==a&&(s.resourcesUrl=new URL(".",a).href),e(s)})().then((e=>a([["p-e78a049a",[[1,"mds-paginator-item",{icon:[513],selected:[516],disabled:[516]}]]]],e)));
|
|
@@ -115,15 +115,11 @@ 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-61d399b8.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
119
119
|
System.import(url.href);
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
window.__cssshim.i().then(start);
|
|
124
|
-
} else {
|
|
125
|
-
start();
|
|
126
|
-
}
|
|
122
|
+
start();
|
|
127
123
|
|
|
128
124
|
// Note: using .call(window) here because the self-executing function needs
|
|
129
125
|
// to be scoped to the window object for the ES6Promise polyfill to work
|
|
@@ -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).m,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):[],m=(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)},h=(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),m(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=h(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=h(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||m(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=h(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)},g=(n,t)=>{t&&!n.p&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.p=t)))},S=(n,t)=>{if(n.i|=16,!(4&n.i))return g(n,n.v),nn((()=>j(n,t)));n.i|=512},j=(n,t)=>{const e=n.g;return M(void 0,(()=>O(n,e,t)))},M=(n,t)=>k(n)?n.then(t):t(),k=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,O=async(n,t,e)=>{var l;const o=n.m,i=o["s-rc"];e&&(n=>{const t=n.S,e=n.m,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.m,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.k&&(f.l=f.l||{},u.k.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.m)}return null},P=n=>{const t=n.m,e=n.v;64&n.i||(n.i|=64,E(t),n.O(t),e||x()),n.p&&(n.p(),n.p=void 0),512&n.i&&Z((()=>S(n,!1))),n.i&=-517},x=()=>{E(B.documentElement),Z((()=>(n=>{const t=D.ce("appload",{detail:{namespace:"mds-paginator-item"}});return n.dispatchEvent(t),t})(z)))},E=n=>n.setAttribute("hydrated",""),N=(n,t,e)=>{if(t.C){const l=Object.entries(t.C),s=n.prototype;if(l.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(s,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.g;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)&&S(s,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;s.attributeChangedCallback=function(n,t,l){D.jmp((()=>{const t=e.get(n);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},n.observedAttributes=l.filter((([n,t])=>15&t[0])).map((([n,l])=>{const o=l[1]||n;return e.set(o,n),512&l[0]&&t.k.push([n,o]),o}))}}return n},T=(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.k=[];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.g)||(null==t?void 0:t.A)&&t.A.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){g(t,t.v=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,l,o)=>{if(0==(32&t.i)){t.i|=32;{if((o=V(e)).then){const n=()=>{};o=await o,n()}o.isProxied||(N(o,e,2),o.isProxied=!0);const n=()=>{};t.i|=8;try{new o(t)}catch(n){q(n)}t.i&=-9,n()}if(o.style){let n=o.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 s=t.v,i=()=>S(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,e)}l()}})(this)))}disconnectedCallback(){D.jmp((()=>(async()=>{if(0==(1&D.i)){const n=L(this);(null==n?void 0:n.g)||(null==n?void 0:n.A)&&n.A.then((()=>{}))}})()))}componentOnReady(){return L(this).A}};e.H=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,N(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)))},A=n=>D.j=n,H=new WeakMap,L=n=>H.get(n),R=(n,t)=>H.set(t.g=n,t),U=(n,t)=>{const e={i:0,m:n,S:t,P:new Map};return e.A=new Promise((n=>e.O=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.H,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,T as b,u as g,i as h,G as p,R as r,A as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-8e675782.system.js"],(function(e){"use strict";var o,t,i,a;return{setters:[function(e){o=e.r;t=e.h;i=e.H;a=e.g}],execute:function(){var r=function(){function e(){var e=this;this.elements=[];this.handleClickBehaviorDispatchEvent=function(e){if(e.code==="Space"||e.code==="Enter"||e.code==="NumpadEnter"){e.target.click()}};this.handleEscapeBehaviorDispatchEvent=function(o){if(o.code==="Escape"&&e.escapeCallback){e.escapeCallback()}};this.addElement=function(o,t){if(t===void 0){t="element"}e.elements[t]=o};this.attachClickBehavior=function(o){if(o===void 0){o="element"}if(e.elements[o]){e.elements[o].addEventListener("keydown",e.handleClickBehaviorDispatchEvent)}};this.detachClickBehavior=function(o){if(o===void 0){o="element"}if(e.elements[o]){e.elements[o].removeEventListener("keydown",e.handleClickBehaviorDispatchEvent)}};this.attachEscapeBehavior=function(o){e.escapeCallback=o;if(typeof window!==undefined){window.addEventListener("keydown",e.handleEscapeBehaviorDispatchEvent.bind(e))}};this.detachEscapeBehavior=function(){e.escapeCallback=function(){return};if(typeof window!==undefined){window.removeEventListener("keydown",e.handleEscapeBehaviorDispatchEvent.bind(e))}}}return e}();var n="@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;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;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);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);color:var(--mds-paginator-item-color);height:var(--mds-paginator-item-size);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}: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]){pointer-events:none;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)}:host([disabled]){pointer-events:none;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)}.icon{padding-left:0px;padding-right:0px}";var s=e("mds_paginator_item",function(){function e(e){var t=this;o(this,e);this.km=new r;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}e.prototype.render=function(){return t(i,{tabindex:"0"},this.icon!==undefined?t("mds-icon",{name:this.icon}):t("mds-text",{class:"text",typography:"detail"},t("slot",null)))};Object.defineProperty(e.prototype,"host",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());s.style=n}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-8e675782.system.js"],(function(e,t){"use strict";var r,n;return{setters:[function(t){r=t.p;n=t.b;e("setNonce",t.s)}],execute:function(){var e=function(){var e=t.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return r(n)};e().then((function(e){return n([["p-2f534d96.system",[[1,"mds-paginator-item",{icon:[513],selected:[516],disabled:[516]}]]]],e)}))}}}));
|