UNPKG

@aotearoan/neon

Version:

Neon is a lightweight design library of Vue 3 components with minimal dependencies.

3 lines (2 loc) 2.29 kB
"use strict";var h=Object.defineProperty;var g=(p,o,m)=>o in p?h(p,o,{enumerable:!0,configurable:!0,writable:!0,value:m}):p[o]=m;var e=(p,o,m)=>(g(p,typeof o!="symbol"?o+"":o,m),m);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../enums/NeonPosition.cjs.js"),n=require("../enums/NeonDropdownPlacement.cjs.js"),t=class t{constructor(o,m,s){e(this,"placement");e(this,"majorPlacement");e(this,"minorPlacement");this.placement=o,this.majorPlacement=m,this.minorPlacement=s}static toNeonDropdownPlacementObject(o){return t.PLACEMENTS[o]}static flipMajor(o){return t.FLIP_MAJOR[o.placement]}static flipMinor(o){return t.FLIP_MINOR[o.placement]}static flip(o){return t.flipMinor(t.flipMajor(o))}};e(t,"TopLeft",new t(n.NeonDropdownPlacement.TopLeft,i.NeonPosition.Top,i.NeonPosition.Left)),e(t,"TopRight",new t(n.NeonDropdownPlacement.TopRight,i.NeonPosition.Top,i.NeonPosition.Right)),e(t,"BottomLeft",new t(n.NeonDropdownPlacement.BottomLeft,i.NeonPosition.Bottom,i.NeonPosition.Left)),e(t,"BottomRight",new t(n.NeonDropdownPlacement.BottomRight,i.NeonPosition.Bottom,i.NeonPosition.Right)),e(t,"LeftTop",new t(n.NeonDropdownPlacement.LeftTop,i.NeonPosition.Left,i.NeonPosition.Top)),e(t,"LeftBottom",new t(n.NeonDropdownPlacement.LeftBottom,i.NeonPosition.Left,i.NeonPosition.Bottom)),e(t,"RightTop",new t(n.NeonDropdownPlacement.RightTop,i.NeonPosition.Right,i.NeonPosition.Top)),e(t,"RightBottom",new t(n.NeonDropdownPlacement.RightBottom,i.NeonPosition.Right,i.NeonPosition.Bottom)),e(t,"PLACEMENTS",{"top-left":t.TopLeft,"top-right":t.TopRight,"bottom-left":t.BottomLeft,"bottom-right":t.BottomRight,"left-top":t.LeftTop,"left-bottom":t.LeftBottom,"right-top":t.RightTop,"right-bottom":t.RightBottom}),e(t,"FLIP_MAJOR",{"top-left":t.BottomLeft,"top-right":t.BottomRight,"bottom-left":t.TopLeft,"bottom-right":t.TopRight,"left-top":t.RightTop,"left-bottom":t.RightBottom,"right-top":t.LeftTop,"right-bottom":t.LeftBottom}),e(t,"FLIP_MINOR",{"top-left":t.TopRight,"top-right":t.TopLeft,"bottom-left":t.BottomRight,"bottom-right":t.BottomLeft,"left-top":t.LeftBottom,"left-bottom":t.LeftTop,"right-top":t.RightBottom,"right-bottom":t.RightTop});let f=t;exports.NeonDropdownPlacementObject=f; //# sourceMappingURL=NeonDropdownPlacementObject.cjs.js.map