@genesislcap/design-system-configurator 14.483.0 → 14.483.1
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/{182.182.f24e897d5f325107837f.js → 182.182.1151160459bacd59714e.js} +1 -1
- package/dist/{445.445.05908982d61eb728b7c4.js → 445.445.74ad0976766bd767f67b.js} +6 -6
- package/dist/445.bb6cca2679759f936d40f679a1a1f47f.js.map +1 -0
- package/dist/{designSystemConfigurator.23363e980e5ce84f0e0f99cd9696e8e6.js.map → designSystemConfigurator.8a171e9056fcc36604bd35abb80cf728.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.76f3fd10d334347c090dc2bc56df789c.js.map → main.397f8dbdd689d45f9d4ee190598b191a.js.map} +1 -1
- package/dist/{main.802f3f843dac57ccdf25.js → main.e38af63942b34316c72d.js} +2 -2
- package/dist/remoteEntry.js +2 -2
- package/package.json +13 -13
- package/dist/445.1453f57156984b5c184ade9268f99598.js.map +0 -1
|
@@ -974,5 +974,5 @@
|
|
|
974
974
|
</div>
|
|
975
975
|
</div>
|
|
976
976
|
</div>
|
|
977
|
-
`,Et=St(),wt={menuTabs:["filterMenuTab","generalMenuTab","columnsMenuTab"]},At=(e,t)=>!e.composedPath().includes(t);function Rt(e,t,a,i){return(0,r.sH)(this,void 0,void 0,function*(){var r;try{const s=function(e,t){const a=(new lt.K).withField(e).withValue(null!=t?t:"").withSerialiser(gt.n.EQ).withGroup("default").build();return a.serialiser(a)}(a,i),o=yield e.request(t,{DETAILS:{CRITERIA_MATCH:s}});return 1===(null===(r=o.REPLY)||void 0===r?void 0:r.length)?o.REPLY[0]:void 0}catch(e){return void console.error(`Failed to retrieve object from the ${t} resource: ${e instanceof Error?e.message:String(e)}`)}})}class kt extends((0,Ge.S)(ie.FoundationElement)){constructor(){super(...arguments),this.requestSupportsAdvancedSearch=!1,this.defaultSlottedNodes=[],this.getAndSetRowsDebounce=Pe()(()=>this.getAndSetRows(),300),this.handleClickOutside=e=>{At(e,this)&&(this.open=!1)}}get connect(){var e;return null!==(e=this.connectOverride)&&void 0!==e?e:this._connectDI}set connect(e){this.connectOverride=e}get value(){return n.Observable.track(this,"value"),this._value}set value(e){e!==this._value&&(e?Rt(this.connect,this.resourceName,this.valueKey,e).then(t=>{this.value===e&&(this.selectedRow=t)}):this.selectedRow=void 0,this.emitValue(e))}get displayValue(){return this.selectedRow&&this.labelKey&&this.selectedRow[this.labelKey]||this.value||""}get hasSearchKey(){return!!this.searchKey&&this.searchKey.length>0}get hasSlottedContent(){return!(!this.defaultSlottedNodes||0===this.defaultSlottedNodes.length)&&this.defaultSlottedNodes.some(e=>{var t;return e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&(null===(t=e.textContent)||void 0===t?void 0:t.trim().length)>0})}connectedCallback(){var e;super.connectedCallback(),(null===(e=this.optionsElement)||void 0===e?void 0:e.style)&&this.dropdownWidthChanged(),this.open=!1,this.filterSearch="",this.grid&&(this.grid.gridOptions={defaultColDef:wt,onRowClicked:e=>{this.selectedRow=e.data,this.emitValue(e.data[this.valueKey]),this.toggle()}})}setGridRowData(e){var t;const a=null===(t=this.grid)||void 0===t?void 0:t.gridApi;a&&("function"==typeof a.updateGridOptions?a.updateGridOptions({rowData:e}):a.setRowData(e))}setGridColumnDefs(e){var t;const a=null===(t=this.grid)||void 0===t?void 0:t.gridApi;a&&("function"==typeof a.updateGridOptions?a.updateGridOptions({columnDefs:e}):a.setColumnDefs(e))}emitValue(e){this._value=e,this.$emit("change",e),this.$emit("input",e),n.Observable.notify(this,"value")}toggle(){this.open=!this.open}getAndSetRows(){return(0,r.sH)(this,void 0,void 0,function*(){var e,t;if(!(null===(e=this.grid)||void 0===e?void 0:e.gridApi))return;const a=this.lastRequest={},r=this.request?{REQUEST:Object.assign({},this.request)}:{},i=Array.isArray(this.searchKey)&&1===this.searchKey.length?this.searchKey[0]:this.searchKey;let s;if(i&&this.filterSearch)if(this.requestSupportsAdvancedSearch){const e=(Array.isArray(i)?i:[i]).map(e=>{var t;return(new lt.K).withField(e).withValue(null!==(t=this.filterSearch)&&void 0!==t?t:"").withSerialiser(gt.n.containsIgnoreCase).withGroup("default").build()}),t=new ht.b;t.Or(e,{join:ct.r.Or()}),s=t.build()}else{if(Array.isArray(i))throw Error("MulticolumnDropdown: Unable to search multiple keys via request; if the request is a GPAL ReqRep, set requestSupportsAdvancedSearch to true");r.REQUEST=Object.assign(Object.assign({},r.REQUEST),{[i]:`*${this.filterSearch}*`})}const o=null===(t=this.baseCriteria)||void 0===t?void 0:t.trim();o&&s?s=`(${s}) && (${o})`:o&&(s=o),s&&(r.DETAILS={CRITERIA_MATCH:s});try{const e=yield this.connect.request(this.resourceName,r);if(a!==this.lastRequest)return;const t=(null==e?void 0:e.REPLY)||[];this.setGridRowData(t),t.length>0?this.grid.gridApi.hideOverlay():this.grid.gridApi.showNoRowsOverlay()}catch(e){console.error(`Failed to retrieve rows from the ${this.resourceName} resource: ${e instanceof Error?e.message:String(e)}`)}})}filterSearchChanged(){var e,t;this.open&&(null===(t=null===(e=this.grid)||void 0===e?void 0:e.gridApi)||void 0===t||t.showLoadingOverlay(),this.getAndSetRowsDebounce())}requestChanged(){var e,t;this.open&&(null===(t=null===(e=this.grid)||void 0===e?void 0:e.gridApi)||void 0===t||t.showLoadingOverlay(),this.getAndSetRows())}columnDefinitionsChanged(){this.setGridColumnDefs(this.columnDefinitions)}openChanged(){var e,t;this.open?(document.addEventListener("mousedown",this.handleClickOutside),(null===(e=this.grid)||void 0===e?void 0:e.gridApi)&&(this.grid.gridApi.showLoadingOverlay(),this.getAndSetRows())):(document.removeEventListener("mousedown",this.handleClickOutside),this.filterSearch="",(null===(t=this.grid)||void 0===t?void 0:t.gridApi)&&this.setGridRowData([]))}dropdownWidthChanged(){var e,t;null===(t=null===(e=this.optionsElement)||void 0===e?void 0:e.style)||void 0===t||t.setProperty(ut,this.dropdownWidth>0?`${this.dropdownWidth}px`:"inherit")}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback();const e=this.shouldRunDisconnect;n.DOM.queueUpdate(()=>{var t;e&&((null===(t=this.grid)||void 0===t?void 0:t.gridApi)&&this.setGridRowData([]),this.selectedRow=void 0,this._value=void 0)})}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}}(0,r.Cg)([dt.dm],kt.prototype,"_connectDI",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean"})],kt.prototype,"disabled",void 0),(0,r.Cg)([(0,n.attr)({attribute:"resource-name"})],kt.prototype,"resourceName",void 0),(0,r.Cg)([(0,n.attr)({attribute:"search-key",converter:pt})],kt.prototype,"searchKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"advanced-search-req",mode:"boolean"})],kt.prototype,"requestSupportsAdvancedSearch",void 0),(0,r.Cg)([(0,n.attr)({attribute:"value-key"})],kt.prototype,"valueKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"label-key"})],kt.prototype,"labelKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"dropdown-placement"})],kt.prototype,"dropdownPlacement",void 0),(0,r.Cg)([n.attr],kt.prototype,"dropdownWidth",void 0),(0,r.Cg)([n.observable],kt.prototype,"request",void 0),(0,r.Cg)([n.observable],kt.prototype,"columnDefinitions",void 0),(0,r.Cg)([n.observable],kt.prototype,"baseCriteria",void 0),(0,r.Cg)([n.observable],kt.prototype,"defaultSlottedNodes",void 0),(0,r.Cg)([n.observable],kt.prototype,"filterSearch",void 0),(0,r.Cg)([n.observable],kt.prototype,"open",void 0),(0,r.Cg)([n.observable],kt.prototype,"selectedRow",void 0),(0,r.Cg)([n.volatile],kt.prototype,"displayValue",null),(0,r.Cg)([n.volatile],kt.prototype,"hasSearchKey",null),(0,r.Cg)([n.volatile],kt.prototype,"hasSlottedContent",null);const xt=kt.compose({baseName:"multicolumn-dropdown",template:Et,styles:bt}),Dt=kt.compose({baseName:"multicolumn-dropdown",template:St("rapid"),styles:bt});var Gt=a(3299),Ot=a(70349),Tt=a(91327),Lt=a(13229),$t=a(30335),Pt=a(49568);const It={foundationIconRenderer:I.qN,foundationGridProActionRenderer:w._X,foundationGridProActionsMenuRenderer:k.su,foundationAgBooleanRenderer:G.fg,foundationAgTextRenderer:it.G4,foundationAgTextFieldRenderer:Ot.wG,foundationAgEditableRenderer:L.r8,foundationAgSelectRenderer:M.bE,foundationSelectEditor:d.RU,foundationNumberEditor:h.CY,foundationDateEditor:b.vr,foundationMultiselectEditor:u.UH,foundationStringEditor:C.cb,foundationMulticolumnDropdown:xt,foundationStatusPillRenderer:H.a1,StatusPillRenderer:H.N7,foundationGridPro:i.RB,register(e,...t){if(e)for(const a in this)"register"!==a&&this[a]().register(e,...t)}};var Nt=a(92277);const _t=/^(?:[A-Za-z0-9+/]{4})*?(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,Mt=e=>{const t=e.split(":");let a,r;2===t.length?[a,r]=t:r=e;const i=(e=>{if(_t.test(e)){const t=atob(e),a=new Uint8Array(t.length);return[...t].forEach((e,r)=>{a[r]=t.charCodeAt(r)}),a.buffer}return e})(r);if("str"===a){return new TextDecoder("utf-8").decode(i)}return i},zt=e=>{const t=(e=>{if("string"==typeof e)return btoa(e);if(e instanceof ArrayBuffer){const t=new Uint8Array(e).reduce((e,t)=>e+String.fromCharCode(t),"");return btoa(t)}return""})(e);return"string"==typeof e?`str:${t}`:e instanceof ArrayBuffer?`bin:${t}`:""},Ft={account:"genesis",namespace:"default",authKey:"kv-default",authEmail:void 0},Ht=ie.DI.createInterface();var Bt,Xt;!function(e){e.REQ_KEY_VALUE_LIST="REQ_KEY_VALUE_LIST",e.REQ_KEY_VALUE_READ="REQ_KEY_VALUE_READ"}(Bt||(Bt={})),function(e){e.EVENT_KEY_VALUE_PUT="EVENT_KEY_VALUE_PUT",e.EVENT_KEY_VALUE_DELETE="EVENT_KEY_VALUE_DELETE"}(Xt||(Xt={}));let Vt=class{constructor(e,t,a=Ft){this.connect=e,this.user=t,this.kvStorageConfig=a}delete(e){return(0,r.sH)(this,void 0,void 0,function*(){const t={DETAILS:{KEYS:e}},a=yield this.connect.commitEvent(Xt.EVENT_KEY_VALUE_DELETE,t);return!(!a||"EVENT_ACK"!==a.MESSAGE_TYPE)||{ERROR:a.ERROR,WARNING:a.WARNING}})}get(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const a={REQUEST:{USER_NAME:null!==(t=this.kvStorageConfig.authEmail)&&void 0!==t?t:this.user.userName,KEY:e}},r=yield this.connect.request(Bt.REQ_KEY_VALUE_READ,a);if(r&&r.REPLY&&r.REPLY.length>0){const t=r.REPLY.map(e=>{const t=this.getDecodedValue(e.VALUE);return{kv:{key:e.KEY,value:t}}});return e?t[0]:t}return e?void 0:[]})}getDecodedValue(e){e.startsWith("str:")||e.startsWith("bin:")||(e=`str:${e}`);let t=Mt(e);return"string"==typeof t&&t.startsWith("str:")&&(t=Mt(t)),"string"==typeof t&&t.startsWith("bin:")&&(t=Mt(t)),t}list(){return(0,r.sH)(this,void 0,void 0,function*(){var e;const t={REQUEST:{USER_NAME:null!==(e=this.kvStorageConfig.authEmail)&&void 0!==e?e:this.user.userName}},a=yield this.connect.request(Bt.REQ_KEY_VALUE_LIST,t);if(a&&a.REPLY&&a.REPLY.length>0){return a.REPLY.map(e=>e.KEY)}return[]})}put(e){return(0,r.sH)(this,void 0,void 0,function*(){const t={DETAILS:{RECORDS:e.map(e=>({KEY:e.key,VALUE:e.base64?zt(e.value):e.value}))}},a=yield this.connect.commitEvent(Xt.EVENT_KEY_VALUE_PUT,t);return!(!a||"EVENT_ACK"!==a.MESSAGE_TYPE)||{ERROR:a.ERROR,WARNING:a.WARNING}})}};Vt=(0,r.Cg)([(0,r.Qj)(0,dt.dm),(0,r.Qj)(1,Nt.KJ),(0,r.Qj)(2,(0,ie.optional)(Ht))],Vt);const Ut=ie.DI.createInterface(e=>e.singleton(Vt));var Kt=a(98316);class jt{getColumnState(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;yield this.migrateLocalStorageToKVStorage(e);const a=yield this.kvStorage.get(e),r=a?null===(t=a.kv)||void 0===t?void 0:t.value:void 0;return r?JSON.parse(r):[]})}saveColumnState(e,t){return(0,r.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}deleteColumnState(e){return(0,r.sH)(this,void 0,void 0,function*(){this.kvStorage.delete([e])})}migrateLocalStorageToKVStorage(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const a=yield this.kvStorage.get(e);if(a&&(null===(t=a.kv)||void 0===t?void 0:t.value))return;const r=this.session.getLocalStorageItem("gridOptions"),i=r?JSON.parse(r)[e]:void 0;i&&(Je.v.debug(`Columns state migration for key: ${e} from LocalStorage to KV Storage`),this.kvStorage.put([{key:e,value:i}]))})}getFilterModel(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const a=yield this.kvStorage.get(e),r=a?null===(t=a.kv)||void 0===t?void 0:t.value:void 0;return r?JSON.parse(r):{}})}saveFilterModel(e,t){return(0,r.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}}(0,r.Cg)([Ut],jt.prototype,"kvStorage",void 0),(0,r.Cg)([Kt.N],jt.prototype,"session",void 0);var Yt=a(11749);const qt=o.SwatchRGB.from((0,se.parseColorHexRGB)("#4c4c4c")),Wt=o.SwatchRGB.from((0,se.parseColorHexRGB)("#c01754")),{create:Qt}=ie.DesignToken,Jt={foregroundColor:Qt("fui-ag-foreground-color").withDefault(Wt),backgroundColor:Qt("fui-ag-background-color").withDefault(qt)};var Zt=a(68858),ea=a(49874);const ta={processCellCallback:e=>["+","=","-","@","\t","\n"].some(t=>String(e.value).startsWith(t))?`'${e.value}`:e.value}}}]);
|
|
977
|
+
`,Et=St(),wt={menuTabs:["filterMenuTab","generalMenuTab","columnsMenuTab"]},At=(e,t)=>!e.composedPath().includes(t);function Rt(e,t,a,i){return(0,r.sH)(this,void 0,void 0,function*(){var r;try{const s=function(e,t){const a=(new lt.K).withField(e).withValue(null!=t?t:"").withSerialiser(gt.n.EQ).withGroup("default").build();return a.serialiser(a)}(a,i),o=yield e.request(t,{DETAILS:{CRITERIA_MATCH:s}});return 1===(null===(r=o.REPLY)||void 0===r?void 0:r.length)?o.REPLY[0]:void 0}catch(e){return void console.error(`Failed to retrieve object from the ${t} resource: ${e instanceof Error?e.message:String(e)}`)}})}class kt extends((0,Ge.S)(ie.FoundationElement)){constructor(){super(...arguments),this.requestSupportsAdvancedSearch=!1,this.defaultSlottedNodes=[],this.getAndSetRowsDebounce=Pe()(()=>this.getAndSetRows(),300),this.handleClickOutside=e=>{At(e,this)&&(this.open=!1)}}get connect(){var e;return null!==(e=this.connectOverride)&&void 0!==e?e:this._connectDI}set connect(e){this.connectOverride=e}get value(){return n.Observable.track(this,"value"),this._value}set value(e){e!==this._value&&(e?Rt(this.connect,this.resourceName,this.valueKey,e).then(t=>{this.value===e&&(this.selectedRow=t)}):this.selectedRow=void 0,this.emitValue(e))}get displayValue(){return this.selectedRow&&this.labelKey&&this.selectedRow[this.labelKey]||this.value||""}get hasSearchKey(){return!!this.searchKey&&this.searchKey.length>0}get hasSlottedContent(){return!(!this.defaultSlottedNodes||0===this.defaultSlottedNodes.length)&&this.defaultSlottedNodes.some(e=>{var t;return e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&(null===(t=e.textContent)||void 0===t?void 0:t.trim().length)>0})}connectedCallback(){var e;super.connectedCallback(),(null===(e=this.optionsElement)||void 0===e?void 0:e.style)&&this.dropdownWidthChanged(),this.open=!1,this.filterSearch="",this.grid&&(this.grid.gridOptions={defaultColDef:wt,onRowClicked:e=>{this.selectedRow=e.data,this.emitValue(e.data[this.valueKey]),this.toggle()}})}setGridRowData(e){var t;const a=null===(t=this.grid)||void 0===t?void 0:t.gridApi;a&&("function"==typeof a.updateGridOptions?a.updateGridOptions({rowData:e}):a.setRowData(e))}setGridColumnDefs(e){var t;const a=null===(t=this.grid)||void 0===t?void 0:t.gridApi;a&&("function"==typeof a.updateGridOptions?a.updateGridOptions({columnDefs:e}):a.setColumnDefs(e))}emitValue(e){this._value=e,this.$emit("change",e),this.$emit("input",e),n.Observable.notify(this,"value")}toggle(){this.open=!this.open}getAndSetRows(){return(0,r.sH)(this,void 0,void 0,function*(){var e,t;if(!(null===(e=this.grid)||void 0===e?void 0:e.gridApi))return;const a=this.lastRequest={},r=this.request?{REQUEST:Object.assign({},this.request)}:{},i=Array.isArray(this.searchKey)&&1===this.searchKey.length?this.searchKey[0]:this.searchKey;let s;if(i&&this.filterSearch)if(this.requestSupportsAdvancedSearch){const e=(Array.isArray(i)?i:[i]).map(e=>{var t;return(new lt.K).withField(e).withValue(null!==(t=this.filterSearch)&&void 0!==t?t:"").withSerialiser(gt.n.containsIgnoreCase).withGroup("default").build()}),t=new ht.b;t.Or(e,{join:ct.r.Or()}),s=t.build()}else{if(Array.isArray(i))throw Error("MulticolumnDropdown: Unable to search multiple keys via request; if the request is a GPAL ReqRep, set requestSupportsAdvancedSearch to true");r.REQUEST=Object.assign(Object.assign({},r.REQUEST),{[i]:`*${this.filterSearch}*`})}const o=null===(t=this.baseCriteria)||void 0===t?void 0:t.trim();o&&s?s=`(${s}) && (${o})`:o&&(s=o),s&&(r.DETAILS={CRITERIA_MATCH:s});try{const e=yield this.connect.request(this.resourceName,r);if(a!==this.lastRequest)return;const t=(null==e?void 0:e.REPLY)||[];this.setGridRowData(t),t.length>0?this.grid.gridApi.hideOverlay():this.grid.gridApi.showNoRowsOverlay()}catch(e){console.error(`Failed to retrieve rows from the ${this.resourceName} resource: ${e instanceof Error?e.message:String(e)}`)}})}filterSearchChanged(){var e,t;this.open&&(null===(t=null===(e=this.grid)||void 0===e?void 0:e.gridApi)||void 0===t||t.showLoadingOverlay(),this.getAndSetRowsDebounce())}requestChanged(){var e,t;this.open&&(null===(t=null===(e=this.grid)||void 0===e?void 0:e.gridApi)||void 0===t||t.showLoadingOverlay(),this.getAndSetRows())}columnDefinitionsChanged(){this.setGridColumnDefs(this.columnDefinitions)}openChanged(){var e,t;this.open?(document.addEventListener("mousedown",this.handleClickOutside),(null===(e=this.grid)||void 0===e?void 0:e.gridApi)&&(this.grid.gridApi.showLoadingOverlay(),this.getAndSetRows())):(document.removeEventListener("mousedown",this.handleClickOutside),this.filterSearch="",(null===(t=this.grid)||void 0===t?void 0:t.gridApi)&&this.setGridRowData([]))}dropdownWidthChanged(){var e,t;null===(t=null===(e=this.optionsElement)||void 0===e?void 0:e.style)||void 0===t||t.setProperty(ut,this.dropdownWidth>0?`${this.dropdownWidth}px`:"inherit")}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback();const e=this.shouldRunDisconnect;n.DOM.queueUpdate(()=>{var t;e&&((null===(t=this.grid)||void 0===t?void 0:t.gridApi)&&this.setGridRowData([]),this.selectedRow=void 0,this._value=void 0)})}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}}(0,r.Cg)([dt.dm],kt.prototype,"_connectDI",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean"})],kt.prototype,"disabled",void 0),(0,r.Cg)([(0,n.attr)({attribute:"resource-name"})],kt.prototype,"resourceName",void 0),(0,r.Cg)([(0,n.attr)({attribute:"search-key",converter:pt})],kt.prototype,"searchKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"advanced-search-req",mode:"boolean"})],kt.prototype,"requestSupportsAdvancedSearch",void 0),(0,r.Cg)([(0,n.attr)({attribute:"value-key"})],kt.prototype,"valueKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"label-key"})],kt.prototype,"labelKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"dropdown-placement"})],kt.prototype,"dropdownPlacement",void 0),(0,r.Cg)([n.attr],kt.prototype,"dropdownWidth",void 0),(0,r.Cg)([n.observable],kt.prototype,"request",void 0),(0,r.Cg)([n.observable],kt.prototype,"columnDefinitions",void 0),(0,r.Cg)([n.observable],kt.prototype,"baseCriteria",void 0),(0,r.Cg)([n.observable],kt.prototype,"defaultSlottedNodes",void 0),(0,r.Cg)([n.observable],kt.prototype,"filterSearch",void 0),(0,r.Cg)([n.observable],kt.prototype,"open",void 0),(0,r.Cg)([n.observable],kt.prototype,"selectedRow",void 0),(0,r.Cg)([n.volatile],kt.prototype,"displayValue",null),(0,r.Cg)([n.volatile],kt.prototype,"hasSearchKey",null),(0,r.Cg)([n.volatile],kt.prototype,"hasSlottedContent",null);const xt=kt.compose({baseName:"multicolumn-dropdown",template:Et,styles:bt}),Dt=kt.compose({baseName:"multicolumn-dropdown",template:St("rapid"),styles:bt});var Gt=a(3299),Ot=a(70349),Tt=a(91327),Lt=a(35610),$t=a(30335),Pt=a(49568);const It={foundationIconRenderer:I.qN,foundationGridProActionRenderer:w._X,foundationGridProActionsMenuRenderer:k.su,foundationAgBooleanRenderer:G.fg,foundationAgTextRenderer:it.G4,foundationAgTextFieldRenderer:Ot.wG,foundationAgEditableRenderer:L.r8,foundationAgSelectRenderer:M.bE,foundationSelectEditor:d.RU,foundationNumberEditor:h.CY,foundationDateEditor:b.vr,foundationMultiselectEditor:u.UH,foundationStringEditor:C.cb,foundationMulticolumnDropdown:xt,foundationStatusPillRenderer:H.a1,StatusPillRenderer:H.N7,foundationGridPro:i.RB,register(e,...t){if(e)for(const a in this)"register"!==a&&this[a]().register(e,...t)}};var Nt=a(92277);const _t=/^(?:[A-Za-z0-9+/]{4})*?(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,Mt=e=>{const t=e.split(":");let a,r;2===t.length?[a,r]=t:r=e;const i=(e=>{if(_t.test(e)){const t=atob(e),a=new Uint8Array(t.length);return[...t].forEach((e,r)=>{a[r]=t.charCodeAt(r)}),a.buffer}return e})(r);if("str"===a){return new TextDecoder("utf-8").decode(i)}return i},zt=e=>{const t=(e=>{if("string"==typeof e)return btoa(e);if(e instanceof ArrayBuffer){const t=new Uint8Array(e).reduce((e,t)=>e+String.fromCharCode(t),"");return btoa(t)}return""})(e);return"string"==typeof e?`str:${t}`:e instanceof ArrayBuffer?`bin:${t}`:""},Ft={account:"genesis",namespace:"default",authKey:"kv-default",authEmail:void 0},Ht=ie.DI.createInterface();var Bt,Xt;!function(e){e.REQ_KEY_VALUE_LIST="REQ_KEY_VALUE_LIST",e.REQ_KEY_VALUE_READ="REQ_KEY_VALUE_READ"}(Bt||(Bt={})),function(e){e.EVENT_KEY_VALUE_PUT="EVENT_KEY_VALUE_PUT",e.EVENT_KEY_VALUE_DELETE="EVENT_KEY_VALUE_DELETE"}(Xt||(Xt={}));let Vt=class{constructor(e,t,a=Ft){this.connect=e,this.user=t,this.kvStorageConfig=a}delete(e){return(0,r.sH)(this,void 0,void 0,function*(){const t={DETAILS:{KEYS:e}},a=yield this.connect.commitEvent(Xt.EVENT_KEY_VALUE_DELETE,t);return!(!a||"EVENT_ACK"!==a.MESSAGE_TYPE)||{ERROR:a.ERROR,WARNING:a.WARNING}})}get(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const a={REQUEST:{USER_NAME:null!==(t=this.kvStorageConfig.authEmail)&&void 0!==t?t:this.user.userName,KEY:e}},r=yield this.connect.request(Bt.REQ_KEY_VALUE_READ,a);if(r&&r.REPLY&&r.REPLY.length>0){const t=r.REPLY.map(e=>{const t=this.getDecodedValue(e.VALUE);return{kv:{key:e.KEY,value:t}}});return e?t[0]:t}return e?void 0:[]})}getDecodedValue(e){e.startsWith("str:")||e.startsWith("bin:")||(e=`str:${e}`);let t=Mt(e);return"string"==typeof t&&t.startsWith("str:")&&(t=Mt(t)),"string"==typeof t&&t.startsWith("bin:")&&(t=Mt(t)),t}list(){return(0,r.sH)(this,void 0,void 0,function*(){var e;const t={REQUEST:{USER_NAME:null!==(e=this.kvStorageConfig.authEmail)&&void 0!==e?e:this.user.userName}},a=yield this.connect.request(Bt.REQ_KEY_VALUE_LIST,t);if(a&&a.REPLY&&a.REPLY.length>0){return a.REPLY.map(e=>e.KEY)}return[]})}put(e){return(0,r.sH)(this,void 0,void 0,function*(){const t={DETAILS:{RECORDS:e.map(e=>({KEY:e.key,VALUE:e.base64?zt(e.value):e.value}))}},a=yield this.connect.commitEvent(Xt.EVENT_KEY_VALUE_PUT,t);return!(!a||"EVENT_ACK"!==a.MESSAGE_TYPE)||{ERROR:a.ERROR,WARNING:a.WARNING}})}};Vt=(0,r.Cg)([(0,r.Qj)(0,dt.dm),(0,r.Qj)(1,Nt.KJ),(0,r.Qj)(2,(0,ie.optional)(Ht))],Vt);const Ut=ie.DI.createInterface(e=>e.singleton(Vt));var Kt=a(98316);class jt{getColumnState(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;yield this.migrateLocalStorageToKVStorage(e);const a=yield this.kvStorage.get(e),r=a?null===(t=a.kv)||void 0===t?void 0:t.value:void 0;return r?JSON.parse(r):[]})}saveColumnState(e,t){return(0,r.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}deleteColumnState(e){return(0,r.sH)(this,void 0,void 0,function*(){this.kvStorage.delete([e])})}migrateLocalStorageToKVStorage(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const a=yield this.kvStorage.get(e);if(a&&(null===(t=a.kv)||void 0===t?void 0:t.value))return;const r=this.session.getLocalStorageItem("gridOptions"),i=r?JSON.parse(r)[e]:void 0;i&&(Je.v.debug(`Columns state migration for key: ${e} from LocalStorage to KV Storage`),this.kvStorage.put([{key:e,value:i}]))})}getFilterModel(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const a=yield this.kvStorage.get(e),r=a?null===(t=a.kv)||void 0===t?void 0:t.value:void 0;return r?JSON.parse(r):{}})}saveFilterModel(e,t){return(0,r.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}}(0,r.Cg)([Ut],jt.prototype,"kvStorage",void 0),(0,r.Cg)([Kt.N],jt.prototype,"session",void 0);var Yt=a(11749);const qt=o.SwatchRGB.from((0,se.parseColorHexRGB)("#4c4c4c")),Wt=o.SwatchRGB.from((0,se.parseColorHexRGB)("#c01754")),{create:Qt}=ie.DesignToken,Jt={foregroundColor:Qt("fui-ag-foreground-color").withDefault(Wt),backgroundColor:Qt("fui-ag-background-color").withDefault(qt)};var Zt=a(68858),ea=a(49874);const ta={processCellCallback:e=>["+","=","-","@","\t","\n"].some(t=>String(e.value).startsWith(t))?`'${e.value}`:e.value}}}]);
|
|
978
978
|
//# sourceMappingURL=182.1f2fb784807e8a78f66ab7bedafef9c3.js.map
|