@aquera/nile-elements 0.0.6-10 → 0.0.6-11

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.
Files changed (129) hide show
  1. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.d.ts +2 -0
  2. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js +2 -0
  3. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js.map +1 -1
  4. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle/index.d.ts +1 -0
  5. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle/index.js +2 -0
  6. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle/index.js.map +1 -0
  7. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/{nile-radio-button/nile-radio-button.css.d.ts → nile-button-toggle/nile-button-toggle.css.d.ts} +1 -1
  8. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle/nile-button-toggle.css.js +52 -0
  9. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle/nile-button-toggle.css.js.map +1 -0
  10. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle/nile-button-toggle.d.ts +39 -0
  11. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle/nile-button-toggle.js +94 -0
  12. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle/nile-button-toggle.js.map +1 -0
  13. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle-group/index.d.ts +1 -0
  14. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle-group/index.js +2 -0
  15. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle-group/index.js.map +1 -0
  16. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle-group/nile-button-toggle-group.css.d.ts +12 -0
  17. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle-group/nile-button-toggle-group.css.js +17 -0
  18. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle-group/nile-button-toggle-group.css.js.map +1 -0
  19. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle-group/nile-button-toggle-group.d.ts +37 -0
  20. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle-group/nile-button-toggle-group.js +76 -0
  21. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button-toggle-group/nile-button-toggle-group.js.map +1 -0
  22. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.esm.js +1 -1
  25. package/dist/index.iife.js +249 -194
  26. package/dist/nile-button-toggle/index.cjs.js +2 -0
  27. package/dist/nile-button-toggle/index.esm.js +1 -0
  28. package/dist/nile-button-toggle/nile-button-toggle.cjs.js +2 -0
  29. package/dist/nile-button-toggle/nile-button-toggle.cjs.js.map +1 -0
  30. package/dist/nile-button-toggle/nile-button-toggle.css.cjs.js +2 -0
  31. package/dist/nile-button-toggle/nile-button-toggle.css.cjs.js.map +1 -0
  32. package/dist/nile-button-toggle/nile-button-toggle.css.esm.js +40 -0
  33. package/dist/nile-button-toggle/nile-button-toggle.esm.js +6 -0
  34. package/dist/nile-button-toggle-group/index.cjs.js +2 -0
  35. package/dist/nile-button-toggle-group/index.esm.js +1 -0
  36. package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js +2 -0
  37. package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js.map +1 -0
  38. package/dist/nile-button-toggle-group/nile-button-toggle-group.css.cjs.js +2 -0
  39. package/dist/nile-button-toggle-group/nile-button-toggle-group.css.cjs.js.map +1 -0
  40. package/dist/nile-button-toggle-group/nile-button-toggle-group.css.esm.js +5 -0
  41. package/dist/nile-button-toggle-group/nile-button-toggle-group.esm.js +3 -0
  42. package/dist/src/index.d.ts +2 -0
  43. package/dist/src/index.js +2 -0
  44. package/dist/src/index.js.map +1 -1
  45. package/dist/src/nile-button-toggle/index.d.ts +1 -0
  46. package/dist/src/nile-button-toggle/index.js +2 -0
  47. package/dist/src/nile-button-toggle/index.js.map +1 -0
  48. package/dist/src/{nile-radio-button/nile-radio-button.css.d.ts → nile-button-toggle/nile-button-toggle.css.d.ts} +1 -1
  49. package/dist/src/nile-button-toggle/nile-button-toggle.css.js +52 -0
  50. package/dist/src/nile-button-toggle/nile-button-toggle.css.js.map +1 -0
  51. package/dist/src/nile-button-toggle/nile-button-toggle.d.ts +39 -0
  52. package/dist/src/nile-button-toggle/nile-button-toggle.js +94 -0
  53. package/dist/src/nile-button-toggle/nile-button-toggle.js.map +1 -0
  54. package/dist/src/nile-button-toggle-group/index.d.ts +1 -0
  55. package/dist/src/nile-button-toggle-group/index.js +2 -0
  56. package/dist/src/nile-button-toggle-group/index.js.map +1 -0
  57. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.css.d.ts +12 -0
  58. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.css.js +17 -0
  59. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.css.js.map +1 -0
  60. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.d.ts +37 -0
  61. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.js +76 -0
  62. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.js.map +1 -0
  63. package/dist/tsconfig.tsbuildinfo +1 -1
  64. package/package.json +1 -1
  65. package/src/index.ts +3 -1
  66. package/src/nile-button-toggle/index.ts +1 -0
  67. package/src/nile-button-toggle/nile-button-toggle.css.ts +54 -0
  68. package/src/nile-button-toggle/nile-button-toggle.ts +99 -0
  69. package/src/nile-button-toggle-group/index.ts +1 -0
  70. package/src/nile-button-toggle-group/nile-button-toggle-group.css.ts +19 -0
  71. package/src/nile-button-toggle-group/nile-button-toggle-group.ts +90 -0
  72. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button/index.d.ts +0 -1
  73. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button/index.js +0 -2
  74. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button/index.js.map +0 -1
  75. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button/nile-radio-button.css.js +0 -173
  76. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button/nile-radio-button.css.js.map +0 -1
  77. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button/nile-radio-button.d.ts +0 -57
  78. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button/nile-radio-button.js +0 -145
  79. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button/nile-radio-button.js.map +0 -1
  80. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button-group/index.d.ts +0 -1
  81. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button-group/index.js +0 -2
  82. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button-group/index.js.map +0 -1
  83. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button-group/nile-radio-button-group.css.d.ts +0 -12
  84. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button-group/nile-radio-button-group.css.js +0 -70
  85. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button-group/nile-radio-button-group.css.js.map +0 -1
  86. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button-group/nile-radio-button-group.d.ts +0 -66
  87. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button-group/nile-radio-button-group.js +0 -308
  88. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-button-group/nile-radio-button-group.js.map +0 -1
  89. package/dist/nile-radio-button/index.cjs.js +0 -2
  90. package/dist/nile-radio-button/index.esm.js +0 -1
  91. package/dist/nile-radio-button/nile-radio-button.cjs.js +0 -2
  92. package/dist/nile-radio-button/nile-radio-button.cjs.js.map +0 -1
  93. package/dist/nile-radio-button/nile-radio-button.css.cjs.js +0 -2
  94. package/dist/nile-radio-button/nile-radio-button.css.cjs.js.map +0 -1
  95. package/dist/nile-radio-button/nile-radio-button.css.esm.js +0 -161
  96. package/dist/nile-radio-button/nile-radio-button.esm.js +0 -21
  97. package/dist/nile-radio-button-group/index.cjs.js +0 -2
  98. package/dist/nile-radio-button-group/index.esm.js +0 -1
  99. package/dist/nile-radio-button-group/nile-radio-button-group.cjs.js +0 -2
  100. package/dist/nile-radio-button-group/nile-radio-button-group.cjs.js.map +0 -1
  101. package/dist/nile-radio-button-group/nile-radio-button-group.css.cjs.js +0 -2
  102. package/dist/nile-radio-button-group/nile-radio-button-group.css.cjs.js.map +0 -1
  103. package/dist/nile-radio-button-group/nile-radio-button-group.css.esm.js +0 -58
  104. package/dist/nile-radio-button-group/nile-radio-button-group.esm.js +0 -56
  105. package/dist/src/nile-radio-button/index.d.ts +0 -1
  106. package/dist/src/nile-radio-button/index.js +0 -2
  107. package/dist/src/nile-radio-button/index.js.map +0 -1
  108. package/dist/src/nile-radio-button/nile-radio-button.css.js +0 -173
  109. package/dist/src/nile-radio-button/nile-radio-button.css.js.map +0 -1
  110. package/dist/src/nile-radio-button/nile-radio-button.d.ts +0 -57
  111. package/dist/src/nile-radio-button/nile-radio-button.js +0 -145
  112. package/dist/src/nile-radio-button/nile-radio-button.js.map +0 -1
  113. package/dist/src/nile-radio-button-group/index.d.ts +0 -1
  114. package/dist/src/nile-radio-button-group/index.js +0 -2
  115. package/dist/src/nile-radio-button-group/index.js.map +0 -1
  116. package/dist/src/nile-radio-button-group/nile-radio-button-group.css.d.ts +0 -12
  117. package/dist/src/nile-radio-button-group/nile-radio-button-group.css.js +0 -70
  118. package/dist/src/nile-radio-button-group/nile-radio-button-group.css.js.map +0 -1
  119. package/dist/src/nile-radio-button-group/nile-radio-button-group.d.ts +0 -66
  120. package/dist/src/nile-radio-button-group/nile-radio-button-group.js +0 -308
  121. package/dist/src/nile-radio-button-group/nile-radio-button-group.js.map +0 -1
  122. package/src/nile-radio-button/index.ts +0 -1
  123. package/src/nile-radio-button/nile-radio-button.css.ts +0 -175
  124. package/src/nile-radio-button/nile-radio-button.ts +0 -151
  125. package/src/nile-radio-button-group/index.ts +0 -1
  126. package/src/nile-radio-button-group/nile-radio-button-group.css.ts +0 -72
  127. package/src/nile-radio-button-group/nile-radio-button-group.ts +0 -337
  128. /package/dist/{nile-radio-button → nile-button-toggle}/index.cjs.js.map +0 -0
  129. /package/dist/{nile-radio-button-group → nile-button-toggle-group}/index.cjs.js.map +0 -0
