@aquera/nile-elements 2.0.21 → 2.0.22

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 (46) hide show
  1. package/README.md +4 -0
  2. package/dist/index.js +120 -47
  3. package/dist/nile-empty-state/nile-empty-state.cjs.js +1 -1
  4. package/dist/nile-empty-state/nile-empty-state.cjs.js.map +1 -1
  5. package/dist/nile-empty-state/nile-empty-state.esm.js +4 -4
  6. package/dist/nile-wysiwyg-editor/index.cjs.js +1 -1
  7. package/dist/nile-wysiwyg-editor/index.esm.js +1 -1
  8. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js +1 -1
  9. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js.map +1 -1
  10. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js +1 -1
  11. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js.map +1 -1
  12. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.esm.js +73 -1
  13. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.esm.js +3 -2
  14. package/dist/nile-wysiwyg-editor/types.cjs.js +1 -1
  15. package/dist/nile-wysiwyg-editor/types.cjs.js.map +1 -1
  16. package/dist/nile-wysiwyg-editor/types.esm.js +1 -1
  17. package/dist/src/nile-empty-state/nile-empty-state.d.ts +5 -0
  18. package/dist/src/nile-empty-state/nile-empty-state.js +11 -2
  19. package/dist/src/nile-empty-state/nile-empty-state.js.map +1 -1
  20. package/dist/src/nile-empty-state/nile-empty-state.test.js +31 -0
  21. package/dist/src/nile-empty-state/nile-empty-state.test.js.map +1 -1
  22. package/dist/src/nile-wysiwyg-editor/index.d.ts +2 -1
  23. package/dist/src/nile-wysiwyg-editor/index.js +1 -1
  24. package/dist/src/nile-wysiwyg-editor/index.js.map +1 -1
  25. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js +75 -0
  26. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js.map +1 -1
  27. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.d.ts +20 -0
  28. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js +37 -1
  29. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js.map +1 -1
  30. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.test.js +108 -0
  31. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.test.js.map +1 -1
  32. package/dist/src/nile-wysiwyg-editor/types.d.ts +8 -0
  33. package/dist/src/nile-wysiwyg-editor/types.js +50 -0
  34. package/dist/src/nile-wysiwyg-editor/types.js.map +1 -1
  35. package/dist/src/version.js +1 -1
  36. package/dist/src/version.js.map +1 -1
  37. package/dist/tsconfig.tsbuildinfo +1 -1
  38. package/package.json +1 -1
  39. package/src/nile-empty-state/nile-empty-state.test.ts +24 -0
  40. package/src/nile-empty-state/nile-empty-state.ts +12 -2
  41. package/src/nile-wysiwyg-editor/index.ts +2 -1
  42. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.ts +76 -0
  43. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.test.ts +132 -0
  44. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.ts +40 -1
  45. package/src/nile-wysiwyg-editor/types.ts +52 -0
  46. package/vscode-html-custom-data.json +23 -2
