@aquera/nile-elements 0.1.67-beta-2.8 → 0.1.67

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 (79) hide show
  1. package/README.md +3 -0
  2. package/demo/index.html +0 -18
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.esm.js +1 -1
  5. package/dist/index.js +69 -11
  6. package/dist/nile-code-editor/extensionSetup.cjs.js +3 -3
  7. package/dist/nile-code-editor/extensionSetup.cjs.js.map +1 -1
  8. package/dist/nile-code-editor/extensionSetup.esm.js +1 -1
  9. package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
  10. package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
  11. package/dist/nile-code-editor/nile-code-editor.esm.js +2 -2
  12. package/dist/nile-option/nile-option.cjs.js +1 -1
  13. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  14. package/dist/nile-option/nile-option.esm.js +2 -2
  15. package/dist/nile-option-group/index.cjs.js +2 -0
  16. package/dist/nile-option-group/index.cjs.js.map +1 -0
  17. package/dist/nile-option-group/index.esm.js +1 -0
  18. package/dist/nile-option-group/nile-option-group.cjs.js +2 -0
  19. package/dist/nile-option-group/nile-option-group.cjs.js.map +1 -0
  20. package/dist/nile-option-group/nile-option-group.css.cjs.js +2 -0
  21. package/dist/nile-option-group/nile-option-group.css.cjs.js.map +1 -0
  22. package/dist/nile-option-group/nile-option-group.css.esm.js +46 -0
  23. package/dist/nile-option-group/nile-option-group.esm.js +14 -0
  24. package/dist/nile-option-group/nile-option-group.interface.cjs.js +2 -0
  25. package/dist/nile-option-group/nile-option-group.interface.cjs.js.map +1 -0
  26. package/dist/nile-option-group/nile-option-group.interface.esm.js +1 -0
  27. package/dist/nile-select/nile-select.cjs.js +1 -1
  28. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  29. package/dist/nile-select/nile-select.esm.js +9 -9
  30. package/dist/nile-select/nile-select.interface.cjs.js +2 -0
  31. package/dist/nile-select/nile-select.interface.cjs.js.map +1 -0
  32. package/dist/nile-select/nile-select.interface.esm.js +1 -0
  33. package/dist/src/index.d.ts +1 -0
  34. package/dist/src/index.js +1 -0
  35. package/dist/src/index.js.map +1 -1
  36. package/dist/src/nile-code-editor/nile-code-editor.d.ts +0 -1
  37. package/dist/src/nile-code-editor/nile-code-editor.js +1 -10
  38. package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
  39. package/dist/src/nile-option/nile-option.d.ts +1 -0
  40. package/dist/src/nile-option/nile-option.js +5 -0
  41. package/dist/src/nile-option/nile-option.js.map +1 -1
  42. package/dist/src/nile-option-group/index.d.ts +1 -0
  43. package/dist/src/nile-option-group/index.js +2 -0
  44. package/dist/src/nile-option-group/index.js.map +1 -0
  45. package/dist/src/{nile-table-row-content/nile-table-row-content.css.d.ts → nile-option-group/nile-option-group.css.d.ts} +2 -2
  46. package/dist/src/nile-option-group/nile-option-group.css.js +58 -0
  47. package/dist/src/nile-option-group/nile-option-group.css.js.map +1 -0
  48. package/dist/src/nile-option-group/nile-option-group.d.ts +23 -0
  49. package/dist/src/nile-option-group/nile-option-group.interface.d.ts +22 -0
  50. package/dist/src/nile-option-group/nile-option-group.interface.js +2 -0
  51. package/dist/src/nile-option-group/nile-option-group.interface.js.map +1 -0
  52. package/dist/src/nile-option-group/nile-option-group.js +76 -0
  53. package/dist/src/nile-option-group/nile-option-group.js.map +1 -0
  54. package/dist/src/nile-select/nile-select.d.ts +6 -0
  55. package/dist/src/nile-select/nile-select.interface.d.ts +5 -0
  56. package/dist/src/nile-select/nile-select.interface.js +2 -0
  57. package/dist/src/nile-select/nile-select.interface.js.map +1 -0
  58. package/dist/src/nile-select/nile-select.js +59 -1
  59. package/dist/src/nile-select/nile-select.js.map +1 -1
  60. package/dist/tsconfig.tsbuildinfo +1 -1
  61. package/package.json +4 -3
  62. package/src/index.ts +2 -1
  63. package/src/nile-code-editor/nile-code-editor.ts +1 -16
  64. package/src/nile-option/nile-option.ts +3 -0
  65. package/src/nile-option-group/index.ts +1 -0
  66. package/src/nile-option-group/nile-option-group.css.ts +60 -0
  67. package/src/nile-option-group/nile-option-group.interface.ts +25 -0
  68. package/src/nile-option-group/nile-option-group.ts +84 -0
  69. package/src/nile-select/nile-select.interface.ts +5 -0
  70. package/src/nile-select/nile-select.ts +74 -2
  71. package/vscode-html-custom-data.json +27 -3
  72. package/dist/src/nile-table-row-content/index.d.ts +0 -1
  73. package/dist/src/nile-table-row-content/index.js +0 -2
  74. package/dist/src/nile-table-row-content/index.js.map +0 -1
  75. package/dist/src/nile-table-row-content/nile-table-row-content.css.js +0 -30
  76. package/dist/src/nile-table-row-content/nile-table-row-content.css.js.map +0 -1
  77. package/dist/src/nile-table-row-content/nile-table-row-content.d.ts +0 -32
  78. package/dist/src/nile-table-row-content/nile-table-row-content.js +0 -46
  79. package/dist/src/nile-table-row-content/nile-table-row-content.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-option-group.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,i,s,e,r,o,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;e=_litDecoratorsJs.customElement;},function(_nileOptionGroupCssCjsJs){r=_nileOptionGroupCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",n=/*#__PURE__*/function(_o){function n(){var _this;_classCallCheck(this,n);_this=_callSuper(this,n,arguments),_this.name="",_this.data=null;return _this;}_inherits(n,_o);return _createClass(n,[{key:"checkForImageOrIcon",value:function checkForImageOrIcon(){var _this$data,_this$data2,_this$data3;return((_this$data=this.data)===null||_this$data===void 0||(_this$data=_this$data.prefix)===null||_this$data===void 0||(_this$data=_this$data.icon)===null||_this$data===void 0?void 0:_this$data.name)||((_this$data2=this.data)===null||_this$data2===void 0||(_this$data2=_this$data2.prefix)===null||_this$data2===void 0||(_this$data2=_this$data2.image)===null||_this$data2===void 0?void 0:_this$data2.src)||((_this$data3=this.data)===null||_this$data3===void 0||(_this$data3=_this$data3.prefix)===null||_this$data3===void 0?void 0:_this$data3.prefixText);}},{key:"normalizeImageDimension",value:function normalizeImageDimension(t){if(null==t||""===t)return"20";var i=Number(t);return isNaN(i)||i<=0?"20":i>40?"25":i.toString();}},{key:"render",value:function render(){var _this$data4,_this$data5,_this$data6,_this$data7,_this$data8,_this$data9,_this$data10,_this$data11,_this$data12,_this$data13,_this$data14,_this$data15,_this$data16,_this$data17,_this$data18,_this$data19,_this$data20,_this$data21,_this$data22,_this$data23,_this$data24,_this$data25,_this$data26,_this$data27;return i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t<div part=\"option-group-header\" class=\"option-group-header\">\n\t\t\t\t<div part=\"content-container\" class=\"content-container ","\">\n\t\t\t\t\t<!-- prefix content -->\n\t\t\t\t\t","\n\n\t\t\t\t\t<!-- main content -->\n\t\t\t\t\t","\n\t\t\t\t</div>\n\n\t\t\t\t<!-- suffix content -->\n\t\t\t\t","\n\t\t\t</div>\n\t\t\t"])),this.checkForImageOrIcon()?"gap-18px":"",(_this$data4=this.data)!==null&&_this$data4!==void 0&&(_this$data4=_this$data4.prefix)!==null&&_this$data4!==void 0&&(_this$data4=_this$data4.icon)!==null&&_this$data4!==void 0&&_this$data4.name?i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-icon part=\"prefix-icon\" name=\"","\" size=\"","\" color=\"","\" method=\"","\"></nile-icon>"])),(_this$data5=this.data)===null||_this$data5===void 0||(_this$data5=_this$data5.prefix)===null||_this$data5===void 0||(_this$data5=_this$data5.icon)===null||_this$data5===void 0?void 0:_this$data5.name,((_this$data6=this.data)===null||_this$data6===void 0||(_this$data6=_this$data6.prefix)===null||_this$data6===void 0||(_this$data6=_this$data6.icon)===null||_this$data6===void 0?void 0:_this$data6.size)||"16",((_this$data7=this.data)===null||_this$data7===void 0||(_this$data7=_this$data7.prefix)===null||_this$data7===void 0||(_this$data7=_this$data7.icon)===null||_this$data7===void 0?void 0:_this$data7.color)||"var(--nile-colors-dark-500)",((_this$data8=this.data)===null||_this$data8===void 0||(_this$data8=_this$data8.prefix)===null||_this$data8===void 0||(_this$data8=_this$data8.icon)===null||_this$data8===void 0?void 0:_this$data8.method)||"fill"):(_this$data9=this.data)!==null&&_this$data9!==void 0&&(_this$data9=_this$data9.prefix)!==null&&_this$data9!==void 0&&_this$data9.prefixText?i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<span part=\"prefix-text\">","</span>"])),(_this$data10=this.data)===null||_this$data10===void 0||(_this$data10=_this$data10.prefix)===null||_this$data10===void 0?void 0:_this$data10.prefixText):(_this$data11=this.data)!==null&&_this$data11!==void 0&&(_this$data11=_this$data11.prefix)!==null&&_this$data11!==void 0&&(_this$data11=_this$data11.image)!==null&&_this$data11!==void 0&&_this$data11.src?i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<img part=\"prefix-image\" src=\"","\" width=\"","\" height=\"","\">"])),(_this$data12=this.data)===null||_this$data12===void 0||(_this$data12=_this$data12.prefix)===null||_this$data12===void 0||(_this$data12=_this$data12.image)===null||_this$data12===void 0?void 0:_this$data12.src,this.normalizeImageDimension((_this$data13=this.data)===null||_this$data13===void 0||(_this$data13=_this$data13.prefix)===null||_this$data13===void 0||(_this$data13=_this$data13.image)===null||_this$data13===void 0?void 0:_this$data13.width),this.normalizeImageDimension((_this$data14=this.data)===null||_this$data14===void 0||(_this$data14=_this$data14.prefix)===null||_this$data14===void 0||(_this$data14=_this$data14.image)===null||_this$data14===void 0?void 0:_this$data14.height)):i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<slot part=\"prefix\" name=\"prefix\" class=\"option-group-prefix\"></slot>"]))),(_this$data15=this.data)!==null&&_this$data15!==void 0&&_this$data15.textContent?i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<span part=\"content-text\">","</span>"])),(_this$data16=this.data)===null||_this$data16===void 0?void 0:_this$data16.textContent):i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<slot part=\"content\"></slot>"]))),(_this$data17=this.data)!==null&&_this$data17!==void 0&&(_this$data17=_this$data17.suffix)!==null&&_this$data17!==void 0&&(_this$data17=_this$data17.icon)!==null&&_this$data17!==void 0&&_this$data17.name?i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-icon part=\"suffix-icon\" name=\"","\" size=\"","\" color=\"","\" method=\"","\"></nile-icon>"])),(_this$data18=this.data)===null||_this$data18===void 0||(_this$data18=_this$data18.suffix)===null||_this$data18===void 0||(_this$data18=_this$data18.icon)===null||_this$data18===void 0?void 0:_this$data18.name,((_this$data19=this.data)===null||_this$data19===void 0||(_this$data19=_this$data19.suffix)===null||_this$data19===void 0||(_this$data19=_this$data19.icon)===null||_this$data19===void 0?void 0:_this$data19.size)||"16",((_this$data20=this.data)===null||_this$data20===void 0||(_this$data20=_this$data20.suffix)===null||_this$data20===void 0||(_this$data20=_this$data20.icon)===null||_this$data20===void 0?void 0:_this$data20.color)||"var(--nile-colors-dark-500)",((_this$data21=this.data)===null||_this$data21===void 0||(_this$data21=_this$data21.suffix)===null||_this$data21===void 0||(_this$data21=_this$data21.icon)===null||_this$data21===void 0?void 0:_this$data21.method)||"fill"):(_this$data22=this.data)!==null&&_this$data22!==void 0&&(_this$data22=_this$data22.suffix)!==null&&_this$data22!==void 0&&_this$data22.suffixText?i(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<span part=\"suffix-text\">","</span>"])),(_this$data23=this.data)===null||_this$data23===void 0||(_this$data23=_this$data23.suffix)===null||_this$data23===void 0?void 0:_this$data23.suffixText):(_this$data24=this.data)!==null&&_this$data24!==void 0&&(_this$data24=_this$data24.suffix)!==null&&_this$data24!==void 0&&(_this$data24=_this$data24.image)!==null&&_this$data24!==void 0&&_this$data24.src?i(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["<img part=\"suffix-image\" src=\"","\" width=\"","\" height=\"","\">"])),(_this$data25=this.data)===null||_this$data25===void 0||(_this$data25=_this$data25.prefix)===null||_this$data25===void 0||(_this$data25=_this$data25.image)===null||_this$data25===void 0?void 0:_this$data25.src,this.normalizeImageDimension((_this$data26=this.data)===null||_this$data26===void 0||(_this$data26=_this$data26.suffix)===null||_this$data26===void 0||(_this$data26=_this$data26.image)===null||_this$data26===void 0?void 0:_this$data26.width),this.normalizeImageDimension((_this$data27=this.data)===null||_this$data27===void 0||(_this$data27=_this$data27.suffix)===null||_this$data27===void 0||(_this$data27=_this$data27.image)===null||_this$data27===void 0?void 0:_this$data27.height)):i(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["<slot part=\"suffix\" name=\"suffix\" class=\"option-group-suffix\"></slot>"]))));}}],[{key:"styles",get:function get(){return[r];}}]);}(o));t([s({type:String,reflect:!0,attribute:!0})],n.prototype,"name",void 0),t([s({type:Object,attribute:!0})],n.prototype,"data",void 0),_export("N",n=t([e("nile-option-group")],n));}};});
