@nebula.js/sn-action-button 1.14.0

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.
@@ -0,0 +1,8 @@
1
+ /*
2
+ * @nebula.js/sn-action-button v1.14.0
3
+ * Copyright (c) 2021 QlikTech International AB
4
+ * Released under the MIT license.
5
+ */
6
+
7
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-action-button"]=t(e.stardust)}(this,(function(e){"use strict";var t={showTitles:!1,title:"",subtitle:"",footnote:"",useEnabledCondition:!1,enabledCondition:1,navigation:{action:"none"},style:{label:"Button",font:{size:.5,useColorExpression:!1,color:{index:-1,color:null},colorExpression:"",style:{bold:!0,italic:!1,underline:!1},align:"center"},background:{useColorExpression:!1,color:{index:-1,color:null},colorExpression:"",useImage:!1,url:{qStaticContentUrlDef:{qUrl:""}},size:"auto",position:"centerCenter"},border:{useBorder:!1,radius:0,width:0,useColorExpression:!1,color:{index:-1,color:null},colorExpression:""},icon:{useIcon:!1,iconType:"",position:"left"}},actions:[]},n={targets:[]};function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function l(e){a(i,r,o,l,c,"next",e)}function c(e){a(i,r,o,l,c,"throw",e)}l(void 0)}))}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(){var e=i(regeneratorRuntime.mark((function e(t,n,r){var o,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.split(";"),!r){e.next=8;break}return a="",o.forEach((function(e){a+="Num('".concat(e,"')&';'&")})),e.next=6,t.evaluate(a.slice(0,-5));case 6:i=e.sent,o=i.split(";");case 8:return e.abrupt("return",o.map((function(e){return Number.isNaN(+e)?{qText:e}:{qIsNumeric:!0,qNumber:Number(e)}})));case 9:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),s=[{value:"applyBookmark",translation:"Object.ActionButton.ApplyBookmark",group:"bookmark",getActionCall:function(e){var t=e.app,n=e.bookmark;return i(regeneratorRuntime.mark((function e(){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getBookmarkList();case 2:if(r=e.sent,o=r.find((function(e){return e.qData.title===n})),e.t0=n,!e.t0){e.next=8;break}return e.next=8,t.applyBookmark(o&&o.qInfo&&o.qInfo.qId||n);case 8:case"end":return e.stop()}}),e)})))},requiredInput:["bookmark"]},{value:"back",translation:"Object.ActionButton.MoveBackward",group:"selection",getActionCall:function(e){var t=e.app;return i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.back();case 2:case"end":return e.stop()}}),e)})))},requiredInput:[]},{value:"forward",translation:"Object.ActionButton.MoveForward",group:"selection",getActionCall:function(e){var t=e.app;return i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.forward();case 2:case"end":return e.stop()}}),e)})))},requiredInput:[]},{value:"clearAll",translation:"Object.ActionButton.ClearAll",group:"selection",getActionCall:function(e){var t=e.app,n=e.softLock;return i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.clearAll(n);case 2:case"end":return e.stop()}}),e)})))},requiredInput:["softLock"]},{value:"clearAllButThis",translation:"Object.ActionButton.ClearAllButThis",group:"selection",getActionCall:function(e){var t=e.app,n=e.qStateName,r=e.field,o=e.softLock;return i(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=6;break}return e.next=3,t.getField(r,n);case 3:return a=e.sent,e.next=6,a.clearAllButThis(o);case 6:case"end":return e.stop()}}),e)})))},requiredInput:["field","softLock"]},{value:"clearField",translation:"Object.ActionButton.ClearSelectionInField",group:"selection",getActionCall:function(e){var t=e.app,n=e.qStateName,r=e.field;return i(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=6;break}return e.next=3,t.getField(r,n);case 3:return o=e.sent,e.next=6,o.clear();case 6:case"end":return e.stop()}}),e)})))},requiredInput:["field"]},{value:"selectAll",translation:"Object.ActionButton.SelectAllInField",group:"selection",getActionCall:function(e){var t=e.app,n=e.qStateName,r=e.field,o=e.softLock;return i(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=6;break}return e.next=3,t.getField(r,n);case 3:return a=e.sent,e.next=6,a.selectAll(o);case 6:case"end":return e.stop()}}),e)})))},requiredInput:["field","softLock"]},{value:"selectValues",translation:"Object.ActionButton.SelectValuesInField",group:"selection",getActionCall:function(e){var t=e.app,n=e.qStateName,r=e.field,o=e.value,a=e.softLock;return i(regeneratorRuntime.mark((function e(){var i,l,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r||!o){e.next=12;break}return e.next=3,t.getField(r,n);case 3:return i=e.sent,e.next=6,t.getFieldDescription(r);case 6:return l=e.sent,e.next=9,c(t,o,l.qTags.includes("$date"));case 9:return s=e.sent,e.next=12,i.selectValues(s,!1,a);case 12:case"end":return e.stop()}}),e)})))},requiredInput:["field","value","softLock"]},{value:"selectMatchingValues",translation:"Object.ActionButton.SelectMatchingValues",group:"selection",getActionCall:function(e){var t=e.app,n=e.qStateName,r=e.field,o=e.value,a=e.softLock;return i(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r||!o){e.next=6;break}return e.next=3,t.getField(r,n);case 3:return i=e.sent,e.next=6,i.select(o,!1,a);case 6:case"end":return e.stop()}}),e)})))},requiredInput:["field","value","softLock"]},{value:"selectAlternative",translation:"Object.ActionButton.SelectAlternatives",group:"selection",getActionCall:function(e){var t=e.app,n=e.qStateName,r=e.field,o=e.softLock;return i(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=6;break}return e.next=3,t.getField(r,n);case 3:return a=e.sent,e.next=6,a.selectAlternative(o);case 6:case"end":return e.stop()}}),e)})))},requiredInput:["field","softLock"]},{value:"selectExcluded",translation:"Object.ActionButton.SelectExcluded",group:"selection",getActionCall:function(e){var t=e.app,n=e.qStateName,r=e.field,o=e.softLock;return i(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=6;break}return e.next=3,t.getField(r,n);case 3:return a=e.sent,e.next=6,a.selectExcluded(o);case 6:case"end":return e.stop()}}),e)})))},requiredInput:["field","softLock"]},{value:"selectPossible",translation:"Object.ActionButton.SelectPossibleValues",group:"selection",getActionCall:function(e){var t=e.app,n=e.qStateName,r=e.field,o=e.softLock;return i(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=6;break}return e.next=3,t.getField(r,n);case 3:return a=e.sent,e.next=6,a.selectPossible(o);case 6:case"end":return e.stop()}}),e)})))},requiredInput:["field","softLock"]},{value:"toggleSelect",translation:"Object.ActionButton.ToggleFieldSelection",group:"selection",getActionCall:function(e){var t=e.app,n=e.qStateName,r=e.field,o=e.value,a=e.softLock;return i(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r||!o){e.next=6;break}return e.next=3,t.getField(r,n);case 3:return i=e.sent,e.next=6,i.toggleSelect(o,a);case 6:case"end":return e.stop()}}),e)})))},requiredInput:["field","value","softLock"]},{value:"lockAll",translation:"Object.ActionButton.LockAllSelections",group:"selection",getActionCall:function(e){var t=e.app;return i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.lockAll();case 2:case"end":return e.stop()}}),e)})))},requiredInput:[]},{value:"lockField",translation:"Object.ActionButton.LockField",group:"selection",getActionCall:function(e){var t=e.app,n=e.qStateName,r=e.field;return i(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=6;break}return e.next=3,t.getField(r,n);case 3:return o=e.sent,e.next=6,o.lock();case 6:case"end":return e.stop()}}),e)})))},requiredInput:["field"]},{value:"unlockAll",translation:"Object.ActionButton.UnlockAllSelections",group:"selection",getActionCall:function(e){var t=e.app;return i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.unlockAll();case 2:case"end":return e.stop()}}),e)})))},requiredInput:[]},{value:"unlockField",translation:"Object.ActionButton.UnlockAField",group:"selection",getActionCall:function(e){var t=e.app,n=e.qStateName,r=e.field;return i(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=6;break}return e.next=3,t.getField(r,n);case 3:return o=e.sent,e.next=6,o.unlock();case 6:case"end":return e.stop()}}),e)})))},requiredInput:["field"]},{value:"setVariable",translation:"Object.ActionButton.SetVariable",group:"variables",getActionCall:function(e){var t=e.app,n=e.variable,r=e.value;return i(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!r){e.next=11;break}return e.prev=1,e.next=4,t.getVariableByName(n);case 4:return o=e.sent,e.next=7,o.setStringValue(r);case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(1);case 11:case"end":return e.stop()}}),e,null,[[1,9]])})))},requiredInput:["variable","value"]},{value:"doReload",translation:"Object.ActionButton.DoReload",group:"reload",getActionCall:function(e){var t=e.app,n=e.partial;return i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.doReload(0,!!n,!1);case 2:if(!e.sent){e.next=6;break}return e.next=6,t.doSave();case 6:case"end":return e.stop()}}),e)})))},requiredInput:["partial"]},{translation:"Object.ActionButton.ExecuteAutomation",value:"executeAutomation",getActionCall:function(e){var t=e.app,n=e.automation,r=e.automationPostData;return i(regeneratorRuntime.mark((function e(){var o,a,i,l,c,s,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n){e.next=26;break}return e.prev=1,n=encodeURIComponent(n),e.next=5,fetch("../api/v1/items/".concat(n)).then((function(e){return e.json()}));case 5:return o=e.sent,e.next=8,fetch("../api/v1/automations/".concat(o.resourceId)).then((function(e){return e.json()}));case 8:if(a=e.sent,i="../api/v1/automations/".concat(a.guid,"/actions/execute?X-Execution-Token=").concat(a.execution_token),!r||!a.hasinputs){e.next=20;break}return e.next=13,fetch("../api/v1/automations/".concat(o.resourceId,"/blocks")).then((function(e){return e.json()})).then((function(e){for(var t,n=0;n<e.blocks.length;n++)if("Inputs"===e.blocks[n].displayName){t=e.blocks[n];break}return t.form[0].label.toLowerCase()}));case 13:return l=e.sent,c=new Date,s={qProp:{qInfo:{qId:"automation_".concat(t.id,"_").concat(n,"_").concat(c.getTime()),qType:"bookmark"},qMetaDef:{title:"Generated automation bookmark on ".concat(c.toISOString()),description:"Generated to provide target automation with bookmark to get current selection state",_createdBy:"sn-action-button",_createdFor:"automation",_createdOn:"".concat(c.toISOString()),_id:"automation_".concat(encodeURIComponent(t.id),"_").concat(n,"_").concat(c.getTime())}}},e.next=18,t.createBookmark(s).then((function(e){return e.getLayout()})).then((function(e){return e.qInfo.qId}));case 18:u=e.sent,i="".concat(i,"&").concat(l,"=").concat(u);case 20:return e.next=22,fetch(i).then((function(e){return e.json()}));case 22:e.next=26;break;case 24:e.prev=24,e.t0=e.catch(1);case 26:case"end":return e.stop()}}),e,null,[[1,24]])})))},requiredInput:["automation"]}];function u(e,t){var n=s.find((function(t){return e.actionType===t.value}));return n&&n.requiredInput&&-1!==n.requiredInput.indexOf(t)}var p,b,d,g,f,m,v,h,y={evaluateCondition:function(e){if(e&&e.length>=2&&"/"===e[0]&&"/"===e[1])return!0;var t=e?+e:-1;return Number.isNaN(+t)?"true"===e.toLowerCase():0!==t}},k=function(){try{return window.self!==window.top}catch(e){return!0}},w=function(){var e=i(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getSheetList();case 2:return n=e.sent,r=n.filter((function(e){return y.evaluateCondition(e.qData.showCondition)})),e.abrupt("return",r.sort((function(e,t){return e.qData.rank-t.qData.rank})));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=[{translation:"Object.ActionButton.NoNavigation",value:"none"},{translation:"Object.ActionButton.GoToNextSheet",value:"nextSheet",navigationCall:(h=i(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.senseNavigation,e.next=3,n.nextSheet();case 3:case"end":return e.stop()}}),e)}))),function(e){return h.apply(this,arguments)}),requiredInput:[]},{translation:"Object.ActionButton.GoToPreviousSheet",value:"prevSheet",navigationCall:(v=i(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.senseNavigation,e.next=3,n.prevSheet();case 3:case"end":return e.stop()}}),e)}))),function(e){return v.apply(this,arguments)}),requiredInput:[]},{translation:"Object.ActionButton.GoToLastSheet",value:"lastSheet",navigationCall:(m=i(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.app,r=t.senseNavigation,e.next=3,w(n);case 3:return o=e.sent,e.next=6,r.goToSheet(o[o.length-1].qInfo.qId);case 6:case"end":return e.stop()}}),e)}))),function(e){return m.apply(this,arguments)}),requiredInput:[]},{translation:"Object.ActionButton.GoToFirstSheet",value:"firstSheet",navigationCall:(f=i(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.app,r=t.senseNavigation,e.next=3,w(n);case 3:return o=e.sent,e.next=6,r.goToSheet(o[0].qInfo.qId);case 6:case"end":return e.stop()}}),e)}))),function(e){return f.apply(this,arguments)}),requiredInput:[]},{translation:"Object.ActionButton.GoToASheet",value:"goToSheet",navigationCall:(g=i(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.senseNavigation,r=t.sheet,e.t0=r,!e.t0){e.next=5;break}return e.next=5,n.goToSheet(r);case 5:case"end":return e.stop()}}),e)}))),function(e){return g.apply(this,arguments)}),requiredInput:["sheet"]},{translation:"Object.ActionButton.GoToSheetById",value:"goToSheetById",navigationCall:(d=i(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.senseNavigation,r=t.sheet,e.t0=r,!e.t0){e.next=5;break}return e.next=5,n.goToSheet(r);case 5:case"end":return e.stop()}}),e)}))),function(e){return d.apply(this,arguments)}),requiredInput:["sheetId"]},{translation:"Object.ActionButton.GoToStory",value:"goToStory",navigationCall:(b=i(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.senseNavigation,r=t.story,e.t0=r,!e.t0){e.next=5;break}return e.next=5,n.goToStory(r);case 5:case"end":return e.stop()}}),e)}))),function(e){return b.apply(this,arguments)}),requiredInput:["story"]},{translation:"Object.ActionButton.OpenWebsiteEmail",value:"openWebsite",navigationCall:(p=i(regeneratorRuntime.mark((function e(t){var n,r,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.websiteUrl,r=t.sameWindow;try{n&&(o=n.match(/^(https?:\/\/|mailto:)/)?n:"http://".concat(n),a="",r&&(a=k()?"_parent":"_self"),window.open(o,a))}catch(e){}case 2:case"end":return e.stop()}}),e)}))),function(e){return p.apply(this,arguments)}),requiredInput:["websiteUrl"]}],S=function(e,t){var n=x.find((function(t){return e.navigation.action===t.value}));return n&&n.requiredInput&&-1!==n.requiredInput.indexOf(t)};var A={getValue:function(e,t,n){var r,o=t.split(".");if(void 0===e)return n;for(r=0;r<o.length;++r){if(void 0===e[o[r]])return n;e=e[o[r]]}return e}};function C(e){switch(e){case"gotoSheet":return"goToSheet";case"gotoSheetById":return"goToSheetById";case"gotoStory":return"goToStory";case"switchToEdit":return"none";default:return e}}var I=function(e,t){var n={qChildren:[]},r=o({actions:[],props:{useEnabledCondition:null,fullWidth:"auto"},qLayoutExclude:{disabled:{}}},t);return e&&"qlik-button-for-navigation"===e.properties.visualization&&Object.keys(e.properties).forEach((function(t){var n;switch(t){case"props":n=e.properties[t],r.style.label=n.buttonLabel,r.style.icon.useIcon=n.buttonShowIcon,r.style.icon.iconType=n.buttonIconLui,r.style.font.align=n.buttonTextAlign,r.useEnabledCondition=n.useEnabledCondition,r.enabledCondition=n.enabledCondition,n.actionItems&&n.actionItems.forEach((function(e){!function(e,t){var n={actionType:e.actionType,bookmark:e.selectedBookmark,field:e.selectedField,variable:e.variable,value:e.value,softLock:e.softLock,cId:e.cId};switch(e.actionType){case"clearOther":n.actionType="clearAllButThis";break;case"unlockAllAndClearAll":n.actionType="clearAll",n.softLock=!0;break;case"selectField":n.actionType="selectMatchingValues";break;case"selectAndLockField":t.actions.push(o(o({},n),{},{cId:null,actionType:"selectMatchingValues"})),n.actionType="lockField"}t.actions.push(n)}(e,r)})),r.navigation={action:C(n.navigationAction),sheet:"gotoSheetById"===n.navigationAction?n.sheetId:n.selectedSheet,story:n.selectedStory,websiteUrl:n.websiteUrl,sameWindow:n.sameWindow};break;case"qStateName":case"showTitles":case"title":case"subtitle":case"footnote":r[t]=e.properties[t]}})),n.qProperty=r,n},q=[{value:"image",icon:"image",label:"Image"},{value:"back",icon:"back",label:"Back"},{value:"forward",icon:"forward",label:"Forward"},{value:"history",icon:"history",label:"History"},{value:"help",icon:"help",label:"Help"},{value:"info",icon:"info",label:"Info"},{value:"text",icon:"text",label:"Text"},{value:"group",icon:"group",label:"Group"},{value:"search",icon:"search",label:"Search"},{value:"zoom-in",icon:"zoom-in",label:"Zoom in"},{value:"zoom-out",icon:"zoom-out",label:"Zoom out"},{value:"export",icon:"export",label:"Export"},{value:"import",icon:"import",label:"Import"},{value:"field",icon:"field",label:"Field"},{value:"lock",icon:"lock",label:"Lock"},{value:"unlock",icon:"unlock",label:"Unlock"},{value:"database",icon:"database",label:"Database"},{value:"calendar",icon:"calendar",label:"Calendar"},{value:"bookmark",icon:"bookmark",label:"Bookmark"},{value:"library",icon:"library",label:"Library"},{value:"star",icon:"star",label:"Star"},{value:"print",icon:"print",label:"Print"},{value:"remove",icon:"remove",label:"Remove"},{value:"handle",icon:"handle",label:"Handle"},{value:"handle-horizontal",icon:"handle-horizontal",label:"Handle horizontal"},{value:"menu",icon:"menu",label:"Menu"},{value:"list",icon:"list",label:"List"},{value:"unordered-list",icon:"unordered-list",label:"Unordered list"},{value:"clock",icon:"clock",label:"Clock"},{value:"puzzle",icon:"puzzle",label:"Puzzle"},{value:"filterpane",icon:"filterpane",label:"Filterpane"},{value:"plus",icon:"plus",label:"Plus"},{value:"minus",icon:"minus",label:"Minus"},{value:"triangle-top",icon:"triangle-top",label:"Triangle top"},{value:"triangle-bottom",icon:"triangle-bottom",label:"Triangle bottom"},{value:"triangle-left",icon:"triangle-left",label:"Triangle left"},{value:"triangle-right",icon:"triangle-right",label:"Triangle right"},{value:"tick",icon:"tick",label:"Tick"},{value:"cogwheel",icon:"cogwheel",label:"Cogwheel"},{value:"settings",icon:"settings",label:"Settings"},{value:"cut",icon:"cut",label:"Cut"},{value:"copy",icon:"copy",label:"Copy"},{value:"paste",icon:"paste",label:"Paste"},{value:"camera",icon:"camera",label:"Camera"},{value:"slide-show",icon:"slide-show",label:"Slide show"},{value:"palette",icon:"palette",label:"Palette"},{value:"shapes",icon:"shapes",label:"Shapes"},{value:"effects",icon:"effects",label:"Effects"},{value:"file",icon:"file",label:"File"},{value:"expand",icon:"expand",label:"Expand"},{value:"collapse",icon:"collapse",label:"Collapse"},{value:"bin",icon:"bin",label:"Bin"},{value:"link",icon:"link",label:"Link"},{value:"pivot",icon:"pivot",label:"Pivot"},{value:"reload",icon:"reload",label:"Reload"},{value:"add",icon:"add",label:"Add"},{value:"edit",icon:"edit",label:"Edit"},{value:"key",icon:"key",label:"Key"},{value:"box",icon:"box",label:"Box"},{value:"home",icon:"home",label:"Home"},{value:"person",icon:"person",label:"Person"},{value:"grid",icon:"grid",label:"Grid"},{value:"cloud",icon:"cloud",label:"Cloud"},{value:"more",icon:"more",label:"More"},{value:"folder",icon:"folder",label:"Folder"},{value:"drop",icon:"drop",label:"Drop"},{value:"play",icon:"play",label:"Play"},{value:"tag",icon:"tag",label:"Tag"},{value:"close",icon:"close",label:"Close"},{value:"warning",icon:"warning",label:"Warning"},{value:"warning-triangle",icon:"warning-triangle",label:"Warning triangle"},{value:"share",icon:"share",label:"Share"},{value:"top",icon:"top",label:"Top"},{value:"low-resolution",icon:"low-resolution",label:"Low resolution"},{value:"high-resolution",icon:"high-resolution",label:"High resolution"},{value:"view",icon:"view",label:"View"},{value:"control",icon:"control",label:"Control"},{value:"code",icon:"code",label:"Code"},{value:"upload",icon:"upload",label:"Upload"},{value:"repair",icon:"repair",label:"Repair"},{value:"split",icon:"split",label:"Split"},{value:"up-down",icon:"up-down",label:"Up down"},{value:"disconnect",icon:"disconnect",label:"Disconnect"},{value:"photo-library",icon:"photo-library",label:"Photo library"},{value:"application",icon:"application",label:"Application"},{value:"new-tab",icon:"new-tab",label:"New tab"},{value:"ascending",icon:"ascending",label:"Ascending"},{value:"descending",icon:"descending",label:"Descending"},{value:"arrow-up",icon:"arrow-up",label:"Arrow up"},{value:"arrow-down",icon:"arrow-down",label:"Arrow down"},{value:"arrow-right",icon:"arrow-right",label:"Arrow right"},{value:"arrow-left",icon:"arrow-left",label:"Arrow left"},{value:"sync",icon:"sync",label:"Sync"},{value:"draggable",icon:"draggable",label:"Draggable"},{value:"book",icon:"book",label:"Book"},{value:"measure",icon:"measure",label:"Measure"},{value:"download",icon:"download",label:"Download"},{value:"more-rounded",icon:"more-rounded",label:"More rounded"},{value:"align-object-left",icon:"align-object-left",label:"Align object-left"},{value:"align-object-center",icon:"align-object-center",label:"Align object-center"},{value:"align-object-right",icon:"align-object-right",label:"Align object-right"},{value:"submit",icon:"submit",label:"Submit"},{value:"operators",icon:"operators",label:"Operators"},{value:"general-data-class",icon:"general-data-class",label:"General data-class"},{value:"building",icon:"building",label:"Building"},{value:"bell",icon:"bell",label:"Bell"},{value:"unlink",icon:"unlink",label:"Unlink"},{value:"lightbulb",icon:"lightbulb",label:"Lightbulb"},{value:"log-in",icon:"log-in",label:"Log in"},{value:"log-out",icon:"log-out",label:"Log out"},{value:"previous",icon:"previous",label:"Previous"},{value:"goto",icon:"goto",label:"Goto"},{value:"save",icon:"save",label:"Save"},{value:"pause",icon:"pause",label:"Pause"},{value:"stop",icon:"stop",label:"Stop"},{value:"step-in",icon:"step-in",label:"Step in"},{value:"comment",icon:"comment",label:"Comment"},{value:"indent",icon:"indent",label:"Indent"},{value:"undent",icon:"undent",label:"Undent"},{value:"filter",icon:"filter",label:"Filter"},{value:"clear-filter",icon:"clear-filter",label:"Clear filter"},{value:"insert",icon:"insert",label:"Insert"},{value:"direction-left",icon:"direction-left",label:"Direction left"},{value:"swap",icon:"swap",label:"Swap"},{value:"bubbles",icon:"bubbles",label:"Bubbles"},{value:"sheet",icon:"sheet",label:"Sheet"},{value:"object",icon:"object",label:"Object"},{value:"clear-selections",icon:"clear-selections",label:"Clear selections"},{value:"selections-tool",icon:"selections-tool",label:"Selections tool"},{value:"selections-reload",icon:"selections-reload",label:"Selections reload"},{value:"selections-back",icon:"selections-back",label:"Selections back"},{value:"selections-forward",icon:"selections-forward",label:"Selections forward"},{value:"expression",icon:"expression",label:"Expression"},{value:"select-alternative",icon:"select-alternative",label:"Select alternative"},{value:"select-possible",icon:"select-possible",label:"Select possible"},{value:"select-excluded",icon:"select-excluded",label:"Select excluded"},{value:"select-all",icon:"select-all",label:"Select all"},{value:"bar-chart",icon:"bar-chart",label:"Bar chart"},{value:"bar-chart-horizontal",icon:"bar-chart-horizontal",label:"Bar chart-horizontal"},{value:"line-chart",icon:"line-chart",label:"Line chart"},{value:"pie-chart",icon:"pie-chart",label:"Pie chart"},{value:"gauge-chart",icon:"gauge-chart",label:"Gauge chart"},{value:"kpi",icon:"kpi",label:"Kpi"},{value:"scatter-chart",icon:"scatter-chart",label:"Scatter chart"},{value:"map",icon:"map",label:"Map"},{value:"table",icon:"table",label:"Table"},{value:"pivot-table",icon:"pivot-table",label:"Pivot table"},{value:"treemap",icon:"treemap",label:"Treemap"},{value:"combo-chart",icon:"combo-chart",label:"Combo chart"},{value:"boxplot",icon:"boxplot",label:"Boxplot"},{value:"distributionplot",icon:"distributionplot",label:"Distributionplot"},{value:"histogram",icon:"histogram",label:"Histogram"},{value:"direct-discovery",icon:"direct-discovery",label:"Direct discovery"},{value:"data-model",icon:"data-model",label:"Data model"},{value:"script",icon:"script",label:"Script"},{value:"script-ok",icon:"script-ok",label:"Script ok"},{value:"debug",icon:"debug",label:"Debug"},{value:"auto-layout",icon:"auto-layout",label:"Auto layout"}],R=[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],B=[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}];function O(e){var t,n,r,o,a,l,c=e.translator,p=e.automationsEnabled;return{definition:{type:"items",component:"accordion",items:{actions:{type:"items",translation:"Object.ActionButton.ActionsAndNavigation",grouped:!0,items:{actions:{type:"array",translation:"Object.ActionButton.Actions",ref:"actions",itemTitleRef:function(e){if(e.actionLabel)return e.actionLabel;var t=e.actionType?"Object.ActionButton.InvalidAction":"Object.ActionButton.NewAction",n=s.find((function(t){return e.actionType===t.value}));return c.get(n&&n.translation||t)},allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"Object.ActionButton.AddAction",items:{label:{component:"string",ref:"actionLabel",translation:"Common.Label",expression:"optional",defaultValue:""},actionType:{type:"string",ref:"actionType",component:"expression-with-dropdown",translation:"Object.ActionButton.Action",defaultValue:"",options:s.filter((function(e){return"executeAutomation"!==e.value||p})),dropdownOnly:!0},bookmark:{type:"string",ref:"bookmark",component:"expression-with-dropdown",translation:"ExpressionEditor.SetExpresions.Bookmark",defaultValue:"",dropdownOnly:!0,options:(l=i(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.app.getBookmarkList();case 2:return r=e.sent,e.abrupt("return",r.map((function(e){return{label:e.qData.title,value:e.qInfo.qId}})));case 4:case"end":return e.stop()}}),e)}))),function(e,t){return l.apply(this,arguments)}),show:function(e){return u(e,"bookmark")}},field:{type:"string",ref:"field",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:(a=i(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.app.getFieldList();case 2:return r=e.sent,e.abrupt("return",r.map((function(e){return{label:e.qName,value:e.qName}})));case 4:case"end":return e.stop()}}),e)}))),function(e,t){return a.apply(this,arguments)}),show:function(e){return u(e,"field")}},variable:{type:"string",ref:"variable",component:"expression-with-dropdown",translation:"Common.Variable",defaultValue:"",expressionType:"StringExpression",options:(o=i(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.app.getVariableList();case 2:return r=e.sent,e.abrupt("return",r.filter((function(e){return!e.qIsReserved||e.qIsReserved&&t.showSystemVariables})).map((function(e){return{label:e.qName,value:e.qName}})));case 4:case"end":return e.stop()}}),e)}))),function(e,t){return o.apply(this,arguments)}),show:function(e){return u(e,"variable")}},showSystemVariables:{type:"boolean",ref:"showSystemVariables",translation:"ExpressionEditor.SystemVariables",defaultValue:!1,show:function(e){return u(e,"variable")}},softLock:{type:"boolean",ref:"softLock",translation:"Object.ActionButton.Softlock",defaultValue:!1,show:function(e){return u(e,"softLock")}},value:{type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(e){return u(e,"value")}},partial:{type:"boolean",ref:"partial",translation:"Object.ActionButton.Partial",defaultValue:!1,show:function(e){return u(e,"partial")}},automation:{type:"string",component:"dropdown",translation:"Object.ActionButton.Automation",ref:"automation",options:(r=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("../api/v1/items?resourceType=automation").then((function(e){return e.json()}));case 2:return t=e.sent,e.abrupt("return",t.data.map((function(e){return{value:e.id,label:e.name}})));case 4:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)}),show:function(e){return u(e,"automation")}},automationPostData:{type:"boolean",ref:"automationPostData",translation:"Object.ActionButton.Automation.SendSelections",show:function(e){return u(e,"automation")},defaultValue:!1}}},navigation:{translation:"Object.ActionButton.Navigation",type:"items",items:{action:{ref:"navigation.action",translation:"Object.ActionButton.Navigation",component:"expression-with-dropdown",defaultValue:null,options:x,dropdownOnly:!0},sheetId:{type:"string",ref:"navigation.sheet",translation:"properties.sheet",expression:"optional",show:function(e){return S(e,"sheetId")}},sheet:{type:"string",ref:"navigation.sheet",translation:"properties.sheet",component:"expression-with-dropdown",expressionType:"StringExpression",show:function(e){return S(e,"sheet")},options:(n=i(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.app.getSheetList();case 2:return r=e.sent,e.abrupt("return",r.map((function(e){return{value:e.qInfo.qId,label:e.qMeta.title,showCondition:e.qData.showCondition}})));case 4:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},story:{type:"string",ref:"navigation.story",translation:"properties.story",component:"expression-with-dropdown",expressionType:"StringExpression",show:function(e){return S(e,"story")},options:(t=i(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.app.getStoryList();case 2:return r=e.sent,e.abrupt("return",r.map((function(e){return{value:e.qInfo.qId,label:e.qMeta.title}})));case 4:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})},websiteUrl:{type:"string",expression:"optional",ref:"navigation.websiteUrl",translation:"properties.website",show:function(e){return S(e,"websiteUrl")}},sameWindow:{type:"boolean",ref:"navigation.sameWindow",translation:"properties.sameWindow",show:function(e){return S(e,"websiteUrl")},defaultValue:!1}}}}},enableCondition:{type:"items",translation:"properties.enableConditionSection",items:{useCondition:{type:"boolean",component:"switch",translation:"properties.enableToggle",ref:"useEnabledCondition",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},condition:{ref:"enabledCondition",translation:"properties.enableCondition",type:"integer",expression:"optional",show:function(e){return e.useEnabledCondition}}}},settings:{component:"expandable-items",translation:"Common.Appearance",uses:"settings",items:{general:{type:"items",translation:"properties.general",items:{showTitles:{},details:{show:!1},label:{component:"string",ref:"style.label",translation:"Common.Label",expression:"optional"}}},font:{grouped:!0,type:"items",translation:"properties.font",items:{sizeAndColor:{type:"items",items:{fontSize:{component:"slider",type:"number",ref:"style.font.size",translation:"properties.fontSize",min:.2,max:1,step:.01},useFontColorExpression:{ref:"style.font.useColorExpression",type:"boolean",translation:"properties.fontColor",component:"dropdown",options:R},colorPicker:{component:"color-picker",type:"object",ref:"style.font.color",translation:"properties.color",dualOutput:!0,show:function(e){return!A.getValue(e,"style.font.useColorExpression")}},colorExpression:{component:"string",type:"string",ref:"style.font.colorExpression",translation:"Common.Expression",expression:"optional",show:function(e){return A.getValue(e,"style.font.useColorExpression")}}}},stylingAndAlign:{type:"items",items:{fontStyling:{component:"item-selection-list",type:"string",ref:"style.font.style",translation:"properties.textStyle",horizontal:!0,multipleSelect:!0,items:[{component:"icon-item",icon:"bold",value:"bold",translation:"Common.bold",labelPlacement:"bottom"},{component:"icon-item",icon:"italic",value:"italic",translation:"Common.italic",labelPlacement:"bottom"},{component:"icon-item",icon:"underline",value:"underline",translation:"Common.underline",labelPlacement:"bottom"}]},textAlign:{component:"item-selection-list",type:"string",ref:"style.font.align",translation:"properties.Alignment",horizontal:!0,items:[{component:"icon-item",icon:"align_left",value:"left",translation:"properties.dock.left",labelPlacement:"bottom"},{component:"icon-item",icon:"align_center",value:"center",translation:"Common.Center",labelPlacement:"bottom"},{component:"icon-item",icon:"align_right",value:"right",translation:"properties.dock.right",labelPlacement:"bottom"}]}}}}},background:{grouped:!0,type:"items",translation:"properties.background",items:{backgroundColor:{type:"items",items:{useColorExpression:{ref:"style.background.useColorExpression",type:"boolean",translation:"AppDetails.SheetBackgroundColor",component:"dropdown",options:R},colorPicker:{component:"color-picker",type:"object",ref:"style.background.color",translation:"properties.color",dualOutput:!0,show:function(e){return!A.getValue(e,"style.background.useColorExpression")}},colorExpression:{component:"string",type:"string",ref:"style.background.colorExpression",translation:"Common.Expression",expression:"optional",show:function(e){return A.getValue(e,"style.background.useColorExpression")}}}},backgroundImage:{type:"items",items:{useBackgroundImage:{ref:"style.background.useImage",type:"boolean",translation:"properties.backgroundImage.use",component:"switch",options:B},backgroundUrl:{ref:"style.background.url.qStaticContentUrlDef.qUrl",layoutRef:"style.background.url.qStaticContentUrl.qUrl",schemaIgnore:!0,translation:"Common.Image",tooltip:{select:"properties.media.select",remove:"properties.media.removeBackground"},type:"string",component:"media",show:function(e){return A.getValue(e,"style.background.useImage")}},backgroundSize:{ref:"style.background.size",translation:"properties.backgroundImage.size",type:"string",component:"dropdown",options:[{value:"auto",translation:"properties.backgroundImage.originalSize"},{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"alwaysFill",translation:"properties.backgroundImage.sizeAlwaysFill"}],show:function(e){return A.getValue(e,"style.background.useImage")&&!!A.getValue(e,"style.background.url.qStaticContentUrlDef.qUrl")}},backgroundPosition:{ref:"style.background.position",translation:"Common.Position",type:"string",component:"align-matrix",show:function(e){return A.getValue(e,"style.background.useImage")&&A.getValue(e,"style.background.url.qStaticContentUrlDef.qUrl")&&"fill"!==A.getValue(e,"style.background.size")},currentSize:function(e){return A.getValue(e,"style.background.size")}}}}}},border:{type:"items",grouped:!0,translation:"properties.border",items:{borderSettings:{type:"items",items:{useBorder:{ref:"style.border.useBorder",type:"boolean",translation:"properties.border.use",component:"switch",options:B},borderRadius:{component:"slider",show:function(e){return A.getValue(e,"style.border.useBorder")},translation:"properties.border.radius",type:"number",ref:"style.border.radius",min:0,max:1,step:.01},borderWidth:{component:"slider",show:function(e){return A.getValue(e,"style.border.useBorder")},type:"number",ref:"style.border.width",translation:"properties.border.width",min:0,max:.5,step:.005},colorDropdown:{type:"string",show:function(e){return A.getValue(e,"style.border.useBorder")},component:"dropdown",translation:"properties.border.color",ref:"style.border.useColorExpression",options:R},colorPicker:{component:"color-picker",type:"object",ref:"style.border.color",translation:"properties.color",dualOutput:!0,show:function(e){return A.getValue(e,"style.border.useBorder")&&!A.getValue(e,"style.border.useColorExpression")}},colorExpression:{component:"string",type:"string",ref:"style.border.colorExpression",translation:"Common.Expression",show:function(e){return A.getValue(e,"style.border.useBorder")&&A.getValue(e,"style.border.useColorExpression")},expression:"optional"}}}}},icon:{type:"items",grouped:!0,translation:"properties.icon",items:{iconSettings:{type:"items",items:{useIcon:{ref:"style.icon.useIcon",type:"boolean",translation:"properties.icon.use",component:"switch",options:B},iconType:{ref:"style.icon.iconType",component:"expression-with-dropdown",translation:"properties.icon",defaultValue:"",options:q,expressionType:"StringExpression",show:function(e){return A.getValue(e,"style.icon.useIcon")}},iconPosition:{ref:"style.icon.position",component:"dropdown",translation:"Common.Position",options:[{translation:"properties.dock.left",value:"left"},{translation:"properties.dock.right",value:"right"}],show:function(e){return A.getValue(e,"style.icon.useIcon")}}}}}}}}}},importProperties:I,exportProperties:null,support:{export:!1,exportData:!1,snapshot:!1,viewData:!1,quickMobile:!0}}}var T={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},j=function(e){var t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return"rgb(".concat(t[1],",").concat(t[2],",").concat(t[3],")");if(t=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e)){var n=Math.round(t[1]/255*100)/100;return"rgba(".concat(t[2],",").concat(t[3],",").concat(t[4],",").concat(n,")")}if(t=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(e))return e;var r=e&&T[e.toLowerCase()];if(r){var o=void 0!==r.a?r.a:1;return"rgba(".concat(r.r,",").concat(r.g,",").concat(r.b,",").concat(o,")")}return"none"},E=function(e){var t,n,r,o,a=.15;if(e.length>7){var i=-1!==(t=e.split(","))[0].indexOf("a");return n=i?parseInt(t[0].slice(5),10):parseInt(t[0].slice(4),10),o=parseInt(t[1],10),r=parseInt(t[2],10),"".concat((i?"rgba(":"rgb(")+(Math.round((0-n)*a)+n),",").concat(Math.round((0-o)*a)+o,",").concat(Math.round((0-r)*a)+r).concat(i?",".concat(t[3]):")")}return n=(t=parseInt(e.slice(1),16))>>16,o=t>>8&255,r=255&t,"#".concat((16777216+65536*(Math.round((0-n)*a)+n)+256*(Math.round((0-o)*a)+o)+(Math.round((0-r)*a)+r)).toString(16).slice(1))},L=function(e){e.replace(/^\.\.\//i,"/"),e=(e=e.replace(/"/g,'\\"')).replace(/'/g,"\\'");var t=document.createElement("a");return t.href="../",e=t.href+("/"===e[0]?e.substr(1):e)},z={auto:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",fill:"100% 100%",alwaysFill:"cover"},V={topLeft:"0% 0%",centerLeft:"50% 0%",bottomLeft:"100% 0%",topCenter:"0% 50%",centerCenter:"50% 50%",bottomCenter:"100% 50%",topRight:"0% 100%",centerRight:"50% 100%",bottomRight:"100% 100%"},N=function(e,t){return"".concat(e,": ").concat(t,";")},P=function(e,t,n){var r,o=e.useColorExpression,a=e.colorExpression,i=e.color;return o?r=j(a):"string"==typeof i?r=i:i&&(r=n.getColorPickerColor(i)),r&&"none"!==r?r:t},F=function(e){var t=e.style,n=e.disabled,r=e.theme,o=e.element,a="width: 100%;height: 100%;transition: transform .1s ease-in-out;position: absolute;",i=t.font,l=t.background,c=t.border,s=r.getDataColorSpecials().primary;a+=n?N("opacity",.4):N("cursor","pointer"),a+=N("color",P(i,"#ffffff",r)),i.style.bold&&(a+=N("font-weight","bold")),i.style.italic&&(a+=N("font-style","italic"));var u=P(l,s,r);if(a+=N("background-color",u),l.useImage&&l.url.qStaticContentUrl){var p=l.url.qStaticContentUrl.qUrl;p&&(p=L(p),a+=N("background-image","url('".concat(p,"')")),a+=N("background-size",z[l.size]),a+=N("background-position",V[l.position]),a+=N("background-repeat","no-repeat"))}if(c.useBorder){var b=Math.min(o.offsetWidth,o.offsetHeight),d=P(c,E(u),r),g=c.width*b/2;a+=N("border","".concat(g,"px solid ").concat(d)),a+=N("border-radius","".concat(c.radius*b/2,"px"))}else a+="border: none;";return a},D=function(e){var t=e.button,n=e.theme,r=e.style,o=e.isSense,a=r.icon,i=r.font,l=r.label,c=document.createElement("text");c.style.whiteSpace="nowrap",c.style.fontFamily=n.getStyle("","","fontFamily");var s=document.createElement("span");s.textContent=l,s.style.whiteSpace="nowrap",s.style.textOverflow="ellipsis",s.style.overflow="visible",i.style.underline&&(s.style.textDecoration="underline"),c.appendChild(s);var u=o&&a.useIcon&&""!==a.iconType;if(u){var p=document.createElement("span"),b=q.find((function(e){return e.label===a.iconType||e.value===a.iconType}));p.style.textDecoration="none",p.style.fontSize="inherit",p.setAttribute("class","lui-icon lui-icon--".concat(b?b.value:"")),"left"===a.position?c.insertBefore(p,s):c.appendChild(p)}t.innerHTML="",t.appendChild(c),c.style.fontSize="".concat(t.clientHeight,"px");var d=t.clientHeight/c.offsetHeight*t.clientHeight;c.style.fontSize="".concat(d,"px"),c.offsetWidth>t.clientWidth&&(d*=t.clientWidth/c.offsetWidth),i.style.italic?u?(c.style.fontSize="".concat(Math.max(d*i.size*.84,8),"px"),c.children[0].style.marginRight="".concat(.04*c.offsetWidth,"px"),c.children[1].style.marginRight="".concat(.04*c.offsetWidth,"px")):(c.style.fontSize="".concat(Math.max(d*i.size*.9,8),"px"),c.children[0].style.marginRight="".concat(.02*c.offsetWidth,"px")):u?(c.style.fontSize="".concat(Math.max(d*i.size*.88,8),"px"),c.children[0].style.marginRight="".concat(.04*c.offsetWidth,"px")):c.style.fontSize="".concat(Math.max(d*i.size*.92,8),"px"),"8px"===c.style.fontSize&&c.children.forEach((function(e){e.style.overflow="hidden"})),c.style.margin="0 3%",c.style.display="flex",c.style.alignItems="center",c.style.justifyContent="left"===i.align?"flex-start":"right"===i.align?"flex-end":"center"},M=function(){var e=i(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:if(!(n<t.length)){e.next=7;break}return e.next=4,t[n]();case 4:n++,e.next=1;break;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return function(r){var a=r.sense,l=r.translator,c=r.flags.isEnabled,u=a&&a.navigation,p=c("ACTION_BUTTON_AUTOMATIONS");return t.style.label=a?l.get("Object.ActionButton"):"Button",{qae:{properties:t,data:n},component:function(){var t=e.useElement(),n=e.useTheme();e.useMemo((function(){var e=document.createElement("button");e.appendChild(document.createElement("text")),t.appendChild(e)}),[]);var r=e.useStaleLayout(),a=e.useApp(),l=e.useConstraints(),c=function(e){var t=e.layout,n=e.theme,r=e.app,a=e.constraints,l=e.senseNavigation,c=e.element,u=!!l,p=c.firstElementChild,b=t.style,d=t.qStateName,g=t.useEnabledCondition&&0===t.enabledCondition,f=!g&&!a.active,m=F({style:b,disabled:g,theme:n,element:c});p.setAttribute("style",m),D({button:p,theme:n,style:b,isSense:u}),p.onclick=i(regeneratorRuntime.mark((function e(){var n,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!f){e.next=14;break}return n=[],t.actions.forEach((function(e){var t=s.find((function(t){return t.value===e.actionType}));t&&n.push(t.getActionCall(o({app:r,qStateName:d},e)))})),p.setAttribute("disabled",!0),e.next=7,M(n);case 7:if(!l||l.getCurrentStoryId()){e.next=13;break}if(a=t.navigation,i=a&&x.find((function(e){return e.value===a.action})),!l||!i||"function"!=typeof i.navigationCall){e.next=13;break}return e.next=13,i.navigationCall(o({app:r,senseNavigation:l},a));case 13:p.removeAttribute("disabled");case 14:case"end":return e.stop()}}),e)})));var v=function(){if(f){var e=p.offsetWidth,t=p.offsetHeight;p.style.transform=t>e?"scale(".concat(.98,", ",1-e/t*.02,")"):"scale(".concat(1-t/e*.02,", ",.98,")")}},h=function(){var e=p.style.transform;f&&""!==e&&"scale(1)"!==e&&(p.style.transform="scale(1)")};return p.onmousedown=function(e){0===e.button&&v()},p.onmouseup=h,p.onmouseleave=h,p.ontouchstart=v,p.ontouchend=h,p.ontouchcancel=h,function(){p.onclick=void 0,p.onmousedown=void 0,p.onmouseup=void 0,p.onmouseleave=void 0,p.ontouchstart=void 0,p.ontouchend=void 0,p.ontouchcancel=void 0}}({element:t,layout:r,constraints:l,theme:n,app:a,senseNavigation:u,automationsEnabled:p});e.useEffect((function(){return function(){c()}}),[t]),e.useImperativeHandle((function(){return{focus:function(){t.firstElementChild.onclick()}}}),[t])},ext:O({translator:l,automationsEnabled:p})}}}));
8
+ //# sourceMappingURL=sn-action-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sn-action-button.js","sources":["../src/object-properties.js","../src/data.js","../src/utils/actions.js","../src/utils/util.js","../src/utils/navigation-actions.js","../src/utils/property-resolver.js","../src/utils/conversion.js","../src/utils/lui-icons.js","../src/ext.js","../src/utils/css-colors.js","../src/utils/color-utils.js","../src/utils/url-utils.js","../src/utils/style-formatter.js","../src/components/action-button.js","../src/index.js"],"sourcesContent":["const properties = {\n /**\n * @type {boolean}\n */\n showTitles: false,\n /**\n * @type {string}\n */\n title: '',\n /**\n * @type {string}\n */\n subtitle: '',\n /**\n * @type {string}\n */\n footnote: '',\n /**\n * @type {boolean}\n */\n useEnabledCondition: false,\n /**\n * @type {number}\n */\n enabledCondition: 1,\n /**\n * @type {object}\n */\n navigation: {\n action: 'none',\n },\n /**\n * @type {object}\n */\n style: {\n /**\n * @type {string}\n */\n label: 'Button',\n /**\n * @type {object}\n */\n font: {\n /**\n * @type {number}\n */\n size: 0.5,\n /**\n * @type {boolean}\n */\n useColorExpression: false,\n /**\n * @type {object}\n */\n color: {\n index: -1,\n color: null,\n },\n /**\n * @type {string}\n */\n colorExpression: '',\n /**\n * @type {object}\n */\n style: {\n bold: true,\n italic: false,\n underline: false,\n },\n /**\n * @type {string}\n */\n align: 'center',\n },\n /**\n * @type {object}\n */\n background: {\n /**\n * @type {boolean}\n */\n useColorExpression: false,\n /**\n * @type {object}\n */\n color: {\n index: -1,\n color: null,\n },\n /**\n * @type {string}\n */\n colorExpression: '',\n /**\n * @type {boolean}\n */\n useImage: false,\n /**\n * @type {object}\n */\n url: {\n /**\n * @type {object}\n */\n qStaticContentUrlDef: {\n /**\n * @type {string}\n */\n qUrl: '',\n },\n },\n /**\n * @type {string}\n */\n size: 'auto',\n /**\n * @type {string}\n */\n position: 'centerCenter',\n },\n /**\n * @type {object}\n */\n border: {\n /**\n * @type {boolean}\n */\n useBorder: false,\n /**\n * @type {number}\n */\n radius: 0,\n /**\n * @type {number}\n */\n width: 0,\n /**\n * @type {boolean}\n */\n useColorExpression: false,\n /**\n * @type {object}\n */\n color: {\n index: -1,\n color: null,\n },\n /**\n * @type {string}\n */\n colorExpression: '',\n },\n /**\n * @type {object}\n */\n icon: {\n /**\n * @type {boolean}\n */\n useIcon: false,\n /**\n * @type {string}\n */\n iconType: '',\n /**\n * @type {string}\n */\n position: 'left',\n },\n },\n /**\n * @type {array}\n */\n actions: [],\n};\n\nexport default properties;\n","export default {\n targets: [],\n};\n","export const getValueList = async (app, values, isDate) => {\n let valuesArray = values.split(';');\n if (isDate) {\n let dateExpression = '';\n valuesArray.forEach((date) => {\n dateExpression += `Num('${date}')&';'&`;\n });\n const convertedDates = await app.evaluate(dateExpression.slice(0, -5));\n valuesArray = convertedDates.split(';');\n }\n return valuesArray.map((value) =>\n (Number.isNaN(+value) ? { qText: value } : { qIsNumeric: true, qNumber: Number(value) }));\n};\n\nconst actions = [\n {\n value: 'applyBookmark',\n translation: 'Object.ActionButton.ApplyBookmark',\n group: 'bookmark',\n getActionCall:\n ({ app, bookmark }) =>\n async () => {\n const bookMarks = await app.getBookmarkList();\n const findBm = bookMarks.find((bm) => bm.qData.title === bookmark);\n bookmark && (await app.applyBookmark((findBm && findBm.qInfo && findBm.qInfo.qId) || bookmark));\n },\n requiredInput: ['bookmark'],\n },\n {\n value: 'back',\n translation: 'Object.ActionButton.MoveBackward',\n group: 'selection',\n getActionCall:\n ({ app }) =>\n async () => {\n await app.back();\n },\n requiredInput: [],\n },\n {\n value: 'forward',\n translation: 'Object.ActionButton.MoveForward',\n group: 'selection',\n getActionCall:\n ({ app }) =>\n async () => {\n await app.forward();\n },\n requiredInput: [],\n },\n {\n value: 'clearAll',\n translation: 'Object.ActionButton.ClearAll',\n group: 'selection',\n getActionCall:\n ({ app, softLock }) =>\n async () => {\n await app.clearAll(softLock);\n },\n requiredInput: ['softLock'],\n },\n {\n value: 'clearAllButThis',\n translation: 'Object.ActionButton.ClearAllButThis',\n group: 'selection',\n getActionCall:\n ({ app, qStateName, field, softLock }) =>\n async () => {\n if (field) {\n const fieldObj = await app.getField(field, qStateName);\n await fieldObj.clearAllButThis(softLock);\n }\n },\n requiredInput: ['field', 'softLock'],\n },\n {\n value: 'clearField',\n translation: 'Object.ActionButton.ClearSelectionInField',\n group: 'selection',\n getActionCall:\n ({ app, qStateName, field }) =>\n async () => {\n if (field) {\n const fieldObj = await app.getField(field, qStateName);\n await fieldObj.clear();\n }\n },\n requiredInput: ['field'],\n },\n {\n value: 'selectAll',\n translation: 'Object.ActionButton.SelectAllInField',\n group: 'selection',\n getActionCall:\n ({ app, qStateName, field, softLock }) =>\n async () => {\n if (field) {\n const fieldObj = await app.getField(field, qStateName);\n await fieldObj.selectAll(softLock);\n }\n },\n requiredInput: ['field', 'softLock'],\n },\n {\n value: 'selectValues',\n translation: 'Object.ActionButton.SelectValuesInField',\n group: 'selection',\n getActionCall:\n ({ app, qStateName, field, value, softLock }) =>\n async () => {\n if (field && value) {\n const fieldObj = await app.getField(field, qStateName);\n const fieldInfo = await app.getFieldDescription(field);\n const valueList = await getValueList(app, value, fieldInfo.qTags.includes('$date'));\n await fieldObj.selectValues(valueList, false, softLock);\n }\n },\n requiredInput: ['field', 'value', 'softLock'],\n },\n {\n value: 'selectMatchingValues',\n translation: 'Object.ActionButton.SelectMatchingValues',\n group: 'selection',\n getActionCall:\n ({ app, qStateName, field, value, softLock }) =>\n async () => {\n if (field && value) {\n const fieldObj = await app.getField(field, qStateName);\n await fieldObj.select(value, false, softLock);\n }\n },\n requiredInput: ['field', 'value', 'softLock'],\n },\n {\n value: 'selectAlternative',\n translation: 'Object.ActionButton.SelectAlternatives',\n group: 'selection',\n getActionCall:\n ({ app, qStateName, field, softLock }) =>\n async () => {\n if (field) {\n const fieldObj = await app.getField(field, qStateName);\n await fieldObj.selectAlternative(softLock);\n }\n },\n requiredInput: ['field', 'softLock'],\n },\n {\n value: 'selectExcluded',\n translation: 'Object.ActionButton.SelectExcluded',\n group: 'selection',\n getActionCall:\n ({ app, qStateName, field, softLock }) =>\n async () => {\n if (field) {\n const fieldObj = await app.getField(field, qStateName);\n await fieldObj.selectExcluded(softLock);\n }\n },\n requiredInput: ['field', 'softLock'],\n },\n {\n value: 'selectPossible',\n translation: 'Object.ActionButton.SelectPossibleValues',\n group: 'selection',\n getActionCall:\n ({ app, qStateName, field, softLock }) =>\n async () => {\n if (field) {\n const fieldObj = await app.getField(field, qStateName);\n await fieldObj.selectPossible(softLock);\n }\n },\n requiredInput: ['field', 'softLock'],\n },\n {\n value: 'toggleSelect',\n translation: 'Object.ActionButton.ToggleFieldSelection',\n group: 'selection',\n getActionCall:\n ({ app, qStateName, field, value, softLock }) =>\n async () => {\n if (field && value) {\n const fieldObj = await app.getField(field, qStateName);\n await fieldObj.toggleSelect(value, softLock);\n }\n },\n requiredInput: ['field', 'value', 'softLock'],\n },\n {\n value: 'lockAll',\n translation: 'Object.ActionButton.LockAllSelections',\n group: 'selection',\n getActionCall:\n ({ app }) =>\n async () => {\n await app.lockAll();\n },\n requiredInput: [],\n },\n {\n value: 'lockField',\n translation: 'Object.ActionButton.LockField',\n group: 'selection',\n getActionCall:\n ({ app, qStateName, field }) =>\n async () => {\n if (field) {\n const fieldObj = await app.getField(field, qStateName);\n await fieldObj.lock();\n }\n },\n requiredInput: ['field'],\n },\n {\n value: 'unlockAll',\n translation: 'Object.ActionButton.UnlockAllSelections',\n group: 'selection',\n getActionCall:\n ({ app }) =>\n async () => {\n await app.unlockAll();\n },\n requiredInput: [],\n },\n {\n value: 'unlockField',\n translation: 'Object.ActionButton.UnlockAField',\n group: 'selection',\n getActionCall:\n ({ app, qStateName, field }) =>\n async () => {\n if (field) {\n const fieldObj = await app.getField(field, qStateName);\n await fieldObj.unlock();\n }\n },\n requiredInput: ['field'],\n },\n {\n value: 'setVariable',\n translation: 'Object.ActionButton.SetVariable',\n group: 'variables',\n getActionCall:\n ({ app, variable, value }) =>\n async () => {\n if (variable && value) {\n try {\n const variableObj = await app.getVariableByName(variable);\n await variableObj.setStringValue(value);\n } catch (e) {\n // no-op\n }\n }\n },\n requiredInput: ['variable', 'value'],\n },\n {\n value: 'doReload',\n translation: 'Object.ActionButton.DoReload',\n group: 'reload',\n getActionCall:\n ({ app, partial }) =>\n async () => {\n const e = await app.doReload(0, !!partial, false);\n if (e) {\n await app.doSave();\n }\n },\n requiredInput: ['partial'],\n },\n {\n /** *************************************\n * Execute Automation contacts internal urls to obtain automation\n * information and execute the automation selected in the property panel in\n * edit mode.\n *\n * ARGS\n * app - Reference to current app inherited from index.js\n * automation - the item id of the automation to contact the items api\n * automationPostData - boolean value. If true, creates a bookmark of the\n * current selections and sends the resulting bookmark id as an input\n * parameter to the selected automation.\n */\n\n translation: 'Object.ActionButton.ExecuteAutomation',\n value: 'executeAutomation',\n getActionCall:\n ({ app, automation, automationPostData }) =>\n async () => {\n if (automation !== undefined) {\n try {\n automation = encodeURIComponent(automation);\n const itemInfo = await fetch(`../api/v1/items/${automation}`).then((response) => response.json());\n const autoInfo = await fetch(`../api/v1/automations/${itemInfo.resourceId}`).then((response) =>\n response.json());\n let executePath = `../api/v1/automations/${autoInfo.guid}/actions/execute?X-Execution-Token=${autoInfo.execution_token}`;\n if (automationPostData && autoInfo.hasinputs) {\n const inputBlock = await fetch(`../api/v1/automations/${itemInfo.resourceId}/blocks`)\n .then((response) => response.json())\n .then((blocks) => {\n let item;\n for (let i = 0; i < blocks.blocks.length; i++) {\n if (blocks.blocks[i].displayName === 'Inputs') {\n item = blocks.blocks[i];\n break;\n }\n }\n return item.form[0].label.toLowerCase();\n });\n const newDate = new Date();\n const bmkProp = {\n qProp: {\n qInfo: {\n qId: `automation_${app.id}_${automation}_${newDate.getTime()}`,\n qType: 'bookmark',\n },\n qMetaDef: {\n title: `Generated automation bookmark on ${newDate.toISOString()}`,\n description: 'Generated to provide target automation with bookmark to get current selection state',\n _createdBy: 'sn-action-button',\n _createdFor: 'automation',\n _createdOn: `${newDate.toISOString()}`,\n _id: `automation_${encodeURIComponent(app.id)}_${automation}_${newDate.getTime()}`,\n },\n },\n };\n const bmk = await app\n .createBookmark(bmkProp)\n .then((bookmark) => bookmark.getLayout())\n .then((layout) => layout.qInfo.qId);\n executePath = `${executePath}&${inputBlock}=${bmk}`;\n }\n // execute the automation\n await fetch(executePath).then((response) => response.json());\n } catch (e) {\n // no-op\n }\n }\n },\n requiredInput: ['automation'],\n },\n];\n\nexport function checkShowAction(data, field) {\n const act = actions.find((action) => data.actionType === action.value);\n return act && act.requiredInput && act.requiredInput.indexOf(field) !== -1;\n}\n\nexport default actions;\n","function evaluateCondition(condition) {\n // case condition is commented\n if (condition && condition.length >= 2 && condition[0] === '/' && condition[1] === '/') {\n return true;\n }\n // convert to numeric with -1 (true) as the default\n const condVal = condition ? +condition : -1;\n // handle the string 'true' as true and all other strings as false\n if (Number.isNaN(+condVal)) {\n return condition.toLowerCase() === 'true';\n }\n return condVal !== 0;\n}\n\nexport default { evaluateCondition };\n","import Util from './util';\n\nconst inIframe = () => {\n try {\n return window.self !== window.top;\n } catch (error) {\n return true;\n }\n};\n\nexport const getOrderedSheets = async (app) => {\n const sheets = await app.getSheetList();\n return sheets.sort((current, next) => current.qData.rank - next.qData.rank);\n};\n\nexport const getOrderedVisibleSheet = async (app) => {\n const sheets = await app.getSheetList();\n const visibleSheets = sheets.filter((sheet) => Util.evaluateCondition(sheet.qData.showCondition));\n return visibleSheets.sort((current, next) => current.qData.rank - next.qData.rank);\n};\n\nconst navigationActions = [\n {\n translation: 'Object.ActionButton.NoNavigation',\n value: 'none',\n },\n {\n translation: 'Object.ActionButton.GoToNextSheet',\n value: 'nextSheet',\n navigationCall: async ({ senseNavigation }) => {\n await senseNavigation.nextSheet();\n },\n requiredInput: [],\n },\n {\n translation: 'Object.ActionButton.GoToPreviousSheet',\n value: 'prevSheet',\n navigationCall: async ({ senseNavigation }) => {\n await senseNavigation.prevSheet();\n },\n requiredInput: [],\n },\n {\n translation: 'Object.ActionButton.GoToLastSheet',\n value: 'lastSheet',\n navigationCall: async ({ app, senseNavigation }) => {\n const sheets = await getOrderedVisibleSheet(app);\n await senseNavigation.goToSheet(sheets[sheets.length - 1].qInfo.qId);\n },\n requiredInput: [],\n },\n {\n translation: 'Object.ActionButton.GoToFirstSheet',\n value: 'firstSheet',\n navigationCall: async ({ app, senseNavigation }) => {\n const sheets = await getOrderedVisibleSheet(app);\n await senseNavigation.goToSheet(sheets[0].qInfo.qId);\n },\n requiredInput: [],\n },\n\n {\n translation: 'Object.ActionButton.GoToASheet',\n value: 'goToSheet',\n navigationCall: async ({ senseNavigation, sheet }) => {\n sheet && (await senseNavigation.goToSheet(sheet));\n },\n // TODO replace by searchable dropdown\n requiredInput: ['sheet'],\n },\n {\n translation: 'Object.ActionButton.GoToSheetById',\n value: 'goToSheetById',\n navigationCall: async ({ senseNavigation, sheet }) => {\n sheet && (await senseNavigation.goToSheet(sheet));\n },\n // TODO replace by searchable dropdown\n requiredInput: ['sheetId'],\n },\n {\n translation: 'Object.ActionButton.GoToStory',\n value: 'goToStory',\n navigationCall: async ({ senseNavigation, story }) => {\n story && (await senseNavigation.goToStory(story));\n },\n requiredInput: ['story'],\n },\n {\n translation: 'Object.ActionButton.OpenWebsiteEmail',\n value: 'openWebsite',\n navigationCall: async ({ websiteUrl, sameWindow }) => {\n try {\n if (websiteUrl) {\n const url = websiteUrl.match(/^(https?:\\/\\/|mailto:)/) ? websiteUrl : `http://${websiteUrl}`;\n let target = '';\n if (sameWindow) {\n target = inIframe() ? '_parent' : '_self';\n }\n window.open(url, target);\n }\n } catch (error) {\n // no-op\n }\n },\n requiredInput: ['websiteUrl'],\n },\n];\n\nexport const checkShowNavigation = (data, field) => {\n const nav = navigationActions.find((navigation) => data.navigation.action === navigation.value);\n return nav && nav.requiredInput && nav.requiredInput.indexOf(field) !== -1;\n};\n\nexport default navigationActions;\n","function getValue(dataContainer, reference, defaultValue) {\n const steps = reference.split('.');\n let i;\n if (dataContainer === undefined) {\n return defaultValue;\n }\n for (i = 0; i < steps.length; ++i) {\n if (typeof dataContainer[steps[i]] === 'undefined') {\n return defaultValue;\n }\n dataContainer = dataContainer[steps[i]];\n }\n\n return dataContainer;\n}\n\nexport default {\n getValue,\n};\n","export function convertAction(action, newProperties) {\n const newAction = {\n actionType: action.actionType,\n bookmark: action.selectedBookmark,\n // Will need to convert field selected by expression\n field: action.selectedField,\n // Need to convert expression for variable\n variable: action.variable,\n value: action.value,\n softLock: action.softLock,\n cId: action.cId,\n };\n switch (action.actionType) {\n case 'clearOther':\n newAction.actionType = 'clearAllButThis';\n break;\n case 'unlockAllAndClearAll':\n newAction.actionType = 'clearAll';\n newAction.softLock = true;\n break;\n case 'selectField':\n newAction.actionType = 'selectMatchingValues';\n break;\n case 'selectAndLockField':\n newProperties.actions.push({ ...newAction, cId: null, actionType: 'selectMatchingValues' });\n newAction.actionType = 'lockField';\n break;\n default:\n break;\n }\n return newProperties.actions.push(newAction);\n}\n\nexport function convertNavigation(oldType) {\n switch (oldType) {\n case 'gotoSheet':\n return 'goToSheet';\n case 'gotoSheetById':\n return 'goToSheetById';\n case 'gotoStory':\n return 'goToStory';\n case 'switchToEdit':\n return 'none';\n default:\n return oldType;\n }\n}\n\nconst importProperties = (exportedFmt, initialProperties) => {\n const newPropertyTree = { qChildren: [] };\n const newProperties = {\n actions: [],\n // Adding props to avoid errors from old navigation button. Converting to any other chart will still give these errors\n props: { useEnabledCondition: null, fullWidth: 'auto' },\n qLayoutExclude: { disabled: {} },\n ...initialProperties,\n };\n\n if (exportedFmt && exportedFmt.properties.visualization === 'qlik-button-for-navigation') {\n Object.keys(exportedFmt.properties).forEach((key) => {\n let props;\n switch (key) {\n case 'props':\n props = exportedFmt.properties[key];\n newProperties.style.label = props.buttonLabel;\n newProperties.style.icon.useIcon = props.buttonShowIcon;\n newProperties.style.icon.iconType = props.buttonIconLui;\n newProperties.style.font.align = props.buttonTextAlign;\n newProperties.useEnabledCondition = props.useEnabledCondition;\n newProperties.enabledCondition = props.enabledCondition;\n props.actionItems &&\n props.actionItems.forEach((actionItem) => {\n convertAction(actionItem, newProperties);\n });\n newProperties.navigation = {\n action: convertNavigation(props.navigationAction),\n // Need to convert sheet from expression\n sheet: props.navigationAction === 'gotoSheetById' ? props.sheetId : props.selectedSheet,\n story: props.selectedStory,\n websiteUrl: props.websiteUrl,\n sameWindow: props.sameWindow,\n };\n break;\n case 'qStateName':\n case 'showTitles':\n case 'title':\n case 'subtitle':\n case 'footnote':\n newProperties[key] = exportedFmt.properties[key];\n break;\n default:\n break;\n }\n });\n }\n newPropertyTree.qProperty = newProperties;\n return newPropertyTree;\n};\n\nexport default importProperties;\n","export default [\n {\n value: 'image',\n icon: 'image',\n label: 'Image',\n },\n {\n value: 'back',\n icon: 'back',\n label: 'Back',\n },\n {\n value: 'forward',\n icon: 'forward',\n label: 'Forward',\n },\n {\n value: 'history',\n icon: 'history',\n label: 'History',\n },\n {\n value: 'help',\n icon: 'help',\n label: 'Help',\n },\n {\n value: 'info',\n icon: 'info',\n label: 'Info',\n },\n {\n value: 'text',\n icon: 'text',\n label: 'Text',\n },\n {\n value: 'group',\n icon: 'group',\n label: 'Group',\n },\n {\n value: 'search',\n icon: 'search',\n label: 'Search',\n },\n {\n value: 'zoom-in',\n icon: 'zoom-in',\n label: 'Zoom in',\n },\n {\n value: 'zoom-out',\n icon: 'zoom-out',\n label: 'Zoom out',\n },\n {\n value: 'export',\n icon: 'export',\n label: 'Export',\n },\n {\n value: 'import',\n icon: 'import',\n label: 'Import',\n },\n {\n value: 'field',\n icon: 'field',\n label: 'Field',\n },\n {\n value: 'lock',\n icon: 'lock',\n label: 'Lock',\n },\n {\n value: 'unlock',\n icon: 'unlock',\n label: 'Unlock',\n },\n {\n value: 'database',\n icon: 'database',\n label: 'Database',\n },\n {\n value: 'calendar',\n icon: 'calendar',\n label: 'Calendar',\n },\n {\n value: 'bookmark',\n icon: 'bookmark',\n label: 'Bookmark',\n },\n {\n value: 'library',\n icon: 'library',\n label: 'Library',\n },\n {\n value: 'star',\n icon: 'star',\n label: 'Star',\n },\n {\n value: 'print',\n icon: 'print',\n label: 'Print',\n },\n {\n value: 'remove',\n icon: 'remove',\n label: 'Remove',\n },\n {\n value: 'handle',\n icon: 'handle',\n label: 'Handle',\n },\n {\n value: 'handle-horizontal',\n icon: 'handle-horizontal',\n label: 'Handle horizontal',\n },\n {\n value: 'menu',\n icon: 'menu',\n label: 'Menu',\n },\n {\n value: 'list',\n icon: 'list',\n label: 'List',\n },\n {\n value: 'unordered-list',\n icon: 'unordered-list',\n label: 'Unordered list',\n },\n {\n value: 'clock',\n icon: 'clock',\n label: 'Clock',\n },\n {\n value: 'puzzle',\n icon: 'puzzle',\n label: 'Puzzle',\n },\n {\n value: 'filterpane',\n icon: 'filterpane',\n label: 'Filterpane',\n },\n {\n value: 'plus',\n icon: 'plus',\n label: 'Plus',\n },\n {\n value: 'minus',\n icon: 'minus',\n label: 'Minus',\n },\n {\n value: 'triangle-top',\n icon: 'triangle-top',\n label: 'Triangle top',\n },\n {\n value: 'triangle-bottom',\n icon: 'triangle-bottom',\n label: 'Triangle bottom',\n },\n {\n value: 'triangle-left',\n icon: 'triangle-left',\n label: 'Triangle left',\n },\n {\n value: 'triangle-right',\n icon: 'triangle-right',\n label: 'Triangle right',\n },\n {\n value: 'tick',\n icon: 'tick',\n label: 'Tick',\n },\n {\n value: 'cogwheel',\n icon: 'cogwheel',\n label: 'Cogwheel',\n },\n {\n value: 'settings',\n icon: 'settings',\n label: 'Settings',\n },\n {\n value: 'cut',\n icon: 'cut',\n label: 'Cut',\n },\n {\n value: 'copy',\n icon: 'copy',\n label: 'Copy',\n },\n {\n value: 'paste',\n icon: 'paste',\n label: 'Paste',\n },\n {\n value: 'camera',\n icon: 'camera',\n label: 'Camera',\n },\n {\n value: 'slide-show',\n icon: 'slide-show',\n label: 'Slide show',\n },\n {\n value: 'palette',\n icon: 'palette',\n label: 'Palette',\n },\n {\n value: 'shapes',\n icon: 'shapes',\n label: 'Shapes',\n },\n {\n value: 'effects',\n icon: 'effects',\n label: 'Effects',\n },\n {\n value: 'file',\n icon: 'file',\n label: 'File',\n },\n {\n value: 'expand',\n icon: 'expand',\n label: 'Expand',\n },\n {\n value: 'collapse',\n icon: 'collapse',\n label: 'Collapse',\n },\n {\n value: 'bin',\n icon: 'bin',\n label: 'Bin',\n },\n {\n value: 'link',\n icon: 'link',\n label: 'Link',\n },\n {\n value: 'pivot',\n icon: 'pivot',\n label: 'Pivot',\n },\n {\n value: 'reload',\n icon: 'reload',\n label: 'Reload',\n },\n {\n value: 'add',\n icon: 'add',\n label: 'Add',\n },\n {\n value: 'edit',\n icon: 'edit',\n label: 'Edit',\n },\n {\n value: 'key',\n icon: 'key',\n label: 'Key',\n },\n {\n value: 'box',\n icon: 'box',\n label: 'Box',\n },\n {\n value: 'home',\n icon: 'home',\n label: 'Home',\n },\n {\n value: 'person',\n icon: 'person',\n label: 'Person',\n },\n {\n value: 'grid',\n icon: 'grid',\n label: 'Grid',\n },\n {\n value: 'cloud',\n icon: 'cloud',\n label: 'Cloud',\n },\n {\n value: 'more',\n icon: 'more',\n label: 'More',\n },\n {\n value: 'folder',\n icon: 'folder',\n label: 'Folder',\n },\n {\n value: 'drop',\n icon: 'drop',\n label: 'Drop',\n },\n {\n value: 'play',\n icon: 'play',\n label: 'Play',\n },\n {\n value: 'tag',\n icon: 'tag',\n label: 'Tag',\n },\n {\n value: 'close',\n icon: 'close',\n label: 'Close',\n },\n {\n value: 'warning',\n icon: 'warning',\n label: 'Warning',\n },\n {\n value: 'warning-triangle',\n icon: 'warning-triangle',\n label: 'Warning triangle',\n },\n {\n value: 'share',\n icon: 'share',\n label: 'Share',\n },\n {\n value: 'top',\n icon: 'top',\n label: 'Top',\n },\n {\n value: 'low-resolution',\n icon: 'low-resolution',\n label: 'Low resolution',\n },\n {\n value: 'high-resolution',\n icon: 'high-resolution',\n label: 'High resolution',\n },\n {\n value: 'view',\n icon: 'view',\n label: 'View',\n },\n {\n value: 'control',\n icon: 'control',\n label: 'Control',\n },\n {\n value: 'code',\n icon: 'code',\n label: 'Code',\n },\n {\n value: 'upload',\n icon: 'upload',\n label: 'Upload',\n },\n {\n value: 'repair',\n icon: 'repair',\n label: 'Repair',\n },\n {\n value: 'split',\n icon: 'split',\n label: 'Split',\n },\n {\n value: 'up-down',\n icon: 'up-down',\n label: 'Up down',\n },\n {\n value: 'disconnect',\n icon: 'disconnect',\n label: 'Disconnect',\n },\n {\n value: 'photo-library',\n icon: 'photo-library',\n label: 'Photo library',\n },\n {\n value: 'application',\n icon: 'application',\n label: 'Application',\n },\n {\n value: 'new-tab',\n icon: 'new-tab',\n label: 'New tab',\n },\n {\n value: 'ascending',\n icon: 'ascending',\n label: 'Ascending',\n },\n {\n value: 'descending',\n icon: 'descending',\n label: 'Descending',\n },\n {\n value: 'arrow-up',\n icon: 'arrow-up',\n label: 'Arrow up',\n },\n {\n value: 'arrow-down',\n icon: 'arrow-down',\n label: 'Arrow down',\n },\n {\n value: 'arrow-right',\n icon: 'arrow-right',\n label: 'Arrow right',\n },\n {\n value: 'arrow-left',\n icon: 'arrow-left',\n label: 'Arrow left',\n },\n {\n value: 'sync',\n icon: 'sync',\n label: 'Sync',\n },\n {\n value: 'draggable',\n icon: 'draggable',\n label: 'Draggable',\n },\n {\n value: 'book',\n icon: 'book',\n label: 'Book',\n },\n {\n value: 'measure',\n icon: 'measure',\n label: 'Measure',\n },\n {\n value: 'download',\n icon: 'download',\n label: 'Download',\n },\n {\n value: 'more-rounded',\n icon: 'more-rounded',\n label: 'More rounded',\n },\n {\n value: 'align-object-left',\n icon: 'align-object-left',\n label: 'Align object-left',\n },\n {\n value: 'align-object-center',\n icon: 'align-object-center',\n label: 'Align object-center',\n },\n {\n value: 'align-object-right',\n icon: 'align-object-right',\n label: 'Align object-right',\n },\n {\n value: 'submit',\n icon: 'submit',\n label: 'Submit',\n },\n {\n value: 'operators',\n icon: 'operators',\n label: 'Operators',\n },\n {\n value: 'general-data-class',\n icon: 'general-data-class',\n label: 'General data-class',\n },\n {\n value: 'building',\n icon: 'building',\n label: 'Building',\n },\n {\n value: 'bell',\n icon: 'bell',\n label: 'Bell',\n },\n {\n value: 'unlink',\n icon: 'unlink',\n label: 'Unlink',\n },\n {\n value: 'lightbulb',\n icon: 'lightbulb',\n label: 'Lightbulb',\n },\n {\n value: 'log-in',\n icon: 'log-in',\n label: 'Log in',\n },\n {\n value: 'log-out',\n icon: 'log-out',\n label: 'Log out',\n },\n {\n value: 'previous',\n icon: 'previous',\n label: 'Previous',\n },\n {\n value: 'goto',\n icon: 'goto',\n label: 'Goto',\n },\n {\n value: 'save',\n icon: 'save',\n label: 'Save',\n },\n {\n value: 'pause',\n icon: 'pause',\n label: 'Pause',\n },\n {\n value: 'stop',\n icon: 'stop',\n label: 'Stop',\n },\n {\n value: 'step-in',\n icon: 'step-in',\n label: 'Step in',\n },\n {\n value: 'comment',\n icon: 'comment',\n label: 'Comment',\n },\n {\n value: 'indent',\n icon: 'indent',\n label: 'Indent',\n },\n {\n value: 'undent',\n icon: 'undent',\n label: 'Undent',\n },\n {\n value: 'filter',\n icon: 'filter',\n label: 'Filter',\n },\n {\n value: 'clear-filter',\n icon: 'clear-filter',\n label: 'Clear filter',\n },\n {\n value: 'insert',\n icon: 'insert',\n label: 'Insert',\n },\n {\n value: 'direction-left',\n icon: 'direction-left',\n label: 'Direction left',\n },\n {\n value: 'swap',\n icon: 'swap',\n label: 'Swap',\n },\n {\n value: 'bubbles',\n icon: 'bubbles',\n label: 'Bubbles',\n },\n {\n value: 'sheet',\n icon: 'sheet',\n label: 'Sheet',\n },\n {\n value: 'object',\n icon: 'object',\n label: 'Object',\n },\n {\n value: 'clear-selections',\n icon: 'clear-selections',\n label: 'Clear selections',\n },\n {\n value: 'selections-tool',\n icon: 'selections-tool',\n label: 'Selections tool',\n },\n {\n value: 'selections-reload',\n icon: 'selections-reload',\n label: 'Selections reload',\n },\n {\n value: 'selections-back',\n icon: 'selections-back',\n label: 'Selections back',\n },\n {\n value: 'selections-forward',\n icon: 'selections-forward',\n label: 'Selections forward',\n },\n {\n value: 'expression',\n icon: 'expression',\n label: 'Expression',\n },\n {\n value: 'select-alternative',\n icon: 'select-alternative',\n label: 'Select alternative',\n },\n {\n value: 'select-possible',\n icon: 'select-possible',\n label: 'Select possible',\n },\n {\n value: 'select-excluded',\n icon: 'select-excluded',\n label: 'Select excluded',\n },\n {\n value: 'select-all',\n icon: 'select-all',\n label: 'Select all',\n },\n {\n value: 'bar-chart',\n icon: 'bar-chart',\n label: 'Bar chart',\n },\n {\n value: 'bar-chart-horizontal',\n icon: 'bar-chart-horizontal',\n label: 'Bar chart-horizontal',\n },\n {\n value: 'line-chart',\n icon: 'line-chart',\n label: 'Line chart',\n },\n {\n value: 'pie-chart',\n icon: 'pie-chart',\n label: 'Pie chart',\n },\n {\n value: 'gauge-chart',\n icon: 'gauge-chart',\n label: 'Gauge chart',\n },\n {\n value: 'kpi',\n icon: 'kpi',\n label: 'Kpi',\n },\n {\n value: 'scatter-chart',\n icon: 'scatter-chart',\n label: 'Scatter chart',\n },\n {\n value: 'map',\n icon: 'map',\n label: 'Map',\n },\n {\n value: 'table',\n icon: 'table',\n label: 'Table',\n },\n {\n value: 'pivot-table',\n icon: 'pivot-table',\n label: 'Pivot table',\n },\n {\n value: 'treemap',\n icon: 'treemap',\n label: 'Treemap',\n },\n {\n value: 'combo-chart',\n icon: 'combo-chart',\n label: 'Combo chart',\n },\n {\n value: 'boxplot',\n icon: 'boxplot',\n label: 'Boxplot',\n },\n {\n value: 'distributionplot',\n icon: 'distributionplot',\n label: 'Distributionplot',\n },\n {\n value: 'histogram',\n icon: 'histogram',\n label: 'Histogram',\n },\n {\n value: 'direct-discovery',\n icon: 'direct-discovery',\n label: 'Direct discovery',\n },\n {\n value: 'data-model',\n icon: 'data-model',\n label: 'Data model',\n },\n {\n value: 'script',\n icon: 'script',\n label: 'Script',\n },\n {\n value: 'script-ok',\n icon: 'script-ok',\n label: 'Script ok',\n },\n {\n value: 'debug',\n icon: 'debug',\n label: 'Debug',\n },\n {\n value: 'auto-layout',\n icon: 'auto-layout',\n label: 'Auto layout',\n },\n];\n","import actions, { checkShowAction } from './utils/actions';\nimport navigationActions, { checkShowNavigation } from './utils/navigation-actions';\nimport propertyResolver from './utils/property-resolver';\nimport importProperties from './utils/conversion';\nimport luiIcons from './utils/lui-icons';\n\nconst colorOptions = [\n {\n value: false,\n translation: 'properties.colorMode.primary',\n },\n {\n value: true,\n translation: 'properties.colorMode.byExpression',\n },\n];\n\nconst toggleOptions = [\n {\n value: true,\n translation: 'properties.on',\n },\n {\n value: false,\n translation: 'properties.off',\n },\n];\n\nexport default function ext({ translator, automationsEnabled }) {\n return {\n definition: {\n type: 'items',\n component: 'accordion',\n items: {\n actions: {\n type: 'items',\n translation: 'Object.ActionButton.ActionsAndNavigation',\n grouped: true,\n items: {\n actions: {\n type: 'array',\n translation: 'Object.ActionButton.Actions',\n ref: 'actions',\n itemTitleRef: (data) => {\n if (data.actionLabel) {\n return data.actionLabel;\n }\n // If actionType exists but it's not found in the actions list,\n // the action is invalid for the current version of the button\n const fallbackTitle = data.actionType\n ? 'Object.ActionButton.InvalidAction'\n : 'Object.ActionButton.NewAction';\n const action = actions.find((act) => data.actionType === act.value);\n return translator.get((action && action.translation) || fallbackTitle);\n },\n allowAdd: true,\n allowRemove: true,\n allowMove: true,\n addTranslation: 'Object.ActionButton.AddAction',\n items: {\n label: {\n component: 'string',\n ref: 'actionLabel',\n translation: 'Common.Label',\n expression: 'optional',\n defaultValue: '',\n },\n actionType: {\n type: 'string',\n ref: 'actionType',\n component: 'expression-with-dropdown',\n translation: 'Object.ActionButton.Action',\n defaultValue: '',\n options: actions.filter((action) => action.value !== 'executeAutomation' || automationsEnabled),\n dropdownOnly: true,\n },\n bookmark: {\n type: 'string',\n ref: 'bookmark',\n component: 'expression-with-dropdown',\n translation: 'ExpressionEditor.SetExpresions.Bookmark',\n defaultValue: '',\n dropdownOnly: true,\n options: async (action, hyperCubeHandler) => {\n const bms = await hyperCubeHandler.app.getBookmarkList();\n return bms.map((bookmark) => ({\n label: bookmark.qData.title,\n value: bookmark.qInfo.qId,\n }));\n },\n show: (data) => checkShowAction(data, 'bookmark'),\n },\n field: {\n type: 'string',\n ref: 'field',\n component: 'expression-with-dropdown',\n translation: 'Common.Field',\n defaultValue: '',\n dropdownOnly: true,\n options: async (action, hyperCubeHandler) => {\n const fields = await hyperCubeHandler.app.getFieldList();\n return fields.map((field) => ({\n label: field.qName,\n value: field.qName,\n }));\n },\n show: (data) => checkShowAction(data, 'field'),\n },\n variable: {\n type: 'string',\n ref: 'variable',\n component: 'expression-with-dropdown',\n translation: 'Common.Variable',\n defaultValue: '',\n expressionType: 'StringExpression',\n options: async (action, hyperCubeHandler) => {\n const variables = await hyperCubeHandler.app.getVariableList();\n return variables\n .filter((v) => !v.qIsReserved || (v.qIsReserved && action.showSystemVariables))\n .map((v) => ({\n label: v.qName,\n value: v.qName,\n }));\n },\n show: (data) => checkShowAction(data, 'variable'),\n },\n showSystemVariables: {\n type: 'boolean',\n ref: 'showSystemVariables',\n translation: 'ExpressionEditor.SystemVariables',\n defaultValue: false,\n show: (data) => checkShowAction(data, 'variable'),\n },\n softLock: {\n type: 'boolean',\n ref: 'softLock',\n translation: 'Object.ActionButton.Softlock',\n defaultValue: false,\n show: (data) => checkShowAction(data, 'softLock'),\n },\n value: {\n type: 'string',\n ref: 'value',\n component: 'string',\n translation: 'properties.value',\n expression: 'optional',\n show: (data) => checkShowAction(data, 'value'),\n },\n partial: {\n type: 'boolean',\n ref: 'partial',\n translation: 'Object.ActionButton.Partial',\n defaultValue: false,\n show: (data) => checkShowAction(data, 'partial'),\n },\n // adds automation to actions and adds a dropdown property panel\n // item to select the automation for the button to trigger\n automation: {\n type: 'string',\n component: 'dropdown',\n translation: 'Object.ActionButton.Automation',\n ref: 'automation',\n options: async () => {\n const automations = await fetch('../api/v1/items?resourceType=automation').then((response) =>\n response.json());\n return automations.data.map((blend) => ({\n value: blend.id,\n label: blend.name,\n }));\n },\n show: (data) => checkShowAction(data, 'automation'),\n },\n // Boolean property to instruct the automation action to create a\n // bookmark and send it to the selected automation in the\n // property panel.\n automationPostData: {\n type: 'boolean',\n ref: 'automationPostData',\n translation: 'Object.ActionButton.Automation.SendSelections',\n show: (data) => checkShowAction(data, 'automation'),\n defaultValue: false,\n },\n },\n },\n navigation: {\n translation: 'Object.ActionButton.Navigation',\n type: 'items',\n items: {\n action: {\n ref: 'navigation.action',\n translation: 'Object.ActionButton.Navigation',\n component: 'expression-with-dropdown',\n defaultValue: null,\n options: navigationActions,\n dropdownOnly: true,\n },\n sheetId: {\n type: 'string',\n ref: 'navigation.sheet',\n translation: 'properties.sheet',\n expression: 'optional',\n show: (data) => checkShowNavigation(data, 'sheetId'),\n },\n sheet: {\n type: 'string',\n ref: 'navigation.sheet',\n translation: 'properties.sheet',\n component: 'expression-with-dropdown',\n expressionType: 'StringExpression',\n show: (data) => checkShowNavigation(data, 'sheet'),\n options: async (action, hyperCubeHandler) => {\n const sheets = await hyperCubeHandler.app.getSheetList();\n return sheets.map((sheet) => ({\n value: sheet.qInfo.qId,\n label: sheet.qMeta.title,\n showCondition: sheet.qData.showCondition,\n }));\n },\n },\n story: {\n type: 'string',\n ref: 'navigation.story',\n translation: 'properties.story',\n component: 'expression-with-dropdown',\n expressionType: 'StringExpression',\n show: (data) => checkShowNavigation(data, 'story'),\n options: async (action, hyperCubeHandler) => {\n const stories = await hyperCubeHandler.app.getStoryList();\n return stories.map((story) => ({\n value: story.qInfo.qId,\n label: story.qMeta.title,\n }));\n },\n },\n websiteUrl: {\n type: 'string',\n expression: 'optional',\n ref: 'navigation.websiteUrl',\n translation: 'properties.website',\n show: (data) => checkShowNavigation(data, 'websiteUrl'),\n },\n sameWindow: {\n type: 'boolean',\n ref: 'navigation.sameWindow',\n translation: 'properties.sameWindow',\n show: (data) => checkShowNavigation(data, 'websiteUrl'),\n defaultValue: false,\n },\n },\n },\n },\n },\n enableCondition: {\n type: 'items',\n translation: 'properties.enableConditionSection',\n items: {\n useCondition: {\n type: 'boolean',\n component: 'switch',\n translation: 'properties.enableToggle',\n ref: 'useEnabledCondition',\n options: [\n {\n value: true,\n translation: 'properties.on',\n },\n {\n value: false,\n translation: 'properties.off',\n },\n ],\n },\n condition: {\n ref: 'enabledCondition',\n translation: 'properties.enableCondition',\n type: 'integer',\n expression: 'optional',\n show: (data) => data.useEnabledCondition,\n },\n },\n },\n settings: {\n component: 'expandable-items',\n translation: 'Common.Appearance',\n uses: 'settings',\n items: {\n general: {\n type: 'items',\n translation: 'properties.general',\n items: {\n showTitles: {},\n details: {\n show: false,\n },\n label: {\n component: 'string',\n ref: 'style.label',\n translation: 'Common.Label',\n expression: 'optional',\n },\n },\n },\n font: {\n grouped: true,\n type: 'items',\n translation: 'properties.font',\n items: {\n sizeAndColor: {\n type: 'items',\n items: {\n fontSize: {\n component: 'slider',\n type: 'number',\n ref: 'style.font.size',\n translation: 'properties.fontSize',\n min: 0.2,\n max: 1,\n step: 0.01,\n },\n useFontColorExpression: {\n ref: 'style.font.useColorExpression',\n type: 'boolean',\n translation: 'properties.fontColor',\n component: 'dropdown',\n options: colorOptions,\n },\n colorPicker: {\n component: 'color-picker',\n type: 'object',\n ref: 'style.font.color',\n translation: 'properties.color',\n dualOutput: true,\n show: (data) => !propertyResolver.getValue(data, 'style.font.useColorExpression'),\n },\n colorExpression: {\n component: 'string',\n type: 'string',\n ref: 'style.font.colorExpression',\n translation: 'Common.Expression',\n expression: 'optional',\n show: (data) => propertyResolver.getValue(data, 'style.font.useColorExpression'),\n },\n },\n },\n stylingAndAlign: {\n type: 'items',\n items: {\n fontStyling: {\n component: 'item-selection-list',\n type: 'string',\n ref: 'style.font.style',\n translation: 'properties.textStyle',\n horizontal: true,\n multipleSelect: true,\n items: [\n {\n component: 'icon-item',\n icon: 'bold',\n value: 'bold',\n translation: 'Common.bold',\n labelPlacement: 'bottom',\n },\n {\n component: 'icon-item',\n icon: 'italic',\n value: 'italic',\n translation: 'Common.italic',\n labelPlacement: 'bottom',\n },\n {\n component: 'icon-item',\n icon: 'underline',\n value: 'underline',\n translation: 'Common.underline',\n labelPlacement: 'bottom',\n },\n ],\n },\n textAlign: {\n component: 'item-selection-list',\n type: 'string',\n ref: 'style.font.align',\n translation: 'properties.Alignment',\n horizontal: true,\n items: [\n {\n component: 'icon-item',\n icon: 'align_left',\n value: 'left',\n translation: 'properties.dock.left',\n labelPlacement: 'bottom',\n },\n {\n component: 'icon-item',\n icon: 'align_center',\n value: 'center',\n translation: 'Common.Center',\n labelPlacement: 'bottom',\n },\n {\n component: 'icon-item',\n icon: 'align_right',\n value: 'right',\n translation: 'properties.dock.right',\n labelPlacement: 'bottom',\n },\n ],\n },\n },\n },\n },\n },\n background: {\n grouped: true,\n type: 'items',\n translation: 'properties.background',\n items: {\n backgroundColor: {\n type: 'items',\n items: {\n useColorExpression: {\n ref: 'style.background.useColorExpression',\n type: 'boolean',\n translation: 'AppDetails.SheetBackgroundColor',\n component: 'dropdown',\n options: colorOptions,\n },\n colorPicker: {\n component: 'color-picker',\n type: 'object',\n ref: 'style.background.color',\n translation: 'properties.color',\n dualOutput: true,\n show: (data) => !propertyResolver.getValue(data, 'style.background.useColorExpression'),\n },\n colorExpression: {\n component: 'string',\n type: 'string',\n ref: 'style.background.colorExpression',\n translation: 'Common.Expression',\n expression: 'optional',\n show: (data) => propertyResolver.getValue(data, 'style.background.useColorExpression'),\n },\n },\n },\n backgroundImage: {\n type: 'items',\n items: {\n useBackgroundImage: {\n ref: 'style.background.useImage',\n type: 'boolean',\n translation: 'properties.backgroundImage.use',\n component: 'switch',\n options: toggleOptions,\n },\n backgroundUrl: {\n ref: 'style.background.url.qStaticContentUrlDef.qUrl',\n layoutRef: 'style.background.url.qStaticContentUrl.qUrl',\n schemaIgnore: true,\n translation: 'Common.Image',\n tooltip: { select: 'properties.media.select', remove: 'properties.media.removeBackground' },\n type: 'string',\n component: 'media',\n show(data) {\n return propertyResolver.getValue(data, 'style.background.useImage');\n },\n },\n backgroundSize: {\n ref: 'style.background.size',\n translation: 'properties.backgroundImage.size',\n type: 'string',\n component: 'dropdown',\n options: [\n {\n value: 'auto',\n translation: 'properties.backgroundImage.originalSize',\n },\n {\n value: 'alwaysFit',\n translation: 'properties.backgroundImage.sizeAlwaysFit',\n },\n {\n value: 'fitWidth',\n translation: 'properties.backgroundImage.sizeFitWidth',\n },\n {\n value: 'fitHeight',\n translation: 'properties.backgroundImage.sizeFitHeight',\n },\n {\n value: 'fill',\n translation: 'properties.backgroundImage.sizeStretch',\n },\n {\n value: 'alwaysFill',\n translation: 'properties.backgroundImage.sizeAlwaysFill',\n },\n ],\n show(data) {\n return (\n propertyResolver.getValue(data, 'style.background.useImage') &&\n !!propertyResolver.getValue(data, 'style.background.url.qStaticContentUrlDef.qUrl')\n );\n },\n },\n backgroundPosition: {\n ref: 'style.background.position',\n translation: 'Common.Position',\n type: 'string',\n component: 'align-matrix',\n show(data) {\n return (\n propertyResolver.getValue(data, 'style.background.useImage') &&\n propertyResolver.getValue(data, 'style.background.url.qStaticContentUrlDef.qUrl') &&\n propertyResolver.getValue(data, 'style.background.size') !== 'fill'\n );\n },\n currentSize(data) {\n return propertyResolver.getValue(data, 'style.background.size');\n },\n },\n },\n },\n },\n },\n border: {\n type: 'items',\n grouped: true,\n translation: 'properties.border',\n items: {\n borderSettings: {\n type: 'items',\n items: {\n useBorder: {\n ref: 'style.border.useBorder',\n type: 'boolean',\n translation: 'properties.border.use',\n component: 'switch',\n options: toggleOptions,\n },\n borderRadius: {\n component: 'slider',\n show: (data) => propertyResolver.getValue(data, 'style.border.useBorder'),\n translation: 'properties.border.radius',\n type: 'number',\n ref: 'style.border.radius',\n min: 0,\n max: 1,\n step: 0.01,\n },\n borderWidth: {\n component: 'slider',\n show: (data) => propertyResolver.getValue(data, 'style.border.useBorder'),\n type: 'number',\n ref: 'style.border.width',\n translation: 'properties.border.width',\n min: 0,\n max: 0.5,\n step: 0.005,\n },\n colorDropdown: {\n type: 'string',\n show: (data) => propertyResolver.getValue(data, 'style.border.useBorder'),\n component: 'dropdown',\n translation: 'properties.border.color',\n ref: 'style.border.useColorExpression',\n options: colorOptions,\n },\n colorPicker: {\n component: 'color-picker',\n type: 'object',\n ref: 'style.border.color',\n translation: 'properties.color',\n dualOutput: true,\n show: (data) =>\n propertyResolver.getValue(data, 'style.border.useBorder') &&\n !propertyResolver.getValue(data, 'style.border.useColorExpression'),\n },\n colorExpression: {\n component: 'string',\n type: 'string',\n ref: 'style.border.colorExpression',\n translation: 'Common.Expression',\n show: (data) =>\n propertyResolver.getValue(data, 'style.border.useBorder') &&\n propertyResolver.getValue(data, 'style.border.useColorExpression'),\n expression: 'optional',\n },\n },\n },\n },\n },\n icon: {\n type: 'items',\n grouped: true,\n translation: 'properties.icon',\n items: {\n iconSettings: {\n type: 'items',\n items: {\n useIcon: {\n ref: 'style.icon.useIcon',\n type: 'boolean',\n translation: 'properties.icon.use',\n component: 'switch',\n options: toggleOptions,\n },\n iconType: {\n ref: 'style.icon.iconType',\n component: 'expression-with-dropdown',\n translation: 'properties.icon',\n defaultValue: '',\n options: luiIcons,\n expressionType: 'StringExpression',\n show: (data) => propertyResolver.getValue(data, 'style.icon.useIcon'),\n },\n iconPosition: {\n ref: 'style.icon.position',\n component: 'dropdown',\n translation: 'Common.Position',\n options: [\n {\n translation: 'properties.dock.left',\n value: 'left',\n },\n {\n translation: 'properties.dock.right',\n value: 'right',\n },\n ],\n show: (data) => propertyResolver.getValue(data, 'style.icon.useIcon'),\n },\n },\n },\n },\n },\n },\n },\n },\n },\n importProperties,\n exportProperties: null,\n support: {\n export: !1,\n exportData: !1,\n snapshot: !1,\n viewData: !1,\n quickMobile: !0,\n },\n };\n}\n","const colorStruct = {\n aliceblue: { r: 240, g: 248, b: 255 },\n antiquewhite: { r: 250, g: 235, b: 215 },\n aqua: { r: 0, g: 255, b: 255 },\n aquamarine: { r: 127, g: 255, b: 212 },\n azure: { r: 240, g: 255, b: 255 },\n beige: { r: 245, g: 245, b: 220 },\n bisque: { r: 255, g: 228, b: 196 },\n black: { r: 0, g: 0, b: 0 },\n blanchedalmond: { r: 255, g: 235, b: 205 },\n blue: { r: 0, g: 0, b: 255 },\n blueviolet: { r: 138, g: 43, b: 226 },\n brown: { r: 165, g: 42, b: 42 },\n burlywood: { r: 222, g: 184, b: 135 },\n cadetblue: { r: 95, g: 158, b: 160 },\n chartreuse: { r: 127, g: 255, b: 0 },\n chocolate: { r: 210, g: 105, b: 30 },\n coral: { r: 255, g: 127, b: 80 },\n cornflowerblue: { r: 100, g: 149, b: 237 },\n cornsilk: { r: 255, g: 248, b: 220 },\n crimson: { r: 220, g: 20, b: 60 },\n cyan: { r: 0, g: 255, b: 255 },\n darkblue: { r: 0, g: 0, b: 139 },\n darkcyan: { r: 0, g: 139, b: 139 },\n darkgoldenrod: { r: 184, g: 134, b: 11 },\n darkgray: { r: 169, g: 169, b: 169 },\n darkgreen: { r: 0, g: 100, b: 0 },\n darkgrey: { r: 169, g: 169, b: 169 },\n darkkhaki: { r: 189, g: 183, b: 107 },\n darkmagenta: { r: 139, g: 0, b: 139 },\n darkolivegreen: { r: 85, g: 107, b: 47 },\n darkorange: { r: 255, g: 140, b: 0 },\n darkorchid: { r: 153, g: 50, b: 204 },\n darkred: { r: 139, g: 0, b: 0 },\n darksalmon: { r: 233, g: 150, b: 122 },\n darkseagreen: { r: 143, g: 188, b: 143 },\n darkslateblue: { r: 72, g: 61, b: 139 },\n darkslategray: { r: 47, g: 79, b: 79 },\n darkslategrey: { r: 47, g: 79, b: 79 },\n darkturquoise: { r: 0, g: 206, b: 209 },\n darkviolet: { r: 148, g: 0, b: 211 },\n deeppink: { r: 255, g: 20, b: 147 },\n deepskyblue: { r: 0, g: 191, b: 255 },\n dimgray: { r: 105, g: 105, b: 105 },\n dimgrey: { r: 105, g: 105, b: 105 },\n dodgerblue: { r: 30, g: 144, b: 255 },\n firebrick: { r: 178, g: 34, b: 34 },\n floralwhite: { r: 255, g: 250, b: 240 },\n forestgreen: { r: 34, g: 139, b: 34 },\n fuchsia: { r: 255, g: 0, b: 255 },\n gainsboro: { r: 220, g: 220, b: 220 },\n ghostwhite: { r: 248, g: 248, b: 255 },\n gold: { r: 255, g: 215, b: 0 },\n goldenrod: { r: 218, g: 165, b: 32 },\n gray: { r: 128, g: 128, b: 128 },\n green: { r: 0, g: 128, b: 0 },\n greenyellow: { r: 173, g: 255, b: 47 },\n grey: { r: 128, g: 128, b: 128 },\n honeydew: { r: 240, g: 255, b: 240 },\n hotpink: { r: 255, g: 105, b: 180 },\n indianred: { r: 205, g: 92, b: 92 },\n indigo: { r: 75, g: 0, b: 130 },\n ivory: { r: 255, g: 255, b: 240 },\n khaki: { r: 240, g: 230, b: 140 },\n lavender: { r: 230, g: 230, b: 250 },\n lavenderblush: { r: 255, g: 240, b: 245 },\n lawngreen: { r: 124, g: 252, b: 0 },\n lemonchiffon: { r: 255, g: 250, b: 205 },\n lightblue: { r: 173, g: 216, b: 230 },\n lightcoral: { r: 240, g: 128, b: 128 },\n lightcyan: { r: 224, g: 255, b: 255 },\n lightgoldenrodyellow: { r: 250, g: 250, b: 210 },\n lightgray: { r: 211, g: 211, b: 211 },\n lightgreen: { r: 144, g: 238, b: 144 },\n lightgrey: { r: 211, g: 211, b: 211 },\n lightpink: { r: 255, g: 182, b: 193 },\n lightsalmon: { r: 255, g: 160, b: 122 },\n lightseagreen: { r: 32, g: 178, b: 170 },\n lightskyblue: { r: 135, g: 206, b: 250 },\n lightslategray: { r: 119, g: 136, b: 153 },\n lightslategrey: { r: 119, g: 136, b: 153 },\n lightsteelblue: { r: 176, g: 196, b: 222 },\n lightyellow: { r: 255, g: 255, b: 224 },\n lime: { r: 0, g: 255, b: 0 },\n limegreen: { r: 50, g: 205, b: 50 },\n linen: { r: 250, g: 240, b: 230 },\n magenta: { r: 255, g: 0, b: 255 },\n maroon: { r: 128, g: 0, b: 0 },\n mediumaquamarine: { r: 102, g: 205, b: 170 },\n mediumblue: { r: 0, g: 0, b: 205 },\n mediumorchid: { r: 186, g: 85, b: 211 },\n mediumpurple: { r: 147, g: 112, b: 219 },\n mediumseagreen: { r: 60, g: 179, b: 113 },\n mediumslateblue: { r: 123, g: 104, b: 238 },\n mediumspringgreen: { r: 0, g: 250, b: 154 },\n mediumturquoise: { r: 72, g: 209, b: 204 },\n mediumvioletred: { r: 199, g: 21, b: 133 },\n midnightblue: { r: 25, g: 25, b: 112 },\n mintcream: { r: 245, g: 255, b: 250 },\n mistyrose: { r: 255, g: 228, b: 225 },\n moccasin: { r: 255, g: 228, b: 181 },\n navajowhite: { r: 255, g: 222, b: 173 },\n navy: { r: 0, g: 0, b: 128 },\n oldlace: { r: 253, g: 245, b: 230 },\n olive: { r: 128, g: 128, b: 0 },\n olivedrab: { r: 107, g: 142, b: 35 },\n orange: { r: 255, g: 165, b: 0 },\n orangered: { r: 255, g: 69, b: 0 },\n orchid: { r: 218, g: 112, b: 214 },\n palegoldenrod: { r: 238, g: 232, b: 170 },\n palegreen: { r: 152, g: 251, b: 152 },\n paleturquoise: { r: 175, g: 238, b: 238 },\n palevioletred: { r: 219, g: 112, b: 147 },\n papayawhip: { r: 255, g: 239, b: 213 },\n peachpuff: { r: 255, g: 218, b: 185 },\n peru: { r: 205, g: 133, b: 63 },\n pink: { r: 255, g: 192, b: 203 },\n plum: { r: 221, g: 160, b: 221 },\n powderblue: { r: 176, g: 224, b: 230 },\n purple: { r: 128, g: 0, b: 128 },\n rebeccapurple: { r: 102, g: 51, b: 153 },\n red: { r: 255, g: 0, b: 0 },\n rosybrown: { r: 188, g: 143, b: 143 },\n royalblue: { r: 65, g: 105, b: 225 },\n saddlebrown: { r: 139, g: 69, b: 19 },\n salmon: { r: 250, g: 128, b: 114 },\n sandybrown: { r: 244, g: 164, b: 96 },\n seagreen: { r: 46, g: 139, b: 87 },\n seashell: { r: 255, g: 245, b: 238 },\n sienna: { r: 160, g: 82, b: 45 },\n silver: { r: 192, g: 192, b: 192 },\n skyblue: { r: 135, g: 206, b: 235 },\n slateblue: { r: 106, g: 90, b: 205 },\n slategray: { r: 112, g: 128, b: 144 },\n slategrey: { r: 112, g: 128, b: 144 },\n snow: { r: 255, g: 250, b: 250 },\n springgreen: { r: 0, g: 255, b: 127 },\n steelblue: { r: 70, g: 130, b: 180 },\n tan: { r: 210, g: 180, b: 140 },\n teal: { r: 0, g: 128, b: 128 },\n thistle: { r: 216, g: 191, b: 216 },\n tomato: { r: 255, g: 99, b: 71 },\n transparent: { r: 255, g: 255, b: 255, a: 0 },\n turquoise: { r: 64, g: 224, b: 208 },\n violet: { r: 238, g: 130, b: 238 },\n wheat: { r: 245, g: 222, b: 179 },\n white: { r: 255, g: 255, b: 255 },\n whitesmoke: { r: 245, g: 245, b: 245 },\n yellow: { r: 255, g: 255, b: 0 },\n yellowgreen: { r: 154, g: 205, b: 50 },\n};\n\nexport default colorStruct;\n","/* eslint-disable no-cond-assign */\nimport CSSColors from './css-colors';\n\nconst colorUtils = {\n resolveExpression: input => {\n // rgb\n let matches = /^rgb\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/i.exec(input);\n if (matches) {\n return `rgb(${matches[1]},${matches[2]},${matches[3]})`;\n }\n // argb\n matches = /^argb\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/i.exec(input);\n if (matches) {\n const a = Math.round((matches[1] / 255) * 100) / 100;\n return `rgba(${matches[2]},${matches[3]},${matches[4]},${a})`;\n }\n // hex\n matches = /^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(input);\n if (matches) {\n return input;\n }\n // css color\n const color = input && CSSColors[input.toLowerCase()];\n if (color) {\n const a = color.a !== undefined ? color.a : 1;\n return `rgba(${color.r},${color.g},${color.b},${a})`;\n }\n // invalid\n return 'none';\n },\n getFadedColor(color) {\n const percent = 0.15;\n let f; let R; let B; let G;\n if (color.length > 7) {\n f = color.split(',');\n const rgba = f[0].indexOf('a') !== -1;\n R = rgba ? parseInt(f[0].slice(5), 10) : parseInt(f[0].slice(4), 10);\n G = parseInt(f[1], 10);\n B = parseInt(f[2], 10);\n return `${(rgba ? 'rgba(' : 'rgb(') + (Math.round((0 - R) * percent) + R)},${Math.round((0 - G) * percent) + G},${Math.round((0 - B) * percent) + B}${rgba ? `,${f[3]}` : ')'}`;\n }\n f = parseInt(color.slice(1), 16);\n R = f >> 16;\n G = (f >> 8) & 0x00FF;\n B = f & 0x0000FF;\n return `#${(0x1000000 + (Math.round((0 - R) * percent) + R) * 0x10000 + (Math.round((0 - G) * percent) + G) * 0x100 + (Math.round((0 - B) * percent) + B)).toString(16).slice(1)}`;\n }\n};\n\nexport default colorUtils;\n","const getImageUrl = (imgUrl) => {\n imgUrl.replace(/^\\.\\.\\//i, '/');\n imgUrl = imgUrl.replace(/\"/g, '\\\\\"');\n imgUrl = imgUrl.replace(/'/g, \"\\\\'\");\n const a = document.createElement('a');\n a.href = '../';\n const rootPath = a.href;\n imgUrl = rootPath + (imgUrl[0] === '/' ? imgUrl.substr(1) : imgUrl);\n return imgUrl;\n};\n\nexport default {\n getImageUrl,\n};\n","import colorUtils from './color-utils';\nimport luiIcons from './lui-icons';\nimport urlUtils from './url-utils';\n\nconst backgroundSize = {\n auto: 'auto auto',\n alwaysFit: 'contain',\n fitWidth: '100% auto',\n fitHeight: 'auto 100%',\n fill: '100% 100%',\n alwaysFill: 'cover',\n};\n\nconst backgroundPosition = {\n topLeft: '0% 0%', // top left\n centerLeft: '50% 0%', // center left\n bottomLeft: '100% 0%', // bottom left\n topCenter: '0% 50%', // top center\n centerCenter: '50% 50%', // center center\n bottomCenter: '100% 50%', // bottom center\n topRight: '0% 100%', // top right\n centerRight: '50% 100%', // center right\n bottomRight: '100% 100%', // bottom right\n};\n\nconst formatProperty = (path, setting) => `${path}: ${setting};`;\n\nconst getColor = ({ useColorExpression, colorExpression, color }, defaultColor, theme) => {\n let resolvedColor;\n if (useColorExpression) {\n resolvedColor = colorUtils.resolveExpression(colorExpression);\n } else if (typeof color === 'string') {\n resolvedColor = color;\n } else if (color) {\n resolvedColor = theme.getColorPickerColor(color);\n }\n return !resolvedColor || resolvedColor === 'none' ? defaultColor : resolvedColor;\n};\n\nexport default {\n getStyles({ style, disabled, theme, element }) {\n let styles = 'width: 100%;height: 100%;transition: transform .1s ease-in-out;position: absolute;';\n const { font, background, border } = style;\n const primaryColor = theme.getDataColorSpecials().primary;\n // enable\n styles += disabled ? formatProperty('opacity', 0.4) : formatProperty('cursor', 'pointer');\n // font\n styles += formatProperty('color', getColor(font, '#ffffff', theme));\n font.style.bold && (styles += formatProperty('font-weight', 'bold'));\n font.style.italic && (styles += formatProperty('font-style', 'italic'));\n // background\n const backgroundColor = getColor(background, primaryColor, theme);\n styles += formatProperty('background-color', backgroundColor);\n if (background.useImage && background.url.qStaticContentUrl) {\n let bgUrl = background.url.qStaticContentUrl.qUrl;\n if (bgUrl) {\n bgUrl = urlUtils.getImageUrl(bgUrl);\n styles += formatProperty('background-image', `url('${bgUrl}')`);\n styles += formatProperty('background-size', backgroundSize[background.size]);\n styles += formatProperty('background-position', backgroundPosition[background.position]);\n styles += formatProperty('background-repeat', 'no-repeat');\n }\n }\n // border\n if (border.useBorder) {\n const lengthShortSide = Math.min(element.offsetWidth, element.offsetHeight);\n const borderColor = getColor(border, colorUtils.getFadedColor(backgroundColor), theme);\n const borderSize = (border.width * lengthShortSide) / 2;\n styles += formatProperty('border', `${borderSize}px solid ${borderColor}`);\n styles += formatProperty('border-radius', `${(border.radius * lengthShortSide) / 2}px`);\n } else {\n styles += 'border: none;';\n }\n\n return styles;\n },\n createLabelAndIcon({ button, theme, style, isSense }) {\n const { icon, font, label } = style;\n // text element wrapping label and icon\n const text = document.createElement('text');\n text.style.whiteSpace = 'nowrap';\n text.style.fontFamily = theme.getStyle('', '', 'fontFamily');\n // label\n const textSpan = document.createElement('span');\n textSpan.textContent = label;\n textSpan.style.whiteSpace = 'nowrap';\n textSpan.style.textOverflow = 'ellipsis';\n textSpan.style.overflow = 'visible';\n font.style.underline && (textSpan.style.textDecoration = 'underline');\n text.appendChild(textSpan);\n // icon\n const hasIcon = isSense && icon.useIcon && icon.iconType !== '';\n if (hasIcon) {\n const iconSpan = document.createElement('span');\n const iconType = luiIcons.find((iconObj) => iconObj.label === icon.iconType || iconObj.value === icon.iconType);\n iconSpan.style.textDecoration = 'none';\n iconSpan.style.fontSize = 'inherit';\n iconSpan.setAttribute('class', `lui-icon lui-icon--${iconType ? iconType.value : ''}`);\n icon.position === 'left' ? text.insertBefore(iconSpan, textSpan) : text.appendChild(iconSpan);\n }\n button.innerHTML = '';\n button.appendChild(text);\n\n // Calculations on font size.\n // 1. Setting font size to height of button container\n text.style.fontSize = `${button.clientHeight}px`;\n // 2. Adjust the font size to the height ratio between button container and text box\n let newFontsize = (button.clientHeight / text.offsetHeight) * button.clientHeight;\n text.style.fontSize = `${newFontsize}px`;\n // 3. Adjust the font size to the width ratio between button container and text box\n if (text.offsetWidth > button.clientWidth) {\n newFontsize *= button.clientWidth / text.offsetWidth;\n }\n // 4. Setting final font size by scaling with the font size from the layout + other font styling\n if (font.style.italic) {\n if (hasIcon) {\n text.style.fontSize = `${Math.max(newFontsize * font.size * 0.84, 8)}px`;\n text.children[0].style.marginRight = `${text.offsetWidth * 0.04}px`;\n text.children[1].style.marginRight = `${text.offsetWidth * 0.04}px`;\n } else {\n text.style.fontSize = `${Math.max(newFontsize * font.size * 0.9, 8)}px`;\n text.children[0].style.marginRight = `${text.offsetWidth * 0.02}px`;\n }\n } else if (hasIcon) {\n text.style.fontSize = `${Math.max(newFontsize * font.size * 0.88, 8)}px`;\n text.children[0].style.marginRight = `${text.offsetWidth * 0.04}px`;\n } else {\n text.style.fontSize = `${Math.max(newFontsize * font.size * 0.92, 8)}px`;\n }\n // hide overflow when there can be overflow\n if (text.style.fontSize === '8px') {\n text.children.forEach((child) => {\n child.style.overflow = 'hidden';\n });\n }\n text.style.margin = '0 3%';\n text.style.display = 'flex';\n text.style.alignItems = 'center';\n text.style.justifyContent = font.align === 'left' ? 'flex-start' : font.align === 'right' ? 'flex-end' : 'center';\n },\n};\n","import allActions from '../utils/actions';\nimport navigationActions from '../utils/navigation-actions';\nimport styleFormatter from '../utils/style-formatter';\n\nexport const runActions = async (actionList) => {\n for (let i = 0; i < actionList.length; i++) {\n // eslint-disable-next-line no-await-in-loop\n await actionList[i]();\n }\n};\n\nexport default function renderButton({ layout, theme, app, constraints, senseNavigation, element }) {\n const isSense = !!senseNavigation;\n const button = element.firstElementChild;\n const { style, qStateName } = layout;\n const disabled = layout.useEnabledCondition && layout.enabledCondition === 0;\n const isClickable = !disabled && !constraints.active;\n const formattedStyles = styleFormatter.getStyles({ style, disabled, theme, element });\n button.setAttribute('style', formattedStyles);\n styleFormatter.createLabelAndIcon({ button, theme, style, isSense });\n\n button.onclick = async () => {\n if (isClickable) {\n const actionCallList = [];\n const { actions } = layout;\n actions.forEach((action) => {\n const actionObj = allActions.find((act) => act.value === action.actionType);\n actionObj && actionCallList.push(actionObj.getActionCall({ app, qStateName, ...action }));\n });\n button.setAttribute('disabled', true);\n await runActions(actionCallList);\n if (senseNavigation && !senseNavigation.getCurrentStoryId()) {\n const { navigation } = layout;\n const navigationObject = navigation && navigationActions.find((nav) => nav.value === navigation.action);\n if (senseNavigation && navigationObject && typeof navigationObject.navigationCall === 'function') {\n await navigationObject.navigationCall({ app, senseNavigation, ...navigation });\n }\n }\n button.removeAttribute('disabled');\n }\n };\n\n const scale = () => {\n if (isClickable) {\n const { offsetWidth, offsetHeight } = button;\n button.style.transform =\n offsetHeight > offsetWidth\n ? `scale(${0.98}, ${1 - (offsetWidth / offsetHeight) * 0.02})`\n : `scale(${1 - (offsetHeight / offsetWidth) * 0.02}, ${0.98})`;\n }\n };\n\n const resetScale = () => {\n const { transform } = button.style;\n if (isClickable && transform !== '' && transform !== 'scale(1)') {\n button.style.transform = 'scale(1)';\n }\n };\n\n button.onmousedown = (event) => {\n if (event.button === 0) {\n scale();\n }\n };\n button.onmouseup = resetScale;\n button.onmouseleave = resetScale;\n button.ontouchstart = scale;\n button.ontouchend = resetScale;\n button.ontouchcancel = resetScale;\n\n return () => {\n button.onclick = undefined;\n button.onmousedown = undefined;\n button.onmouseup = undefined;\n button.onmouseleave = undefined;\n button.ontouchstart = undefined;\n button.ontouchend = undefined;\n button.ontouchcancel = undefined;\n };\n}\n","import {\n useElement,\n useStaleLayout,\n useEffect,\n useMemo,\n useApp,\n useConstraints,\n useTheme,\n useImperativeHandle,\n} from '@nebula.js/stardust';\n\nimport properties from './object-properties';\nimport data from './data';\nimport ext from './ext';\n\nimport renderButton from './components/action-button';\n\nexport default function supernova(env) {\n const {\n sense,\n translator,\n flags: { isEnabled },\n } = env;\n const senseNavigation = sense && sense.navigation;\n const automationsEnabled = isEnabled('ACTION_BUTTON_AUTOMATIONS');\n properties.style.label = sense ? translator.get('Object.ActionButton') : 'Button';\n return {\n qae: {\n properties,\n data,\n },\n component() {\n const element = useElement();\n const theme = useTheme();\n\n useMemo(() => {\n const button = document.createElement('button');\n button.appendChild(document.createElement('text'));\n element.appendChild(button);\n }, []);\n\n const layout = useStaleLayout();\n const app = useApp();\n const constraints = useConstraints();\n\n const cleanup = renderButton({ element, layout, constraints, theme, app, senseNavigation, automationsEnabled });\n\n useEffect(\n () => () => {\n cleanup();\n },\n [element]\n );\n\n useImperativeHandle(\n () => ({\n focus() {\n element.firstElementChild.onclick();\n },\n }),\n [element]\n );\n },\n ext: ext({ translator, automationsEnabled }),\n };\n}\n"],"names":["properties","showTitles","title","subtitle","footnote","useEnabledCondition","enabledCondition","navigation","action","style","label","font","size","useColorExpression","color","index","colorExpression","bold","italic","underline","align","background","useImage","url","qStaticContentUrlDef","qUrl","position","border","useBorder","radius","width","icon","useIcon","iconType","actions","targets","getValueList","app","values","isDate","valuesArray","split","dateExpression","forEach","date","evaluate","slice","convertedDates","map","value","Number","isNaN","qText","qIsNumeric","qNumber","translation","group","getActionCall","bookmark","getBookmarkList","bookMarks","findBm","find","bm","qData","applyBookmark","qInfo","qId","requiredInput","back","forward","softLock","clearAll","qStateName","field","getField","fieldObj","clearAllButThis","clear","selectAll","getFieldDescription","fieldInfo","qTags","includes","valueList","selectValues","select","selectAlternative","selectExcluded","selectPossible","toggleSelect","lockAll","lock","unlockAll","unlock","variable","getVariableByName","variableObj","setStringValue","partial","doReload","doSave","automation","automationPostData","undefined","encodeURIComponent","fetch","then","response","json","itemInfo","resourceId","autoInfo","executePath","guid","execution_token","hasinputs","blocks","item","i","length","displayName","form","toLowerCase","inputBlock","newDate","Date","bmkProp","qProp","id","getTime","qType","qMetaDef","toISOString","description","_createdBy","_createdFor","_createdOn","_id","createBookmark","getLayout","layout","bmk","checkShowAction","data","act","actionType","indexOf","evaluateCondition","condition","condVal","inIframe","window","self","top","error","getOrderedVisibleSheet","getSheetList","sheets","visibleSheets","filter","sheet","Util","showCondition","sort","current","next","rank","navigationActions","navigationCall","senseNavigation","nextSheet","prevSheet","goToSheet","story","goToStory","websiteUrl","sameWindow","match","target","open","checkShowNavigation","nav","getValue","dataContainer","reference","defaultValue","steps","convertNavigation","oldType","importProperties","exportedFmt","initialProperties","newPropertyTree","qChildren","newProperties","props","fullWidth","qLayoutExclude","disabled","visualization","Object","keys","key","buttonLabel","buttonShowIcon","buttonIconLui","buttonTextAlign","actionItems","actionItem","newAction","selectedBookmark","selectedField","cId","push","convertAction","navigationAction","sheetId","selectedSheet","selectedStory","qProperty","colorOptions","toggleOptions","ext","translator","automationsEnabled","definition","type","component","items","grouped","ref","itemTitleRef","actionLabel","fallbackTitle","get","allowAdd","allowRemove","allowMove","addTranslation","expression","options","dropdownOnly","hyperCubeHandler","bms","show","getFieldList","fields","qName","expressionType","getVariableList","variables","v","qIsReserved","showSystemVariables","automations","blend","name","qMeta","getStoryList","stories","enableCondition","useCondition","settings","uses","general","details","sizeAndColor","fontSize","min","max","step","useFontColorExpression","colorPicker","dualOutput","propertyResolver","stylingAndAlign","fontStyling","horizontal","multipleSelect","labelPlacement","textAlign","backgroundColor","backgroundImage","useBackgroundImage","backgroundUrl","layoutRef","schemaIgnore","tooltip","remove","backgroundSize","backgroundPosition","currentSize","borderSettings","borderRadius","borderWidth","colorDropdown","iconSettings","luiIcons","iconPosition","exportProperties","support","export","exportData","snapshot","viewData","quickMobile","colorStruct","aliceblue","r","g","b","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","transparent","a","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","colorUtils","input","matches","exec","Math","round","CSSColors","f","R","B","G","percent","rgba","parseInt","toString","imgUrl","replace","document","createElement","href","substr","auto","alwaysFit","fitWidth","fitHeight","fill","alwaysFill","topLeft","centerLeft","bottomLeft","topCenter","centerCenter","bottomCenter","topRight","centerRight","bottomRight","formatProperty","path","setting","getColor","defaultColor","theme","resolvedColor","getColorPickerColor","element","styles","primaryColor","getDataColorSpecials","primary","qStaticContentUrl","bgUrl","urlUtils","lengthShortSide","offsetWidth","offsetHeight","borderColor","borderSize","button","isSense","text","whiteSpace","fontFamily","getStyle","textSpan","textContent","textOverflow","overflow","textDecoration","appendChild","hasIcon","iconSpan","iconObj","setAttribute","insertBefore","innerHTML","clientHeight","newFontsize","clientWidth","children","marginRight","child","margin","display","alignItems","justifyContent","runActions","actionList","env","sense","isEnabled","flags","qae","useElement","useTheme","useMemo","useStaleLayout","useApp","constraints","useConstraints","cleanup","firstElementChild","isClickable","active","formattedStyles","styleFormatter","onclick","actionCallList","actionObj","allActions","getCurrentStoryId","navigationObject","removeAttribute","scale","transform","resetScale","onmousedown","event","onmouseup","onmouseleave","ontouchstart","ontouchend","ontouchcancel","renderButton","useEffect","useImperativeHandle","focus"],"mappings":";;;;;;qTAAA,IAAMA,EAAa,CAIjBC,YAAY,EAIZC,MAAO,GAIPC,SAAU,GAIVC,SAAU,GAIVC,qBAAqB,EAIrBC,iBAAkB,EAIlBC,WAAY,CACVC,OAAQ,QAKVC,MAAO,CAILC,MAAO,SAIPC,KAAM,CAIJC,KAAM,GAINC,oBAAoB,EAIpBC,MAAO,CACLC,OAAQ,EACRD,MAAO,MAKTE,gBAAiB,GAIjBP,MAAO,CACLQ,MAAM,EACNC,QAAQ,EACRC,WAAW,GAKbC,MAAO,UAKTC,WAAY,CAIVR,oBAAoB,EAIpBC,MAAO,CACLC,OAAQ,EACRD,MAAO,MAKTE,gBAAiB,GAIjBM,UAAU,EAIVC,IAAK,CAIHC,qBAAsB,CAIpBC,KAAM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AM,SACNrB,MAAO,UAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,QACPlB,KAAM,QACNrB,MAAO,SAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,WACPlB,KAAM,WACNrB,MAAO,YAET,CACEuC,MAAO,WACPlB,KAAM,WACNrB,MAAO,YAET,CACEuC,MAAO,WACPlB,KAAM,WACNrB,MAAO,YAET,CACEuC,MAAO,UACPlB,KAAM,UACNrB,MAAO,WAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,QACPlB,KAAM,QACNrB,MAAO,SAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,oBACPlB,KAAM,oBACNrB,MAAO,qBAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,iBACPlB,KAAM,iBACNrB,MAAO,kBAET,CACEuC,MAAO,QACPlB,KAAM,QACNrB,MAAO,SAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,aACPlB,KAAM,aACNrB,MAAO,cAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,QACPlB,KAAM,QACNrB,MAAO,SAET,CACEuC,MAAO,eACPlB,KAAM,eACNrB,MAAO,gBAET,CACEuC,MAAO,kBACPlB,KAAM,kBACNrB,MAAO,mBAET,CACEuC,MAAO,gBACPlB,KAAM,gBACNrB,MAAO,iBAET,CACEuC,MAAO,iBACPlB,KAAM,iBACNrB,MAAO,kBAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,WACPlB,KAAM,WACNrB,MAAO,YAET,CACEuC,MAAO,WACPlB,KAAM,WACNrB,MAAO,YAET,CACEuC,MAAO,MACPlB,KAAM,MACNrB,MAAO,OAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,QACPlB,KAAM,QACNrB,MAAO,SAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,aACPlB,KAAM,aACNrB,MAAO,cAET,CACEuC,MAAO,UACPlB,KAAM,UACNrB,MAAO,WAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,UACPlB,KAAM,UACNrB,MAAO,WAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,WACPlB,KAAM,WACNrB,MAAO,YAET,CACEuC,MAAO,MACPlB,KAAM,MACNrB,MAAO,OAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,QACPlB,KAAM,QACNrB,MAAO,SAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,MACPlB,KAAM,MACNrB,MAAO,OAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,MACPlB,KAAM,MACNrB,MAAO,OAET,CACEuC,MAAO,MACPlB,KAAM,MACNrB,MAAO,OAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,QACPlB,KAAM,QACNrB,MAAO,SAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,MACPlB,KAAM,MACNrB,MAAO,OAET,CACEuC,MAAO,QACPlB,KAAM,QACNrB,MAAO,SAET,CACEuC,MAAO,UACPlB,KAAM,UACNrB,MAAO,WAET,CACEuC,MAAO,mBACPlB,KAAM,mBACNrB,MAAO,oBAET,CACEuC,MAAO,QACPlB,KAAM,QACNrB,MAAO,SAET,CACEuC,MAAO,MACPlB,KAAM,MACNrB,MAAO,OAET,CACEuC,MAAO,iBACPlB,KAAM,iBACNrB,MAAO,kBAET,CACEuC,MAAO,kBACPlB,KAAM,kBACNrB,MAAO,mBAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,UACPlB,KAAM,UACNrB,MAAO,WAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,QACPlB,KAAM,QACNrB,MAAO,SAET,CACEuC,MAAO,UACPlB,KAAM,UACNrB,MAAO,WAET,CACEuC,MAAO,aACPlB,KAAM,aACNrB,MAAO,cAET,CACEuC,MAAO,gBACPlB,KAAM,gBACNrB,MAAO,iBAET,CACEuC,MAAO,cACPlB,KAAM,cACNrB,MAAO,eAET,CACEuC,MAAO,UACPlB,KAAM,UACNrB,MAAO,WAET,CACEuC,MAAO,YACPlB,KAAM,YACNrB,MAAO,aAET,CACEuC,MAAO,aACPlB,KAAM,aACNrB,MAAO,cAET,CACEuC,MAAO,WACPlB,KAAM,WACNrB,MAAO,YAET,CACEuC,MAAO,aACPlB,KAAM,aACNrB,MAAO,cAET,CACEuC,MAAO,cACPlB,KAAM,cACNrB,MAAO,eAET,CACEuC,MAAO,aACPlB,KAAM,aACNrB,MAAO,cAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,YACPlB,KAAM,YACNrB,MAAO,aAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,UACPlB,KAAM,UACNrB,MAAO,WAET,CACEuC,MAAO,WACPlB,KAAM,WACNrB,MAAO,YAET,CACEuC,MAAO,eACPlB,KAAM,eACNrB,MAAO,gBAET,CACEuC,MAAO,oBACPlB,KAAM,oBACNrB,MAAO,qBAET,CACEuC,MAAO,sBACPlB,KAAM,sBACNrB,MAAO,uBAET,CACEuC,MAAO,qBACPlB,KAAM,qBACNrB,MAAO,sBAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,YACPlB,KAAM,YACNrB,MAAO,aAET,CACEuC,MAAO,qBACPlB,KAAM,qBACNrB,MAAO,sBAET,CACEuC,MAAO,WACPlB,KAAM,WACNrB,MAAO,YAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,YACPlB,KAAM,YACNrB,MAAO,aAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,UACPlB,KAAM,UACNrB,MAAO,WAET,CACEuC,MAAO,WACPlB,KAAM,WACNrB,MAAO,YAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,QACPlB,KAAM,QACNrB,MAAO,SAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,UACPlB,KAAM,UACNrB,MAAO,WAET,CACEuC,MAAO,UACPlB,KAAM,UACNrB,MAAO,WAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,eACPlB,KAAM,eACNrB,MAAO,gBAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,iBACPlB,KAAM,iBACNrB,MAAO,kBAET,CACEuC,MAAO,OACPlB,KAAM,OACNrB,MAAO,QAET,CACEuC,MAAO,UACPlB,KAAM,UACNrB,MAAO,WAET,CACEuC,MAAO,QACPlB,KAAM,QACNrB,MAAO,SAET,CACEuC,MAAO,SACPlB,KAAM,SACNrB,MAAO,UAET,CACEuC,MAAO,mBACPlB,KAAM,mBACNrB,MAAO,oBAET,CACEuC,MAAO,kBACPlB,KAAM,kBACNrB,MAAO,mBAET,CACEuC,MAAO,oBACPlB,KAAM,oBACNrB,MAAO,qBAET,CACEuC,MAAO,kBACPlB,KAAM,kBACNrB,MAAO,mBAET,CACEuC,MAAO,qBACPlB,KAAM,qBACNrB,MAAO,sBAET,CACEuC,MAAO,aACPlB,KAAM,aACNrB,MAAO,cAET,CACEuC,MAAO,qBACPlB,KAAM,qBACNrB,MAAO,sBAET,CACEuC,MAAO,kBACPlB,KAAM,kBACNrB,MAAO,mBAET,CACEuC,MAAO,kBACPlB,KAAM,kBACNrB,MAAO,mBAET,CACEuC,MAAO,aACPlB,KAAM,aACNrB,MAAO,cAET,CACEuC,MAAO,YACPlB,KAAM,YACNrB,MAAO,aAET,CACEuC,MAAO,uBACPlB,KAAM,uBACNrB,MAAO,wBAET,CACEuC,MAAO,aACPlB,KAAM,aACNrB,MAAO,cAET,CACEuC,MAAO,YACPlB,KAAM,YACNrB,MAAO,aAET,CACEuC,MAAO,cACPlB,KAAM,cACNrB,MAAO,eAET,CACEuC,MAAO,MACPlB,KAAM,MACNrB,MAAO,OAET,CACEuC,MAAO,gBACPlB,KAAM,gBACNrB,MAAO,iBAET,CACEuC,MAAO,MACPlB,KAAM,MACNrB,MAAO,OAET,CACEuC,MAAO,QACPlB,KAAM,QACNrB,MAAO,SAET,CACEuC,MAAO,cACPlB,KAAM,cACNrB,MAAO,eAET,CACEuC,MAAO,UACPlB,KAAM,UACNrB,MAAO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BAAe3d,EACtB8Z,EAAO8D,kBAAe5d,EACtB8Z,EAAO+D,gBAAa7d,EACpB8Z,EAAOgE,mBAAgB9d,GChCL+d,CAAa,CAAE9E,QAAAA,EAAS5W,OAAAA,EAAQia,YAAAA,EAAaxD,MAAAA,EAAOjd,IAAAA,EAAKqI,gBAAAA,EAAiBuD,mBAAAA,IAE1FuW,aACE,kBAAM,WACJxB,OAEF,CAACvD,IAGHgF,uBACE,iBAAO,CACLC,iBACEjF,EAAQwD,kBAAkBK,cAG9B,CAAC7D,KAGL1R,IAAKA,EAAI,CAAEC,WAAAA,EAAYC,mBAAAA"}
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@nebula.js/sn-action-button",
3
+ "version": "1.14.0",
4
+ "description": "Supernova action button",
5
+ "license": "MIT",
6
+ "author": "QlikTech International AB",
7
+ "keywords": [
8
+ "qlik",
9
+ "nebula",
10
+ "supernova"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/qlik-oss/sn-action-button/issues"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/qlik-oss/sn-action-button.git"
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "sn-action-button.js",
25
+ "sn-action-button.qext"
26
+ ],
27
+ "engines": {
28
+ "node": ">=8"
29
+ },
30
+ "main": "dist/sn-action-button.js",
31
+ "module": "dist/sn-action-button.esm.js",
32
+ "scripts": {
33
+ "build": "nebula build",
34
+ "lint": "eslint src",
35
+ "start": "nebula serve",
36
+ "sense": "nebula sense",
37
+ "test:unit": "aw -c aw.config.js",
38
+ "test:integration": "aw puppet --glob 'test/integration/**/*.spec.js'",
39
+ "prepublishOnly": "rm -rf dist && npm run build",
40
+ "prepare": "husky install"
41
+ },
42
+ "lint-staged": {
43
+ "*.{js, jsx}": [
44
+ "eslint --cache --fix"
45
+ ]
46
+ },
47
+ "peerDependencies": {
48
+ "@nebula.js/stardust": ">=1.7.0"
49
+ },
50
+ "devDependencies": {
51
+ "@after-work.js/aw": "6.0.14",
52
+ "@babel/cli": "7.15.7",
53
+ "@babel/core": "7.15.5",
54
+ "@babel/helper-define-map": "7.15.4",
55
+ "@babel/preset-env": "7.15.6",
56
+ "@commitlint/cli": "12.1.4",
57
+ "@commitlint/config-conventional": "12.1.4",
58
+ "@nebula.js/cli": "1.7.0",
59
+ "@nebula.js/cli-build": "1.7.0",
60
+ "@nebula.js/cli-sense": "1.7.0",
61
+ "@nebula.js/cli-serve": "1.7.0",
62
+ "@nebula.js/stardust": "1.7.0",
63
+ "@nebula.js/test-utils": "0.6.0",
64
+ "babel-plugin-istanbul": "6.0.0",
65
+ "eslint": "7.32.0",
66
+ "eslint-config-airbnb-base": "14.2.1",
67
+ "eslint-plugin-import": "2.24.2",
68
+ "eslint-plugin-mocha": "9.0.0",
69
+ "husky": "7.0.2",
70
+ "lint-staged": "11.1.2",
71
+ "mocha-junit-reporter": "2.0.0"
72
+ }
73
+ }