@responsive-ui/card
Advanced tools
Comparing version 0.12.0 to 0.13.0
@@ -191,18 +191,20 @@ 'use strict'; | ||
} | ||
function mount_component(component, target, anchor) { | ||
function mount_component(component, target, anchor, customElement) { | ||
const { fragment, on_mount, on_destroy, after_update } = component.$$; | ||
fragment && fragment.m(target, anchor); | ||
// onMount happens before the initial afterUpdate | ||
add_render_callback(() => { | ||
const new_on_destroy = on_mount.map(run).filter(is_function); | ||
if (on_destroy) { | ||
on_destroy.push(...new_on_destroy); | ||
} | ||
else { | ||
// Edge case - component was destroyed immediately, | ||
// most likely as a result of a binding initialising | ||
run_all(new_on_destroy); | ||
} | ||
component.$$.on_mount = []; | ||
}); | ||
if (!customElement) { | ||
// onMount happens before the initial afterUpdate | ||
add_render_callback(() => { | ||
const new_on_destroy = on_mount.map(run).filter(is_function); | ||
if (on_destroy) { | ||
on_destroy.push(...new_on_destroy); | ||
} | ||
else { | ||
// Edge case - component was destroyed immediately, | ||
// most likely as a result of a binding initialising | ||
run_all(new_on_destroy); | ||
} | ||
component.$$.on_mount = []; | ||
}); | ||
} | ||
after_update.forEach(add_render_callback); | ||
@@ -243,2 +245,3 @@ } | ||
on_destroy: [], | ||
on_disconnect: [], | ||
before_update: [], | ||
@@ -283,3 +286,3 @@ after_update: [], | ||
transition_in(component.$$.fragment); | ||
mount_component(component, options.target, options.anchor); | ||
mount_component(component, options.target, options.anchor, options.customElement); | ||
flush(); | ||
@@ -315,3 +318,3 @@ } | ||
/* components/card/src/Card.svelte generated by Svelte v3.32.2 */ | ||
/* components/card/src/Card.svelte generated by Svelte v3.35.0 */ | ||
@@ -318,0 +321,0 @@ function create_fragment(ctx) { |
@@ -189,18 +189,20 @@ function noop() { } | ||
} | ||
function mount_component(component, target, anchor) { | ||
function mount_component(component, target, anchor, customElement) { | ||
const { fragment, on_mount, on_destroy, after_update } = component.$$; | ||
fragment && fragment.m(target, anchor); | ||
// onMount happens before the initial afterUpdate | ||
add_render_callback(() => { | ||
const new_on_destroy = on_mount.map(run).filter(is_function); | ||
if (on_destroy) { | ||
on_destroy.push(...new_on_destroy); | ||
} | ||
else { | ||
// Edge case - component was destroyed immediately, | ||
// most likely as a result of a binding initialising | ||
run_all(new_on_destroy); | ||
} | ||
component.$$.on_mount = []; | ||
}); | ||
if (!customElement) { | ||
// onMount happens before the initial afterUpdate | ||
add_render_callback(() => { | ||
const new_on_destroy = on_mount.map(run).filter(is_function); | ||
if (on_destroy) { | ||
on_destroy.push(...new_on_destroy); | ||
} | ||
else { | ||
// Edge case - component was destroyed immediately, | ||
// most likely as a result of a binding initialising | ||
run_all(new_on_destroy); | ||
} | ||
component.$$.on_mount = []; | ||
}); | ||
} | ||
after_update.forEach(add_render_callback); | ||
@@ -241,2 +243,3 @@ } | ||
on_destroy: [], | ||
on_disconnect: [], | ||
before_update: [], | ||
@@ -281,3 +284,3 @@ after_update: [], | ||
transition_in(component.$$.fragment); | ||
mount_component(component, options.target, options.anchor); | ||
mount_component(component, options.target, options.anchor, options.customElement); | ||
flush(); | ||
@@ -313,3 +316,3 @@ } | ||
/* components/card/src/Card.svelte generated by Svelte v3.32.2 */ | ||
/* components/card/src/Card.svelte generated by Svelte v3.35.0 */ | ||
@@ -316,0 +319,0 @@ function create_fragment(ctx) { |
@@ -192,18 +192,20 @@ var Card = (function () { | ||
} | ||
function mount_component(component, target, anchor) { | ||
function mount_component(component, target, anchor, customElement) { | ||
const { fragment, on_mount, on_destroy, after_update } = component.$$; | ||
fragment && fragment.m(target, anchor); | ||
// onMount happens before the initial afterUpdate | ||
add_render_callback(() => { | ||
const new_on_destroy = on_mount.map(run).filter(is_function); | ||
if (on_destroy) { | ||
on_destroy.push(...new_on_destroy); | ||
} | ||
else { | ||
// Edge case - component was destroyed immediately, | ||
// most likely as a result of a binding initialising | ||
run_all(new_on_destroy); | ||
} | ||
component.$$.on_mount = []; | ||
}); | ||
if (!customElement) { | ||
// onMount happens before the initial afterUpdate | ||
add_render_callback(() => { | ||
const new_on_destroy = on_mount.map(run).filter(is_function); | ||
if (on_destroy) { | ||
on_destroy.push(...new_on_destroy); | ||
} | ||
else { | ||
// Edge case - component was destroyed immediately, | ||
// most likely as a result of a binding initialising | ||
run_all(new_on_destroy); | ||
} | ||
component.$$.on_mount = []; | ||
}); | ||
} | ||
after_update.forEach(add_render_callback); | ||
@@ -244,2 +246,3 @@ } | ||
on_destroy: [], | ||
on_disconnect: [], | ||
before_update: [], | ||
@@ -284,3 +287,3 @@ after_update: [], | ||
transition_in(component.$$.fragment); | ||
mount_component(component, options.target, options.anchor); | ||
mount_component(component, options.target, options.anchor, options.customElement); | ||
flush(); | ||
@@ -316,3 +319,3 @@ } | ||
/* components/card/src/Card.svelte generated by Svelte v3.32.2 */ | ||
/* components/card/src/Card.svelte generated by Svelte v3.35.0 */ | ||
@@ -319,0 +322,0 @@ function create_fragment(ctx) { |
@@ -1,1 +0,1 @@ | ||
!function(){function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,n){return(r=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,r){return!r||"object"!==e(r)&&"function"!=typeof r?n(t):r}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}function c(t,n){if(t){if("string"==typeof t)return u(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,n):void 0}}function f(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],e=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(e=(u=c.next()).done)&&(r.push(u.value),!n||r.length!==n);e=!0);}catch(t){o=!0,i=t}finally{try{e||null==c.return||c.return()}finally{if(o)throw i}}return r}}(t,n)||c(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function s(){}function p(t){return t()}function y(){return Object.create(null)}function d(t){t.forEach(p)}function v(t){return"function"==typeof t}function m(t,n){return t!=t?n==n:t!==n||t&&"object"===e(t)||"function"==typeof t}function h(t,n,r,e){return t[1]&&e?function(t,n){for(var r in n)t[r]=n[r];return t}(r.ctx.slice(),t[1](e(n))):r.ctx}function b(t,n,r,o,i,u,c){var f=function(t,n,r,o){if(t[2]&&o){var i=t[2](o(r));if(void 0===n.dirty)return i;if("object"===e(i)){for(var u=[],c=Math.max(n.dirty.length,i.length),f=0;f<c;f+=1)u[f]=n.dirty[f]|i[f];return u}return n.dirty|i}return n.dirty}(n,o,i,u);if(f){var a=h(n,r,o,c);t.p(a,f)}}function g(t){t.parentNode.removeChild(t)}function $(t,n,r){null==r?t.removeAttribute(n):t.getAttribute(n)!==r&&t.setAttribute(n,r)}function j(t){return Array.from(t.childNodes)}function S(t,n,r){t.classList[r?"add":"remove"](n)}var w;function O(t){w=t}var _=[],A=[],E=[],x=[],P=Promise.resolve(),R=!1;function I(t){E.push(t)}var k=!1,C=new Set;function L(){if(!k){k=!0;do{for(var t=0;t<_.length;t+=1){var n=_[t];O(n),T(n.$$)}for(O(null),_.length=0;A.length;)A.pop()();for(var r=0;r<E.length;r+=1){var e=E[r];C.has(e)||(C.add(e),e())}E.length=0}while(_.length);for(;x.length;)x.pop()();R=!1,k=!1,C.clear()}}function T(t){if(null!==t.fragment){t.update(),d(t.before_update);var n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(I)}}var D=new Set;function M(t,n){t&&t.i&&(D.delete(t),t.i(n))}function N(t,n,r){var e=t.$$,o=e.fragment,i=e.on_mount,u=e.on_destroy,c=e.after_update;o&&o.m(n,r),I((function(){var n=i.map(p).filter(v);u?u.push.apply(u,a(n)):d(n),t.$$.on_mount=[]})),c.forEach(I)}function B(t,n){-1===t.$$.dirty[0]&&(_.push(t),R||(R=!0,P.then(L)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function U(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,e=i(t);if(n){var u=i(this).constructor;r=Reflect.construct(e,arguments,u)}else r=e.apply(this,arguments);return o(this,r)}}function q(t){var n,r,e,o,i,u=t[3].default,c=function(t,n,r,e){if(t){var o=h(t,n,r,e);return t[0](o)}}(u,t,t[2],null);return{c:function(){var e;e="div",n=document.createElement(e),c&&c.c(),$(n,"class",r="responsive-ui-card "+t[0]+" svelte-1t6jx7v"),S(n,"responsive-ui-card--compact",t[1])},m:function(r,u){var f,a,l,s;!function(t,n,r){t.insertBefore(n,r||null)}(r,n,u),c&&c.m(n,null),e=!0,o||(f=n,a="click",l=t[4],f.addEventListener(a,l,s),i=function(){return f.removeEventListener(a,l,s)},o=!0)},p:function(t,o){var i=f(o,1)[0];c&&c.p&&4&i&&b(c,u,t,t[2],i,null,null),(!e||1&i&&r!==(r="responsive-ui-card "+t[0]+" svelte-1t6jx7v"))&&$(n,"class",r),3&i&&S(n,"responsive-ui-card--compact",t[1])},i:function(t){e||(M(c,t),e=!0)},o:function(t){!function(t,n,r,e){if(t&&t.o){if(D.has(t))return;D.add(t),(void 0).c.push((function(){D.delete(t),e&&(r&&t.d(1),e())})),t.o(n)}}(c,t),e=!1},d:function(t){t&&g(n),c&&c.d(t),o=!1,i()}}}function z(t,n,r){var e=n.$$slots,o=void 0===e?{}:e,i=n.$$scope,u=n.class,c=void 0===u?"":u,f=n.compact,a=void 0!==f&&f;return t.$$set=function(t){"class"in t&&r(0,c=t.class),"compact"in t&&r(1,a=t.compact),"$$scope"in t&&r(2,i=t.$$scope)},[c,a,i,o,function(n){!function(t,n){var r=t.$$.callbacks[n.type];r&&r.slice().forEach((function(t){return t(n)}))}(t,n)}]}}(); | ||
!function(){function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,n){return(r=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,r){return!r||"object"!==e(r)&&"function"!=typeof r?n(t):r}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}function c(t,n){if(t){if("string"==typeof t)return u(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,n):void 0}}function f(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],e=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(e=(u=c.next()).done)&&(r.push(u.value),!n||r.length!==n);e=!0);}catch(t){o=!0,i=t}finally{try{e||null==c.return||c.return()}finally{if(o)throw i}}return r}}(t,n)||c(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function s(){}function p(t){return t()}function y(){return Object.create(null)}function d(t){t.forEach(p)}function v(t){return"function"==typeof t}function m(t,n){return t!=t?n==n:t!==n||t&&"object"===e(t)||"function"==typeof t}function h(t,n,r,e){return t[1]&&e?function(t,n){for(var r in n)t[r]=n[r];return t}(r.ctx.slice(),t[1](e(n))):r.ctx}function b(t,n,r,o,i,u,c){var f=function(t,n,r,o){if(t[2]&&o){var i=t[2](o(r));if(void 0===n.dirty)return i;if("object"===e(i)){for(var u=[],c=Math.max(n.dirty.length,i.length),f=0;f<c;f+=1)u[f]=n.dirty[f]|i[f];return u}return n.dirty|i}return n.dirty}(n,o,i,u);if(f){var a=h(n,r,o,c);t.p(a,f)}}function $(t){t.parentNode.removeChild(t)}function g(t,n,r){null==r?t.removeAttribute(n):t.getAttribute(n)!==r&&t.setAttribute(n,r)}function j(t){return Array.from(t.childNodes)}function S(t,n,r){t.classList[r?"add":"remove"](n)}var O;function w(t){O=t}var _=[],A=[],E=[],x=[],P=Promise.resolve(),R=!1;function I(t){E.push(t)}var k=!1,B=new Set;function C(){if(!k){k=!0;do{for(var t=0;t<_.length;t+=1){var n=_[t];w(n),L(n.$$)}for(w(null),_.length=0;A.length;)A.pop()();for(var r=0;r<E.length;r+=1){var e=E[r];B.has(e)||(B.add(e),e())}E.length=0}while(_.length);for(;x.length;)x.pop()();R=!1,k=!1,B.clear()}}function L(t){if(null!==t.fragment){t.update(),d(t.before_update);var n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(I)}}var T=new Set;function M(t,n){t&&t.i&&(T.delete(t),t.i(n))}function N(t,n,r,e){var o=t.$$,i=o.fragment,u=o.on_mount,c=o.on_destroy,f=o.after_update;i&&i.m(n,r),e||I((function(){var n=u.map(p).filter(v);c?c.push.apply(c,a(n)):d(n),t.$$.on_mount=[]})),f.forEach(I)}function U(t,n){-1===t.$$.dirty[0]&&(_.push(t),R||(R=!0,P.then(C)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function q(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,e=i(t);if(n){var u=i(this).constructor;r=Reflect.construct(e,arguments,u)}else r=e.apply(this,arguments);return o(this,r)}}function z(t){var n,r,e,o,i,u=t[3].default,c=function(t,n,r,e){if(t){var o=h(t,n,r,e);return t[0](o)}}(u,t,t[2],null);return{c:function(){var e;e="div",n=document.createElement(e),c&&c.c(),g(n,"class",r="responsive-ui-card "+t[0]+" svelte-1t6jx7v"),S(n,"responsive-ui-card--compact",t[1])},m:function(r,u){var f,a,l,s;!function(t,n,r){t.insertBefore(n,r||null)}(r,n,u),c&&c.m(n,null),e=!0,o||(f=n,a="click",l=t[4],f.addEventListener(a,l,s),i=function(){return f.removeEventListener(a,l,s)},o=!0)},p:function(t,o){var i=f(o,1)[0];c&&c.p&&4&i&&b(c,u,t,t[2],i,null,null),(!e||1&i&&r!==(r="responsive-ui-card "+t[0]+" svelte-1t6jx7v"))&&g(n,"class",r),3&i&&S(n,"responsive-ui-card--compact",t[1])},i:function(t){e||(M(c,t),e=!0)},o:function(t){!function(t,n,r,e){if(t&&t.o){if(T.has(t))return;T.add(t),(void 0).c.push((function(){T.delete(t),e&&(r&&t.d(1),e())})),t.o(n)}}(c,t),e=!1},d:function(t){t&&$(n),c&&c.d(t),o=!1,i()}}}function D(t,n,r){var e=n.$$slots,o=void 0===e?{}:e,i=n.$$scope,u=n.class,c=void 0===u?"":u,f=n.compact,a=void 0!==f&&f;return t.$$set=function(t){"class"in t&&r(0,c=t.class),"compact"in t&&r(1,a=t.compact),"$$scope"in t&&r(2,i=t.$$scope)},[c,a,i,o,function(n){!function(t,n){var r=t.$$.callbacks[n.type];r&&r.slice().forEach((function(t){return t(n)}))}(t,n)}]}}(); |
{ | ||
"name": "@responsive-ui/card", | ||
"version": "0.12.0", | ||
"version": "0.13.0", | ||
"description": "A card component of responsive-ui.", | ||
@@ -48,3 +48,3 @@ "author": "Si3nLoong <sianloong90@gmail.com> (https://github.com/si3nloong)", | ||
}, | ||
"gitHead": "774e5ac15098b2a76c90482b7b3b83168aec4fd8" | ||
"gitHead": "222d13f52f0a6149b6200521c75f89ab97df2f48" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48935
1204