@@ -1,2 +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","lit/directives/class-map.js","./nile-empty-state.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/if-defined.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,e,i,s,r,o,n,a,l,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,c,p,h;function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}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){e=_lit.html;i=_lit.nothing;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_litDirectivesClassMapJs){o=_litDirectivesClassMapJs.classMap;},function(_nileEmptyStateCssCjsJs){n=_nileEmptyStateCssCjsJs.s;},function(_internalNileElementCjsJs){a=_internalNileElementCjsJs.N;},function(_litDirectivesIfDefinedJs){l=_litDirectivesIfDefinedJs.ifDefined;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){c={empty:{icon:"ng-database",tone:"neutral",role:"status",live:"polite",text:"No data yet",subText:"Rows appear here once there's something to show."},"no-results":{icon:"ng-search-lg",tone:"neutral",role:"status",live:"polite",text:"No matches",subText:"Try removing a filter or broadening your search."},"not-found":{icon:"ng-file-06",tone:"warning",role:"status",live:"polite",text:"We couldn't find that",subText:"It may have been moved or deleted."},"no-access":{icon:"ng-lock",tone:"warning",role:"status",live:"polite",text:"You don't have access",subText:"Ask an admin to grant you access to this resource."},error:{icon:"ng-alert-circle",tone:"error",role:"alert",live:"assertive",text:"Something went wrong",subText:"We couldn't load this. Try again."},offline:{icon:"ng-cloud-off",tone:"error",role:"alert",live:"assertive",text:"Connection lost",subText:"Check your connection and try again."}},p={neutral:void 0,info:"var(--nile-colors-primary-600, var(--ng-colors-fg-brand-primary-600))",warning:"var(--nile-colors-yellow-700, var(--ng-colors-fg-warning-primary))",error:"var(--nile-colors-red-700, var(--ng-colors-fg-error-primary))"};_export("N",h=/*#__PURE__*/function(_a){function h(){var _this;_classCallCheck(this,h);_this=_callSuper(this,h,arguments),_this.size="md",_this.variant="tonal",_this.layout="stack",_this.bordered=!1;return _this;}_inherits(h,_a);return _createClass(h,[{key:"icon",get:function get(){var _ref,_this$_icon,_this$preset;return(_ref=(_this$_icon=this._icon)!==null&&_this$_icon!==void 0?_this$_icon:(_this$preset=this.preset)===null||_this$preset===void 0?void 0:_this$preset.icon)!==null&&_ref!==void 0?_ref:"ng-x-circle";},set:function set(t){var e=this.icon;this._icon=t!==null&&t!==void 0?t:void 0,this.requestUpdate("icon",e);}},{key:"text",get:function get(){var _ref2,_this$_text,_this$preset2;return(_ref2=(_this$_text=this._text)!==null&&_this$_text!==void 0?_this$_text:(_this$preset2=this.preset)===null||_this$preset2===void 0?void 0:_this$preset2.text)!==null&&_ref2!==void 0?_ref2:"Empty State";},set:function set(t){var e=this.text;this._text=t!==null&&t!==void 0?t:void 0,this.requestUpdate("text",e);}},{key:"subText",get:function get(){var _ref3,_this$_subText,_this$preset3;return(_ref3=(_this$_subText=this._subText)!==null&&_this$_subText!==void 0?_this$_subText:(_this$preset3=this.preset)===null||_this$preset3===void 0?void 0:_this$preset3.subText)!==null&&_ref3!==void 0?_ref3:"No Data";},set:function set(t){var e=this.subText;this._subText=t!==null&&t!==void 0?t:void 0,this.requestUpdate("subText",e);}},{key:"tone",get:function get(){var _ref4,_this$_tone,_this$preset4;return(_ref4=(_this$_tone=this._tone)!==null&&_this$_tone!==void 0?_this$_tone:(_this$preset4=this.preset)===null||_this$preset4===void 0?void 0:_this$preset4.tone)!==null&&_ref4!==void 0?_ref4:"neutral";},set:function set(t){var e=this.tone;this._tone=t!==null&&t!==void 0?t:void 0,this.requestUpdate("tone",e);}},{key:"preset",get:function get(){return this.status?c[this.status]:void 0;}},{key:"glyphColor",get:function get(){var _this$svgIconColor;return(_this$svgIconColor=this.svgIconColor)!==null&&_this$svgIconColor!==void 0?_this$svgIconColor:p[this.tone];}},{key:"liveRegion",get:function get(){var t=this.preset;if(t)return{role:t.role,live:t.live};}},{key:"renderGlyph",value:function renderGlyph(t){var _this$svgIconSize;var i=this.glyphColor;return this.svgIconUrl?e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-glyph\n customSvgPath=\"","\"\n size=\"","\"\n method=\"stroke\"\n color=\"","\"\n noFill\n ></nile-glyph>\n "])),this.svgIconUrl,(_this$svgIconSize=this.svgIconSize)!==null&&_this$svgIconSize!==void 0?_this$svgIconSize:t,l(i)):e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <nile-glyph\n name=\"","\"\n method=\"stroke\"\n size=\"","\"\n color=\"","\"\n ></nile-glyph>\n "])),this.icon,t,l(i));}},{key:"render",value:function render(){var t=this.liveRegion,s="inline"===this.layout;return e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <div part=\"container\" class=\"","\"\n role=\"","\"\n aria-live=\"","\"\n >\n <div part=\"body\" class=\"","\">\n\n ","\n\n ","\n\n ","\n\n ","\n\n <div part=\"text-section\" class=\"empty__state__text-section\">\n ","\n <div part=\"text\" class=\"empty-state__text\">","</div>\n <div part=\"subtitle\" class=\"empty-state__subtext\">","</div>\n </div>\n </div>\n\n <div part=\"actions\" class=\"empty-state-actions\">\n <slot></slot>\n </div>\n\n </div>\n "])),o(_defineProperty({"empty-state":!0,"empty-state--sm":"sm"==this.size,"empty-state--md":"md"==this.size,"empty-state--lg":"lg"==this.size,"empty-state--stack":"stack"===this.layout,"empty-state--inline":s,"empty-state--page":"page"===this.layout,"empty-state--bordered":this.bordered},"empty-state--tone-".concat(this.tone),!0)),l(t===null||t===void 0?void 0:t.role),l(t===null||t===void 0?void 0:t.live),o({"empty-state__body":!0}),s?e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <span part=\"inline-icon icon-chrome\" class=\"empty-state__body--inline\">\n ","\n </span>"])),this.renderGlyph(20)):i,s||"content"!=this.variant?i:e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <div part=\"content-image\" class=\"empty-state__body--content\">\n ","\n </div>"])),this.icon||this.svgIconUrl?e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <div part=\"icon-wrapper icon-chrome\" class=\"empty-state__img__icon\">\n ","\n </div>"])),this.renderGlyph("lg"==this.size?28:24)):i),s||"tonal"!=this.variant?i:e(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <div part=\"tonal-body icon-chrome\" class=\"empty-state__body--tonal\">\n ","\n </div>"])),this.renderGlyph(40)),s||"flat"!=this.variant?i:e(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <div part=\"flat-body\" class=\"empty-state__body--flat\">\n\t\t\t\t\t<span part=\"icon-chrome\" class=\"nile-flat-type-icon\">\n\t\t\t\t\t\t","\n\t\t\t\t\t</span>\n </div>"])),this.renderGlyph("lg"==this.size?28:24)),this.code?e(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <div part=\"code\" class=\"empty-state__code\">","</div>\n "])),this.code):i,this.text,this.subText);}}],[{key:"styles",get:function get(){return[n];}}]);}(a));t([s({type:String,attribute:!0})],h.prototype,"size",void 0),t([s({type:String,attribute:!0})],h.prototype,"variant",void 0),t([s({type:String,attribute:!0,reflect:!0})],h.prototype,"status",void 0),t([s({type:String,attribute:!0,reflect:!0})],h.prototype,"layout",void 0),t([s({type:String,attribute:!0})],h.prototype,"code",void 0),t([s({type:Boolean,attribute:!0,reflect:!0})],h.prototype,"bordered",void 0),t([s({type:String,attribute:!0})],h.prototype,"svgIconUrl",void 0),t([s({type:Number,attribute:!0})],h.prototype,"svgIconSize",void 0),t([s({type:String,attribute:!0})],h.prototype,"svgIconColor",void 0),t([s({type:String,attribute:!0})],h.prototype,"icon",null),t([s({type:String,attribute:!0})],h.prototype,"text",null),t([s({type:String,attribute:"sub-text"})],h.prototype,"subText",null),t([s({type:String,attribute:!0,reflect:!0})],h.prototype,"tone",null),_export("N",h=t([r("nile-empty-state")],h));}};});
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","lit/directives/class-map.js","./nile-empty-state.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/if-defined.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,e,i,s,r,o,n,a,l,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,c,p,h;function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}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){e=_lit.html;i=_lit.nothing;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_litDirectivesClassMapJs){o=_litDirectivesClassMapJs.classMap;},function(_nileEmptyStateCssCjsJs){n=_nileEmptyStateCssCjsJs.s;},function(_internalNileElementCjsJs){a=_internalNileElementCjsJs.N;},function(_litDirectivesIfDefinedJs){l=_litDirectivesIfDefinedJs.ifDefined;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){c={empty:{icon:"ng-database",tone:"neutral",role:"status",live:"polite",text:"No data yet",subText:"Rows appear here once there's something to show."},"no-results":{icon:"ng-search-lg",tone:"neutral",role:"status",live:"polite",text:"No matches",subText:"Try removing a filter or broadening your search."},"not-found":{icon:"ng-file-06",tone:"warning",role:"status",live:"polite",text:"We couldn't find that",subText:"It may have been moved or deleted."},"no-access":{icon:"ng-lock",tone:"warning",role:"status",live:"polite",text:"You don't have access",subText:"Ask an admin to grant you access to this resource."},error:{icon:"ng-alert-circle",tone:"error",role:"alert",live:"assertive",text:"Something went wrong",subText:"We couldn't load this. Try again."},offline:{icon:"ng-cloud-off",tone:"error",role:"alert",live:"assertive",text:"Connection lost",subText:"Check your connection and try again."}},p={neutral:void 0,info:"var(--nile-colors-primary-600, var(--ng-colors-fg-brand-primary-600))",warning:"var(--nile-colors-yellow-700, var(--ng-colors-fg-warning-primary))",error:"var(--nile-colors-red-700, var(--ng-colors-fg-error-primary))"};_export("N",h=/*#__PURE__*/function(_a){function h(){var _this;_classCallCheck(this,h);_this=_callSuper(this,h,arguments),_this.size="md",_this.variant="tonal",_this.layout="stack",_this.bordered=!1,_this.iconMethod="stroke";return _this;}_inherits(h,_a);return _createClass(h,[{key:"icon",get:function get(){var _ref,_this$_icon,_this$preset;return(_ref=(_this$_icon=this._icon)!==null&&_this$_icon!==void 0?_this$_icon:(_this$preset=this.preset)===null||_this$preset===void 0?void 0:_this$preset.icon)!==null&&_ref!==void 0?_ref:"ng-x-circle";},set:function set(t){var e=this.icon;this._icon=t!==null&&t!==void 0?t:void 0,this.requestUpdate("icon",e);}},{key:"text",get:function get(){var _ref2,_this$_text,_this$preset2;return(_ref2=(_this$_text=this._text)!==null&&_this$_text!==void 0?_this$_text:(_this$preset2=this.preset)===null||_this$preset2===void 0?void 0:_this$preset2.text)!==null&&_ref2!==void 0?_ref2:"Empty State";},set:function set(t){var e=this.text;this._text=t!==null&&t!==void 0?t:void 0,this.requestUpdate("text",e);}},{key:"subText",get:function get(){var _ref3,_this$_subText,_this$preset3;return(_ref3=(_this$_subText=this._subText)!==null&&_this$_subText!==void 0?_this$_subText:(_this$preset3=this.preset)===null||_this$preset3===void 0?void 0:_this$preset3.subText)!==null&&_ref3!==void 0?_ref3:"No Data";},set:function set(t){var e=this.subText;this._subText=t!==null&&t!==void 0?t:void 0,this.requestUpdate("subText",e);}},{key:"tone",get:function get(){var _ref4,_this$_tone,_this$preset4;return(_ref4=(_this$_tone=this._tone)!==null&&_this$_tone!==void 0?_this$_tone:(_this$preset4=this.preset)===null||_this$preset4===void 0?void 0:_this$preset4.tone)!==null&&_ref4!==void 0?_ref4:"neutral";},set:function set(t){var e=this.tone;this._tone=t!==null&&t!==void 0?t:void 0,this.requestUpdate("tone",e);}},{key:"preset",get:function get(){return this.status?c[this.status]:void 0;}},{key:"glyphMethod",get:function get(){return"fill"===this.iconMethod?"fill":"stroke";}},{key:"glyphColor",get:function get(){var _this$svgIconColor;return(_this$svgIconColor=this.svgIconColor)!==null&&_this$svgIconColor!==void 0?_this$svgIconColor:p[this.tone];}},{key:"liveRegion",get:function get(){var t=this.preset;if(t)return{role:t.role,live:t.live};}},{key:"renderGlyph",value:function renderGlyph(t){var _this$svgIconSize;var i=this.glyphColor,s=this.glyphMethod;return this.svgIconUrl?e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-glyph\n customSvgPath=\"","\"\n size=\"","\"\n method=\"","\"\n color=\"","\"\n noFill\n ></nile-glyph>\n "])),this.svgIconUrl,(_this$svgIconSize=this.svgIconSize)!==null&&_this$svgIconSize!==void 0?_this$svgIconSize:t,s,l(i)):e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <nile-glyph\n name=\"","\"\n method=\"","\"\n size=\"","\"\n color=\"","\"\n ></nile-glyph>\n "])),this.icon,s,t,l(i));}},{key:"render",value:function render(){var t=this.liveRegion,s="inline"===this.layout;return e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <div part=\"container\" class=\"","\"\n role=\"","\"\n aria-live=\"","\"\n >\n <div part=\"body\" class=\"","\">\n\n ","\n\n ","\n\n ","\n\n ","\n\n <div part=\"text-section\" class=\"empty__state__text-section\">\n ","\n <div part=\"text\" class=\"empty-state__text\">","</div>\n <div part=\"subtitle\" class=\"empty-state__subtext\">","</div>\n </div>\n </div>\n\n <div part=\"actions\" class=\"empty-state-actions\">\n <slot></slot>\n </div>\n\n </div>\n "])),o(_defineProperty({"empty-state":!0,"empty-state--sm":"sm"==this.size,"empty-state--md":"md"==this.size,"empty-state--lg":"lg"==this.size,"empty-state--stack":"stack"===this.layout,"empty-state--inline":s,"empty-state--page":"page"===this.layout,"empty-state--bordered":this.bordered},"empty-state--tone-".concat(this.tone),!0)),l(t===null||t===void 0?void 0:t.role),l(t===null||t===void 0?void 0:t.live),o({"empty-state__body":!0}),s?e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <span part=\"inline-icon icon-chrome\" class=\"empty-state__body--inline\">\n ","\n </span>"])),this.renderGlyph(20)):i,s||"content"!=this.variant?i:e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <div part=\"content-image\" class=\"empty-state__body--content\">\n ","\n </div>"])),this.icon||this.svgIconUrl?e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <div part=\"icon-wrapper icon-chrome\" class=\"empty-state__img__icon\">\n ","\n </div>"])),this.renderGlyph("lg"==this.size?28:24)):i),s||"tonal"!=this.variant?i:e(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <div part=\"tonal-body icon-chrome\" class=\"empty-state__body--tonal\">\n ","\n </div>"])),this.renderGlyph(40)),s||"flat"!=this.variant?i:e(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <div part=\"flat-body\" class=\"empty-state__body--flat\">\n\t\t\t\t\t<span part=\"icon-chrome\" class=\"nile-flat-type-icon\">\n\t\t\t\t\t\t","\n\t\t\t\t\t</span>\n </div>"])),this.renderGlyph("lg"==this.size?28:24)),this.code?e(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <div part=\"code\" class=\"empty-state__code\">","</div>\n "])),this.code):i,this.text,this.subText);}}],[{key:"styles",get:function get(){return[n];}}]);}(a));t([s({type:String,attribute:!0})],h.prototype,"size",void 0),t([s({type:String,attribute:!0})],h.prototype,"variant",void 0),t([s({type:String,attribute:!0,reflect:!0})],h.prototype,"status",void 0),t([s({type:String,attribute:!0,reflect:!0})],h.prototype,"layout",void 0),t([s({type:String,attribute:!0})],h.prototype,"code",void 0),t([s({type:Boolean,attribute:!0,reflect:!0})],h.prototype,"bordered",void 0),t([s({type:String,attribute:!0})],h.prototype,"svgIconUrl",void 0),t([s({type:Number,attribute:!0})],h.prototype,"svgIconSize",void 0),t([s({type:String,attribute:!0})],h.prototype,"svgIconColor",void 0),t([s({type:String,attribute:!0})],h.prototype,"iconMethod",void 0),t([s({type:String,attribute:!0})],h.prototype,"icon",null),t([s({type:String,attribute:!0})],h.prototype,"text",null),t([s({type:String,attribute:"sub-text"})],h.prototype,"subText",null),t([s({type:String,attribute:!0,reflect:!0})],h.prototype,"tone",null),_export("N",h=t([r("nile-empty-state")],h));}};});
2
2
  //# sourceMappingURL=nile-empty-state.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-empty-state.cjs.js","sources":["../../../src/nile-empty-state/nile-empty-state.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 { html, nothing, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-empty-state.css';\nimport NileElement from '../internal/nile-element';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\n/** What happened. Selects an icon, tone, default copy and ARIA role. */\nexport type NileEmptyStateStatus =\n | 'empty'\n | 'no-results'\n | 'not-found'\n | 'no-access'\n | 'error'\n | 'offline';\n\n/** How loud the state looks. Defaults from `status`, always overridable. */\nexport type NileEmptyStateTone = 'neutral' | 'info' | 'warning' | 'error';\n\n/** What shape the state occupies. */\nexport type NileEmptyStateLayout = 'stack' | 'inline' | 'page';\n\ninterface StatusPreset {\n icon: string;\n tone: NileEmptyStateTone;\n text: string;\n subText: string;\n role: 'status' | 'alert';\n live: 'polite' | 'assertive';\n}\n\nconst STATUS_PRESETS: Record<NileEmptyStateStatus, StatusPreset> = {\n 'empty': {\n icon: 'ng-database', tone: 'neutral', role: 'status', live: 'polite',\n text: 'No data yet', subText: `Rows appear here once there's something to show.`,\n },\n 'no-results': {\n icon: 'ng-search-lg', tone: 'neutral', role: 'status', live: 'polite',\n text: 'No matches', subText: 'Try removing a filter or broadening your search.',\n },\n 'not-found': {\n icon: 'ng-file-06', tone: 'warning', role: 'status', live: 'polite',\n text: `We couldn't find that`, subText: 'It may have been moved or deleted.',\n },\n 'no-access': {\n icon: 'ng-lock', tone: 'warning', role: 'status', live: 'polite',\n text: `You don't have access`, subText: 'Ask an admin to grant you access to this resource.',\n },\n 'error': {\n icon: 'ng-alert-circle', tone: 'error', role: 'alert', live: 'assertive',\n text: 'Something went wrong', subText: `We couldn't load this. Try again.`,\n },\n 'offline': {\n icon: 'ng-cloud-off', tone: 'error', role: 'alert', live: 'assertive',\n text: 'Connection lost', subText: 'Check your connection and try again.',\n },\n};\n\nconst TONE_GLYPH_COLOR: Record<NileEmptyStateTone, string | undefined> = {\n neutral: undefined,\n info: 'var(--nile-colors-primary-600, var(--ng-colors-fg-brand-primary-600))',\n warning: 'var(--nile-colors-yellow-700, var(--ng-colors-fg-warning-primary))',\n error: 'var(--nile-colors-red-700, var(--ng-colors-fg-error-primary))',\n};\n\nconst DEFAULT_ICON = 'ng-x-circle';\nconst DEFAULT_TEXT = 'Empty State';\nconst DEFAULT_SUB_TEXT = 'No Data';\n\n/**\n * Nile empty-state component.\n *\n * @tag nile-empty-state\n *\n */\n@customElement('nile-empty-state')\nexport class NileEmptyState extends NileElement {\n\n /**\n * The styles for nile-empty-state\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: String, attribute: true }) size: 'sm' | 'md' | 'lg' = 'md';\n\n @property({ type: String, attribute: true }) variant:\n | 'flat'\n | 'content'\n | 'tonal' = 'tonal';\n\n @property({ type: String, attribute: true, reflect: true }) status?: NileEmptyStateStatus;\n @property({ type: String, attribute: true, reflect: true }) layout: NileEmptyStateLayout = 'stack';\n @property({ type: String, attribute: true }) code?: string;\n @property({ type: Boolean, attribute: true, reflect: true }) bordered: boolean = false;\n @property({ type: String, attribute: true }) svgIconUrl: string;\n /**\n * Overrides the layout-driven glyph size for a custom `svgIconUrl`. Left unset,\n * the SVG matches whatever size the current variant/layout draws at.\n */\n @property({ type: Number, attribute: true }) svgIconSize?: number;\n @property({ type: String, attribute: true }) svgIconColor: string;\n\n private _icon?: string;\n private _text?: string;\n private _subText?: string;\n private _tone?: NileEmptyStateTone;\n @property({ type: String, attribute: true })\n get icon(): string {\n return this._icon ?? this.preset?.icon ?? DEFAULT_ICON;\n }\n\n set icon(value: string | null) {\n const old = this.icon;\n this._icon = value ?? undefined;\n this.requestUpdate('icon', old);\n }\n\n /** Headline. Resolves through the `status` preset to `DEFAULT_TEXT`. */\n @property({ type: String, attribute: true })\n get text(): string {\n return this._text ?? this.preset?.text ?? DEFAULT_TEXT;\n }\n\n set text(value: string | null) {\n const old = this.text;\n this._text = value ?? undefined;\n this.requestUpdate('text', old);\n }\n\n /** Supporting line. Resolves through the `status` preset to `DEFAULT_SUB_TEXT`. */\n @property({ type: String, attribute: 'sub-text' })\n get subText(): string {\n return this._subText ?? this.preset?.subText ?? DEFAULT_SUB_TEXT;\n }\n\n set subText(value: string | null) {\n const old = this.subText;\n this._subText = value ?? undefined;\n this.requestUpdate('subText', old);\n }\n\n @property({ type: String, attribute: true, reflect: true })\n get tone(): NileEmptyStateTone {\n return this._tone ?? this.preset?.tone ?? 'neutral';\n }\n\n set tone(value: NileEmptyStateTone | null) {\n const old = this.tone;\n this._tone = value ?? undefined;\n this.requestUpdate('tone', old);\n }\n\n /* #endregion */\n\n /* #region Methods */\n\n /** The preset backing the current `status`, or undefined when none is set. */\n private get preset(): StatusPreset | undefined {\n return this.status ? STATUS_PRESETS[this.status] : undefined;\n }\n\n private get glyphColor(): string | undefined {\n return this.svgIconColor ?? TONE_GLYPH_COLOR[this.tone];\n }\n\n /** ARIA wiring */\n private get liveRegion(): { role: string; live: string } | undefined {\n const preset = this.preset;\n if (!preset) return undefined;\n return { role: preset.role, live: preset.live };\n }\n\n private renderGlyph(size: number | string): TemplateResult {\n const color = this.glyphColor;\n return this.svgIconUrl ? html`\n <nile-glyph\n customSvgPath=\"${this.svgIconUrl}\"\n size=\"${this.svgIconSize ?? size}\"\n method=\"stroke\"\n color=\"${ifDefined(color)}\"\n noFill\n ></nile-glyph>\n ` : html`\n <nile-glyph\n name=\"${this.icon}\"\n method=\"stroke\"\n size=\"${size}\"\n color=\"${ifDefined(color)}\"\n ></nile-glyph>\n `;\n }\n\n /**\n * Render method\n * @slot This is a slot test\n */\n public render(): TemplateResult {\n const live = this.liveRegion;\n const inline = this.layout === 'inline';\n\n return html`\n <div part=\"container\" class=\"${classMap({\n 'empty-state': true,\n 'empty-state--sm': this.size == 'sm',\n 'empty-state--md': this.size == 'md',\n 'empty-state--lg': this.size == 'lg',\n 'empty-state--stack': this.layout === 'stack',\n 'empty-state--inline': inline,\n 'empty-state--page': this.layout === 'page',\n 'empty-state--bordered': this.bordered,\n [`empty-state--tone-${this.tone}`]: true,\n })}\"\n role=\"${ifDefined(live?.role)}\"\n aria-live=\"${ifDefined(live?.live)}\"\n >\n <div part=\"body\" class=\"${classMap({ 'empty-state__body': true })}\">\n\n ${inline ? html`\n <span part=\"inline-icon icon-chrome\" class=\"empty-state__body--inline\">\n ${this.renderGlyph(20)}\n </span>` : nothing\n }\n\n ${!inline && this.variant == 'content' ? html`\n <div part=\"content-image\" class=\"empty-state__body--content\">\n ${!this.icon && !this.svgIconUrl ? nothing : html`\n <div part=\"icon-wrapper icon-chrome\" class=\"empty-state__img__icon\">\n ${\n this.renderGlyph(this.size == 'lg' ? 28 : 24)}\n </div>`\n }\n </div>`: nothing\n }\n\n ${!inline && this.variant == 'tonal' ? html`\n <div part=\"tonal-body icon-chrome\" class=\"empty-state__body--tonal\">\n ${this.renderGlyph(40)}\n </div>`: nothing\n }\n\n ${!inline && this.variant == 'flat' ? html`\n <div part=\"flat-body\" class=\"empty-state__body--flat\">\n\t\t\t\t\t<span part=\"icon-chrome\" class=\"nile-flat-type-icon\">\n\t\t\t\t\t\t${this.renderGlyph(this.size == 'lg' ? 28 : 24)}\n\t\t\t\t\t</span>\n </div>`: nothing\n }\n\n <div part=\"text-section\" class=\"empty__state__text-section\">\n ${this.code ? html`\n <div part=\"code\" class=\"empty-state__code\">${this.code}</div>\n ` : nothing}\n <div part=\"text\" class=\"empty-state__text\">${this.text}</div>\n <div part=\"subtitle\" class=\"empty-state__subtext\">${this.subText}</div>\n </div>\n </div>\n\n <div part=\"actions\" class=\"empty-state-actions\">\n <slot></slot>\n </div>\n\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileEmptyState;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-empty-state': NileEmptyState;\n }\n}\n"],"names":["STATUS_PRESETS","empty","icon","tone","role","live","text","subText","error","offline","TONE_GLYPH_COLOR","neutral","undefined","info","warning","_export","NileEmptyState","_a","h","this","size","variant","layout","bordered","_this","_inherits","_createClass","key","get","_ref","_this$_icon","_icon","preset","set","value","old","requestUpdate","_ref2","_this$_text","_text","_ref3","_this$_subText","_subText","_ref4","_this$_tone","_tone","status","_this$svgIconColor","svgIconColor","renderGlyph","_this$svgIconSize","color","glyphColor","svgIconUrl","html","_templateObject","_taggedTemplateLiteral","svgIconSize","ifDefined","_templateObject2","render","liveRegion","inline","_templateObject3","classMap","_templateObject4","nothing","_templateObject5","_templateObject6","_templateObject7","_templateObject8","code","_templateObject9","styles","NileElement","__decorate","property","type","String","attribute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A,CADCC,CAAS,CAAA,CAAEC,KAAMC,MAAQC,CAAAA,SAAAA,CAAAA,CAAW,KAGpC/D,CAAAgE,CAAAA,SAAAA,CAAA,OAAA,IAUDL,CAAAA,CAAAA,CAAAA,CAAA,CADCC,CAAAA,CAAS,CAAEC,IAAMC,CAAAA,MAAAA,CAAQC,WAAW,CAGpC/D,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAgE,UAAA,MAAA,CAAA,IAAA,CAAA,CAUDL,CAAA,CAAA,CADCC,EAAS,CAAEC,IAAAA,CAAMC,OAAQC,SAAW,CAAA,UAAA,CAAA,CAAA,CAAA,CAGpC/D,EAAAgE,SAAA,CAAA,SAAA,CAAA,IASDL,CAAAA,CAAAA,CAAAA,CAAA,CADCC,CAAS,CAAA,CAAEC,KAAMC,MAAQC,CAAAA,SAAAA,CAAAA,CAAW,EAAME,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAGnDjE,CAAAgE,CAAAA,SAAAA,CAAA,OAAA,IAvEUhE,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAc2D,EAAA,CAD1BS,CAAAA,CAAc,qBACFpE"}