2
+ //# sourceMappingURL=nile-option-group.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-option-group.cjs.js","sources":["../../../src/nile-option-group/nile-option-group.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\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, CSSResultArray, TemplateResult} from 'lit';\nimport { customElement, property} from 'lit/decorators.js';\nimport {styles} from './nile-option-group.css';\nimport NileElement from '../internal/nile-element';\nimport { OptionGroupData } from './nile-option-group.interface';\n\n@customElement('nile-option-group')\nexport class NileOptionGroup extends NileElement {\n\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t@property({type: String, reflect: true, attribute: true}) name: string = \"\";\n\t@property({type: Object, attribute: true}) data: OptionGroupData | null = null;\n\n\tprivate checkForImageOrIcon() {\n\t\treturn this.data?.prefix?.icon?.name || this.data?.prefix?.image?.src || this.data?.prefix?.prefixText;\n\t}\n\n\tprivate normalizeImageDimension(value?: string | number): string {\n\t\tif (value === undefined || value === null || value === \"\") {\n\t\t\treturn \"20\";\n\t\t}\n\t\t\n\t\tconst dimension = Number(value);\n\t\tif (isNaN(dimension) || dimension <= 0) {\n\t\t\treturn \"20\";\n\t\t}\t\n\t\treturn dimension > 40 ? \"25\" : dimension.toString();\n\t}\t\n\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t\t<div part=\"option-group-header\" class=\"option-group-header\">\n\t\t\t\t<div part=\"content-container\" class=\"content-container ${this.checkForImageOrIcon() ? 'gap-18px' : ''}\">\n\t\t\t\t\t<!-- prefix content -->\n\t\t\t\t\t${\n\t\t\t\t\t\tthis.data?.prefix?.icon?.name\n\t\t\t\t\t\t? html`<nile-icon part=\"prefix-icon\" name=\"${this.data?.prefix?.icon?.name}\" size=\"${this.data?.prefix?.icon?.size || \"16\"}\" color=\"${this.data?.prefix?.icon?.color || \"var(--nile-colors-dark-500)\"}\" method=\"${this.data?.prefix?.icon?.method || \"fill\"}\"></nile-icon>`\n\t\t\t\t\t\t: this.data?.prefix?.prefixText\n\t\t\t\t\t\t\t? html`<span part=\"prefix-text\">${this.data?.prefix?.prefixText}</span>`\n\t\t\t\t\t\t\t: this.data?.prefix?.image?.src\n\t\t\t\t\t\t\t\t? html`<img part=\"prefix-image\" src=\"${this.data?.prefix?.image?.src}\" width=\"${this.normalizeImageDimension(this.data?.prefix?.image?.width)}\" height=\"${this.normalizeImageDimension(this.data?.prefix?.image?.height)}\">`\n\t\t\t\t\t\t\t\t: html`<slot part=\"prefix\" name=\"prefix\" class=\"option-group-prefix\"></slot>`\n\t\t\t\t\t}\n\n\t\t\t\t\t<!-- main content -->\n\t\t\t\t\t${\n\t\t\t\t\t\tthis.data?.textContent\n\t\t\t\t\t\t? html`<span part=\"content-text\">${this.data?.textContent}</span>`\n\t\t\t\t\t\t: html`<slot part=\"content\"></slot>`\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<!-- suffix content -->\n\t\t\t\t${\n\t\t\t\t\tthis.data?.suffix?.icon?.name\n\t\t\t\t\t? html`<nile-icon part=\"suffix-icon\" name=\"${this.data?.suffix?.icon?.name}\" size=\"${this.data?.suffix?.icon?.size || \"16\"}\" color=\"${this.data?.suffix?.icon?.color || \"var(--nile-colors-dark-500)\"}\" method=\"${this.data?.suffix?.icon?.method || \"fill\"}\"></nile-icon>`\n\t\t\t\t\t: this.data?.suffix?.suffixText\n\t\t\t\t\t\t? html`<span part=\"suffix-text\">${this.data?.suffix?.suffixText}</span>`\n\t\t\t\t\t\t: this.data?.suffix?.image?.src\n\t\t\t\t\t\t\t? html`<img part=\"suffix-image\" src=\"${this.data?.prefix?.image?.src}\" width=\"${this.normalizeImageDimension(this.data?.suffix?.image?.width)}\" height=\"${this.normalizeImageDimension(this.data?.suffix?.image?.height)}\">`\n\t\t\t\t\t\t\t: html`<slot part=\"suffix\" name=\"suffix\" class=\"option-group-suffix\"></slot>`\n\t\t\t\t}\n\t\t\t</div>\n\t\t\t`;\n\t}\n}\n\nexport default NileOptionGroup;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-option-group': NileOptionGroup;\n }\n}"],"names":["NileOptionGroup","_o","n","this","name","data","_this","_inherits","_createClass","key","value","checkForImageOrIcon","prefix","icon","image","src","prefixText","normalizeImageDimension","t","dimension","Number","isNaN","toString","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_this$data5","size","color","method","_templateObject3","_this$data10","_templateObject4","_this$data12","width","height","_templateObject5","textContent","_templateObject6","_this$data16","_templateObject7","suffix","_templateObject8","_this$data18","suffixText","_templateObject9","_this$data23","_templateObject10","_this$data25","_templateObject11","get","styles","NileElement","__decorate","property","type","String","reflect","attribute","prototype","Object","_export","customElement"],"mappings":"uzGAcaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,uEAMoDC,KAAAA,CAAIC,IAAAA,CAAW,GAC9BD,KAAAA,CAAIE,IAAAA,CAA2B,IAsD1E,QAAAC,KAAA,EA3DOC,SAAA,CAAAL,CAAA,CAAAD,EAAA,SAAAO,YAAA,CAAAN,CAAA,GAAAO,GAAA,uBAAAC,KAAA,CAOC,SAAAC,mBAAAA,CAAAA,CAAAA,KAAAA,UAAAA,CAAAA,WAAAA,CAAAA,WAAAA,CACP,MAAOR,EAAAA,UAAAA,KAAAA,CAAKE,+CAALF,UAAAA,CAAWS,MAAQC,UAAAA,UAAAA,YAAAA,UAAAA,CAAnBV,UAAAA,CAAmBU,IAAAA,UAAAA,UAAAA,iBAAnBV,UAAAA,CAAyBC,IAAQD,KAAAA,WAAAA,CAAAA,IAAAA,CAAKE,iDAALF,WAAAA,CAAWS,MAAQE,UAAAA,WAAAA,YAAAA,WAAAA,CAAnBX,WAAAA,CAAmBW,KAAAA,UAAAA,WAAAA,iBAAnBX,WAAAA,CAA0BY,GAAOZ,KAAAA,WAAAA,CAAAA,IAAAA,CAAKE,iDAALF,WAAAA,CAAWS,MAAQI,UAAAA,WAAAA,iBAAnBb,WAAAA,CAAmBa,UAC5F,GAEO,GAAAP,GAAA,2BAAAC,KAAA,UAAAO,uBAAAA,CAAwBP,CAC/B,CAAA,CAAA,GAAIA,IAAmD,EAAAQ,CAAA,EAAA,EAAA,GAAVR,EAC5C,MAAO,IAAA,CAGR,GAAMS,CAAAA,CAAAA,CAAYC,OAAOV,CACzB,CAAA,CAAA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AAA,SAAAA,CAAA,WAAA,EACjCN,CAAAA,CAAAA,CAAAA,CAAA,CAA1CC,CAAAA,CAAS,CAACC,IAAAA,CAAMK,MAAQF,CAAAA,SAAAA,CAAAA,CAAW,KAA2C5D,CAAA6D,CAAAA,SAAAA,CAAA,MAAA,CAAA,IAAA,EAAA,CAAA,CAAAE,OAAA,KAPnE/D,CAAeuD,CAAAA,CAAAA,CAAA,CAD3BS,CAAAA,CAAc,sBACFhE"}
@@ -0,0 +1,2 @@
1
+ System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,e;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",e=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t.option-group-header {\n\t\theight: 40px;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding: 0px 12px;\n\t\tbackground-color: var(--nile-colors-dark-200);\n\t\tcolor: var(--nile-colors-dark-900);\n\t\tfont-feature-settings: 'liga' off, 'clig' off;\n\t\tfont-family: 'colfax-medium';\n\t\tfont-size: 12px;\n\t\tfont-weight: 500;\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t\tjustify-content: space-between;\n\t}\n\n\t.content-container {\n\t\tdisplay: flex;\n\t\tjustify-content: flex-start;\n\t\talign-items: center;\n\t}\n\n\t.gap-18px {\n\t\tgap: 14px;\n\t}\n\n\t.option-group-prefix,\n .option-group-suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n }\n\n .option-group-prefix::slotted(*) {\n margin-inline-end: 0.5rem;\n }\n\n .option-group-suffix::slotted(*) {\n margin-inline-start: 0.5rem;\n }\n\n :host(.nile-group-hidden)::part(option-group-header) {\n\tdisplay: none !important;\n }\n"]))));}};});
2
+ //# sourceMappingURL=nile-option-group.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-option-group.css.cjs.js","sources":["../../../src/nile-option-group/nile-option-group.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2025\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';\n\n/**\n * OptionHeader CSS\n */\nexport const styles = css`\n\t.option-group-header {\n\t\theight: 40px;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding: 0px 12px;\n\t\tbackground-color: var(--nile-colors-dark-200);\n\t\tcolor: var(--nile-colors-dark-900);\n\t\tfont-feature-settings: 'liga' off, 'clig' off;\n\t\tfont-family: 'colfax-medium';\n\t\tfont-size: 12px;\n\t\tfont-weight: 500;\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t\tjustify-content: space-between;\n\t}\n\n\t.content-container {\n\t\tdisplay: flex;\n\t\tjustify-content: flex-start;\n\t\talign-items: center;\n\t}\n\n\t.gap-18px {\n\t\tgap: 14px;\n\t}\n\n\t.option-group-prefix,\n .option-group-suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n }\n\n .option-group-prefix::slotted(*) {\n margin-inline-end: 0.5rem;\n }\n\n .option-group-suffix::slotted(*) {\n margin-inline-start: 0.5rem;\n }\n\n :host(.nile-group-hidden)::part(option-group-header) {\n\tdisplay: none !important;\n }\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -0,0 +1,46 @@
1
+ import{css as o}from"lit";const e=o`
2
+ .option-group-header {
3
+ height: 40px;
4
+ display: flex;
5
+ align-items: center;
6
+ padding: 0px 12px;
7
+ background-color: var(--nile-colors-dark-200);
8
+ color: var(--nile-colors-dark-900);
9
+ font-feature-settings: 'liga' off, 'clig' off;
10
+ font-family: 'colfax-medium';
11
+ font-size: 12px;
12
+ font-weight: 500;
13
+ width: 100%;
14
+ box-sizing: border-box;
15
+ justify-content: space-between;
16
+ }
17
+
18
+ .content-container {
19
+ display: flex;
20
+ justify-content: flex-start;
21
+ align-items: center;
22
+ }
23
+
24
+ .gap-18px {
25
+ gap: 14px;
26
+ }
27
+
28
+ .option-group-prefix,
29
+ .option-group-suffix {
30
+ flex: 0 0 auto;
31
+ display: flex;
32
+ align-items: center;
33
+ }
34
+
35
+ .option-group-prefix::slotted(*) {
36
+ margin-inline-end: 0.5rem;
37
+ }
38
+
39
+ .option-group-suffix::slotted(*) {
40
+ margin-inline-start: 0.5rem;
41
+ }
42
+
43
+ :host(.nile-group-hidden)::part(option-group-header) {
44
+ display: none !important;
45
+ }
46
+ `;export{e as s};
@@ -0,0 +1,14 @@
1
+ import{__decorate as t}from"tslib";import{html as i}from"lit";import{property as s,customElement as e}from"lit/decorators.js";import{s as r}from"./nile-option-group.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";let n=class extends o{constructor(){super(...arguments),this.name="",this.data=null}static get styles(){return[r]}checkForImageOrIcon(){return this.data?.prefix?.icon?.name||this.data?.prefix?.image?.src||this.data?.prefix?.prefixText}normalizeImageDimension(t){if(null==t||""===t)return"20";const i=Number(t);return isNaN(i)||i<=0?"20":i>40?"25":i.toString()}render(){return i`
2
+ <div part="option-group-header" class="option-group-header">
3
+ <div part="content-container" class="content-container ${this.checkForImageOrIcon()?"gap-18px":""}">
4
+ <!-- prefix content -->
5
+ ${this.data?.prefix?.icon?.name?i`<nile-icon part="prefix-icon" name="${this.data?.prefix?.icon?.name}" size="${this.data?.prefix?.icon?.size||"16"}" color="${this.data?.prefix?.icon?.color||"var(--nile-colors-dark-500)"}" method="${this.data?.prefix?.icon?.method||"fill"}"></nile-icon>`:this.data?.prefix?.prefixText?i`<span part="prefix-text">${this.data?.prefix?.prefixText}</span>`:this.data?.prefix?.image?.src?i`<img part="prefix-image" src="${this.data?.prefix?.image?.src}" width="${this.normalizeImageDimension(this.data?.prefix?.image?.width)}" height="${this.normalizeImageDimension(this.data?.prefix?.image?.height)}">`:i`<slot part="prefix" name="prefix" class="option-group-prefix"></slot>`}
6
+
7
+ <!-- main content -->
8
+ ${this.data?.textContent?i`<span part="content-text">${this.data?.textContent}</span>`:i`<slot part="content"></slot>`}
9
+ </div>
10
+
11
+ <!-- suffix content -->
12
+ ${this.data?.suffix?.icon?.name?i`<nile-icon part="suffix-icon" name="${this.data?.suffix?.icon?.name}" size="${this.data?.suffix?.icon?.size||"16"}" color="${this.data?.suffix?.icon?.color||"var(--nile-colors-dark-500)"}" method="${this.data?.suffix?.icon?.method||"fill"}"></nile-icon>`:this.data?.suffix?.suffixText?i`<span part="suffix-text">${this.data?.suffix?.suffixText}</span>`:this.data?.suffix?.image?.src?i`<img part="suffix-image" src="${this.data?.prefix?.image?.src}" width="${this.normalizeImageDimension(this.data?.suffix?.image?.width)}" height="${this.normalizeImageDimension(this.data?.suffix?.image?.height)}">`:i`<slot part="suffix" name="suffix" class="option-group-suffix"></slot>`}
13
+ </div>
14
+ `}};t([s({type:String,reflect:!0,attribute:!0})],n.prototype,"name",void 0),t([s({type:Object,attribute:!0})],n.prototype,"data",void 0),n=t([e("nile-option-group")],n);export{n as N};
@@ -0,0 +1,2 @@
1
+ System.register([],function(_export,_context){"use strict";return{setters:[],execute:function execute(){}};});
2
+ //# sourceMappingURL=nile-option-group.interface.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-option-group.interface.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}