@@ -0,0 +1,2 @@
1
+ System.register(["./nile-button-toggle.cjs.js","tslib","../index-cd83c5c8.cjs.js","lit/decorators.js","./nile-button-toggle.css.cjs.js","../property-0f6a51ec.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileButtonToggleCjsJs){_export("NileButtonToggle",_nileButtonToggleCjsJs.a);},function(_tslib){},function(_index001CjsJs){},function(_litDecoratorsJs){},function(_nileButtonToggleCssCjsJs){},function(_property002CjsJs){}],execute:function(){}};});
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ export{a as NileButtonToggle}from"./nile-button-toggle.esm.js";import"tslib";import"../index-cd2f9c12.esm.js";import"lit/decorators.js";import"./nile-button-toggle.css.esm.js";import"../property-09139d3c.esm.js";
@@ -0,0 +1,2 @@
1
+ System.register(["tslib","../index-cd83c5c8.cjs.js","lit/decorators.js","./nile-button-toggle.css.cjs.js","../property-0f6a51ec.cjs.js"],function(_export,_context){"use strict";var t,e,i,o,s,l,_templateObject,n,r;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_index001CjsJs){e=_index001CjsJs.s;i=_index001CjsJs.x;},function(_litDecoratorsJs){o=_litDecoratorsJs.customElement;},function(_nileButtonToggleCssCjsJs){s=_nileButtonToggleCssCjsJs.s;},function(_property002CjsJs){l=_property002CjsJs.n;}],execute:function(){_export("a",n=/*#__PURE__*/function(_e){_inherits(n,_e);var _super=_createSuper(n);function n(){var _this;_classCallCheck(this,n);_this=_super.apply(this,arguments),_this.active=!1,_this.initial=!1,_this.middle=!1,_this.end=!1,_this.value="";return _this;}_createClass(n,[{key:"connectedCallback",value:function connectedCallback(){_get(_getPrototypeOf(n.prototype),"connectedCallback",this).call(this),this.addEventListener("click",this.toggle);}},{key:"disconnectedCallback",value:function disconnectedCallback(){this.removeEventListener("click",this.toggle),_get(_getPrototypeOf(n.prototype),"disconnectedCallback",this).call(this);}},{key:"toggle",value:function toggle(){this.active=!0;var t={active:this.active,value:this.value};this.dispatchEvent(new CustomEvent("nile-toggle-changed",{detail:t,bubbles:!0}));}},{key:"render",value:function render(){var t=["nile-button-toggle"];this.active&&t.push("nile-button-toggle__active"),this.initial&&t.push("nile-button-toggle__initial"),this.middle&&t.push("nile-button-toggle__middle"),this.end&&t.push("nile-button-toggle__end");var e=t.join(" ");return i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"","\">\n <slot name=\"prefix\"></slot>\n <slot> </slot>\n </div>\n "])),e);}}],[{key:"styles",get:function get(){return[s];}}]);return n;}(e));t([l({type:Boolean,reflect:!0})],n.prototype,"active",void 0),t([l({type:Boolean,reflect:!0})],n.prototype,"initial",void 0),t([l({type:Boolean,reflect:!0})],n.prototype,"middle",void 0),t([l({type:Boolean,reflect:!0})],n.prototype,"end",void 0),t([l({type:String})],n.prototype,"value",void 0),_export("a",n=t([o("nile-button-toggle")],n));_export("N",r=n);}};});
2
+ //# sourceMappingURL=nile-button-toggle.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-button-toggle.cjs.js","sources":["../../../src/nile-button-toggle/nile-button-toggle.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, html, property, CSSResultArray, TemplateResult} from 'lit-element';\nimport { customElement } from 'lit/decorators.js';\nimport {styles} from './nile-button-toggle.css';\n\n/**\n * Nile icon component.\n *\n * @tag nile-button-toggle\n *\n */\n@customElement('nile-button-toggle')\nexport class NileButtonToggle extends LitElement {\n\n\t/**\n\t * The styles for ButtonToggle\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n @property({ type: Boolean, reflect: true })\n active = false;\n\n @property({ type: Boolean, reflect: true })\n initial = false;\n\n @property({ type: Boolean, reflect: true })\n middle = false;\n\n @property({ type: Boolean, reflect: true })\n end = false;\n\n @property({ type: String })\n value = '';\n\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener('click', this.toggle);\n }\n\n disconnectedCallback() {\n this.removeEventListener('click', this.toggle);\n super.disconnectedCallback();\n }\n\n toggle() {\n this.active = true;\n const eventData = { active: this.active, value: this.value };\n this.dispatchEvent(new CustomEvent('nile-toggle-changed', { detail: eventData, bubbles: true }));\n\n }\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n public render(): TemplateResult {\n let classes = ['nile-button-toggle'];\n if (this.active) {\n classes.push('nile-button-toggle__active');\n }\n if (this.initial) {\n classes.push('nile-button-toggle__initial');\n }\n if (this.middle) {\n classes.push('nile-button-toggle__middle');\n }\n if (this.end) {\n classes.push('nile-button-toggle__end');\n }\n\n const classString = classes.join(' ');\n\n return html`\n <div class=\"${classString}\">\n <slot name=\"prefix\"></slot>\n <slot> </slot>\n </div>\n `;\n }\n\n\t/* #endregion */\n}\n\nexport default NileButtonToggle;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-button-toggle': NileButtonToggle;\n }\n}\n"],"names":["NileButtonToggle","_e","_inherits","n","_super","_createSuper","constructor","this","active","initial","middle","end","value","_this","_createClass","key","connectedCallback","super","addEventListener","toggle","disconnectedCallback","removeEventListener","eventData","dispatchEvent","CustomEvent","detail","bubbles","render","classes","push","classString","join","html","_templateObject","_taggedTemplateLiteral","get","styles","LitElement","__decorate","property","type","Boolean","reflect","prototype","String","customElement","_export","NileButtonToggle$1"],"mappings":"6tIAkBaA,CAAN,uBAAAC,EAAA,EAAAC,SAAA,CAAAC,CAAA,CAAAF,EAAA,MAAAG,MAAA,CAAAC,YAAA,CAAAF,CAAA,EAAA,SAAAA,EAAA,CAAAG,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCAWLC,KAAAA,CAAMC,MAAAA,CAAAA,CAAG,CAGTD,CAAAA,KAAAA,CAAOE,OAAG,CAAA,CAAA,CAAA,CAGVF,KAAAA,CAAMG,MAAAA,CAAAA,CAAG,CAGTH,CAAAA,KAAAA,CAAGI,KAAG,CAGNJ,CAAAA,KAAAA,CAAKK,KAAG,CAAA,EAiDT,QAAAC,KAAA,EAlEOC,YAAA,CAAAX,CAAA,GAAAY,GAAA,qBAAAH,KAAA,CAmBN,SAAAI,kBAAA,CACEC,CAAAA,IAAAA,CAAAA,eAAAA,CAAAA,CAAAA,CAAAA,SAAAA,4BAAAA,IAAAA,OACAV,IAAKW,CAAAA,gBAAAA,CAAiB,OAASX,CAAAA,IAAAA,CAAKY,MACrC,CAAA,EAED,GAAAJ,GAAA,wBAAAH,KAAA,UAAAQ,qBAAA,CAAAA,CACEb,IAAKc,CAAAA,mBAAAA,CAAoB,OAASd,CAAAA,IAAAA,CAAKY,MACvCF,CAAAA,CAAAA,IAAAA,CAAAA,eAAAA,CAAAA,CAAAA,CAAAA,SAAAA,+BAAAA,IAAAA,MACD,EAED,GAAAF,GAAA,UAAAH,KAAA,UAAAO,OAAA,CACEZ,CAAAA,IAAAA,CAAKC,MAAS,CAAA,CAAA,CAAA,CACd,GAAMc,CAAAA,CAAAA,CAAY,CAAEd,MAAAA,CAAQD,IAAKC,CAAAA,MAAAA,CAAQI,KAAOL,CAAAA,IAAAA,CAAKK,OACrDL,IAAKgB,CAAAA,aAAAA,CAAc,GAA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AA,OAAAA,CAASC,SAAS,CACrB1C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA2C,SAAA,CAAA,QAAA,CAAA,IAAA,EAGfL,CAAAA,CAAAA,CAAAA,CAAA,CADCC,CAAAA,CAAS,CAAEC,IAAMC,CAAAA,OAAAA,CAASC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACxB1C,CAAA2C,CAAAA,SAAAA,CAAA,KAAA,CAAA,IAAA,EAAA,CAAA,CAGZL,EAAA,CADCC,CAAAA,CAAS,CAAEC,IAAAA,CAAMI,MACP5C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA2C,SAAA,CAAA,OAAA,CAAA,IAAA,gBAvBA3C,CAAgBsC,CAAAA,CAAAA,CAAA,CAD5BO,CAAAA,CAAc,oBACF7C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,EA0Eb8C,OAAA,KAAAC,CAAAA,CAAe/C"}
@@ -0,0 +1,2 @@
1
+ System.register(["../index-cd83c5c8.cjs.js"],function(_export,_context){"use strict";var e,_templateObject,o;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}return{setters:[function(_index001CjsJs){e=_index001CjsJs.i;}],execute:function(){_export("s",o=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n }\n\n .nile-button-toggle {\n display: flex;\n padding: 12px;\n border: 1px solid #ccc;\n cursor: pointer;\n border-radius: 4px;\n color: #000;\n text-align: center;\n font-family: Colfax-regular;\n font-size: 14px;\n line-height: 14px;\n letter-spacing: 0.2px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n }\n\n .nile-button-toggle__initial {\n border-radius: 4px 0 0 4px;\n }\n\n .nile-button-toggle__end {\n border-radius: 0 4px 4px 0;\n }\n\n .nile-button-toggle__middle {\n border-width: 1px 0px;\n border-style: solid;\n border-color: #ccc;\n border-radius: 0;\n }\n\n .nile-button-toggle__active {\n background-color: #c7ced4;\n }\n"]))));}};});
2
+ //# sourceMappingURL=nile-button-toggle.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-button-toggle.css.cjs.js","sources":["../../../src/nile-button-toggle/nile-button-toggle.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit-element';\n\n/**\n * ButtonToggle CSS\n */\nexport const styles = css`\n :host {\n }\n\n .nile-button-toggle {\n display: flex;\n padding: 12px;\n border: 1px solid #ccc;\n cursor: pointer;\n border-radius: 4px;\n color: #000;\n text-align: center;\n font-family: Colfax-regular;\n font-size: 14px;\n line-height: 14px;\n letter-spacing: 0.2px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n }\n\n .nile-button-toggle__initial {\n border-radius: 4px 0 0 4px;\n }\n\n .nile-button-toggle__end {\n border-radius: 0 4px 4px 0;\n }\n\n .nile-button-toggle__middle {\n border-width: 1px 0px;\n border-style: solid;\n border-color: #ccc;\n border-radius: 0;\n }\n\n .nile-button-toggle__active {\n background-color: #c7ced4;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"gXAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -0,0 +1,40 @@
1
+ import{i as e}from"../index-cd2f9c12.esm.js";const o=e`
2
+ :host {
3
+ }
4
+
5
+ .nile-button-toggle {
6
+ display: flex;
7
+ padding: 12px;
8
+ border: 1px solid #ccc;
9
+ cursor: pointer;
10
+ border-radius: 4px;
11
+ color: #000;
12
+ text-align: center;
13
+ font-family: Colfax-regular;
14
+ font-size: 14px;
15
+ line-height: 14px;
16
+ letter-spacing: 0.2px;
17
+ justify-content: center;
18
+ align-items: center;
19
+ gap: 10px;
20
+ }
21
+
22
+ .nile-button-toggle__initial {
23
+ border-radius: 4px 0 0 4px;
24
+ }
25
+
26
+ .nile-button-toggle__end {
27
+ border-radius: 0 4px 4px 0;
28
+ }
29
+
30
+ .nile-button-toggle__middle {
31
+ border-width: 1px 0px;
32
+ border-style: solid;
33
+ border-color: #ccc;
34
+ border-radius: 0;
35
+ }
36
+
37
+ .nile-button-toggle__active {
38
+ background-color: #c7ced4;
39
+ }
40
+ `;export{o as s};
@@ -0,0 +1,6 @@
1
+ import{__decorate as t}from"tslib";import{s as e,x as i}from"../index-cd2f9c12.esm.js";import{customElement as o}from"lit/decorators.js";import{s}from"./nile-button-toggle.css.esm.js";import{n as l}from"../property-09139d3c.esm.js";let n=class extends e{constructor(){super(...arguments),this.active=!1,this.initial=!1,this.middle=!1,this.end=!1,this.value=""}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.toggle)}disconnectedCallback(){this.removeEventListener("click",this.toggle),super.disconnectedCallback()}toggle(){this.active=!0;const t={active:this.active,value:this.value};this.dispatchEvent(new CustomEvent("nile-toggle-changed",{detail:t,bubbles:!0}))}render(){let t=["nile-button-toggle"];this.active&&t.push("nile-button-toggle__active"),this.initial&&t.push("nile-button-toggle__initial"),this.middle&&t.push("nile-button-toggle__middle"),this.end&&t.push("nile-button-toggle__end");const e=t.join(" ");return i`
2
+ <div class="${e}">
3
+ <slot name="prefix"></slot>
4
+ <slot> </slot>
5
+ </div>
6
+ `}};t([l({type:Boolean,reflect:!0})],n.prototype,"active",void 0),t([l({type:Boolean,reflect:!0})],n.prototype,"initial",void 0),t([l({type:Boolean,reflect:!0})],n.prototype,"middle",void 0),t([l({type:Boolean,reflect:!0})],n.prototype,"end",void 0),t([l({type:String})],n.prototype,"value",void 0),n=t([o("nile-button-toggle")],n);var r=n;export{r as N,n as a};
@@ -0,0 +1,2 @@
1
+ System.register(["./nile-button-toggle-group.cjs.js","tslib","../index-cd83c5c8.cjs.js","lit/decorators.js","./nile-button-toggle-group.css.cjs.js","../nile-button-toggle/nile-button-toggle.cjs.js","../nile-button-toggle/nile-button-toggle.css.cjs.js","../property-0f6a51ec.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileButtonToggleGroupCjsJs){_export("NileButtonToggleGroup",_nileButtonToggleGroupCjsJs.N);},function(_tslib){},function(_index001CjsJs){},function(_litDecoratorsJs){},function(_nileButtonToggleGroupCssCjsJs){},function(_nileButtonToggleNileButtonToggleCjsJs){},function(_nileButtonToggleNileButtonToggleCssCjsJs){},function(_property002CjsJs){}],execute:function(){}};});
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ export{N as NileButtonToggleGroup}from"./nile-button-toggle-group.esm.js";import"tslib";import"../index-cd2f9c12.esm.js";import"lit/decorators.js";import"./nile-button-toggle-group.css.esm.js";import"../nile-button-toggle/nile-button-toggle.esm.js";import"../nile-button-toggle/nile-button-toggle.css.esm.js";import"../property-09139d3c.esm.js";
@@ -0,0 +1,2 @@
1
+ System.register(["tslib","../index-cd83c5c8.cjs.js","lit/decorators.js","./nile-button-toggle-group.css.cjs.js","../nile-button-toggle/nile-button-toggle.cjs.js","../nile-button-toggle/nile-button-toggle.css.cjs.js","../property-0f6a51ec.cjs.js"],function(_export,_context){"use strict";var t,o,e,s,l,n,i,g,_templateObject,r;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_index001CjsJs){o=_index001CjsJs.s;e=_index001CjsJs.x;},function(_litDecoratorsJs){s=_litDecoratorsJs.queryAll;l=_litDecoratorsJs.query;n=_litDecoratorsJs.customElement;},function(_nileButtonToggleGroupCssCjsJs){i=_nileButtonToggleGroupCssCjsJs.s;},function(_nileButtonToggleNileButtonToggleCjsJs){g=_nileButtonToggleNileButtonToggleCjsJs.N;},function(_nileButtonToggleNileButtonToggleCssCjsJs){},function(_property002CjsJs){}],execute:function(){_export("N",r=/*#__PURE__*/function(_o){_inherits(r,_o);var _super=_createSuper(r);function r(){_classCallCheck(this,r);return _super.apply(this,arguments);}_createClass(r,[{key:"connectedCallback",value:function connectedCallback(){_get(_getPrototypeOf(r.prototype),"connectedCallback",this).call(this);}},{key:"firstUpdated",value:function firstUpdated(){var _this=this;this.defaultSlot.addEventListener("slotchange",function(){return _this.updateTogglePositions();}),this.addEventListener("nile-toggle-changed",this.handleToggle),this.updateTogglePositions();}},{key:"updateTogglePositions",value:function updateTogglePositions(){var t=this.defaultSlot.assignedNodes({flatten:!0}).filter(function(t){return t instanceof g;});t.forEach(function(o,e){o.initial=0===e,o.middle=e>0&&e<t.length-1,o.end=e===t.length-1;});}},{key:"handleToggle",value:function handleToggle(t){var o=this.querySelectorAll("nile-button-toggle");o&&t.detail.active&&(o.forEach(function(o){o!==t.target&&(o.active=!1);}),this.dispatchEvent(new CustomEvent("nile-changed",{detail:{value:t.detail.value}})));}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t<slot> </slot>\n\t\t\t"])));}}],[{key:"styles",get:function get(){return[i];}}]);return r;}(o));t([s("nile-button-toggle")],r.prototype,"toggles",void 0),t([l("slot:not([name])")],r.prototype,"defaultSlot",void 0),_export("N",r=t([n("nile-button-toggle-group")],r));}};});
2
+ //# sourceMappingURL=nile-button-toggle-group.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-button-toggle-group.cjs.js","sources":["../../../src/nile-button-toggle-group/nile-button-toggle-group.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, html, property, CSSResultArray, TemplateResult} from 'lit-element';\nimport { customElement, query, queryAll } from 'lit/decorators.js';\nimport {styles} from './nile-button-toggle-group.css';\nimport NileButtonToggle from '../nile-button-toggle/nile-button-toggle';\n/**\n * Nile icon component.\n *\n * @tag nile-button-toggle-group\n *\n */\n@customElement('nile-button-toggle-group')\nexport class NileButtonToggleGroup extends LitElement {\n\n\t/**\n\t * The styles for ButtonToggleGroup\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n @queryAll('nile-button-toggle')\n private toggles!: NodeListOf<NileButtonToggle>;\n\n @query('slot:not([name])')\n private defaultSlot!: HTMLSlotElement;\n\n\n connectedCallback() {\n super.connectedCallback();\n }\n\n firstUpdated() {\n this.defaultSlot.addEventListener('slotchange', () => this.updateTogglePositions());\n this.addEventListener('nile-toggle-changed', this.handleToggle);\n this.updateTogglePositions();\n }\n\n updateTogglePositions() {\n const assignedNodes = this.defaultSlot.assignedNodes({flatten: true});\n const toggles = assignedNodes.filter(node => node instanceof NileButtonToggle) as NileButtonToggle[];\n\n toggles.forEach((toggle, index) => {\n toggle.initial = index === 0;\n toggle.middle = index > 0 && index < toggles.length - 1;\n toggle.end = index === toggles.length - 1;\n });\n }\n\n handleToggle(event: CustomEvent) {\n const toggles = this.querySelectorAll('nile-button-toggle');\n\n if (toggles && event.detail.active) {\n toggles.forEach((toggle: any) => {\n if (toggle !== event.target) {\n toggle.active = false;\n }\n });\n\n this.dispatchEvent(new CustomEvent('nile-changed', { detail: { value: event.detail.value } }));\n }\n };\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t\t<slot> </slot>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileButtonToggleGroup;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-button-toggle-group': NileButtonToggleGroup;\n }\n}\n"],"names":["NileButtonToggleGroup","_o","_inherits","r","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","connectedCallback","super","firstUpdated","this","defaultSlot","addEventListener","updateTogglePositions","handleToggle","toggles","assignedNodes","flatten","filter","node","NileButtonToggle","forEach","toggle","index","initial","middle","length","end","event","querySelectorAll","detail","active","target","dispatchEvent","CustomEvent","render","html","_templateObject","_taggedTemplateLiteral","__decorate","get","styles","LitElement","queryAll","prototype","query","_export","customElement"],"mappings":"0gJAkBaA,CAAN,uBAAAC,EAAA,EAAAC,SAAA,CAAAC,CAAA,CAAAF,EAAA,MAAAG,MAAA,CAAAC,YAAA,CAAAF,CAAA,WAAAA,EAAA,EAAAG,eAAA,MAAAH,CAAA,SAAAC,MAAA,CAAAG,KAAA,MAAAC,SAAA,GAAAC,YAAA,CAAAN,CAAA,GAAAO,GAAA,qBAAAC,KAAA,CAiBL,SAAAC,kBAAA,CACEC,CAAAA,IAAAA,CAAAA,eAAAA,CAAAA,CAAAA,CAAAA,SAAAA,4BAAAA,IAAAA,OACD,CAED,GAAAH,GAAA,gBAAAC,KAAA,UAAAG,aAAA,CAAAA,KAAAA,KAAAA,MACEC,IAAKC,CAAAA,WAAAA,CAAYC,gBAAiB,CAAA,YAAA,CAAc,iBAAMF,CAAAA,KAAAA,CAAKG,qBAC3DH,CAAAA,CAAAA,EAAAA,CAAAA,CAAAA,IAAAA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A,CAAAA,CAAAA,CAAAA,CAAAA,CAEtF,EAMK,GAAAD,GAAA,UAAAC,KAAA,UAAA6B,OAAA,CACN,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,uCAGX,CAjDAC,KAAAA,GAAAA,UAAAA,GAAAA,CALM,SAAAC,IAAA,CACN,CAAA,MAAO,CAACC,CAAAA,CACR,EASA,WAAA3C,CAAA,GAjByC4C,CAMnC,GAKNH,CAAAA,CAAA,CADCI,CAAS,CAAA,oBAAA,CAAA,CAAA,CACqChD,EAAAiD,SAAA,CAAA,SAAA,CAAA,IAAA,IAG/CL,CAAA,CAAA,CADCM,EAAM,kBAC+BlD,CAAAA,CAAAA,CAAAA,CAAAA,CAAAiD,UAAA,aAAA,CAAA,IAAA,EAAA,CAAA,CAAAE,OAAA,KAd3BnD,EAAqB4C,CAAA,CAAA,CADjCQ,CAAc,CAAA,0BAAA,CAAA,CAAA,CACFpD"}
@@ -0,0 +1,2 @@
1
+ System.register(["../index-cd83c5c8.cjs.js"],function(_export,_context){"use strict";var s,_templateObject,i;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}return{setters:[function(_index001CjsJs){s=_index001CjsJs.i;}],execute:function(){_export("s",i=s(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t:host {\n display: inline-flex;\n\t}\n"]))));}};});
2
+ //# sourceMappingURL=nile-button-toggle-group.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-button-toggle-group.css.cjs.js","sources":["../../../src/nile-button-toggle-group/nile-button-toggle-group.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit-element';\n\n/**\n * ButtonToggleGroup CSS\n */\nexport const styles = css`\n\t:host {\n display: inline-flex;\n\t}\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"gXAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -0,0 +1,5 @@
1
+ import{i as s}from"../index-cd2f9c12.esm.js";const e=s`
2
+ :host {
3
+ display: inline-flex;
4
+ }
5
+ `;export{e as s};
@@ -0,0 +1,3 @@
1
+ import{__decorate as t}from"tslib";import{s as e,x as o}from"../index-cd2f9c12.esm.js";import{queryAll as s,query as l,customElement as n}from"lit/decorators.js";import{s as i}from"./nile-button-toggle-group.css.esm.js";import{N as g}from"../nile-button-toggle/nile-button-toggle.esm.js";import"../nile-button-toggle/nile-button-toggle.css.esm.js";import"../property-09139d3c.esm.js";let r=class extends e{static get styles(){return[i]}connectedCallback(){super.connectedCallback()}firstUpdated(){this.defaultSlot.addEventListener("slotchange",(()=>this.updateTogglePositions())),this.addEventListener("nile-toggle-changed",this.handleToggle),this.updateTogglePositions()}updateTogglePositions(){const t=this.defaultSlot.assignedNodes({flatten:!0}).filter((t=>t instanceof g));t.forEach(((e,o)=>{e.initial=0===o,e.middle=o>0&&o<t.length-1,e.end=o===t.length-1}))}handleToggle(t){const e=this.querySelectorAll("nile-button-toggle");e&&t.detail.active&&(e.forEach((e=>{e!==t.target&&(e.active=!1)})),this.dispatchEvent(new CustomEvent("nile-changed",{detail:{value:t.detail.value}})))}render(){return o`
2
+ <slot> </slot>
3
+ `}};t([s("nile-button-toggle")],r.prototype,"toggles",void 0),t([l("slot:not([name])")],r.prototype,"defaultSlot",void 0),r=t([n("nile-button-toggle-group")],r);export{r as N};
@@ -30,5 +30,7 @@ export { NileFormErrorMessage } from './nile-form-error-message';
30
30
  export { NileFormHelpText } from './nile-form-help-text';
31
31
  export { NileCalendar } from './nile-calendar';
32
32
  export { NileLink } from './nile-link';
33
+ export { NileButtonToggleGroup } from './nile-button-toggle-group';
34
+ export { NileButtonToggle } from './nile-button-toggle';
33
35
  export { NileSwitcher } from './nile-switcher';
34
36
  export { NileContentEditor } from './nile-content-editor';
package/dist/src/index.js CHANGED
@@ -30,6 +30,8 @@ export { NileFormErrorMessage } from './nile-form-error-message';
30
30
  export { NileFormHelpText } from './nile-form-help-text';
31
31
  export { NileCalendar } from './nile-calendar';
32
32
  export { NileLink } from './nile-link';
33
+ export { NileButtonToggleGroup } from './nile-button-toggle-group';
34
+ export { NileButtonToggle } from './nile-button-toggle';
33
35
  export { NileSwitcher } from './nile-switcher';
34
36
  export { NileContentEditor } from './nile-content-editor';
35
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { NileButton } from './nile-button';\nexport { NileHeading } from './nile-heading';\nexport { NileIcon } from './nile-icon';\nexport { NileInput } from './nile-input';\nexport { NileSidebar } from './nile-sidebar';\nexport { NileMenu } from './nile-menu';\nexport { NileBadge } from './nile-badge';\nexport { NileDrawer } from './nile-drawer';\nexport { NileCheckbox } from './nile-checkbox';\nexport { NileRadio } from './nile-radio';\nexport { NileRadioGroup } from './nile-radio-group';\nexport { NilePopup } from './nile-popup';\nexport { NileTooltip } from './nile-tooltip';\nexport { NileSlideToggle } from './nile-slide-toggle';\nexport { NileLoader } from './nile-loader';\nexport { NileProgressBar } from './nile-progress-bar';\nexport { NileSpinner } from './nile-spinner';\nexport { NileSelect } from './nile-select';\nexport { NileOption } from './nile-option';\nexport { NileTag } from './nile-tag';\nexport { NileIconButton } from './nile-icon-button';\nexport { NileMenuItem } from './nile-menu-item';\nexport { NileDropdown } from './nile-dropdown';\nexport { NileAutoComplete } from './nile-auto-complete';\nexport { NileChip } from './nile-chip';\nexport { NileTextarea } from './nile-textarea';\nexport { NileDatePicker } from './nile-date-picker';\nexport { NileErrorMessage } from './nile-error-message';\nexport { NileFormErrorMessage } from './nile-form-error-message';\nexport { NileFormHelpText } from './nile-form-help-text';\nexport { NileCalendar } from './nile-calendar';\nexport { NileLink } from './nile-link';\nexport { NileSwitcher } from './nile-switcher';\nexport { NileContentEditor } from './nile-content-editor';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,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C","sourcesContent":["export { NileButton } from './nile-button';\nexport { NileHeading } from './nile-heading';\nexport { NileIcon } from './nile-icon';\nexport { NileInput } from './nile-input';\nexport { NileSidebar } from './nile-sidebar';\nexport { NileMenu } from './nile-menu';\nexport { NileBadge } from './nile-badge';\nexport { NileDrawer } from './nile-drawer';\nexport { NileCheckbox } from './nile-checkbox';\nexport { NileRadio } from './nile-radio';\nexport { NileRadioGroup } from './nile-radio-group';\nexport { NilePopup } from './nile-popup';\nexport { NileTooltip } from './nile-tooltip';\nexport { NileSlideToggle } from './nile-slide-toggle';\nexport { NileLoader } from './nile-loader';\nexport { NileProgressBar } from './nile-progress-bar';\nexport { NileSpinner } from './nile-spinner';\nexport { NileSelect } from './nile-select';\nexport { NileOption } from './nile-option';\nexport { NileTag } from './nile-tag';\nexport { NileIconButton } from './nile-icon-button';\nexport { NileMenuItem } from './nile-menu-item';\nexport { NileDropdown } from './nile-dropdown';\nexport { NileAutoComplete } from './nile-auto-complete';\nexport { NileChip } from './nile-chip';\nexport { NileTextarea } from './nile-textarea';\nexport { NileDatePicker } from './nile-date-picker';\nexport { NileErrorMessage } from './nile-error-message';\nexport { NileFormErrorMessage } from './nile-form-error-message';\nexport { NileFormHelpText } from './nile-form-help-text';\nexport { NileCalendar } from './nile-calendar';\nexport { NileLink} from './nile-link';\nexport { NileButtonToggleGroup } from './nile-button-toggle-group';\nexport { NileButtonToggle } from './nile-button-toggle';\nexport { NileSwitcher } from './nile-switcher';\nexport { NileContentEditor } from './nile-content-editor';\n"]}
@@ -0,0 +1 @@
1
+ export { NileButtonToggle } from './nile-button-toggle';
@@ -0,0 +1,2 @@
1
+ export { NileButtonToggle } from './nile-button-toggle';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-button-toggle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["export { NileButtonToggle } from './nile-button-toggle';\n"]}
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  /**
8
- * RadioButton CSS
8
+ * ButtonToggle CSS
9
9
  */
10
10
  export declare const styles: import("lit-element").CSSResult;
11
11
  declare const _default: import("lit-element").CSSResult[];
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Copyright Aquera Inc 2023
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { css } from 'lit-element';
8
+ /**
9
+ * ButtonToggle CSS
10
+ */
11
+ export const styles = css `
12
+ :host {
13
+ }
14
+
15
+ .nile-button-toggle {
16
+ display: flex;
17
+ padding: 12px;
18
+ border: 1px solid #ccc;
19
+ cursor: pointer;
20
+ border-radius: 4px;
21
+ color: #000;
22
+ text-align: center;
23
+ font-family: Colfax-regular;
24
+ font-size: 14px;
25
+ line-height: 14px;
26
+ letter-spacing: 0.2px;
27
+ justify-content: center;
28
+ align-items: center;
29
+ gap: 10px;
30
+ }
31
+
32
+ .nile-button-toggle__initial {
33
+ border-radius: 4px 0 0 4px;
34
+ }
35
+
36
+ .nile-button-toggle__end {
37
+ border-radius: 0 4px 4px 0;
38
+ }
39
+
40
+ .nile-button-toggle__middle {
41
+ border-width: 1px 0px;
42
+ border-style: solid;
43
+ border-color: #ccc;
44
+ border-radius: 0;
45
+ }
46
+
47
+ .nile-button-toggle__active {
48
+ background-color: #c7ced4;
49
+ }
50
+ `;
51
+ export default [styles];
52
+ //# sourceMappingURL=nile-button-toggle.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-button-toggle.css.js","sourceRoot":"","sources":["../../../src/nile-button-toggle/nile-button-toggle.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit-element';\n\n/**\n * ButtonToggle CSS\n */\nexport const styles = css`\n :host {\n }\n\n .nile-button-toggle {\n display: flex;\n padding: 12px;\n border: 1px solid #ccc;\n cursor: pointer;\n border-radius: 4px;\n color: #000;\n text-align: center;\n font-family: Colfax-regular;\n font-size: 14px;\n line-height: 14px;\n letter-spacing: 0.2px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n }\n\n .nile-button-toggle__initial {\n border-radius: 4px 0 0 4px;\n }\n\n .nile-button-toggle__end {\n border-radius: 0 4px 4px 0;\n }\n\n .nile-button-toggle__middle {\n border-width: 1px 0px;\n border-style: solid;\n border-color: #ccc;\n border-radius: 0;\n }\n\n .nile-button-toggle__active {\n background-color: #c7ced4;\n }\n`;\n\nexport default [styles];\n"]}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Copyright Aquera Inc 2023
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { LitElement, CSSResultArray, TemplateResult } from 'lit-element';
8
+ /**
9
+ * Nile icon component.
10
+ *
11
+ * @tag nile-button-toggle
12
+ *
13
+ */
14
+ export declare class NileButtonToggle extends LitElement {
15
+ /**
16
+ * The styles for ButtonToggle
17
+ * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
18
+ */
19
+ static get styles(): CSSResultArray;
20
+ active: boolean;
21
+ initial: boolean;
22
+ middle: boolean;
23
+ end: boolean;
24
+ value: string;
25
+ connectedCallback(): void;
26
+ disconnectedCallback(): void;
27
+ toggle(): void;
28
+ /**
29
+ * Render method
30
+ * @slot This is a slot test
31
+ */
32
+ render(): TemplateResult;
33
+ }
34
+ export default NileButtonToggle;
35
+ declare global {
36
+ interface HTMLElementTagNameMap {
37
+ 'nile-button-toggle': NileButtonToggle;
38
+ }
39
+ }
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Copyright Aquera Inc 2023
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { __decorate } from "tslib";
8
+ import { LitElement, html, property } from 'lit-element';
9
+ import { customElement } from 'lit/decorators.js';
10
+ import { styles } from './nile-button-toggle.css';
11
+ /**
12
+ * Nile icon component.
13
+ *
14
+ * @tag nile-button-toggle
15
+ *
16
+ */
17
+ let NileButtonToggle = class NileButtonToggle extends LitElement {
18
+ constructor() {
19
+ super(...arguments);
20
+ this.active = false;
21
+ this.initial = false;
22
+ this.middle = false;
23
+ this.end = false;
24
+ this.value = '';
25
+ /* #endregion */
26
+ }
27
+ /**
28
+ * The styles for ButtonToggle
29
+ * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
30
+ */
31
+ static get styles() {
32
+ return [styles];
33
+ }
34
+ connectedCallback() {
35
+ super.connectedCallback();
36
+ this.addEventListener('click', this.toggle);
37
+ }
38
+ disconnectedCallback() {
39
+ this.removeEventListener('click', this.toggle);
40
+ super.disconnectedCallback();
41
+ }
42
+ toggle() {
43
+ this.active = true;
44
+ const eventData = { active: this.active, value: this.value };
45
+ this.dispatchEvent(new CustomEvent('nile-toggle-changed', { detail: eventData, bubbles: true }));
46
+ }
47
+ /**
48
+ * Render method
49
+ * @slot This is a slot test
50
+ */
51
+ render() {
52
+ let classes = ['nile-button-toggle'];
53
+ if (this.active) {
54
+ classes.push('nile-button-toggle__active');
55
+ }
56
+ if (this.initial) {
57
+ classes.push('nile-button-toggle__initial');
58
+ }
59
+ if (this.middle) {
60
+ classes.push('nile-button-toggle__middle');
61
+ }
62
+ if (this.end) {
63
+ classes.push('nile-button-toggle__end');
64
+ }
65
+ const classString = classes.join(' ');
66
+ return html `
67
+ <div class="${classString}">
68
+ <slot name="prefix"></slot>
69
+ <slot> </slot>
70
+ </div>
71
+ `;
72
+ }
73
+ };
74
+ __decorate([
75
+ property({ type: Boolean, reflect: true })
76
+ ], NileButtonToggle.prototype, "active", void 0);
77
+ __decorate([
78
+ property({ type: Boolean, reflect: true })
79
+ ], NileButtonToggle.prototype, "initial", void 0);
80
+ __decorate([
81
+ property({ type: Boolean, reflect: true })
82
+ ], NileButtonToggle.prototype, "middle", void 0);
83
+ __decorate([
84
+ property({ type: Boolean, reflect: true })
85
+ ], NileButtonToggle.prototype, "end", void 0);
86
+ __decorate([
87
+ property({ type: String })
88
+ ], NileButtonToggle.prototype, "value", void 0);
89
+ NileButtonToggle = __decorate([
90
+ customElement('nile-button-toggle')
91
+ ], NileButtonToggle);
92
+ export { NileButtonToggle };
93
+ export default NileButtonToggle;
94
+ //# sourceMappingURL=nile-button-toggle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-button-toggle.js","sourceRoot":"","sources":["../../../src/nile-button-toggle/nile-button-toggle.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAiC,MAAM,aAAa,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;AAEhD;;;;;GAKG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QAWL,WAAM,GAAG,KAAK,CAAC;QAGf,YAAO,GAAG,KAAK,CAAC;QAGhB,WAAM,GAAG,KAAK,CAAC;QAGf,QAAG,GAAG,KAAK,CAAC;QAGZ,UAAK,GAAG,EAAE,CAAC;QAgDZ,gBAAgB;IACjB,CAAC;IAtEA;;;OAGG;IACI,MAAM,KAAK,MAAM;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;IAiBA,i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EAAE,IAAI,EAAE,CAAC;gDAC5B;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC3B;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAC5B;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAC/B;AAGZ;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CAChB;AAvBA,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAwE5B;SAxEY,gBAAgB;AA0E7B,eAAe,gBAAgB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, html, property, CSSResultArray, TemplateResult} from 'lit-element';\nimport { customElement } from 'lit/decorators.js';\nimport {styles} from './nile-button-toggle.css';\n\n/**\n * Nile icon component.\n *\n * @tag nile-button-toggle\n *\n */\n@customElement('nile-button-toggle')\nexport class NileButtonToggle extends LitElement {\n\n\t/**\n\t * The styles for ButtonToggle\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n @property({ type: Boolean, reflect: true })\n active = false;\n\n @property({ type: Boolean, reflect: true })\n initial = false;\n\n @property({ type: Boolean, reflect: true })\n middle = false;\n\n @property({ type: Boolean, reflect: true })\n end = false;\n\n @property({ type: String })\n value = '';\n\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener('click', this.toggle);\n }\n\n disconnectedCallback() {\n this.removeEventListener('click', this.toggle);\n super.disconnectedCallback();\n }\n\n toggle() {\n this.active = true;\n const eventData = { active: this.active, value: this.value };\n this.dispatchEvent(new CustomEvent('nile-toggle-changed', { detail: eventData, bubbles: true }));\n\n }\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n public render(): TemplateResult {\n let classes = ['nile-button-toggle'];\n if (this.active) {\n classes.push('nile-button-toggle__active');\n }\n if (this.initial) {\n classes.push('nile-button-toggle__initial');\n }\n if (this.middle) {\n classes.push('nile-button-toggle__middle');\n }\n if (this.end) {\n classes.push('nile-button-toggle__end');\n }\n\n const classString = classes.join(' ');\n\n return html`\n <div class=\"${classString}\">\n <slot name=\"prefix\"></slot>\n <slot> </slot>\n </div>\n `;\n }\n\n\t/* #endregion */\n}\n\nexport default NileButtonToggle;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-button-toggle': NileButtonToggle;\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ export { NileButtonToggleGroup } from './nile-button-toggle-group';
@@ -0,0 +1,2 @@
1
+ export { NileButtonToggleGroup } from './nile-button-toggle-group';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-button-toggle-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC","sourcesContent":["export { NileButtonToggleGroup } from './nile-button-toggle-group';\n"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright Aquera Inc 2023
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ /**
8
+ * ButtonToggleGroup CSS
9
+ */
10
+ export declare const styles: import("lit-element").CSSResult;
11
+ declare const _default: import("lit-element").CSSResult[];
12
+ export default _default;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright Aquera Inc 2023
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { css } from 'lit-element';
8
+ /**
9
+ * ButtonToggleGroup CSS
10
+ */
11
+ export const styles = css `
12
+ :host {
13
+ display: inline-flex;
14
+ }
15
+ `;
16
+ export default [styles];
17
+ //# sourceMappingURL=nile-button-toggle-group.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-button-toggle-group.css.js","sourceRoot":"","sources":["../../../src/nile-button-toggle-group/nile-button-toggle-group.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,aAAa,CAAC;AAEhC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;CAIxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit-element';\n\n/**\n * ButtonToggleGroup CSS\n */\nexport const styles = css`\n\t:host {\n display: inline-flex;\n\t}\n`;\n\nexport default [styles];\n"]}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Copyright Aquera Inc 2023
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { LitElement, CSSResultArray, TemplateResult } from 'lit-element';
8
+ /**
9
+ * Nile icon component.
10
+ *
11
+ * @tag nile-button-toggle-group
12
+ *
13
+ */
14
+ export declare class NileButtonToggleGroup extends LitElement {
15
+ /**
16
+ * The styles for ButtonToggleGroup
17
+ * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
18
+ */
19
+ static get styles(): CSSResultArray;
20
+ private toggles;
21
+ private defaultSlot;
22
+ connectedCallback(): void;
23
+ firstUpdated(): void;
24
+ updateTogglePositions(): void;
25
+ handleToggle(event: CustomEvent): void;
26
+ /**
27
+ * Render method
28
+ * @slot This is a slot test
29
+ */
30
+ render(): TemplateResult;
31
+ }
32
+ export default NileButtonToggleGroup;
33
+ declare global {
34
+ interface HTMLElementTagNameMap {
35
+ 'nile-button-toggle-group': NileButtonToggleGroup;
36
+ }
37
+ }
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Copyright Aquera Inc 2023
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { __decorate } from "tslib";
8
+ import { LitElement, html } from 'lit-element';
9
+ import { customElement, query, queryAll } from 'lit/decorators.js';
10
+ import { styles } from './nile-button-toggle-group.css';
11
+ import NileButtonToggle from '../nile-button-toggle/nile-button-toggle';
12
+ /**
13
+ * Nile icon component.
14
+ *
15
+ * @tag nile-button-toggle-group
16
+ *
17
+ */
18
+ let NileButtonToggleGroup = class NileButtonToggleGroup extends LitElement {
19
+ /**
20
+ * The styles for ButtonToggleGroup
21
+ * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
22
+ */
23
+ static get styles() {
24
+ return [styles];
25
+ }
26
+ connectedCallback() {
27
+ super.connectedCallback();
28
+ }
29
+ firstUpdated() {
30
+ this.defaultSlot.addEventListener('slotchange', () => this.updateTogglePositions());
31
+ this.addEventListener('nile-toggle-changed', this.handleToggle);
32
+ this.updateTogglePositions();
33
+ }
34
+ updateTogglePositions() {
35
+ const assignedNodes = this.defaultSlot.assignedNodes({ flatten: true });
36
+ const toggles = assignedNodes.filter(node => node instanceof NileButtonToggle);
37
+ toggles.forEach((toggle, index) => {
38
+ toggle.initial = index === 0;
39
+ toggle.middle = index > 0 && index < toggles.length - 1;
40
+ toggle.end = index === toggles.length - 1;
41
+ });
42
+ }
43
+ handleToggle(event) {
44
+ const toggles = this.querySelectorAll('nile-button-toggle');
45
+ if (toggles && event.detail.active) {
46
+ toggles.forEach((toggle) => {
47
+ if (toggle !== event.target) {
48
+ toggle.active = false;
49
+ }
50
+ });
51
+ this.dispatchEvent(new CustomEvent('nile-changed', { detail: { value: event.detail.value } }));
52
+ }
53
+ }
54
+ ;
55
+ /**
56
+ * Render method
57
+ * @slot This is a slot test
58
+ */
59
+ render() {
60
+ return html `
61
+ <slot> </slot>
62
+ `;
63
+ }
64
+ };
65
+ __decorate([
66
+ queryAll('nile-button-toggle')
67
+ ], NileButtonToggleGroup.prototype, "toggles", void 0);
68
+ __decorate([
69
+ query('slot:not([name])')
70
+ ], NileButtonToggleGroup.prototype, "defaultSlot", void 0);
71
+ NileButtonToggleGroup = __decorate([
72
+ customElement('nile-button-toggle-group')
73
+ ], NileButtonToggleGroup);
74
+ export { NileButtonToggleGroup };
75
+ export default NileButtonToggleGroup;
76
+ //# sourceMappingURL=nile-button-toggle-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-button-toggle-group.js","sourceRoot":"","sources":["../../../src/nile-button-toggle-group/nile-button-toggle-group.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAC,UAAU,EAAE,IAAI,EAA2C,MAAM,aAAa,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAC,MAAM,EAAC,MAAM,gCAAgC,CAAC;AACtD,OAAO,gBAAgB,MAAM,0CAA0C,CAAC;AACxE;;;;;GAKG;AAEI,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,UAAU;IAEpD;;;OAGG;IACI,MAAM,KAAK,MAAM;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;IASA,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAC5B,CAAC;IAED,YAAY;QACV,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAAC;QACpF,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAChE,IAAI,CAAC,qBAAqB,EAAE,CAAC;IAC/B,CAAC;IAED,qBAA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kB,CAAC;0DACY;AAd3B,qBAAqB;IADjC,aAAa,CAAC,0BAA0B,CAAC;GAC7B,qBAAqB,CA+DjC;SA/DY,qBAAqB;AAiElC,eAAe,qBAAqB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, html, property, CSSResultArray, TemplateResult} from 'lit-element';\nimport { customElement, query, queryAll } from 'lit/decorators.js';\nimport {styles} from './nile-button-toggle-group.css';\nimport NileButtonToggle from '../nile-button-toggle/nile-button-toggle';\n/**\n * Nile icon component.\n *\n * @tag nile-button-toggle-group\n *\n */\n@customElement('nile-button-toggle-group')\nexport class NileButtonToggleGroup extends LitElement {\n\n\t/**\n\t * The styles for ButtonToggleGroup\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n @queryAll('nile-button-toggle')\n private toggles!: NodeListOf<NileButtonToggle>;\n\n @query('slot:not([name])')\n private defaultSlot!: HTMLSlotElement;\n\n\n connectedCallback() {\n super.connectedCallback();\n }\n\n firstUpdated() {\n this.defaultSlot.addEventListener('slotchange', () => this.updateTogglePositions());\n this.addEventListener('nile-toggle-changed', this.handleToggle);\n this.updateTogglePositions();\n }\n\n updateTogglePositions() {\n const assignedNodes = this.defaultSlot.assignedNodes({flatten: true});\n const toggles = assignedNodes.filter(node => node instanceof NileButtonToggle) as NileButtonToggle[];\n\n toggles.forEach((toggle, index) => {\n toggle.initial = index === 0;\n toggle.middle = index > 0 && index < toggles.length - 1;\n toggle.end = index === toggles.length - 1;\n });\n }\n\n handleToggle(event: CustomEvent) {\n const toggles = this.querySelectorAll('nile-button-toggle');\n\n if (toggles && event.detail.active) {\n toggles.forEach((toggle: any) => {\n if (toggle !== event.target) {\n toggle.active = false;\n }\n });\n\n this.dispatchEvent(new CustomEvent('nile-changed', { detail: { value: event.detail.value } }));\n }\n };\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t\t<slot> </slot>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileButtonToggleGroup;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-button-toggle-group': NileButtonToggleGroup;\n }\n}\n"]}