@bentley/ui-abstract
Advanced tools
Comparing version 1.13.0 to 1.14.0
@@ -5,2 +5,8 @@ { | ||
{ | ||
"version": "1.14.0", | ||
"tag": "@bentley/ui-abstract_v1.14.0", | ||
"date": "Tue, 31 Mar 2020 15:44:19 GMT", | ||
"comments": {} | ||
}, | ||
{ | ||
"version": "1.13.0", | ||
@@ -7,0 +13,0 @@ "tag": "@bentley/ui-abstract_v1.13.0", |
# Change Log - @bentley/ui-abstract | ||
This log was last generated on Wed, 04 Mar 2020 16:16:31 GMT and should not be manually modified. | ||
This log was last generated on Tue, 31 Mar 2020 15:44:19 GMT and should not be manually modified. | ||
## 1.14.0 | ||
Tue, 31 Mar 2020 15:44:19 GMT | ||
*Version update only* | ||
## 1.13.0 | ||
@@ -6,0 +11,0 @@ Wed, 04 Mar 2020 16:16:31 GMT |
@@ -50,3 +50,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
window.iModelJsVersions = new Map(); | ||
window.iModelJsVersions.set("ui-abstract", "1.13.0"); | ||
window.iModelJsVersions.set("ui-abstract", "1.14.0"); | ||
} | ||
@@ -53,0 +53,0 @@ /** @docs-package-description |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("bentleyjs_core")):"function"===typeof define&&define.amd?define("ui_abstract",["bentleyjs_core"],e):"object"===typeof exports?exports.ui_abstract=e(require("bentleyjs_core")):t.ui_abstract=e(t.bentleyjs_core)}(this,function(t){return(this.webpackJsonp=this.webpackJsonp||[]).push([[1],{"./lib/ui-abstract.js":function(t,e,i){"use strict";function s(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}Object.defineProperty(e,"__esModule",{value:!0}),s(i("./lib/ui-abstract/UiAbstract.js")),s(i("./lib/ui-abstract/UiAdmin.js")),s(i("./lib/ui-abstract/backstage/BackstageItem.js")),s(i("./lib/ui-abstract/backstage/BackstageItemsManager.js")),s(i("./lib/ui-abstract/items/AbstractGroupItemProps.js")),s(i("./lib/ui-abstract/items/BadgeType.js")),s(i("./lib/ui-abstract/items/ConditionalDisplayType.js")),s(i("./lib/ui-abstract/items/RelativePosition.js")),s(i("./lib/ui-abstract/statusbar/StatusBarItem.js")),s(i("./lib/ui-abstract/statusbar/StatusBarItemsManager.js")),s(i("./lib/ui-abstract/plugins/PluginUi.js")),s(i("./lib/ui-abstract/plugins/PluginUiManager.js")),s(i("./lib/ui-abstract/stage/Stage.js")),s(i("./lib/ui-abstract/utils/getClassName.js")),s(i("./lib/ui-abstract/utils/IconSpecUtilities.js")),s(i("./lib/ui-abstract/utils/UiError.js")),"undefined"!==typeof window&&window&&(window.iModelJsVersions||(window.iModelJsVersions=new Map),window.iModelJsVersions.set("ui-abstract","1.13.0"))},"./lib/ui-abstract/UiAbstract.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const s=i("./lib/ui-abstract/utils/UiError.js"),r=i("./lib/ui-abstract/utils/getClassName.js");class UiAbstract{static async initialize(t){UiAbstract._i18n=t,await UiAbstract._i18n.registerNamespace(UiAbstract.i18nNamespace).readFinished}static terminate(){UiAbstract._i18n&&UiAbstract._i18n.unregisterNamespace(UiAbstract.i18nNamespace),UiAbstract._i18n=void 0}static get i18n(){if(!UiAbstract._i18n)throw new s.UiError(UiAbstract.loggerCategory(this),"UiAbstract not initialized");return UiAbstract._i18n}static get i18nNamespace(){return"UiAbstract"}static translate(t,e){return UiAbstract.i18n.translateWithNamespace(UiAbstract.i18nNamespace,t,e)}static get packageName(){return"ui-abstract"}static loggerCategory(t){const e=r.getClassName(t);return UiAbstract.packageName+(e?`.${e}`:"")}}e.UiAbstract=UiAbstract},"./lib/ui-abstract/UiAdmin.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.UiAdmin=class UiAdmin{onInitialized(){}get cursorPosition(){return{x:0,y:0}}createXAndY(t,e){return{x:t,y:e}}showContextMenu(t,e,i){return!1}showToolbar(t,e,i,s,r,a,n){return!1}hideToolbar(){return!1}showMenuButton(t,e,i,s){return!1}hideMenuButton(t){return!1}showCalculator(t,e,i,s,r,a){return!1}hideCalculator(){return!1}showAngleEditor(t,e,i,s,r){return!1}showLengthEditor(t,e,i,s,r){return!1}showHeightEditor(t,e,i,s,r){return!1}hideInputEditor(){return!1}showHTMLElement(t,e,i,s,r,a){return!1}hideHTMLElement(){return!1}}},"./lib/ui-abstract/backstage/BackstageItem.js":function(t,e,i){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.ActionItem=1]="ActionItem",t[t.StageLauncher=2]="StageLauncher"}(s=e.BackstageItemType||(e.BackstageItemType={})),e.isActionItem=(t=>t.itemType===s.ActionItem),e.isStageLauncher=(t=>t.itemType===s.StageLauncher);class BackstageItemUtilities{}e.BackstageItemUtilities=BackstageItemUtilities,BackstageItemUtilities.createStageLauncher=((t,e,i,r,a,n)=>({groupPriority:e,icon:n,isEnabled:!0,isVisible:!0,id:t,itemPriority:i,itemType:s.StageLauncher,label:r,stageId:t,subtitle:a})),BackstageItemUtilities.createActionItem=((t,e,i,r,a,n,o)=>({execute:r,groupPriority:e,icon:o,isEnabled:!0,isVisible:!0,id:t,itemPriority:i,itemType:s.ActionItem,label:a,subtitle:n}))},"./lib/ui-abstract/backstage/BackstageItemsManager.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const s=i("@bentley/bentleyjs-core"),r=t=>!Array.isArray(t);e.BackstageItemsManager=class BackstageItemsManager{constructor(){this._items=[],this.onChanged=new s.BeEvent}get items(){return this._items}set items(t){this._items!==t&&(this._items=t,this.onChanged.raiseEvent({items:t}))}setIsVisible(t,e){const i=this._items.findIndex(e=>e.id===t);if(i<0)return;const s=this._items[i];if(s.isVisible===e)return;const r=Object.assign(Object.assign({},s),{isVisible:e});this.items=[...this._items.slice(0,i),r,...this._items.slice(i+1)]}setIsEnabled(t,e){const i=this._items.findIndex(e=>e.id===t);if(i<0)return;const s=this._items[i];if(s.isEnabled===e)return;const r=Object.assign(Object.assign({},s),{isEnabled:e});this.items=[...this._items.slice(0,i),r,...this._items.slice(i+1)]}add(t){let e;if(0===(e=(e=r(t)?[t]:t.filter((e,i)=>t.findIndex(t=>t.id===e.id)===i)).filter(t=>void 0===this._items.find(e=>e.id===t.id))).length)return;const i=[...this._items,...e];this.items=i}remove(t){const e=this._items.filter(e=>r(t)?e.id!==t:!t.find(t=>t===e.id));this.items=e}}},"./lib/ui-abstract/items/AbstractGroupItemProps.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Left=0]="Left",t[t.Top=1]="Top",t[t.Right=2]="Right",t[t.Bottom=3]="Bottom"}(e.GroupButtonDirection||(e.GroupButtonDirection={}))},"./lib/ui-abstract/items/BadgeType.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.None=0]="None",t[t.TechnicalPreview=1]="TechnicalPreview",t[t.New=2]="New"}(e.BadgeType||(e.BadgeType={}))},"./lib/ui-abstract/items/ConditionalDisplayType.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Visibility=0]="Visibility",t[t.EnableState=1]="EnableState"}(e.ConditionalDisplayType||(e.ConditionalDisplayType={}))},"./lib/ui-abstract/items/RelativePosition.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Left=0]="Left",t[t.Top=1]="Top",t[t.Right=2]="Right",t[t.Bottom=3]="Bottom",t[t.TopLeft=4]="TopLeft",t[t.TopRight=5]="TopRight",t[t.BottomLeft=6]="BottomLeft",t[t.BottomRight=7]="BottomRight"}(e.RelativePosition||(e.RelativePosition={}))},"./lib/ui-abstract/plugins/PluginUi.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.ActionButton=0]="ActionButton",t[t.GroupButton=1]="GroupButton"}(e.ToolbarItemType||(e.ToolbarItemType={}))},"./lib/ui-abstract/plugins/PluginUiManager.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const s=i("@bentley/bentleyjs-core"),r="imodeljs-frontend.Plugin";class PluginUiManager{static get registeredProviderIds(){return[...PluginUiManager._registeredPluginUiProviders.keys()]}static get hasRegisteredProviders(){return this._registeredPluginUiProviders.size>0}static getPluginUiProvider(t){return PluginUiManager._registeredPluginUiProviders.get(t)}static sendRegisteredEvent(t){PluginUiManager.onUiProviderRegisteredEvent.raiseEvent(t)}static register(t){PluginUiManager.getPluginUiProvider(t.id)?s.Logger.logInfo(r,`PluginUiProvider (${t.id}) is already loaded`):(PluginUiManager._registeredPluginUiProviders.set(t.id,t),s.Logger.logInfo(r,`PluginUiProvider (${t.id}) loaded`),PluginUiManager.sendRegisteredEvent({providerId:t.id}))}static unregister(t){PluginUiManager.getPluginUiProvider(t)&&(PluginUiManager._registeredPluginUiProviders.delete(t),s.Logger.logInfo(r,`PluginUiProvider (${t}) unloaded`),PluginUiManager.sendRegisteredEvent({providerId:t}))}static getToolbarItems(t){const e=[];return 0===PluginUiManager._registeredPluginUiProviders.size?e:(PluginUiManager._registeredPluginUiProviders.forEach(i=>{i.provideToolbarItems&&i.provideToolbarItems(t).forEach(t=>e.push(t))}),e)}static getStatusbarItems(t,e){const i=[];return 0===PluginUiManager._registeredPluginUiProviders.size?i:(PluginUiManager._registeredPluginUiProviders.forEach(s=>{s.provideStatusbarItems&&s.provideStatusbarItems(t,e).forEach(t=>i.push(t))}),i)}}e.PluginUiManager=PluginUiManager,PluginUiManager._registeredPluginUiProviders=new Map,PluginUiManager.onUiProviderRegisteredEvent=new s.BeEvent},"./lib/ui-abstract/stage/Stage.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.Private="Private",t.General="General",t.Redline="Redline"}(e.StageUsage||(e.StageUsage={}))},"./lib/ui-abstract/statusbar/StatusBarItem.js":function(t,e,i){"use strict";var s,r;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.ActionItem=1]="ActionItem",t[t.Label=2]="Label",t[t.CustomItem=3]="CustomItem"}(s=e.StatusBarItemType||(e.StatusBarItemType={})),function(t){t[t.Message=0]="Message",t[t.Left=0]="Left",t[t.Stage=1]="Stage",t[t.Center=1]="Center",t[t.Selection=2]="Selection",t[t.Right=2]="Right",t[t.Context=3]="Context"}(e.StatusBarSection||(e.StatusBarSection={})),function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(r=e.StatusbarLabelSide||(e.StatusbarLabelSide={})),e.isAbstractStatusBarActionItem=(t=>t.type===s.ActionItem),e.isAbstractStatusBarLabelItem=(t=>t.type===s.Label),e.isAbstractStatusBarCustomItem=(t=>t.type===s.CustomItem);class AbstractStatusBarItemUtilities{}e.AbstractStatusBarItemUtilities=AbstractStatusBarItemUtilities,AbstractStatusBarItemUtilities.createActionItem=((t,e,i,r,a,n)=>({id:t,section:e,itemPriority:i,icon:r,tooltip:a,isVisible:!0,execute:n,type:s.ActionItem})),AbstractStatusBarItemUtilities.createLabelItem=((t,e,i,a,n,o=r.Right)=>({id:t,section:e,itemPriority:i,icon:a,label:n,isVisible:!0,type:s.Label,labelSide:o}))},"./lib/ui-abstract/statusbar/StatusBarItemsManager.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const s=i("@bentley/bentleyjs-core"),r=t=>!Array.isArray(t);e.StatusBarItemsManager=class StatusBarItemsManager{constructor(){this._items=[],this.onItemsChanged=new s.BeEvent}loadItems(t){this._items=t}get items(){return this._items}set items(t){this._items!==t&&(this._items=t,this.onItemsChanged.raiseEvent({items:t}))}add(t){let e;if(0===(e=(e=r(t)?[t]:t.filter((e,i)=>t.findIndex(t=>t.id===e.id)===i)).filter(t=>void 0===this._items.find(e=>e.id===t.id))).length)return;const i=[...this._items,...e];this.items=i}remove(t){const e=this._items.filter(e=>r(t)?e.id!==t:!t.find(t=>t===e.id));this.items=e}removeAll(){this._items=[]}setIsVisible(t,e){const i=this._items.findIndex(e=>e.id===t);if(i<0)return;const s=this._items[i];if(s.isVisible===e)return;const r=Object.assign(Object.assign({},s),{isVisible:e});this.items=[...this._items.slice(0,i),r,...this._items.slice(i+1)]}setLabel(t,e){const i=this._items.findIndex(e=>e.id===t);if(i<0)return;const s=this._items[i];if(!("label"in s)||s.label===e)return;const r=Object.assign(Object.assign({},s),{label:e});this.items=[...this._items.slice(0,i),r,...this._items.slice(i+1)]}setTooltip(t,e){const i=this._items.findIndex(e=>e.id===t);if(i<0)return;const s=this._items[i];if(!("tooltip"in s)||s.tooltip===e)return;const r=Object.assign(Object.assign({},s),{tooltip:e});this.items=[...this._items.slice(0,i),r,...this._items.slice(i+1)]}}},"./lib/ui-abstract/utils/IconSpecUtilities.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class IconSpecUtilities{static createSvgIconSpec(t){return`${IconSpecUtilities.SVG_PREFIX}${t}`}static getSvgSource(t){let e;return t.startsWith(IconSpecUtilities.SVG_PREFIX)&&t.length>4&&(e=t.slice(4)),e}}e.IconSpecUtilities=IconSpecUtilities,IconSpecUtilities.SVG_PREFIX="svg:"},"./lib/ui-abstract/utils/UiError.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const s=i("@bentley/bentleyjs-core");e.UiError=class UiError extends s.BentleyError{constructor(t,e,i=s.BentleyStatus.ERROR,r=s.Logger.logError,a){super(i,e,r,t,a)}}},"./lib/ui-abstract/utils/getClassName.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getClassName=(t=>{let e="";return t&&(t.name?e=t.name:t.constructor&&t.constructor.name&&(e=t.constructor.name)),e})},"@bentley/bentleyjs-core":function(e,i){e.exports=t}},[["./lib/ui-abstract.js",0]]])}); | ||
!function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("bentleyjs_core")):"function"===typeof define&&define.amd?define("ui_abstract",["bentleyjs_core"],e):"object"===typeof exports?exports.ui_abstract=e(require("bentleyjs_core")):t.ui_abstract=e(t.bentleyjs_core)}(this,function(t){return(this.webpackJsonp=this.webpackJsonp||[]).push([[1],{"./lib/ui-abstract.js":function(t,e,i){"use strict";function s(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}Object.defineProperty(e,"__esModule",{value:!0}),s(i("./lib/ui-abstract/UiAbstract.js")),s(i("./lib/ui-abstract/UiAdmin.js")),s(i("./lib/ui-abstract/backstage/BackstageItem.js")),s(i("./lib/ui-abstract/backstage/BackstageItemsManager.js")),s(i("./lib/ui-abstract/items/AbstractGroupItemProps.js")),s(i("./lib/ui-abstract/items/BadgeType.js")),s(i("./lib/ui-abstract/items/ConditionalDisplayType.js")),s(i("./lib/ui-abstract/items/RelativePosition.js")),s(i("./lib/ui-abstract/statusbar/StatusBarItem.js")),s(i("./lib/ui-abstract/statusbar/StatusBarItemsManager.js")),s(i("./lib/ui-abstract/plugins/PluginUi.js")),s(i("./lib/ui-abstract/plugins/PluginUiManager.js")),s(i("./lib/ui-abstract/stage/Stage.js")),s(i("./lib/ui-abstract/utils/getClassName.js")),s(i("./lib/ui-abstract/utils/IconSpecUtilities.js")),s(i("./lib/ui-abstract/utils/UiError.js")),"undefined"!==typeof window&&window&&(window.iModelJsVersions||(window.iModelJsVersions=new Map),window.iModelJsVersions.set("ui-abstract","1.14.0"))},"./lib/ui-abstract/UiAbstract.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const s=i("./lib/ui-abstract/utils/UiError.js"),r=i("./lib/ui-abstract/utils/getClassName.js");class UiAbstract{static async initialize(t){UiAbstract._i18n=t,await UiAbstract._i18n.registerNamespace(UiAbstract.i18nNamespace).readFinished}static terminate(){UiAbstract._i18n&&UiAbstract._i18n.unregisterNamespace(UiAbstract.i18nNamespace),UiAbstract._i18n=void 0}static get i18n(){if(!UiAbstract._i18n)throw new s.UiError(UiAbstract.loggerCategory(this),"UiAbstract not initialized");return UiAbstract._i18n}static get i18nNamespace(){return"UiAbstract"}static translate(t,e){return UiAbstract.i18n.translateWithNamespace(UiAbstract.i18nNamespace,t,e)}static get packageName(){return"ui-abstract"}static loggerCategory(t){const e=r.getClassName(t);return UiAbstract.packageName+(e?`.${e}`:"")}}e.UiAbstract=UiAbstract},"./lib/ui-abstract/UiAdmin.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.UiAdmin=class UiAdmin{onInitialized(){}get cursorPosition(){return{x:0,y:0}}createXAndY(t,e){return{x:t,y:e}}showContextMenu(t,e,i){return!1}showToolbar(t,e,i,s,r,a,n){return!1}hideToolbar(){return!1}showMenuButton(t,e,i,s){return!1}hideMenuButton(t){return!1}showCalculator(t,e,i,s,r,a){return!1}hideCalculator(){return!1}showAngleEditor(t,e,i,s,r){return!1}showLengthEditor(t,e,i,s,r){return!1}showHeightEditor(t,e,i,s,r){return!1}hideInputEditor(){return!1}showHTMLElement(t,e,i,s,r,a){return!1}hideHTMLElement(){return!1}}},"./lib/ui-abstract/backstage/BackstageItem.js":function(t,e,i){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.ActionItem=1]="ActionItem",t[t.StageLauncher=2]="StageLauncher"}(s=e.BackstageItemType||(e.BackstageItemType={})),e.isActionItem=(t=>t.itemType===s.ActionItem),e.isStageLauncher=(t=>t.itemType===s.StageLauncher);class BackstageItemUtilities{}e.BackstageItemUtilities=BackstageItemUtilities,BackstageItemUtilities.createStageLauncher=((t,e,i,r,a,n)=>({groupPriority:e,icon:n,isEnabled:!0,isVisible:!0,id:t,itemPriority:i,itemType:s.StageLauncher,label:r,stageId:t,subtitle:a})),BackstageItemUtilities.createActionItem=((t,e,i,r,a,n,o)=>({execute:r,groupPriority:e,icon:o,isEnabled:!0,isVisible:!0,id:t,itemPriority:i,itemType:s.ActionItem,label:a,subtitle:n}))},"./lib/ui-abstract/backstage/BackstageItemsManager.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const s=i("@bentley/bentleyjs-core"),r=t=>!Array.isArray(t);e.BackstageItemsManager=class BackstageItemsManager{constructor(){this._items=[],this.onChanged=new s.BeEvent}get items(){return this._items}set items(t){this._items!==t&&(this._items=t,this.onChanged.raiseEvent({items:t}))}setIsVisible(t,e){const i=this._items.findIndex(e=>e.id===t);if(i<0)return;const s=this._items[i];if(s.isVisible===e)return;const r=Object.assign(Object.assign({},s),{isVisible:e});this.items=[...this._items.slice(0,i),r,...this._items.slice(i+1)]}setIsEnabled(t,e){const i=this._items.findIndex(e=>e.id===t);if(i<0)return;const s=this._items[i];if(s.isEnabled===e)return;const r=Object.assign(Object.assign({},s),{isEnabled:e});this.items=[...this._items.slice(0,i),r,...this._items.slice(i+1)]}add(t){let e;if(0===(e=(e=r(t)?[t]:t.filter((e,i)=>t.findIndex(t=>t.id===e.id)===i)).filter(t=>void 0===this._items.find(e=>e.id===t.id))).length)return;const i=[...this._items,...e];this.items=i}remove(t){const e=this._items.filter(e=>r(t)?e.id!==t:!t.find(t=>t===e.id));this.items=e}}},"./lib/ui-abstract/items/AbstractGroupItemProps.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Left=0]="Left",t[t.Top=1]="Top",t[t.Right=2]="Right",t[t.Bottom=3]="Bottom"}(e.GroupButtonDirection||(e.GroupButtonDirection={}))},"./lib/ui-abstract/items/BadgeType.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.None=0]="None",t[t.TechnicalPreview=1]="TechnicalPreview",t[t.New=2]="New"}(e.BadgeType||(e.BadgeType={}))},"./lib/ui-abstract/items/ConditionalDisplayType.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Visibility=0]="Visibility",t[t.EnableState=1]="EnableState"}(e.ConditionalDisplayType||(e.ConditionalDisplayType={}))},"./lib/ui-abstract/items/RelativePosition.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Left=0]="Left",t[t.Top=1]="Top",t[t.Right=2]="Right",t[t.Bottom=3]="Bottom",t[t.TopLeft=4]="TopLeft",t[t.TopRight=5]="TopRight",t[t.BottomLeft=6]="BottomLeft",t[t.BottomRight=7]="BottomRight"}(e.RelativePosition||(e.RelativePosition={}))},"./lib/ui-abstract/plugins/PluginUi.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.ActionButton=0]="ActionButton",t[t.GroupButton=1]="GroupButton"}(e.ToolbarItemType||(e.ToolbarItemType={}))},"./lib/ui-abstract/plugins/PluginUiManager.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const s=i("@bentley/bentleyjs-core"),r="imodeljs-frontend.Plugin";class PluginUiManager{static get registeredProviderIds(){return[...PluginUiManager._registeredPluginUiProviders.keys()]}static get hasRegisteredProviders(){return this._registeredPluginUiProviders.size>0}static getPluginUiProvider(t){return PluginUiManager._registeredPluginUiProviders.get(t)}static sendRegisteredEvent(t){PluginUiManager.onUiProviderRegisteredEvent.raiseEvent(t)}static register(t){PluginUiManager.getPluginUiProvider(t.id)?s.Logger.logInfo(r,`PluginUiProvider (${t.id}) is already loaded`):(PluginUiManager._registeredPluginUiProviders.set(t.id,t),s.Logger.logInfo(r,`PluginUiProvider (${t.id}) loaded`),PluginUiManager.sendRegisteredEvent({providerId:t.id}))}static unregister(t){PluginUiManager.getPluginUiProvider(t)&&(PluginUiManager._registeredPluginUiProviders.delete(t),s.Logger.logInfo(r,`PluginUiProvider (${t}) unloaded`),PluginUiManager.sendRegisteredEvent({providerId:t}))}static getToolbarItems(t){const e=[];return 0===PluginUiManager._registeredPluginUiProviders.size?e:(PluginUiManager._registeredPluginUiProviders.forEach(i=>{i.provideToolbarItems&&i.provideToolbarItems(t).forEach(t=>e.push(t))}),e)}static getStatusbarItems(t,e){const i=[];return 0===PluginUiManager._registeredPluginUiProviders.size?i:(PluginUiManager._registeredPluginUiProviders.forEach(s=>{s.provideStatusbarItems&&s.provideStatusbarItems(t,e).forEach(t=>i.push(t))}),i)}}e.PluginUiManager=PluginUiManager,PluginUiManager._registeredPluginUiProviders=new Map,PluginUiManager.onUiProviderRegisteredEvent=new s.BeEvent},"./lib/ui-abstract/stage/Stage.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.Private="Private",t.General="General",t.Redline="Redline"}(e.StageUsage||(e.StageUsage={}))},"./lib/ui-abstract/statusbar/StatusBarItem.js":function(t,e,i){"use strict";var s,r;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.ActionItem=1]="ActionItem",t[t.Label=2]="Label",t[t.CustomItem=3]="CustomItem"}(s=e.StatusBarItemType||(e.StatusBarItemType={})),function(t){t[t.Message=0]="Message",t[t.Left=0]="Left",t[t.Stage=1]="Stage",t[t.Center=1]="Center",t[t.Selection=2]="Selection",t[t.Right=2]="Right",t[t.Context=3]="Context"}(e.StatusBarSection||(e.StatusBarSection={})),function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(r=e.StatusbarLabelSide||(e.StatusbarLabelSide={})),e.isAbstractStatusBarActionItem=(t=>t.type===s.ActionItem),e.isAbstractStatusBarLabelItem=(t=>t.type===s.Label),e.isAbstractStatusBarCustomItem=(t=>t.type===s.CustomItem);class AbstractStatusBarItemUtilities{}e.AbstractStatusBarItemUtilities=AbstractStatusBarItemUtilities,AbstractStatusBarItemUtilities.createActionItem=((t,e,i,r,a,n)=>({id:t,section:e,itemPriority:i,icon:r,tooltip:a,isVisible:!0,execute:n,type:s.ActionItem})),AbstractStatusBarItemUtilities.createLabelItem=((t,e,i,a,n,o=r.Right)=>({id:t,section:e,itemPriority:i,icon:a,label:n,isVisible:!0,type:s.Label,labelSide:o}))},"./lib/ui-abstract/statusbar/StatusBarItemsManager.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const s=i("@bentley/bentleyjs-core"),r=t=>!Array.isArray(t);e.StatusBarItemsManager=class StatusBarItemsManager{constructor(){this._items=[],this.onItemsChanged=new s.BeEvent}loadItems(t){this._items=t}get items(){return this._items}set items(t){this._items!==t&&(this._items=t,this.onItemsChanged.raiseEvent({items:t}))}add(t){let e;if(0===(e=(e=r(t)?[t]:t.filter((e,i)=>t.findIndex(t=>t.id===e.id)===i)).filter(t=>void 0===this._items.find(e=>e.id===t.id))).length)return;const i=[...this._items,...e];this.items=i}remove(t){const e=this._items.filter(e=>r(t)?e.id!==t:!t.find(t=>t===e.id));this.items=e}removeAll(){this._items=[]}setIsVisible(t,e){const i=this._items.findIndex(e=>e.id===t);if(i<0)return;const s=this._items[i];if(s.isVisible===e)return;const r=Object.assign(Object.assign({},s),{isVisible:e});this.items=[...this._items.slice(0,i),r,...this._items.slice(i+1)]}setLabel(t,e){const i=this._items.findIndex(e=>e.id===t);if(i<0)return;const s=this._items[i];if(!("label"in s)||s.label===e)return;const r=Object.assign(Object.assign({},s),{label:e});this.items=[...this._items.slice(0,i),r,...this._items.slice(i+1)]}setTooltip(t,e){const i=this._items.findIndex(e=>e.id===t);if(i<0)return;const s=this._items[i];if(!("tooltip"in s)||s.tooltip===e)return;const r=Object.assign(Object.assign({},s),{tooltip:e});this.items=[...this._items.slice(0,i),r,...this._items.slice(i+1)]}}},"./lib/ui-abstract/utils/IconSpecUtilities.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class IconSpecUtilities{static createSvgIconSpec(t){return`${IconSpecUtilities.SVG_PREFIX}${t}`}static getSvgSource(t){let e;return t.startsWith(IconSpecUtilities.SVG_PREFIX)&&t.length>4&&(e=t.slice(4)),e}}e.IconSpecUtilities=IconSpecUtilities,IconSpecUtilities.SVG_PREFIX="svg:"},"./lib/ui-abstract/utils/UiError.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const s=i("@bentley/bentleyjs-core");e.UiError=class UiError extends s.BentleyError{constructor(t,e,i=s.BentleyStatus.ERROR,r=s.Logger.logError,a){super(i,e,r,t,a)}}},"./lib/ui-abstract/utils/getClassName.js":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getClassName=(t=>{let e="";return t&&(t.name?e=t.name:t.constructor&&t.constructor.name&&(e=t.constructor.name)),e})},"@bentley/bentleyjs-core":function(e,i){e.exports=t}},[["./lib/ui-abstract.js",0]]])}); | ||
//# sourceMappingURL=ui-abstract.js.map |
{ | ||
"name": "@bentley/ui-abstract", | ||
"version": "1.13.0", | ||
"version": "1.14.0", | ||
"description": "iModel.js UI abstractions", | ||
@@ -58,5 +58,5 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"@bentley/bentleyjs-core": "^1.13.0", | ||
"@bentley/geometry-core": "^1.13.0", | ||
"@bentley/imodeljs-i18n": "^1.13.0" | ||
"@bentley/bentleyjs-core": "^1.14.0", | ||
"@bentley/geometry-core": "^1.14.0", | ||
"@bentley/imodeljs-i18n": "^1.14.0" | ||
}, | ||
@@ -68,7 +68,7 @@ "//devDependencies": [ | ||
"devDependencies": { | ||
"@bentley/build-tools": "1.13.0", | ||
"@bentley/bentleyjs-core": "1.13.0", | ||
"@bentley/geometry-core": "1.13.0", | ||
"@bentley/imodeljs-i18n": "1.13.0", | ||
"@bentley/webpack-tools": "1.13.0", | ||
"@bentley/build-tools": "1.14.0", | ||
"@bentley/bentleyjs-core": "1.14.0", | ||
"@bentley/geometry-core": "1.14.0", | ||
"@bentley/imodeljs-i18n": "1.14.0", | ||
"@bentley/webpack-tools": "1.14.0", | ||
"@types/chai": "^4.1.4", | ||
@@ -75,0 +75,0 @@ "@types/chai-as-promised": "^7", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162458
3190