UNPKG

@peculiar/fortify-webcomponents

Version:

Web-components for creating CSR or Certificate and viewing certificates list using Fortify

16 lines 4.01 kB
/*! * © Peculiar Ventures https://peculiarventures.com/ - BSD 3-Clause License */ System.register(["./p-xc8K752f.system.js","./p-CLIsej_S.system.js","./p-C9-FNG3w.system.js"],(function(t){"use strict";var e,i,n,o,a,r;return{setters:[function(t){e=t.h;i=t.r;n=t.H;o=t.a},function(t){a=t.B},function(t){r=t.T}],execute:function(){ /*! * © Peculiar Ventures https://peculiarventures.com/ - MIT License */ /** * @license * Copyright (c) Peculiar Ventures, LLC. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var s=function(t){var i=t.color,n=i===void 0?"gray-10":i;return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"31",fill:"none"},e("path",{fill:"var(--pv-color-".concat(n,")"),d:"M15 13.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-7 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm14 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z"}))};var u=function(){return'.sc-peculiar-button-menu-h{display:-ms-inline-flexbox;display:inline-flex;position:relative}.is_shown.sc-peculiar-button-menu-h .button_popover.sc-peculiar-button-menu:before{position:fixed;width:100%;height:100%;top:0;left:0;content:""}.is_shown.sc-peculiar-button-menu-h .popover.sc-peculiar-button-menu{display:block}.popover.sc-peculiar-button-menu{min-width:200px;position:absolute;top:100%;right:0;border-radius:4px;z-index:1;-webkit-box-shadow:var(--pv-shadow-light-medium);box-shadow:var(--pv-shadow-light-medium);background:var(--pv-color-white);padding:calc(var(--pv-size-base) * 2) 0;margin:var(--pv-size-base) 0;display:none}.button_option.sc-peculiar-button-menu{width:100%;-ms-flex-pack:start;justify-content:flex-start;border-radius:0}.group.sc-peculiar-button-menu:not(:last-child){border-bottom:1px solid var(--pv-color-gray-5);padding-bottom:calc(var(--pv-size-base) * 2);margin-bottom:var(--pv-size-base)}.group_title.sc-peculiar-button-menu{line-height:calc(var(--pv-size-base) * 6);padding:0 calc(var(--pv-size-base) * 2)}'};var c=t("peculiar_button_menu",function(){function t(t){var e=this;i(this,t);this.groups=[];this.open=false;this.handleClick=function(){e.open=!e.open}}t.prototype.render=function(){var t=this;return e(n,{key:"66dd03eaa8d6e1f6dee3d9782390e094c5804b4a",class:{is_shown:this.open}},e(a,{key:"ba4e5601321b4e778937f6386a8a5220e28f5809",class:"button_popover",startIcon:e(s,null),onClick:this.handleClick}),e("div",{key:"ed4d374f4a4982a24665e1cb60eaa57428ba0e4e",role:"dialog",tabIndex:-1,class:"popover","aria-hidden":String(this.open)},this.groups.map((function(i){return e("div",{class:"group"},e(r,{variant:"c2",color:"gray-9",class:"group_title"},i.title),i.options.map((function(i){return e(a,{class:"button_option",startIcon:i.startIcon,href:i.href,onClick:function(e){e.stopPropagation();t.handleClick();if(i.onClick){i.onClick(e)}}},i.text)})))}))))};return t}());c.style=u();var l=function(){return":host{display:inline}::slotted(mark){background-color:var(--pv-color-attention-tint-4)}"};var p=t("peculiar_highlight_words",function(){function t(t){i(this,t);this.tag="mark"}t.prototype.componentDidLoad=function(){this.handleHighlightSearch()};t.prototype.componentDidUpdate=function(){this.handleHighlightSearch()};t.prototype.handleHighlightSearch=function(){var t=this.resetHighlightSearch(this.host.innerHTML);var e=t;if(this.search){var i=new RegExp("(".concat(this.search,")"),"gi");e=t.replace(i,"<".concat(this.tag,">$1</").concat(this.tag,">"))}this.host.innerHTML=e};t.prototype.resetHighlightSearch=function(t){var e=new RegExp("</?".concat(this.tag,">"),"g");return t.replace(e,"")};t.prototype.render=function(){return e(n,{key:"95b1cef18522eabfb495710d6756d8eee86dfa73"},e("slot",{key:"360e1c4d7121833dbfccdd6e1021d2030017373b"}))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());p.style=l()}}})); //# sourceMappingURL=p-4ff6e3df.system.entry.js.map