import{h}from"../edel-elements.core.js";var ToolbarBorder,EdelButtonGroupComponent=function(){function t(){this.plain=!1}return t.prototype.render=function(){return h("slot",null)},t.prototype.hostData=function(){return{class:"buttongroup"}},t.prototype.componentDidLoad=function(){this.plain?this.hostElement.classList.add("buttongroup--plain"):this.hostElement.classList.remove("buttongroup--plain")},Object.defineProperty(t,"is",{get:function(){return"edel-button-group"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{hostElement:{elementRef:!0},plain:{type:Boolean,attr:"plain",watchCallbacks:["componentDidLoad"]}}},enumerable:!0,configurable:!0}),t}(),EdelButtonGroupItemComponent=function(){function t(){}return t.prototype.render=function(){return h("slot",null)},t.prototype.hostData=function(){return{class:"buttongroup-item"}},Object.defineProperty(t,"is",{get:function(){return"edel-button-group-item"},enumerable:!0,configurable:!0}),t}();!function(t){t.default="",t.bottom="bottom",t.top="top"}(ToolbarBorder||(ToolbarBorder={}));var EdelQuickNavigatorActions=function(){function t(){}return t.prototype.hostData=function(){return{class:"quickexplorer-actions"}},t.prototype.render=function(){return h("edel-toolbar",{border:ToolbarBorder.top},h("edel-button-group",{plain:!0},h("edel-button-group-item",null,h("edel-button",{slim:!0,plain:!0,icon:"filter"})),h("edel-button-group-item",null,h("edel-button",{slim:!0,plain:!0,icon:"sort-amount-down"}))),h("span",{class:"is-disabled"},"34/50"))},Object.defineProperty(t,"is",{get:function(){return"edel-quick-navigator-actions"},enumerable:!0,configurable:!0}),t}(),EdelToolbarComponent=function(){function t(){this.border=ToolbarBorder.default,this.noGrid=!1,this.background=!1,this.center=!1,this.useRadius=!1,this.spaced=!1,this.sticky=!1,this.fixed=!1,this.stickyBg=!1,this.toolbarSettingsPage=!1}return t.prototype.render=function(){return h("slot",null)},t.prototype.hostData=function(){return{class:"toolbar"}},t.prototype.componentDidLoad=function(){this.updateClasses()},t.prototype.updateClasses=function(){this.resetClasses(),this.border===ToolbarBorder.bottom&&this.host.classList.add("toolbar--border-bottom"),this.border===ToolbarBorder.top&&this.host.classList.add("toolbar--border-top"),this.noGrid||this.host.classList.add("toolbar--grid"),this.background&&this.host.classList.add("toolbar--background"),this.center&&this.host.classList.add("toolbar--center"),this.useRadius&&(this.host.classList.add("toolbar--background"),this.host.classList.add("toolbar--radius")),this.spaced&&this.host.classList.add("toolbar--spaced"),this.sticky&&this.host.classList.add("toolbar--sticky"),this.fixed&&this.host.classList.add("toolbar--fixed"),this.stickyBg&&this.host.classList.add("toolbar--sticky-background"),this.toolbarSettingsPage&&this.host.classList.add("toolbar","toolbar--grid","toolbar--sticky","toolbar--fixed","toolbar--border-bottom","toolbar--sticky-background")},t.prototype.resetClasses=function(){this.host.classList.remove("toolbar--border-bottom"),this.host.classList.remove("toolbar--border-top"),this.host.classList.remove("toolbar--border-bottom"),this.host.classList.remove("toolbar--border-top"),this.host.classList.remove("toolbar--grid"),this.host.classList.remove("toolbar--background"),this.host.classList.remove("toolbar--center"),this.host.classList.remove("toolbar--radius"),this.host.classList.remove("toolbar--spaced"),this.host.classList.remove("toolbar--sticky"),this.host.classList.remove("toolbar--fixed"),this.host.classList.remove("toolbar--sticky-background")},Object.defineProperty(t,"is",{get:function(){return"edel-toolbar"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{background:{type:Boolean,attr:"background",watchCallbacks:["componentDidLoad"]},border:{type:String,attr:"border",watchCallbacks:["componentDidLoad"]},center:{type:Boolean,attr:"center",watchCallbacks:["componentDidLoad"]},fixed:{type:Boolean,attr:"fixed",watchCallbacks:["componentDidLoad"]},host:{elementRef:!0},noGrid:{type:Boolean,attr:"no-grid",watchCallbacks:["componentDidLoad"]},spaced:{type:Boolean,attr:"spaced",watchCallbacks:["componentDidLoad"]},sticky:{type:Boolean,attr:"sticky",watchCallbacks:["componentDidLoad"]},stickyBg:{type:Boolean,attr:"sticky-bg",watchCallbacks:["componentDidLoad"]},toolbarSettingsPage:{type:Boolean,attr:"toolbar-settings-page",watchCallbacks:["componentDidLoad"]},useRadius:{type:Boolean,attr:"use-radius",watchCallbacks:["componentDidLoad"]}}},enumerable:!0,configurable:!0}),t}();export{EdelButtonGroupComponent as EdelButtonGroup,EdelButtonGroupItemComponent as EdelButtonGroupItem,EdelQuickNavigatorActions,EdelToolbarComponent as EdelToolbar};