@quandis/qbo4.ui-bridge 4.0.1-CI-20241101-204551 → 4.0.1-CI-20241101-213505
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 +1 -1
- package/src/qbo-ssn.js +1 -1
- package/src/qbo-ssn.ts +1 -1
- package/wwwroot/js/esm/ui-bridge.js +2 -2
- package/wwwroot/js/esm/ui-bridge.min.js +1 -1
- package/wwwroot/js/esm/ui-bridge.min.js.map +1 -1
- package/wwwroot/js/qbo4.ui-bridge.js +2 -2
- package/wwwroot/js/qbo4.ui-bridge.min.js +1 -1
- package/wwwroot/js/qbo4.ui-bridge.min.js.map +1 -1
|
@@ -433,5 +433,5 @@ ${Array.from(fo.keys()).map((e=>Ut`<div class="col-3">
|
|
|
433
433
|
</nav>`:Ut``}};As([ge({type:String}),Os("design:type",Object)],Es.prototype,"ariaExpanded",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"ariaLabel",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"buttonType",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"collapseToggle",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"dblClickClass",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"dropdownId",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"dropdownToggle",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"iconClass",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"liLinkToggleClass",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"liLinkClass",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"liAMenuClass",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"navClass",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"popoverContainer",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"popoverHtml",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"popoverPlacement",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"popoverToggle",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"popoverTrigger",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"spanMenuClass",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"spanMenuValue",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"ulMainMenuToggleClass",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"ulSubMenuClass",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"ulSubMenuToggleClass",void 0),As([ge({type:String}),Os("design:type",Object)],Es.prototype,"apiEndpoint",void 0),As([ge({type:Boolean}),Os("design:type",Object)],Es.prototype,"renderInHost",void 0),As([ge({type:Object}),Os("design:type",Object)],Es.prototype,"jsonData",void 0),Es=As([fe("qbo-mainmenu")],Es);var Rs=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ts=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Ls=class extends de{constructor(){super(...arguments),this.collapseAttribute="aria-expanded",this.collapseSelector='[data-qbo-toggle="collapse"]',this.menuCollapsed="false",this.menuExpanded="true",this.menuShow="qbo-show"}updated(t){const e=this;e.querySelectorAll(`${this.collapseSelector}`).forEach((function(t){t.addEventListener("click",(o=>{const r=t.nextElementSibling;t.getAttribute(e.collapseAttribute)==e.menuCollapsed?(r instanceof HTMLElement&&r.classList.add(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuExpanded)):(r instanceof HTMLElement&&r.classList.remove(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuCollapsed))}))}))}render(){return Ut`<slot></slot>`}};Rs([ge({type:String}),Ts("design:type",Object)],Ls.prototype,"collapseAttribute",void 0),Rs([ge({type:String}),Ts("design:type",Object)],Ls.prototype,"collapseSelector",void 0),Rs([ge({type:String}),Ts("design:type",Object)],Ls.prototype,"menuCollapsed",void 0),Rs([ge({type:String}),Ts("design:type",Object)],Ls.prototype,"menuExpanded",void 0),Rs([ge({type:String}),Ts("design:type",Object)],Ls.prototype,"menuShow",void 0),Ls=Rs([fe("qbo-sidebar")],Ls);var Ds=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ms=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const Is=new Map;Is.set("defaultLayout",(t=>Ut`<div slot="content" class="${t.slotClass}">
|
|
434
434
|
<input type="text" ?disabled=${t.disabled} class="${t.inputClass}" name="${t.inputName}" value="${t.data?.USSSN}"/>
|
|
435
435
|
<div><span @click="${t.toggleSSN}" class="${t.spanClass}" title="${t.titleShowText}"><i class="${t.imageClassShow}"></i></span></div>
|
|
436
|
-
</div>`));let Ps=class extends Ue{constructor(){super(...arguments),this.apiEndpoint="qbo",this.disabled=!0,this.editMode=!1,this.event="click",this.imageClassShow="qbo-icon-eye",this.imageClassHide="qbo-icon-eye-slash",this.inputClass="qbo-sm",this.inputName="USSSN",this.selectorImage="i",this.selectorInput="input",this.selectorSpan="span",this.show=!1,this.slotClass="qbo-input-group",this.spanClass="qbo-input-group-text qbo-pointer",this.titleMaskText="Mask",this.titleShowText="Show",this.type="defaultLayout",this.url="contact/UnmaskSSN",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async toggleSSN(){if(this.show=!this.show,this.show){const t=$.container.isRegistered(this.apiEndpoint)?$.container.resolve(this.apiEndpoint):new L(this.apiEndpoint),e=await t.fetch(`${this.url}
|
|
436
|
+
</div>`));let Ps=class extends Ue{constructor(){super(...arguments),this.apiEndpoint="qbo",this.disabled=!0,this.editMode=!1,this.event="click",this.imageClassShow="qbo-icon-eye",this.imageClassHide="qbo-icon-eye-slash",this.inputClass="qbo-sm",this.inputName="USSSN",this.selectorImage="i",this.selectorInput="input",this.selectorSpan="span",this.show=!1,this.slotClass="qbo-input-group",this.spanClass="qbo-input-group-text qbo-pointer",this.titleMaskText="Mask",this.titleShowText="Show",this.type="defaultLayout",this.url="contact/UnmaskSSN",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async toggleSSN(){if(this.show=!this.show,this.show){const t=$.container.isRegistered(this.apiEndpoint)?$.container.resolve(this.apiEndpoint):new L(this.apiEndpoint),e=await t.fetch(`${this.url}?ID=${this.data?.ContactID}`);this.renderRoot.querySelectorAll(`${this.selectorInput}`).forEach((t=>{if(t instanceof HTMLInputElement&&e?.ContactCollection?.length>0&&null!=e.ContactCollection[0].USSSN&&9==e.ContactCollection[0].USSSN.length){const o=e.ContactCollection[0].USSSN;t.value=`${o.substring(0,3)}-${o.substring(3,5)}-${o.substring(5,9)}`,this.editMode&&(t.disabled=!1),this.renderRoot.querySelectorAll(`${this.selectorSpan}`).forEach((t=>{t.setAttribute("title",`${this.titleMaskText}`)})),this.renderRoot.querySelectorAll(`${this.selectorImage}`).forEach((t=>{t.className=`${this.imageClassHide}`}))}else this.show=!this.show}))}else this.renderRoot.querySelectorAll(`${this.selectorInput}`).forEach((t=>{t instanceof HTMLInputElement&&(t.value=`${this.data?.USSSN}`,this.editMode&&(t.disabled=!0)),this.renderRoot.querySelectorAll(`${this.selectorSpan}`).forEach((t=>{t.setAttribute("title",`${this.titleShowText}`)})),this.renderRoot.querySelectorAll(`${this.selectorImage}`).forEach((t=>{t.className=`${this.imageClassShow}`}))}))}render(){return Ut`<slot>${Is.has(this.type)?Is.get(this.type)(this):null}</slot>`}};Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"apiEndpoint",void 0),Ds([ge({type:Boolean}),Ms("design:type",Object)],Ps.prototype,"disabled",void 0),Ds([ge({type:Boolean}),Ms("design:type",Object)],Ps.prototype,"editMode",void 0),Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"event",void 0),Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"imageClassShow",void 0),Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"imageClassHide",void 0),Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"inputClass",void 0),Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"inputName",void 0),Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"selectorImage",void 0),Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"selectorInput",void 0),Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"selectorSpan",void 0),Ds([ge({type:Boolean}),Ms("design:type",Object)],Ps.prototype,"show",void 0),Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"slotClass",void 0),Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"spanClass",void 0),Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"titleMaskText",void 0),Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"titleShowText",void 0),Ds([ge(),Ms("design:type",Object)],Ps.prototype,"type",void 0),Ds([ge({type:String}),Ms("design:type",Object)],Ps.prototype,"url",void 0),Ds([ge({type:Boolean}),Ms("design:type",Object)],Ps.prototype,"renderInHost",void 0),Ps=Ds([fe("qbo-ssn")],Ps)})(),r})()));
|
|
437
437
|
//# sourceMappingURL=qbo4.ui-bridge.min.js.map
|