1
+ {"version":3,"file":"nile-empty-state.cjs.js","sources":["../../../src/nile-empty-state/nile-empty-state.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 { html, nothing, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-empty-state.css';\nimport NileElement from '../internal/nile-element';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\n/** What happened. Selects an icon, tone, default copy and ARIA role. */\nexport type NileEmptyStateStatus =\n | 'empty'\n | 'no-results'\n | 'not-found'\n | 'no-access'\n | 'error'\n | 'offline';\n\n/** How loud the state looks. Defaults from `status`, always overridable. */\nexport type NileEmptyStateTone = 'neutral' | 'info' | 'warning' | 'error';\n\n/** What shape the state occupies. */\nexport type NileEmptyStateLayout = 'stack' | 'inline' | 'page';\n\n/** How the glyph is drawn: outlined (`stroke`, the default) or filled (`fill`). */\nexport type NileEmptyStateIconMethod = 'stroke' | 'fill';\n\ninterface StatusPreset {\n icon: string;\n tone: NileEmptyStateTone;\n text: string;\n subText: string;\n role: 'status' | 'alert';\n live: 'polite' | 'assertive';\n}\n\nconst STATUS_PRESETS: Record<NileEmptyStateStatus, StatusPreset> = {\n 'empty': {\n icon: 'ng-database', tone: 'neutral', role: 'status', live: 'polite',\n text: 'No data yet', subText: `Rows appear here once there's something to show.`,\n },\n 'no-results': {\n icon: 'ng-search-lg', tone: 'neutral', role: 'status', live: 'polite',\n text: 'No matches', subText: 'Try removing a filter or broadening your search.',\n },\n 'not-found': {\n icon: 'ng-file-06', tone: 'warning', role: 'status', live: 'polite',\n text: `We couldn't find that`, subText: 'It may have been moved or deleted.',\n },\n 'no-access': {\n icon: 'ng-lock', tone: 'warning', role: 'status', live: 'polite',\n text: `You don't have access`, subText: 'Ask an admin to grant you access to this resource.',\n },\n 'error': {\n icon: 'ng-alert-circle', tone: 'error', role: 'alert', live: 'assertive',\n text: 'Something went wrong', subText: `We couldn't load this. Try again.`,\n },\n 'offline': {\n icon: 'ng-cloud-off', tone: 'error', role: 'alert', live: 'assertive',\n text: 'Connection lost', subText: 'Check your connection and try again.',\n },\n};\n\nconst TONE_GLYPH_COLOR: Record<NileEmptyStateTone, string | undefined> = {\n neutral: undefined,\n info: 'var(--nile-colors-primary-600, var(--ng-colors-fg-brand-primary-600))',\n warning: 'var(--nile-colors-yellow-700, var(--ng-colors-fg-warning-primary))',\n error: 'var(--nile-colors-red-700, var(--ng-colors-fg-error-primary))',\n};\n\nconst DEFAULT_ICON = 'ng-x-circle';\nconst DEFAULT_TEXT = 'Empty State';\nconst DEFAULT_SUB_TEXT = 'No Data';\n\n/**\n * Nile empty-state component.\n *\n * @tag nile-empty-state\n *\n */\n@customElement('nile-empty-state')\nexport class NileEmptyState extends NileElement {\n\n /**\n * The styles for nile-empty-state\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: String, attribute: true }) size: 'sm' | 'md' | 'lg' = 'md';\n\n @property({ type: String, attribute: true }) variant:\n | 'flat'\n | 'content'\n | 'tonal' = 'tonal';\n\n @property({ type: String, attribute: true, reflect: true }) status?: NileEmptyStateStatus;\n @property({ type: String, attribute: true, reflect: true }) layout: NileEmptyStateLayout = 'stack';\n @property({ type: String, attribute: true }) code?: string;\n @property({ type: Boolean, attribute: true, reflect: true }) bordered: boolean = false;\n @property({ type: String, attribute: true }) svgIconUrl: string;\n /**\n * Overrides the layout-driven glyph size for a custom `svgIconUrl`. Left unset,\n * the SVG matches whatever size the current variant/layout draws at.\n */\n @property({ type: Number, attribute: true }) svgIconSize?: number;\n @property({ type: String, attribute: true }) svgIconColor: string;\n @property({ type: String, attribute: true }) iconMethod: NileEmptyStateIconMethod = 'stroke';\n\n private _icon?: string;\n private _text?: string;\n private _subText?: string;\n private _tone?: NileEmptyStateTone;\n @property({ type: String, attribute: true })\n get icon(): string {\n return this._icon ?? this.preset?.icon ?? DEFAULT_ICON;\n }\n\n set icon(value: string | null) {\n const old = this.icon;\n this._icon = value ?? undefined;\n this.requestUpdate('icon', old);\n }\n\n /** Headline. Resolves through the `status` preset to `DEFAULT_TEXT`. */\n @property({ type: String, attribute: true })\n get text(): string {\n return this._text ?? this.preset?.text ?? DEFAULT_TEXT;\n }\n\n set text(value: string | null) {\n const old = this.text;\n this._text = value ?? undefined;\n this.requestUpdate('text', old);\n }\n\n /** Supporting line. Resolves through the `status` preset to `DEFAULT_SUB_TEXT`. */\n @property({ type: String, attribute: 'sub-text' })\n get subText(): string {\n return this._subText ?? this.preset?.subText ?? DEFAULT_SUB_TEXT;\n }\n\n set subText(value: string | null) {\n const old = this.subText;\n this._subText = value ?? undefined;\n this.requestUpdate('subText', old);\n }\n\n @property({ type: String, attribute: true, reflect: true })\n get tone(): NileEmptyStateTone {\n return this._tone ?? this.preset?.tone ?? 'neutral';\n }\n\n set tone(value: NileEmptyStateTone | null) {\n const old = this.tone;\n this._tone = value ?? undefined;\n this.requestUpdate('tone', old);\n }\n\n /* #endregion */\n\n /* #region Methods */\n\n /** The preset backing the current `status`, or undefined when none is set. */\n private get preset(): StatusPreset | undefined {\n return this.status ? STATUS_PRESETS[this.status] : undefined;\n }\n\n /** `fill` only when asked for explicitly; anything else keeps today's `stroke`. */\n private get glyphMethod(): NileEmptyStateIconMethod {\n return this.iconMethod === 'fill' ? 'fill' : 'stroke';\n }\n\n private get glyphColor(): string | undefined {\n return this.svgIconColor ?? TONE_GLYPH_COLOR[this.tone];\n }\n\n /** ARIA wiring */\n private get liveRegion(): { role: string; live: string } | undefined {\n const preset = this.preset;\n if (!preset) return undefined;\n return { role: preset.role, live: preset.live };\n }\n\n private renderGlyph(size: number | string): TemplateResult {\n const color = this.glyphColor;\n const method = this.glyphMethod;\n return this.svgIconUrl ? html`\n <nile-glyph\n customSvgPath=\"${this.svgIconUrl}\"\n size=\"${this.svgIconSize ?? size}\"\n method=\"${method}\"\n color=\"${ifDefined(color)}\"\n noFill\n ></nile-glyph>\n ` : html`\n <nile-glyph\n name=\"${this.icon}\"\n method=\"${method}\"\n size=\"${size}\"\n color=\"${ifDefined(color)}\"\n ></nile-glyph>\n `;\n }\n\n /**\n * Render method\n * @slot This is a slot test\n */\n public render(): TemplateResult {\n const live = this.liveRegion;\n const inline = this.layout === 'inline';\n\n return html`\n <div part=\"container\" class=\"${classMap({\n 'empty-state': true,\n 'empty-state--sm': this.size == 'sm',\n 'empty-state--md': this.size == 'md',\n 'empty-state--lg': this.size == 'lg',\n 'empty-state--stack': this.layout === 'stack',\n 'empty-state--inline': inline,\n 'empty-state--page': this.layout === 'page',\n 'empty-state--bordered': this.bordered,\n [`empty-state--tone-${this.tone}`]: true,\n })}\"\n role=\"${ifDefined(live?.role)}\"\n aria-live=\"${ifDefined(live?.live)}\"\n >\n <div part=\"body\" class=\"${classMap({ 'empty-state__body': true })}\">\n\n ${inline ? html`\n <span part=\"inline-icon icon-chrome\" class=\"empty-state__body--inline\">\n ${this.renderGlyph(20)}\n </span>` : nothing\n }\n\n ${!inline && this.variant == 'content' ? html`\n <div part=\"content-image\" class=\"empty-state__body--content\">\n ${!this.icon && !this.svgIconUrl ? nothing : html`\n <div part=\"icon-wrapper icon-chrome\" class=\"empty-state__img__icon\">\n ${\n this.renderGlyph(this.size == 'lg' ? 28 : 24)}\n </div>`\n }\n </div>`: nothing\n }\n\n ${!inline && this.variant == 'tonal' ? html`\n <div part=\"tonal-body icon-chrome\" class=\"empty-state__body--tonal\">\n ${this.renderGlyph(40)}\n </div>`: nothing\n }\n\n ${!inline && this.variant == 'flat' ? html`\n <div part=\"flat-body\" class=\"empty-state__body--flat\">\n\t\t\t\t\t<span part=\"icon-chrome\" class=\"nile-flat-type-icon\">\n\t\t\t\t\t\t${this.renderGlyph(this.size == 'lg' ? 28 : 24)}\n\t\t\t\t\t</span>\n </div>`: nothing\n }\n\n <div part=\"text-section\" class=\"empty__state__text-section\">\n ${this.code ? html`\n <div part=\"code\" class=\"empty-state__code\">${this.code}</div>\n ` : nothing}\n <div part=\"text\" class=\"empty-state__text\">${this.text}</div>\n <div part=\"subtitle\" class=\"empty-state__subtext\">${this.subText}</div>\n </div>\n </div>\n\n <div part=\"actions\" class=\"empty-state-actions\">\n <slot></slot>\n </div>\n\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileEmptyState;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-empty-state': NileEmptyState;\n }\n}\n"],"names":["STATUS_PRESETS","empty","icon","tone","role","live","text","subText","error","offline","TONE_GLYPH_COLOR","neutral","undefined","info","warning","_export","NileEmptyState","_a","h","this","size","variant","layout","bordered","iconMethod","_this","_inherits","_createClass","key","get","_ref","_this$_icon","_this$preset","_icon","preset","set","value","old","requestUpdate","_ref2","_this$_text","_this$preset2","_text","_ref3","_this$_subText","_subText","_ref4","_this$_tone","_this$preset4","_tone","status","glyphColor","_this$svgIconColor","svgIconColor","liveRegion","renderGlyph","color","method","glyphMethod","svgIconUrl","html","_templateObject","_taggedTemplateLiteral","svgIconSize","ifDefined","_templateObject2","render","inline","_templateObject3","classMap","_templateObject4","nothing","_templateObject5","_templateObject6","_templateObject7","_templateObject8","code","_templateObject9","styles","NileElement","__decorate","property","type","String","attribute","prototype","reflect","Boolean","Number","customElement"],"mappings":"27HAyCMA,CAA6D,CAAA,CACjEC,KAAS,CAAA,CACPC,KAAM,aAAeC,CAAAA,IAAAA,CAAM,SAAWC,CAAAA,IAAAA,CAAM,SAAUC,IAAM,CAAA,QAAA,CAC5DC,IAAM,CAAA,aAAA,CAAeC,QAAS,kDAEhC,CAAA,CAAA,YAAA,CAAc,CACZL,IAAAA,CAAM,cAAgBC,CAAAA,IAAAA,CAAM,SAAWC,CAAAA,IAAAA,CAAM,SAAUC,IAAM,CAAA,QAAA,CAC7DC,IAAM,CAAA,YAAA,CAAcC,QAAS,kDAE/B,CAAA,CAAA,WAAA,CAAa,CACXL,IAAAA,CAAM,aAAcC,IAAM,CAAA,SAAA,CAAWC,IAAM,CAAA,QAAA,CAAUC,KAAM,QAC3DC,CAAAA,IAAAA,CAAM,uBAAyBC,CAAAA,OAAAA,CAAS,sCAE1C,WAAa,CAAA,CACXL,IAAM,CAAA,SAAA,CAAWC,KAAM,SAAWC,CAAAA,IAAAA,CAAM,QAAUC,CAAAA,IAAAA,CAAM,SACxDC,IAAM,CAAA,uBAAA,CAAyBC,OAAS,CAAA,oDAAA,CAAA,CAE1CC,KAAS,CAAA,CACPN,IAAM,CAAA,iBAAA,CAAmBC,KAAM,OAASC,CAAAA,IAAAA,CAAM,OAASC,CAAAA,IAAAA,CAAM,YAC7DC,IAAM,CAAA,sBAAA,CAAwBC,OAAS,CAAA,mCAAA,CAAA,CAEzCE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AA,CAAcgE,EAAA,CAD1BS,CAAAA,CAAc,qBACFzE"}
@@ -1,15 +1,15 @@
1
- import{__decorate as t}from"tslib";import{html as e,nothing as i}from"lit";import{property as s,customElement as r}from"lit/decorators.js";import{classMap as o}from"lit/directives/class-map.js";import{s as n}from"./nile-empty-state.css.esm.js";import{N as a}from"../internal/nile-element.esm.js";import{ifDefined as l}from"lit/directives/if-defined.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";const c={empty:{icon:"ng-database",tone:"neutral",role:"status",live:"polite",text:"No data yet",subText:"Rows appear here once there's something to show."},"no-results":{icon:"ng-search-lg",tone:"neutral",role:"status",live:"polite",text:"No matches",subText:"Try removing a filter or broadening your search."},"not-found":{icon:"ng-file-06",tone:"warning",role:"status",live:"polite",text:"We couldn't find that",subText:"It may have been moved or deleted."},"no-access":{icon:"ng-lock",tone:"warning",role:"status",live:"polite",text:"You don't have access",subText:"Ask an admin to grant you access to this resource."},error:{icon:"ng-alert-circle",tone:"error",role:"alert",live:"assertive",text:"Something went wrong",subText:"We couldn't load this. Try again."},offline:{icon:"ng-cloud-off",tone:"error",role:"alert",live:"assertive",text:"Connection lost",subText:"Check your connection and try again."}},p={neutral:void 0,info:"var(--nile-colors-primary-600, var(--ng-colors-fg-brand-primary-600))",warning:"var(--nile-colors-yellow-700, var(--ng-colors-fg-warning-primary))",error:"var(--nile-colors-red-700, var(--ng-colors-fg-error-primary))"};let h=class extends a{constructor(){super(...arguments),this.size="md",this.variant="tonal",this.layout="stack",this.bordered=!1}static get styles(){return[n]}get icon(){return this._icon??this.preset?.icon??"ng-x-circle"}set icon(t){const e=this.icon;this._icon=t??void 0,this.requestUpdate("icon",e)}get text(){return this._text??this.preset?.text??"Empty State"}set text(t){const e=this.text;this._text=t??void 0,this.requestUpdate("text",e)}get subText(){return this._subText??this.preset?.subText??"No Data"}set subText(t){const e=this.subText;this._subText=t??void 0,this.requestUpdate("subText",e)}get tone(){return this._tone??this.preset?.tone??"neutral"}set tone(t){const e=this.tone;this._tone=t??void 0,this.requestUpdate("tone",e)}get preset(){return this.status?c[this.status]:void 0}get glyphColor(){return this.svgIconColor??p[this.tone]}get liveRegion(){const t=this.preset;if(t)return{role:t.role,live:t.live}}renderGlyph(t){const i=this.glyphColor;return this.svgIconUrl?e`
1
+ import{__decorate as t}from"tslib";import{html as e,nothing as i}from"lit";import{property as s,customElement as r}from"lit/decorators.js";import{classMap as o}from"lit/directives/class-map.js";import{s as n}from"./nile-empty-state.css.esm.js";import{N as a}from"../internal/nile-element.esm.js";import{ifDefined as l}from"lit/directives/if-defined.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";const c={empty:{icon:"ng-database",tone:"neutral",role:"status",live:"polite",text:"No data yet",subText:"Rows appear here once there's something to show."},"no-results":{icon:"ng-search-lg",tone:"neutral",role:"status",live:"polite",text:"No matches",subText:"Try removing a filter or broadening your search."},"not-found":{icon:"ng-file-06",tone:"warning",role:"status",live:"polite",text:"We couldn't find that",subText:"It may have been moved or deleted."},"no-access":{icon:"ng-lock",tone:"warning",role:"status",live:"polite",text:"You don't have access",subText:"Ask an admin to grant you access to this resource."},error:{icon:"ng-alert-circle",tone:"error",role:"alert",live:"assertive",text:"Something went wrong",subText:"We couldn't load this. Try again."},offline:{icon:"ng-cloud-off",tone:"error",role:"alert",live:"assertive",text:"Connection lost",subText:"Check your connection and try again."}},p={neutral:void 0,info:"var(--nile-colors-primary-600, var(--ng-colors-fg-brand-primary-600))",warning:"var(--nile-colors-yellow-700, var(--ng-colors-fg-warning-primary))",error:"var(--nile-colors-red-700, var(--ng-colors-fg-error-primary))"};let h=class extends a{constructor(){super(...arguments),this.size="md",this.variant="tonal",this.layout="stack",this.bordered=!1,this.iconMethod="stroke"}static get styles(){return[n]}get icon(){return this._icon??this.preset?.icon??"ng-x-circle"}set icon(t){const e=this.icon;this._icon=t??void 0,this.requestUpdate("icon",e)}get text(){return this._text??this.preset?.text??"Empty State"}set text(t){const e=this.text;this._text=t??void 0,this.requestUpdate("text",e)}get subText(){return this._subText??this.preset?.subText??"No Data"}set subText(t){const e=this.subText;this._subText=t??void 0,this.requestUpdate("subText",e)}get tone(){return this._tone??this.preset?.tone??"neutral"}set tone(t){const e=this.tone;this._tone=t??void 0,this.requestUpdate("tone",e)}get preset(){return this.status?c[this.status]:void 0}get glyphMethod(){return"fill"===this.iconMethod?"fill":"stroke"}get glyphColor(){return this.svgIconColor??p[this.tone]}get liveRegion(){const t=this.preset;if(t)return{role:t.role,live:t.live}}renderGlyph(t){const i=this.glyphColor,s=this.glyphMethod;return this.svgIconUrl?e`
2
2
  <nile-glyph
3
3
  customSvgPath="${this.svgIconUrl}"
4
4
  size="${this.svgIconSize??t}"
5
- method="stroke"
5
+ method="${s}"
6
6
  color="${l(i)}"
7
7
  noFill
8
8
  ></nile-glyph>
9
9
  `:e`
10
10
  <nile-glyph
11
11
  name="${this.icon}"
12
- method="stroke"
12
+ method="${s}"
13
13
  size="${t}"
14
14
  color="${l(i)}"
15
15
  ></nile-glyph>
@@ -59,4 +59,4 @@ import{__decorate as t}from"tslib";import{html as e,nothing as i}from"lit";impor
59
59
  </div>
60
60
 
61
61
  </div>
62
- `}};t([s({type:String,attribute:!0})],h.prototype,"size",void 0),t([s({type:String,attribute:!0})],h.prototype,"variant",void 0),t([s({type:String,attribute:!0,reflect:!0})],h.prototype,"status",void 0),t([s({type:String,attribute:!0,reflect:!0})],h.prototype,"layout",void 0),t([s({type:String,attribute:!0})],h.prototype,"code",void 0),t([s({type:Boolean,attribute:!0,reflect:!0})],h.prototype,"bordered",void 0),t([s({type:String,attribute:!0})],h.prototype,"svgIconUrl",void 0),t([s({type:Number,attribute:!0})],h.prototype,"svgIconSize",void 0),t([s({type:String,attribute:!0})],h.prototype,"svgIconColor",void 0),t([s({type:String,attribute:!0})],h.prototype,"icon",null),t([s({type:String,attribute:!0})],h.prototype,"text",null),t([s({type:String,attribute:"sub-text"})],h.prototype,"subText",null),t([s({type:String,attribute:!0,reflect:!0})],h.prototype,"tone",null),h=t([r("nile-empty-state")],h);export{h as N};
62
+ `}};t([s({type:String,attribute:!0})],h.prototype,"size",void 0),t([s({type:String,attribute:!0})],h.prototype,"variant",void 0),t([s({type:String,attribute:!0,reflect:!0})],h.prototype,"status",void 0),t([s({type:String,attribute:!0,reflect:!0})],h.prototype,"layout",void 0),t([s({type:String,attribute:!0})],h.prototype,"code",void 0),t([s({type:Boolean,attribute:!0,reflect:!0})],h.prototype,"bordered",void 0),t([s({type:String,attribute:!0})],h.prototype,"svgIconUrl",void 0),t([s({type:Number,attribute:!0})],h.prototype,"svgIconSize",void 0),t([s({type:String,attribute:!0})],h.prototype,"svgIconColor",void 0),t([s({type:String,attribute:!0})],h.prototype,"iconMethod",void 0),t([s({type:String,attribute:!0})],h.prototype,"icon",null),t([s({type:String,attribute:!0})],h.prototype,"text",null),t([s({type:String,attribute:"sub-text"})],h.prototype,"subText",null),t([s({type:String,attribute:!0,reflect:!0})],h.prototype,"tone",null),h=t([r("nile-empty-state")],h);export{h as N};