@htmlbricks/hb-sidebar-desktop 0.19.29 → 0.19.30
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/package.json +3 -3
- package/release/manifest.json +1 -1
- package/release/release.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-sidebar-desktop",
|
|
3
3
|
"displayName": "Svelte Boostrap Sidebar Desktop",
|
|
4
4
|
"description": "Svelte Boostrap Sidebar Desktop",
|
|
5
|
-
"version": "0.19.
|
|
5
|
+
"version": "0.19.30",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"html5-webcomponents"
|
|
77
77
|
],
|
|
78
78
|
"contributors": [],
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "7e404e6aab454c97ee17c670715a482623d450a9",
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@htmlbricks/hb-sidenav-link": "^0.19.
|
|
81
|
+
"@htmlbricks/hb-sidenav-link": "^0.19.30",
|
|
82
82
|
"style-to-object": "^0.3.0"
|
|
83
83
|
}
|
|
84
84
|
}
|
package/release/manifest.json
CHANGED
package/release/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var release=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function o(e){e.forEach(t)}function r(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let a,s;function l(e,t){return a||(a=document.createElement("a")),a.href=t,e===a.href}function c(e,t){e.appendChild(t)}function d(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode&&e.parentNode.removeChild(e)}function u(e){return document.createElement(e)}function f(e){return document.createTextNode(e)}function m(){return f(" ")}function g(){return f("")}function h(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function b(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function v(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:b(e,t,n)}function y(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function w(e,t,n,o){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,o?"important":"")}function $(e){const t={};for(const n of e)t[n.name]=n.value;return t}function x(e){s=e}function k(){if(!s)throw new Error("Function called outside component initialization");return s}function C(){const e=k();return(t,n,{cancelable:o=!1}={})=>{const r=e.$$.callbacks[t];if(r){const i=function(e,t,{bubbles:n=!1,cancelable:o=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n,o,t),r}(t,n,{cancelable:o});return r.slice().forEach((t=>{t.call(e,i)})),!i.defaultPrevented}return!0}}const E=[],N=[],S=[],_=[],j=Promise.resolve();let M=!1;function L(e){S.push(e)}const O=new Set;let D=0;function T(){if(0!==D)return;const e=s;do{try{for(;D<E.length;){const e=E[D];D++,x(e),A(e.$$)}}catch(e){throw E.length=0,D=0,e}for(x(null),E.length=0,D=0;N.length;)N.pop()();for(let e=0;e<S.length;e+=1){const t=S[e];O.has(t)||(O.add(t),t())}S.length=0}while(E.length);for(;_.length;)_.pop()();M=!1,O.clear(),x(e)}function A(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L)}}const P=new Set;function z(e,t){e&&e.i&&(P.delete(e),e.i(t))}function I(e,t){e.d(1),t.delete(e.key)}function J(e,t,n,o,r,i,a,s,l,c,d,p){let u=e.length,f=i.length,m=u;const g={};for(;m--;)g[e[m].key]=m;const h=[],b=new Map,v=new Map;for(m=f;m--;){const e=p(r,i,m),s=n(e);let l=a.get(s);l?o&&l.p(e,t):(l=c(s,e),l.c()),b.set(s,h[m]=l),s in g&&v.set(s,Math.abs(m-g[s]))}const y=new Set,w=new Set;function $(e){z(e,1),e.m(s,d),a.set(e.key,e),d=e.first,f--}for(;u&&f;){const t=h[f-1],n=e[u-1],o=t.key,r=n.key;t===n?(d=t.first,u--,f--):b.has(r)?!a.has(o)||y.has(o)?$(t):w.has(r)?u--:v.get(o)>v.get(r)?(w.add(o),$(t)):(y.add(r),u--):(l(n,a),u--)}for(;u--;){const t=e[u];b.has(t.key)||l(t,a)}for(;f;)$(h[f-1]);return h}function R(e,t){-1===e.$$.dirty[0]&&(E.push(e),M||(M=!0,j.then(T)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function B(i,a,l,c,d,u,f,m=[-1]){const g=s;x(i);const h=i.$$={fragment:null,ctx:[],props:u,update:e,not_equal:d,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(g?g.$$.context:[])),callbacks:n(),dirty:m,skip_bound:!1,root:a.target||g.$$.root};f&&f(h.root);let b=!1;if(h.ctx=l?l(i,a.props||{},((e,t,...n)=>{const o=n.length?n[0]:t;return h.ctx&&d(h.ctx[e],h.ctx[e]=o)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](o),b&&R(i,e)),t})):[],h.update(),b=!0,o(h.before_update),h.fragment=!!c&&c(h.ctx),a.target){if(a.hydrate){const e=function(e){return Array.from(e.childNodes)}(a.target);h.fragment&&h.fragment.l(e),e.forEach(p)}else h.fragment&&h.fragment.c();a.intro&&z(i.$$.fragment),function(e,n,i,a){const{fragment:s,after_update:l}=e.$$;s&&s.m(n,i),a||L((()=>{const n=e.$$.on_mount.map(t).filter(r);e.$$.on_destroy?e.$$.on_destroy.push(...n):o(n),e.$$.on_mount=[]})),l.forEach(L)}(i,a.target,a.anchor,a.customElement),T()}x(g)}let U;"function"==typeof HTMLElement&&(U=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(r);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(e,t){const n=e.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(t,n){if(!r(n))return e;const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(n),()=>{const e=o.indexOf(n);-1!==e&&o.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var F={name:"@htmlbricks/hb-sidebar-desktop",displayName:"Svelte Boostrap Sidebar Desktop",description:"Svelte Boostrap Sidebar Desktop",version:"0.19.29",main:"release/release.js",publishConfig:{access:"public"},author:"Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",authorUrl:"https://dariocaruso.info",license:"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0",engines:{node:">=16.0.0"},scripts:{start:"sirv dist",dev:"rm -rf ./dist && rollup -c -w",build:"rm -rf ./dist && rollup -c","generate-manifest":"npm run generate-schemes && monorepo-wc-packages-manifester --dir $PWD","generate-component-schema":"ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json","generate-events-schema":"ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json","generate-schemes":"npm run generate-events-schema && npm run generate-component-schema",copydest:"rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/","build-extra":"tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*","build:release":"PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",prepublish:"npm run build:release"},devDependencies:{"@rollup/plugin-alias":"^3.1.2","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^4.0.0","@rollup/plugin-typescript":"^8.2.1","@tsconfig/svelte":"^1.0.10","@types/node":"^16.7.1","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0",eslint:"^7.25.0","eslint-plugin-jsdoc":"^33.0.0","eslint-plugin-svelte3":"^3.2.0","monorepo-wc-packages-manifester":"^0.0.3","node-sass":"^6.0.1",postcss:"^8.2.13","postcss-load-config":"^3.0.1",prettier:"^2.8.4",rollup:"^2.46.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-css-only":"^3.1.0","rollup-plugin-livereload":"^2.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-ts-paths":"^1.0.5","rollup-plugin-typescript2":"^0.31.1",sass:"^1.32.12","sirv-cli":"^1.0.11",svelte:"^3.46.2","svelte-check":"^1.5.2","svelte-preprocess":"^4.7.2","ts-json-schema-generator":"^0.98.0","ts-node":"^9.1.1",tslib:"^2.2.0",ttypescript:"^1.5.12",typescript:"^4.2.4","typescript-transform-paths":"^2.2.3","wc-js-utils":"^0.0.1"},keywords:["svelte","svelte-webcomponents","webcomponents","html5-webcomponents"],contributors:[],gitHead:"df43b9caf1e9f438e973668ad793b190c8210cba",dependencies:{"@htmlbricks/hb-sidenav-link":"^0.19.29","style-to-object":"^0.3.0"}};var H,W=(function(e,t){t.__esModule=!0,t.LanguageTranslator=t.addComponent=t.getChildStyleToPass=void 0,t.getChildStyleToPass=function(e,t){var n,o,r="";if(e&&(null==t?void 0:t.length)&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)&&(null===(o=null==t?void 0:t.filter((function(t){return Object.keys(e).includes(t.name)})))||void 0===o?void 0:o.length))for(var i=function(n){(null==t?void 0:t.filter((function(t){return t.name===n&&t.defaultValue!==e[n]})))&&(r+="".concat(n,":").concat(e[n],";"))},a=0,s=Object.keys(e);a<s.length;a++)i(s[a]);return r},t.addComponent=function(e){var t,n=(null===(t=null==e?void 0:e.repoName.split("/"))||void 0===t?void 0:t[1])||(null==e?void 0:e.repoName);if(!n)throw new Error("wrong componentPath "+(null==e?void 0:e.repoName));if(!(null==e?void 0:e.version))throw new Error("wrong version "+(null==e?void 0:e.version));var o=(null==e?void 0:e.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var r=document.createElement("script");r.id=n+"-script",r.src="https://cdn.jsdelivr.net/npm/".concat(e.repoName,"@").concat(e.version,"/").concat(o),(null==e?void 0:e.local)&&location.href.includes("localhost")&&(r.src="".concat(e.local)),document.head.appendChild(r)}catch(e){console.warn(e)}};var n=function(){function e(e){if(!(null==e?void 0:e.dictionary))throw new Error("no dictionary provided");this.dictionary=e.dictionary,this.setLang(null==e?void 0:e.lang)}return e.prototype.setLang=function(t){t||(t=e.getDefaultLang()),this.lang=t},e.prototype.translateWord=function(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)},e.prototype.translateDate=function(t,n,o){return e.formatDate(t,n,o||this.lang)},e.getDefaultLang=function(){var e,t,n,o,r,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(t=null===(e=navigator.languages[0])||void 0===e?void 0:e.split("-")[0])||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(r=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===r?void 0:r.toLowerCase()),i},e.getDictionaryWord=function(t,n,o){var r;if(!t)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(o&&(null===(r=n[o])||void 0===r?void 0:r[t]))return n[o][t];var i="",a=e.getDefaultLang();if(!o||a!==o){var s=null==n?void 0:n[a];(null==s?void 0:s[t])&&(i=s[t])}return i},e.formatDate=function(t,n,o){if(!t)throw new Error("no date provided");if("function"!=typeof t.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(o||e.getDefaultLang(),n).format(t)},e}();t.LanguageTranslator=n}(H={exports:{}},H.exports),H.exports),Y=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,V=/\n/g,q=/^\s*/,K=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,G=/^:\s*/,Q=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,X=/^[;\s]*/,Z=/^\s+|\s+$/g,ee="\n",te="/",ne="*",oe="",re="comment",ie="declaration",ae=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,o=1;function r(e){var t=e.match(V);t&&(n+=t.length);var r=e.lastIndexOf(ee);o=~r?e.length-r:o+e.length}function i(){var e={line:n,column:o};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:o},this.source=t.source}function s(r){var i=new Error(t.source+":"+n+":"+o+": "+r);if(i.reason=r,i.filename=t.source,i.line=n,i.column=o,i.source=e,!t.silent)throw i}function l(t){var n=t.exec(e);if(n){var o=n[0];return r(o),e=e.slice(o.length),n}}function c(){l(q)}function d(e){var t;for(e=e||[];t=p();)!1!==t&&e.push(t);return e}function p(){var t=i();if(te==e.charAt(0)&&ne==e.charAt(1)){for(var n=2;oe!=e.charAt(n)&&(ne!=e.charAt(n)||te!=e.charAt(n+1));)++n;if(n+=2,oe===e.charAt(n-1))return s("End of comment missing");var a=e.slice(2,n-2);return o+=2,r(a),e=e.slice(n),o+=2,t({type:re,comment:a})}}function u(){var e=i(),t=l(K);if(t){if(p(),!l(G))return s("property missing ':'");var n=l(Q),o=e({type:ie,property:se(t[0].replace(Y,oe)),value:n?se(n[0].replace(Y,oe)):oe});return l(X),o}}return a.prototype.content=e,c(),function(){var e,t=[];for(d(t);e=u();)!1!==e&&(t.push(e),d(t));return t}()};function se(e){return e?e.replace(Z,oe):oe}var le=function(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var r,i,a=ae(e),s="function"==typeof t,l=0,c=a.length;l<c;l++)r=(n=a[l]).property,i=n.value,s?t(r,i,n):i&&(o||(o={}),o[r]=i);return o},ce={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"li",description:"list element"}]};function de(e,t,n){const o=e.slice();return o[22]=t[n],o}function pe(e,t,n){const o=e.slice();return o[25]=t[n],o}function ue(e,t,n){const o=e.slice();return o[22]=t[n],o}function fe(e,t,n){const o=e.slice();return o[25]=t[n],o}function me(e,t,n){const o=e.slice();return o[25]=t[n],o}function ge(e){let t,n,o,r=e[3]&&he(e);return{c(){t=u("div"),r&&r.c(),n=m(),o=f(e[4]),w(t,"margin-top","10px")},m(e,i){d(e,t,i),r&&r.m(t,null),c(t,n),c(t,o)},p(e,i){e[3]?r?r.p(e,i):(r=he(e),r.c(),r.m(t,n)):r&&(r.d(1),r=null),16&i[0]&&y(o,e[4])},d(e){e&&p(t),r&&r.d()}}}function he(e){let t,n;return{c(){t=u("img"),w(t,"height","40px"),w(t,"margin-right","10px"),l(t.src,n=e[3])||b(t,"src",n),b(t,"alt","")},m(e,n){d(e,t,n)},p(e,o){8&o[0]&&!l(t.src,n=e[3])&&b(t,"src",n)},d(e){e&&p(t)}}}function be(e){let t,n=[],o=new Map,r=e[0].filter(_e);const i=e=>e[25].key;for(let t=0;t<r.length;t+=1){let a=me(e,r,t),s=i(a);o.set(s,n[t]=ve(s,a))}return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=g()},m(e,o){for(let t=0;t<n.length;t+=1)n[t].m(e,o);d(e,t,o)},p(e,a){195&a[0]&&(r=e[0].filter(_e),n=J(n,a,i,1,e,r,o,t.parentNode,I,ve,t,me))},d(e){for(let t=0;t<n.length;t+=1)n[t].d(e);e&&p(t)}}}function ve(e,t){let n,o,r,i;return{key:e,first:null,c(){n=u("hb-sidenav-link"),v(n,"style",t[6]),v(n,"navlink",o=JSON.stringify(t[25])),v(n,"navpage",t[1]),this.first=n},m(e,o){d(e,n,o),r||(i=h(n,"pageChange",t[11]),r=!0)},p(e,r){t=e,64&r[0]&&v(n,"style",t[6]),1&r[0]&&o!==(o=JSON.stringify(t[25]))&&v(n,"navlink",o),2&r[0]&&v(n,"navpage",t[1])},d(e){e&&p(n),r=!1,i()}}}function ye(e){let t,n=[],o=new Map,r=e[2];const i=e=>e[22].key;for(let t=0;t<r.length;t+=1){let a=ue(e,r,t),s=i(a);o.set(s,n[t]=$e(s,a))}return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=g()},m(e,o){for(let t=0;t<n.length;t+=1)n[t].m(e,o);d(e,t,o)},p(e,a){199&a[0]&&(r=e[2],n=J(n,a,i,1,e,r,o,t.parentNode,I,$e,t,ue))},d(e){for(let t=0;t<n.length;t+=1)n[t].d(e);e&&p(t)}}}function we(e,t){let n,o,r,i;return{key:e,first:null,c(){n=u("hb-sidenav-link"),v(n,"style",t[6]),v(n,"navlink",o=JSON.stringify(t[25])),v(n,"navpage",t[1]),this.first=n},m(e,o){d(e,n,o),r||(i=h(n,"pageChange",t[13]),r=!0)},p(e,r){t=e,64&r[0]&&v(n,"style",t[6]),5&r[0]&&o!==(o=JSON.stringify(t[25]))&&v(n,"navlink",o),2&r[0]&&v(n,"navpage",t[1])},d(e){e&&p(n),r=!1,i()}}}function $e(e,t){let n,o,r,i,a,s,l=t[22].label+"",h=[],b=new Map;function v(...e){return t[12](t[22],...e)}let $=t[0].filter(v);const x=e=>e[25].key;for(let e=0;e<$.length;e+=1){let n=fe(t,$,e),o=x(n);b.set(o,h[e]=we(o,n))}return{key:e,first:null,c(){n=u("h5"),o=f(l),r=m(),i=u("hr"),a=m();for(let e=0;e<h.length;e+=1)h[e].c();s=g(),w(n,"margin-top","40px"),w(i,"margin-top","0px"),w(i,"margin-bottom","10px"),this.first=n},m(e,t){d(e,n,t),c(n,o),d(e,r,t),d(e,i,t),d(e,a,t);for(let n=0;n<h.length;n+=1)h[n].m(e,t);d(e,s,t)},p(e,n){t=e,4&n[0]&&l!==(l=t[22].label+"")&&y(o,l),199&n[0]&&($=t[0].filter(v),h=J(h,n,x,1,t,$,b,s.parentNode,I,we,s,fe))},d(e){e&&p(n),e&&p(r),e&&p(i),e&&p(a);for(let t=0;t<h.length;t+=1)h[t].d(e);e&&p(s)}}}function xe(e){let t,n=[],o=new Map,r=e[0].filter(e[14]).map(je).filter(Me);const i=e=>e[22];for(let t=0;t<r.length;t+=1){let a=de(e,r,t),s=i(a);o.set(s,n[t]=Ce(s,a))}return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=g()},m(e,o){for(let t=0;t<n.length;t+=1)n[t].m(e,o);d(e,t,o)},p(e,a){199&a[0]&&(r=e[0].filter(e[14]).map(je).filter(Me),n=J(n,a,i,1,e,r,o,t.parentNode,I,Ce,t,de))},d(e){for(let t=0;t<n.length;t+=1)n[t].d(e);e&&p(t)}}}function ke(e,t){let n,o,r,i;return{key:e,first:null,c(){n=u("hb-sidenav-link"),v(n,"style",t[6]),v(n,"navlink",o=JSON.stringify(t[25])),v(n,"navpage",t[1]),this.first=n},m(e,o){d(e,n,o),r||(i=h(n,"pageChange",t[16]),r=!0)},p(e,r){t=e,64&r[0]&&v(n,"style",t[6]),5&r[0]&&o!==(o=JSON.stringify(t[25]))&&v(n,"navlink",o),2&r[0]&&v(n,"navpage",t[1])},d(e){e&&p(n),r=!1,i()}}}function Ce(e,t){let n,o,r,i,a,s,l=t[22]+"",h=[],b=new Map;function v(...e){return t[15](t[22],...e)}let $=t[0].filter(v);const x=e=>e[25].key;for(let e=0;e<$.length;e+=1){let n=pe(t,$,e),o=x(n);b.set(o,h[e]=ke(o,n))}return{key:e,first:null,c(){n=u("h5"),o=f(l),r=m(),i=u("hr"),a=m();for(let e=0;e<h.length;e+=1)h[e].c();s=g(),w(n,"margin-top","40px"),w(i,"margin-top","0px"),w(i,"margin-bottom","10px"),this.first=n},m(e,t){d(e,n,t),c(n,o),d(e,r,t),d(e,i,t),d(e,a,t);for(let n=0;n<h.length;n+=1)h[n].m(e,t);d(e,s,t)},p(e,n){t=e,5&n[0]&&l!==(l=t[22]+"")&&y(o,l),199&n[0]&&($=t[0].filter(v),h=J(h,n,x,1,t,$,b,s.parentNode,I,ke,s,pe))},d(e){e&&p(n),e&&p(r),e&&p(i),e&&p(a);for(let t=0;t<h.length;t+=1)h[t].d(e);e&&p(s)}}}function Ee(e){let t,n,o;return{c(){t=u("hr"),n=m(),o=u("slot"),o.textContent="footer",b(o,"name","footer")},m(e,r){d(e,t,r),d(e,n,r),d(e,o,r)},d(e){e&&p(t),e&&p(n),e&&p(o)}}}function Ne(t){let n,o,r,i,a,s,l,f,g,h,v,y,$,x,k=t[0]?.length&&t[0].filter(Se)?.length,C=t[4]&&ge(t),E=k&&be(t),N=t[2]?.length&&ye(t),S=t[0]?.length&&xe(t),_=t[5]&&Ee();return{c(){n=u("link"),o=m(),r=u("div"),i=u("slot"),a=m(),s=u("div"),l=u("h4"),f=u("slot"),g=m(),C&&C.c(),h=m(),v=u("ul"),E&&E.c(),y=m(),N&&N.c(),$=m(),S&&S.c(),x=m(),_&&_.c(),this.c=e,b(n,"rel","stylesheet"),b(n,"href","https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"),b(i,"name","test"),b(f,"name","header"),b(f,"part","header"),b(l,"class","offcanvas-title"),b(v,"class","nav nav-pills flex-column mb-auto"),w(v,"margin-top","25px"),b(s,"class","d-flex flex-column p-3 bg-light"),w(s,"height","100%"),w(s,"padding-top","0px",1),w(s,"position","relative"),w(s,"max-height","100%"),w(s,"overflow-y","auto"),b(r,"id","webcomponent"),w(r,"position","relative"),w(r,"height","100%")},m(e,t){c(document.head,n),d(e,o,t),d(e,r,t),c(r,i),c(r,a),c(r,s),c(s,l),c(l,f),c(l,g),C&&C.m(l,null),c(s,h),c(s,v),E&&E.m(v,null),c(v,y),N&&N.m(v,null),c(v,$),S&&S.m(v,null),c(s,x),_&&_.m(s,null)},p(e,t){e[4]?C?C.p(e,t):(C=ge(e),C.c(),C.m(l,null)):C&&(C.d(1),C=null),1&t[0]&&(k=e[0]?.length&&e[0].filter(Se)?.length),k?E?E.p(e,t):(E=be(e),E.c(),E.m(v,y)):E&&(E.d(1),E=null),e[2]?.length?N?N.p(e,t):(N=ye(e),N.c(),N.m(v,$)):N&&(N.d(1),N=null),e[0]?.length?S?S.p(e,t):(S=xe(e),S.c(),S.m(v,null)):S&&(S.d(1),S=null),e[5]?_||(_=Ee(),_.c(),_.m(s,null)):_&&(_.d(1),_=null)},i:e,o:e,d(e){p(n),e&&p(o),e&&p(r),C&&C.d(),E&&E.d(),N&&N.d(),S&&S.d(),_&&_.d()}}}const Se=e=>!e.group,_e=e=>!e.group,je=e=>e.group,Me=(e,t,n)=>n.indexOf(e)===t;function Le(e,t,n){let o,{id:r}=t,{navlinks:i}=t,{navpage:a}=t,{groups:s}=t,{companylogouri:l}=t,{companytitle:c}=t,{enablefooter:d}=t,{style:p}=t,u="";const f=k(),m=C();function g(e){console.log(e),function(e,t){m(e,t),f.dispatchEvent&&f.dispatchEvent(new CustomEvent(e,{detail:t}))}("pageChange",{page:e})}W.addComponent({repoName:"@htmlbricks/hb-sidenav-link",version:F.version});return e.$$set=e=>{"id"in e&&n(8,r=e.id),"navlinks"in e&&n(0,i=e.navlinks),"navpage"in e&&n(1,a=e.navpage),"groups"in e&&n(2,s=e.groups),"companylogouri"in e&&n(3,l=e.companylogouri),"companytitle"in e&&n(4,c=e.companytitle),"enablefooter"in e&&n(5,d=e.enablefooter),"style"in e&&n(9,p=e.style)},e.$$.update=()=>{if(1855&e.$$.dirty[0]){r||n(8,r=null),p&&(n(10,o=le(p)),n(6,u=W.getChildStyleToPass(o,null==ce?void 0:ce.vars))),l||n(3,l="https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg"),c||n(4,c=""),d&&"no"!==d||n(5,d=!1),a||n(1,a="home");try{"string"==typeof s?n(2,s=JSON.parse(s)):s||n(2,s=[]),"string"==typeof i?n(0,i=JSON.parse(i)):i||(n(0,i=[]),n(0,i=null))}catch(e){}}},[i,a,s,l,c,d,u,g,r,p,o,e=>g(e.detail.page),(e,t)=>t.group&&t.group===e.key,e=>g(e.detail.page),e=>e.group&&(!s?.length||!s.map((e=>e.key)).includes(e.group)),(e,t)=>t.group&&t.group===e,e=>g(e.detail.page)]}class Oe extends U{constructor(e){super(),this.shadowRoot.innerHTML='<style>@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:0.25}hr:not([size]){height:1px}h5,h4{margin-top:0;margin-bottom:0.5rem;font-weight:500;line-height:1.2}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}h4{font-size:calc(1.275rem + 0.3vw)}@media(min-width: 1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}ul{padding-left:2rem}ul{margin-top:0;margin-bottom:1rem}img{vertical-align:middle}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(prefers-reduced-motion: reduce){}.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(min-width: 576px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(max-width: 575.98px){}@media(max-width: 767.98px){}@media(max-width: 991.98px){}@media(max-width: 1199.98px){}@media(max-width: 1399.98px){}@media(prefers-reduced-motion: reduce){}.offcanvas-title{margin-bottom:0;line-height:1.5}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}.d-flex{display:flex !important}.flex-column{flex-direction:column !important}.mb-auto{margin-bottom:auto !important}.p-3{padding:1rem !important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(min-width: 1200px){}@media print{}#webcomponent{font-family:"Roboto", sans-serif}@media(min-width: 768px){}:host{display:block;width:240px}</style>',B(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},Le,Ne,i,{id:8,navlinks:0,navpage:1,groups:2,companylogouri:3,companytitle:4,enablefooter:5,style:9},null,[-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),T()))}static get observedAttributes(){return["id","navlinks","navpage","groups","companylogouri","companytitle","enablefooter","style"]}get id(){return this.$$.ctx[8]}set id(e){this.$$set({id:e}),T()}get navlinks(){return this.$$.ctx[0]}set navlinks(e){this.$$set({navlinks:e}),T()}get navpage(){return this.$$.ctx[1]}set navpage(e){this.$$set({navpage:e}),T()}get groups(){return this.$$.ctx[2]}set groups(e){this.$$set({groups:e}),T()}get companylogouri(){return this.$$.ctx[3]}set companylogouri(e){this.$$set({companylogouri:e}),T()}get companytitle(){return this.$$.ctx[4]}set companytitle(e){this.$$set({companytitle:e}),T()}get enablefooter(){return this.$$.ctx[5]}set enablefooter(e){this.$$set({enablefooter:e}),T()}get style(){return this.$$.ctx[9]}set style(e){this.$$set({style:e}),T()}}return customElements.define("hb-sidebar-desktop",Oe),Oe}();
|
|
1
|
+
var release=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function o(e){e.forEach(t)}function r(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let a,s;function l(e,t){return a||(a=document.createElement("a")),a.href=t,e===a.href}function c(e,t){e.appendChild(t)}function d(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode&&e.parentNode.removeChild(e)}function u(e){return document.createElement(e)}function f(e){return document.createTextNode(e)}function m(){return f(" ")}function g(){return f("")}function h(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function b(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function v(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:b(e,t,n)}function y(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function w(e,t,n,o){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,o?"important":"")}function $(e){const t={};for(const n of e)t[n.name]=n.value;return t}function x(e){s=e}function k(){if(!s)throw new Error("Function called outside component initialization");return s}function C(){const e=k();return(t,n,{cancelable:o=!1}={})=>{const r=e.$$.callbacks[t];if(r){const i=function(e,t,{bubbles:n=!1,cancelable:o=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n,o,t),r}(t,n,{cancelable:o});return r.slice().forEach((t=>{t.call(e,i)})),!i.defaultPrevented}return!0}}const E=[],N=[],S=[],_=[],j=Promise.resolve();let M=!1;function L(e){S.push(e)}const O=new Set;let D=0;function T(){if(0!==D)return;const e=s;do{try{for(;D<E.length;){const e=E[D];D++,x(e),A(e.$$)}}catch(e){throw E.length=0,D=0,e}for(x(null),E.length=0,D=0;N.length;)N.pop()();for(let e=0;e<S.length;e+=1){const t=S[e];O.has(t)||(O.add(t),t())}S.length=0}while(E.length);for(;_.length;)_.pop()();M=!1,O.clear(),x(e)}function A(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L)}}const P=new Set;function z(e,t){e&&e.i&&(P.delete(e),e.i(t))}function I(e,t){e.d(1),t.delete(e.key)}function J(e,t,n,o,r,i,a,s,l,c,d,p){let u=e.length,f=i.length,m=u;const g={};for(;m--;)g[e[m].key]=m;const h=[],b=new Map,v=new Map;for(m=f;m--;){const e=p(r,i,m),s=n(e);let l=a.get(s);l?o&&l.p(e,t):(l=c(s,e),l.c()),b.set(s,h[m]=l),s in g&&v.set(s,Math.abs(m-g[s]))}const y=new Set,w=new Set;function $(e){z(e,1),e.m(s,d),a.set(e.key,e),d=e.first,f--}for(;u&&f;){const t=h[f-1],n=e[u-1],o=t.key,r=n.key;t===n?(d=t.first,u--,f--):b.has(r)?!a.has(o)||y.has(o)?$(t):w.has(r)?u--:v.get(o)>v.get(r)?(w.add(o),$(t)):(y.add(r),u--):(l(n,a),u--)}for(;u--;){const t=e[u];b.has(t.key)||l(t,a)}for(;f;)$(h[f-1]);return h}function R(e,t){-1===e.$$.dirty[0]&&(E.push(e),M||(M=!0,j.then(T)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function B(i,a,l,c,d,u,f,m=[-1]){const g=s;x(i);const h=i.$$={fragment:null,ctx:[],props:u,update:e,not_equal:d,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(g?g.$$.context:[])),callbacks:n(),dirty:m,skip_bound:!1,root:a.target||g.$$.root};f&&f(h.root);let b=!1;if(h.ctx=l?l(i,a.props||{},((e,t,...n)=>{const o=n.length?n[0]:t;return h.ctx&&d(h.ctx[e],h.ctx[e]=o)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](o),b&&R(i,e)),t})):[],h.update(),b=!0,o(h.before_update),h.fragment=!!c&&c(h.ctx),a.target){if(a.hydrate){const e=function(e){return Array.from(e.childNodes)}(a.target);h.fragment&&h.fragment.l(e),e.forEach(p)}else h.fragment&&h.fragment.c();a.intro&&z(i.$$.fragment),function(e,n,i,a){const{fragment:s,after_update:l}=e.$$;s&&s.m(n,i),a||L((()=>{const n=e.$$.on_mount.map(t).filter(r);e.$$.on_destroy?e.$$.on_destroy.push(...n):o(n),e.$$.on_mount=[]})),l.forEach(L)}(i,a.target,a.anchor,a.customElement),T()}x(g)}let U;"function"==typeof HTMLElement&&(U=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(r);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(e,t){const n=e.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(t,n){if(!r(n))return e;const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(n),()=>{const e=o.indexOf(n);-1!==e&&o.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var F={name:"@htmlbricks/hb-sidebar-desktop",displayName:"Svelte Boostrap Sidebar Desktop",description:"Svelte Boostrap Sidebar Desktop",version:"0.19.30",main:"release/release.js",publishConfig:{access:"public"},author:"Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",authorUrl:"https://dariocaruso.info",license:"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0",engines:{node:">=16.0.0"},scripts:{start:"sirv dist",dev:"rm -rf ./dist && rollup -c -w",build:"rm -rf ./dist && rollup -c","generate-manifest":"npm run generate-schemes && monorepo-wc-packages-manifester --dir $PWD","generate-component-schema":"ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json","generate-events-schema":"ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json","generate-schemes":"npm run generate-events-schema && npm run generate-component-schema",copydest:"rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/","build-extra":"tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*","build:release":"PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",prepublish:"npm run build:release"},devDependencies:{"@rollup/plugin-alias":"^3.1.2","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^4.0.0","@rollup/plugin-typescript":"^8.2.1","@tsconfig/svelte":"^1.0.10","@types/node":"^16.7.1","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0",eslint:"^7.25.0","eslint-plugin-jsdoc":"^33.0.0","eslint-plugin-svelte3":"^3.2.0","monorepo-wc-packages-manifester":"^0.0.3","node-sass":"^6.0.1",postcss:"^8.2.13","postcss-load-config":"^3.0.1",prettier:"^2.8.4",rollup:"^2.46.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-css-only":"^3.1.0","rollup-plugin-livereload":"^2.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-ts-paths":"^1.0.5","rollup-plugin-typescript2":"^0.31.1",sass:"^1.32.12","sirv-cli":"^1.0.11",svelte:"^3.46.2","svelte-check":"^1.5.2","svelte-preprocess":"^4.7.2","ts-json-schema-generator":"^0.98.0","ts-node":"^9.1.1",tslib:"^2.2.0",ttypescript:"^1.5.12",typescript:"^4.2.4","typescript-transform-paths":"^2.2.3","wc-js-utils":"^0.0.1"},keywords:["svelte","svelte-webcomponents","webcomponents","html5-webcomponents"],contributors:[],gitHead:"7e404e6aab454c97ee17c670715a482623d450a9",dependencies:{"@htmlbricks/hb-sidenav-link":"^0.19.30","style-to-object":"^0.3.0"}};var H,W=(function(e,t){t.__esModule=!0,t.LanguageTranslator=t.addComponent=t.getChildStyleToPass=void 0,t.getChildStyleToPass=function(e,t){var n,o,r="";if(e&&(null==t?void 0:t.length)&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)&&(null===(o=null==t?void 0:t.filter((function(t){return Object.keys(e).includes(t.name)})))||void 0===o?void 0:o.length))for(var i=function(n){(null==t?void 0:t.filter((function(t){return t.name===n&&t.defaultValue!==e[n]})))&&(r+="".concat(n,":").concat(e[n],";"))},a=0,s=Object.keys(e);a<s.length;a++)i(s[a]);return r},t.addComponent=function(e){var t,n=(null===(t=null==e?void 0:e.repoName.split("/"))||void 0===t?void 0:t[1])||(null==e?void 0:e.repoName);if(!n)throw new Error("wrong componentPath "+(null==e?void 0:e.repoName));if(!(null==e?void 0:e.version))throw new Error("wrong version "+(null==e?void 0:e.version));var o=(null==e?void 0:e.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var r=document.createElement("script");r.id=n+"-script",r.src="https://cdn.jsdelivr.net/npm/".concat(e.repoName,"@").concat(e.version,"/").concat(o),(null==e?void 0:e.local)&&location.href.includes("localhost")&&(r.src="".concat(e.local)),document.head.appendChild(r)}catch(e){console.warn(e)}};var n=function(){function e(e){if(!(null==e?void 0:e.dictionary))throw new Error("no dictionary provided");this.dictionary=e.dictionary,this.setLang(null==e?void 0:e.lang)}return e.prototype.setLang=function(t){t||(t=e.getDefaultLang()),this.lang=t},e.prototype.translateWord=function(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)},e.prototype.translateDate=function(t,n,o){return e.formatDate(t,n,o||this.lang)},e.getDefaultLang=function(){var e,t,n,o,r,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(t=null===(e=navigator.languages[0])||void 0===e?void 0:e.split("-")[0])||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(r=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===r?void 0:r.toLowerCase()),i},e.getDictionaryWord=function(t,n,o){var r;if(!t)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(o&&(null===(r=n[o])||void 0===r?void 0:r[t]))return n[o][t];var i="",a=e.getDefaultLang();if(!o||a!==o){var s=null==n?void 0:n[a];(null==s?void 0:s[t])&&(i=s[t])}return i},e.formatDate=function(t,n,o){if(!t)throw new Error("no date provided");if("function"!=typeof t.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(o||e.getDefaultLang(),n).format(t)},e}();t.LanguageTranslator=n}(H={exports:{}},H.exports),H.exports),Y=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,V=/\n/g,q=/^\s*/,K=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,G=/^:\s*/,Q=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,X=/^[;\s]*/,Z=/^\s+|\s+$/g,ee="\n",te="/",ne="*",oe="",re="comment",ie="declaration",ae=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,o=1;function r(e){var t=e.match(V);t&&(n+=t.length);var r=e.lastIndexOf(ee);o=~r?e.length-r:o+e.length}function i(){var e={line:n,column:o};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:o},this.source=t.source}function s(r){var i=new Error(t.source+":"+n+":"+o+": "+r);if(i.reason=r,i.filename=t.source,i.line=n,i.column=o,i.source=e,!t.silent)throw i}function l(t){var n=t.exec(e);if(n){var o=n[0];return r(o),e=e.slice(o.length),n}}function c(){l(q)}function d(e){var t;for(e=e||[];t=p();)!1!==t&&e.push(t);return e}function p(){var t=i();if(te==e.charAt(0)&&ne==e.charAt(1)){for(var n=2;oe!=e.charAt(n)&&(ne!=e.charAt(n)||te!=e.charAt(n+1));)++n;if(n+=2,oe===e.charAt(n-1))return s("End of comment missing");var a=e.slice(2,n-2);return o+=2,r(a),e=e.slice(n),o+=2,t({type:re,comment:a})}}function u(){var e=i(),t=l(K);if(t){if(p(),!l(G))return s("property missing ':'");var n=l(Q),o=e({type:ie,property:se(t[0].replace(Y,oe)),value:n?se(n[0].replace(Y,oe)):oe});return l(X),o}}return a.prototype.content=e,c(),function(){var e,t=[];for(d(t);e=u();)!1!==e&&(t.push(e),d(t));return t}()};function se(e){return e?e.replace(Z,oe):oe}var le=function(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var r,i,a=ae(e),s="function"==typeof t,l=0,c=a.length;l<c;l++)r=(n=a[l]).property,i=n.value,s?t(r,i,n):i&&(o||(o={}),o[r]=i);return o},ce={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"li",description:"list element"}]};function de(e,t,n){const o=e.slice();return o[22]=t[n],o}function pe(e,t,n){const o=e.slice();return o[25]=t[n],o}function ue(e,t,n){const o=e.slice();return o[22]=t[n],o}function fe(e,t,n){const o=e.slice();return o[25]=t[n],o}function me(e,t,n){const o=e.slice();return o[25]=t[n],o}function ge(e){let t,n,o,r=e[3]&&he(e);return{c(){t=u("div"),r&&r.c(),n=m(),o=f(e[4]),w(t,"margin-top","10px")},m(e,i){d(e,t,i),r&&r.m(t,null),c(t,n),c(t,o)},p(e,i){e[3]?r?r.p(e,i):(r=he(e),r.c(),r.m(t,n)):r&&(r.d(1),r=null),16&i[0]&&y(o,e[4])},d(e){e&&p(t),r&&r.d()}}}function he(e){let t,n;return{c(){t=u("img"),w(t,"height","40px"),w(t,"margin-right","10px"),l(t.src,n=e[3])||b(t,"src",n),b(t,"alt","")},m(e,n){d(e,t,n)},p(e,o){8&o[0]&&!l(t.src,n=e[3])&&b(t,"src",n)},d(e){e&&p(t)}}}function be(e){let t,n=[],o=new Map,r=e[0].filter(_e);const i=e=>e[25].key;for(let t=0;t<r.length;t+=1){let a=me(e,r,t),s=i(a);o.set(s,n[t]=ve(s,a))}return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=g()},m(e,o){for(let t=0;t<n.length;t+=1)n[t].m(e,o);d(e,t,o)},p(e,a){195&a[0]&&(r=e[0].filter(_e),n=J(n,a,i,1,e,r,o,t.parentNode,I,ve,t,me))},d(e){for(let t=0;t<n.length;t+=1)n[t].d(e);e&&p(t)}}}function ve(e,t){let n,o,r,i;return{key:e,first:null,c(){n=u("hb-sidenav-link"),v(n,"style",t[6]),v(n,"navlink",o=JSON.stringify(t[25])),v(n,"navpage",t[1]),this.first=n},m(e,o){d(e,n,o),r||(i=h(n,"pageChange",t[11]),r=!0)},p(e,r){t=e,64&r[0]&&v(n,"style",t[6]),1&r[0]&&o!==(o=JSON.stringify(t[25]))&&v(n,"navlink",o),2&r[0]&&v(n,"navpage",t[1])},d(e){e&&p(n),r=!1,i()}}}function ye(e){let t,n=[],o=new Map,r=e[2];const i=e=>e[22].key;for(let t=0;t<r.length;t+=1){let a=ue(e,r,t),s=i(a);o.set(s,n[t]=$e(s,a))}return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=g()},m(e,o){for(let t=0;t<n.length;t+=1)n[t].m(e,o);d(e,t,o)},p(e,a){199&a[0]&&(r=e[2],n=J(n,a,i,1,e,r,o,t.parentNode,I,$e,t,ue))},d(e){for(let t=0;t<n.length;t+=1)n[t].d(e);e&&p(t)}}}function we(e,t){let n,o,r,i;return{key:e,first:null,c(){n=u("hb-sidenav-link"),v(n,"style",t[6]),v(n,"navlink",o=JSON.stringify(t[25])),v(n,"navpage",t[1]),this.first=n},m(e,o){d(e,n,o),r||(i=h(n,"pageChange",t[13]),r=!0)},p(e,r){t=e,64&r[0]&&v(n,"style",t[6]),5&r[0]&&o!==(o=JSON.stringify(t[25]))&&v(n,"navlink",o),2&r[0]&&v(n,"navpage",t[1])},d(e){e&&p(n),r=!1,i()}}}function $e(e,t){let n,o,r,i,a,s,l=t[22].label+"",h=[],b=new Map;function v(...e){return t[12](t[22],...e)}let $=t[0].filter(v);const x=e=>e[25].key;for(let e=0;e<$.length;e+=1){let n=fe(t,$,e),o=x(n);b.set(o,h[e]=we(o,n))}return{key:e,first:null,c(){n=u("h5"),o=f(l),r=m(),i=u("hr"),a=m();for(let e=0;e<h.length;e+=1)h[e].c();s=g(),w(n,"margin-top","40px"),w(i,"margin-top","0px"),w(i,"margin-bottom","10px"),this.first=n},m(e,t){d(e,n,t),c(n,o),d(e,r,t),d(e,i,t),d(e,a,t);for(let n=0;n<h.length;n+=1)h[n].m(e,t);d(e,s,t)},p(e,n){t=e,4&n[0]&&l!==(l=t[22].label+"")&&y(o,l),199&n[0]&&($=t[0].filter(v),h=J(h,n,x,1,t,$,b,s.parentNode,I,we,s,fe))},d(e){e&&p(n),e&&p(r),e&&p(i),e&&p(a);for(let t=0;t<h.length;t+=1)h[t].d(e);e&&p(s)}}}function xe(e){let t,n=[],o=new Map,r=e[0].filter(e[14]).map(je).filter(Me);const i=e=>e[22];for(let t=0;t<r.length;t+=1){let a=de(e,r,t),s=i(a);o.set(s,n[t]=Ce(s,a))}return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=g()},m(e,o){for(let t=0;t<n.length;t+=1)n[t].m(e,o);d(e,t,o)},p(e,a){199&a[0]&&(r=e[0].filter(e[14]).map(je).filter(Me),n=J(n,a,i,1,e,r,o,t.parentNode,I,Ce,t,de))},d(e){for(let t=0;t<n.length;t+=1)n[t].d(e);e&&p(t)}}}function ke(e,t){let n,o,r,i;return{key:e,first:null,c(){n=u("hb-sidenav-link"),v(n,"style",t[6]),v(n,"navlink",o=JSON.stringify(t[25])),v(n,"navpage",t[1]),this.first=n},m(e,o){d(e,n,o),r||(i=h(n,"pageChange",t[16]),r=!0)},p(e,r){t=e,64&r[0]&&v(n,"style",t[6]),5&r[0]&&o!==(o=JSON.stringify(t[25]))&&v(n,"navlink",o),2&r[0]&&v(n,"navpage",t[1])},d(e){e&&p(n),r=!1,i()}}}function Ce(e,t){let n,o,r,i,a,s,l=t[22]+"",h=[],b=new Map;function v(...e){return t[15](t[22],...e)}let $=t[0].filter(v);const x=e=>e[25].key;for(let e=0;e<$.length;e+=1){let n=pe(t,$,e),o=x(n);b.set(o,h[e]=ke(o,n))}return{key:e,first:null,c(){n=u("h5"),o=f(l),r=m(),i=u("hr"),a=m();for(let e=0;e<h.length;e+=1)h[e].c();s=g(),w(n,"margin-top","40px"),w(i,"margin-top","0px"),w(i,"margin-bottom","10px"),this.first=n},m(e,t){d(e,n,t),c(n,o),d(e,r,t),d(e,i,t),d(e,a,t);for(let n=0;n<h.length;n+=1)h[n].m(e,t);d(e,s,t)},p(e,n){t=e,5&n[0]&&l!==(l=t[22]+"")&&y(o,l),199&n[0]&&($=t[0].filter(v),h=J(h,n,x,1,t,$,b,s.parentNode,I,ke,s,pe))},d(e){e&&p(n),e&&p(r),e&&p(i),e&&p(a);for(let t=0;t<h.length;t+=1)h[t].d(e);e&&p(s)}}}function Ee(e){let t,n,o;return{c(){t=u("hr"),n=m(),o=u("slot"),o.textContent="footer",b(o,"name","footer")},m(e,r){d(e,t,r),d(e,n,r),d(e,o,r)},d(e){e&&p(t),e&&p(n),e&&p(o)}}}function Ne(t){let n,o,r,i,a,s,l,f,g,h,v,y,$,x,k=t[0]?.length&&t[0].filter(Se)?.length,C=t[4]&&ge(t),E=k&&be(t),N=t[2]?.length&&ye(t),S=t[0]?.length&&xe(t),_=t[5]&&Ee();return{c(){n=u("link"),o=m(),r=u("div"),i=u("slot"),a=m(),s=u("div"),l=u("h4"),f=u("slot"),g=m(),C&&C.c(),h=m(),v=u("ul"),E&&E.c(),y=m(),N&&N.c(),$=m(),S&&S.c(),x=m(),_&&_.c(),this.c=e,b(n,"rel","stylesheet"),b(n,"href","https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"),b(i,"name","test"),b(f,"name","header"),b(f,"part","header"),b(l,"class","offcanvas-title"),b(v,"class","nav nav-pills flex-column mb-auto"),w(v,"margin-top","25px"),b(s,"class","d-flex flex-column p-3 bg-light"),w(s,"height","100%"),w(s,"padding-top","0px",1),w(s,"position","relative"),w(s,"max-height","100%"),w(s,"overflow-y","auto"),b(r,"id","webcomponent"),w(r,"position","relative"),w(r,"height","100%")},m(e,t){c(document.head,n),d(e,o,t),d(e,r,t),c(r,i),c(r,a),c(r,s),c(s,l),c(l,f),c(l,g),C&&C.m(l,null),c(s,h),c(s,v),E&&E.m(v,null),c(v,y),N&&N.m(v,null),c(v,$),S&&S.m(v,null),c(s,x),_&&_.m(s,null)},p(e,t){e[4]?C?C.p(e,t):(C=ge(e),C.c(),C.m(l,null)):C&&(C.d(1),C=null),1&t[0]&&(k=e[0]?.length&&e[0].filter(Se)?.length),k?E?E.p(e,t):(E=be(e),E.c(),E.m(v,y)):E&&(E.d(1),E=null),e[2]?.length?N?N.p(e,t):(N=ye(e),N.c(),N.m(v,$)):N&&(N.d(1),N=null),e[0]?.length?S?S.p(e,t):(S=xe(e),S.c(),S.m(v,null)):S&&(S.d(1),S=null),e[5]?_||(_=Ee(),_.c(),_.m(s,null)):_&&(_.d(1),_=null)},i:e,o:e,d(e){p(n),e&&p(o),e&&p(r),C&&C.d(),E&&E.d(),N&&N.d(),S&&S.d(),_&&_.d()}}}const Se=e=>!e.group,_e=e=>!e.group,je=e=>e.group,Me=(e,t,n)=>n.indexOf(e)===t;function Le(e,t,n){let o,{id:r}=t,{navlinks:i}=t,{navpage:a}=t,{groups:s}=t,{companylogouri:l}=t,{companytitle:c}=t,{enablefooter:d}=t,{style:p}=t,u="";const f=k(),m=C();function g(e){console.log(e),function(e,t){m(e,t),f.dispatchEvent&&f.dispatchEvent(new CustomEvent(e,{detail:t}))}("pageChange",{page:e})}W.addComponent({repoName:"@htmlbricks/hb-sidenav-link",version:F.version});return e.$$set=e=>{"id"in e&&n(8,r=e.id),"navlinks"in e&&n(0,i=e.navlinks),"navpage"in e&&n(1,a=e.navpage),"groups"in e&&n(2,s=e.groups),"companylogouri"in e&&n(3,l=e.companylogouri),"companytitle"in e&&n(4,c=e.companytitle),"enablefooter"in e&&n(5,d=e.enablefooter),"style"in e&&n(9,p=e.style)},e.$$.update=()=>{if(1855&e.$$.dirty[0]){r||n(8,r=null),p&&(n(10,o=le(p)),n(6,u=W.getChildStyleToPass(o,null==ce?void 0:ce.vars))),l||n(3,l="https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg"),c||n(4,c=""),d&&"no"!==d||n(5,d=!1),a||n(1,a="home");try{"string"==typeof s?n(2,s=JSON.parse(s)):s||n(2,s=[]),"string"==typeof i?n(0,i=JSON.parse(i)):i||(n(0,i=[]),n(0,i=null))}catch(e){}}},[i,a,s,l,c,d,u,g,r,p,o,e=>g(e.detail.page),(e,t)=>t.group&&t.group===e.key,e=>g(e.detail.page),e=>e.group&&(!s?.length||!s.map((e=>e.key)).includes(e.group)),(e,t)=>t.group&&t.group===e,e=>g(e.detail.page)]}class Oe extends U{constructor(e){super(),this.shadowRoot.innerHTML='<style>@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:0.25}hr:not([size]){height:1px}h5,h4{margin-top:0;margin-bottom:0.5rem;font-weight:500;line-height:1.2}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}h4{font-size:calc(1.275rem + 0.3vw)}@media(min-width: 1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}ul{padding-left:2rem}ul{margin-top:0;margin-bottom:1rem}img{vertical-align:middle}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(prefers-reduced-motion: reduce){}.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(min-width: 576px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(max-width: 575.98px){}@media(max-width: 767.98px){}@media(max-width: 991.98px){}@media(max-width: 1199.98px){}@media(max-width: 1399.98px){}@media(prefers-reduced-motion: reduce){}.offcanvas-title{margin-bottom:0;line-height:1.5}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}.d-flex{display:flex !important}.flex-column{flex-direction:column !important}.mb-auto{margin-bottom:auto !important}.p-3{padding:1rem !important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(min-width: 1200px){}@media print{}#webcomponent{font-family:"Roboto", sans-serif}@media(min-width: 768px){}:host{display:block;width:240px}</style>',B(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},Le,Ne,i,{id:8,navlinks:0,navpage:1,groups:2,companylogouri:3,companytitle:4,enablefooter:5,style:9},null,[-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),T()))}static get observedAttributes(){return["id","navlinks","navpage","groups","companylogouri","companytitle","enablefooter","style"]}get id(){return this.$$.ctx[8]}set id(e){this.$$set({id:e}),T()}get navlinks(){return this.$$.ctx[0]}set navlinks(e){this.$$set({navlinks:e}),T()}get navpage(){return this.$$.ctx[1]}set navpage(e){this.$$set({navpage:e}),T()}get groups(){return this.$$.ctx[2]}set groups(e){this.$$set({groups:e}),T()}get companylogouri(){return this.$$.ctx[3]}set companylogouri(e){this.$$set({companylogouri:e}),T()}get companytitle(){return this.$$.ctx[4]}set companytitle(e){this.$$set({companytitle:e}),T()}get enablefooter(){return this.$$.ctx[5]}set enablefooter(e){this.$$set({enablefooter:e}),T()}get style(){return this.$$.ctx[9]}set style(e){this.$$set({style:e}),T()}}return customElements.define("hb-sidebar-desktop",Oe),Oe}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|