@aquera/nile-elements 2.0.0 → 2.0.1
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.
- package/README.md +6 -0
- package/dist/{index-ccff99d6.esm.js → index-0fe57384.esm.js} +1 -1
- package/dist/index-f6944844.cjs.js +2 -0
- package/dist/{index-e43755f5.cjs.js.map → index-f6944844.cjs.js.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +616 -577
- package/dist/nile-code-editor/extensionSetup.cjs.js +1 -1
- package/dist/nile-code-editor/extensionSetup.esm.js +1 -1
- package/dist/nile-code-editor/index.cjs.js +1 -1
- package/dist/nile-code-editor/index.esm.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.cjs.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.esm.js +2 -2
- package/dist/nile-code-editor/nile-code-editor.esm.js +4 -4
- package/dist/nile-code-editor/theme.cjs.js +1 -1
- package/dist/nile-code-editor/theme.cjs.js.map +1 -1
- package/dist/nile-code-editor/theme.esm.js +1 -1
- package/dist/nile-combobox/nile-combobox.css.cjs.js +1 -1
- package/dist/nile-combobox/nile-combobox.css.cjs.js.map +1 -1
- package/dist/nile-combobox/nile-combobox.css.esm.js +1 -1
- package/dist/nile-detail/nile-detail.css.cjs.js +1 -1
- package/dist/nile-detail/nile-detail.css.cjs.js.map +1 -1
- package/dist/nile-detail/nile-detail.css.esm.js +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.css.esm.js +3 -3
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js +1 -1
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.esm.js +13 -7
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.esm.js +91 -58
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.esm.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.esm.js +19 -19
- package/dist/nile-wysiwyg-editor/ui/bookmark-panel.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/bookmark-panel.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/bookmark-panel.esm.js +14 -14
- package/dist/nile-wysiwyg-editor/ui/bubble-menu.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/bubble-menu.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/bubble-menu.esm.js +13 -13
- package/dist/nile-wysiwyg-editor/ui/code-block-menu.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/code-block-menu.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/code-block-menu.esm.js +12 -12
- package/dist/nile-wysiwyg-editor/ui/embed-menu.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/embed-menu.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/embed-menu.esm.js +10 -10
- package/dist/nile-wysiwyg-editor/ui/embed-panel.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/embed-panel.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/embed-panel.esm.js +4 -4
- package/dist/nile-wysiwyg-editor/ui/emoji-picker.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/emoji-picker.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/emoji-picker.esm.js +11 -11
- package/dist/nile-wysiwyg-editor/ui/find-replace.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/find-replace.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/find-replace.esm.js +9 -9
- package/dist/nile-wysiwyg-editor/ui/image-menu.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/image-menu.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/image-menu.esm.js +11 -11
- package/dist/nile-wysiwyg-editor/ui/image-panel.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/image-panel.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/image-panel.esm.js +6 -6
- package/dist/nile-wysiwyg-editor/ui/insert-menu.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/insert-menu.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/insert-menu.esm.js +14 -14
- package/dist/nile-wysiwyg-editor/ui/link-editor.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/link-editor.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/link-editor.esm.js +16 -16
- package/dist/nile-wysiwyg-editor/ui/markdown-panel.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/markdown-panel.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/markdown-panel.esm.js +8 -8
- package/dist/nile-wysiwyg-editor/ui/math-panel.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/math-panel.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/math-panel.esm.js +4 -4
- package/dist/nile-wysiwyg-editor/ui/shortcut-help.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/shortcut-help.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/shortcut-help.esm.js +16 -16
- package/dist/nile-wysiwyg-editor/ui/source-view.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/source-view.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/source-view.esm.js +29 -29
- package/dist/nile-wysiwyg-editor/ui/special-chars.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/special-chars.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/special-chars.esm.js +8 -8
- package/dist/nile-wysiwyg-editor/ui/suggest-list.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/suggest-list.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/suggest-list.esm.js +9 -9
- package/dist/nile-wysiwyg-editor/ui/table-grid-picker.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/table-grid-picker.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/table-grid-picker.esm.js +23 -23
- package/dist/nile-wysiwyg-editor/ui/table-menu.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/ui/table-menu.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/ui/table-menu.esm.js +7 -7
- package/dist/src/nile-code-editor/nile-code-editor.css.js +2 -2
- package/dist/src/nile-code-editor/nile-code-editor.css.js.map +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +15 -0
- package/dist/src/nile-code-editor/nile-code-editor.js +65 -6
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/src/nile-code-editor/theme.d.ts +6 -117
- package/dist/src/nile-code-editor/theme.js +100 -147
- package/dist/src/nile-code-editor/theme.js.map +1 -1
- package/dist/src/nile-combobox/nile-combobox.css.js +1 -1
- package/dist/src/nile-combobox/nile-combobox.css.js.map +1 -1
- package/dist/src/nile-detail/nile-detail.css.js +1 -1
- package/dist/src/nile-detail/nile-detail.css.js.map +1 -1
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js +3 -3
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js.map +1 -1
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js +11 -5
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js +91 -58
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.d.ts +2 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js +23 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js +19 -19
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/bookmark-panel.js +10 -10
- package/dist/src/nile-wysiwyg-editor/ui/bookmark-panel.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/bubble-menu.js +7 -7
- package/dist/src/nile-wysiwyg-editor/ui/bubble-menu.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/code-block-menu.js +5 -5
- package/dist/src/nile-wysiwyg-editor/ui/code-block-menu.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/embed-menu.js +6 -6
- package/dist/src/nile-wysiwyg-editor/ui/embed-menu.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/embed-panel.js +4 -4
- package/dist/src/nile-wysiwyg-editor/ui/embed-panel.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/emoji-picker.js +6 -6
- package/dist/src/nile-wysiwyg-editor/ui/emoji-picker.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/find-replace.js +7 -7
- package/dist/src/nile-wysiwyg-editor/ui/find-replace.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/image-menu.js +6 -6
- package/dist/src/nile-wysiwyg-editor/ui/image-menu.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/image-panel.js +6 -6
- package/dist/src/nile-wysiwyg-editor/ui/image-panel.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/insert-menu.js +7 -7
- package/dist/src/nile-wysiwyg-editor/ui/insert-menu.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/link-editor.js +9 -9
- package/dist/src/nile-wysiwyg-editor/ui/link-editor.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/markdown-panel.js +8 -8
- package/dist/src/nile-wysiwyg-editor/ui/markdown-panel.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/math-panel.js +4 -4
- package/dist/src/nile-wysiwyg-editor/ui/math-panel.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/shortcut-help.js +9 -9
- package/dist/src/nile-wysiwyg-editor/ui/shortcut-help.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/source-view.js +24 -24
- package/dist/src/nile-wysiwyg-editor/ui/source-view.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/special-chars.js +4 -4
- package/dist/src/nile-wysiwyg-editor/ui/special-chars.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/suggest-list.js +7 -7
- package/dist/src/nile-wysiwyg-editor/ui/suggest-list.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/table-grid-picker.js +16 -16
- package/dist/src/nile-wysiwyg-editor/ui/table-grid-picker.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/ui/table-menu.js +4 -4
- package/dist/src/nile-wysiwyg-editor/ui/table-menu.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-code-editor/nile-code-editor.css.ts +2 -2
- package/src/nile-code-editor/nile-code-editor.ts +68 -5
- package/src/nile-code-editor/theme.ts +129 -162
- package/src/nile-combobox/nile-combobox.css.ts +1 -1
- package/src/nile-detail/nile-detail.css.ts +1 -1
- package/src/nile-side-bar-footer/nile-side-bar-footer.css.ts +3 -3
- package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts +11 -5
- package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.ts +91 -58
- package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.ts +21 -1
- package/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.ts +19 -19
- package/src/nile-wysiwyg-editor/ui/bookmark-panel.ts +10 -10
- package/src/nile-wysiwyg-editor/ui/bubble-menu.ts +7 -7
- package/src/nile-wysiwyg-editor/ui/code-block-menu.ts +5 -5
- package/src/nile-wysiwyg-editor/ui/embed-menu.ts +6 -6
- package/src/nile-wysiwyg-editor/ui/embed-panel.ts +4 -4
- package/src/nile-wysiwyg-editor/ui/emoji-picker.ts +6 -6
- package/src/nile-wysiwyg-editor/ui/find-replace.ts +7 -7
- package/src/nile-wysiwyg-editor/ui/image-menu.ts +6 -6
- package/src/nile-wysiwyg-editor/ui/image-panel.ts +6 -6
- package/src/nile-wysiwyg-editor/ui/insert-menu.ts +7 -7
- package/src/nile-wysiwyg-editor/ui/link-editor.ts +9 -9
- package/src/nile-wysiwyg-editor/ui/markdown-panel.ts +8 -8
- package/src/nile-wysiwyg-editor/ui/math-panel.ts +4 -4
- package/src/nile-wysiwyg-editor/ui/shortcut-help.ts +9 -9
- package/src/nile-wysiwyg-editor/ui/source-view.ts +24 -24
- package/src/nile-wysiwyg-editor/ui/special-chars.ts +4 -4
- package/src/nile-wysiwyg-editor/ui/suggest-list.ts +7 -7
- package/src/nile-wysiwyg-editor/ui/table-grid-picker.ts +16 -16
- package/src/nile-wysiwyg-editor/ui/table-menu.ts +4 -4
- package/vscode-html-custom-data.json +2 -2
- package/dist/index-e43755f5.cjs.js +0 -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","../../internal/nile-element.cjs.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 e,
|
|
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","../../internal/nile-element.cjs.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 e,t,r,i,o,s,n,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,a;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){e=_tslib.__decorate;},function(_lit){t=_lit.css;r=_lit.html;i=_lit.nothing;},function(_litDecoratorsJs){o=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_internalNileElementCjsJs){n=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){a=/*#__PURE__*/function(_n){function a(){var _this;_classCallCheck(this,a);_this=_callSuper(this,a,arguments),_this.open=!1,_this.heading="",_this.emptyText="Nothing configured.",_this.items=[];return _this;}_inherits(a,_n);return _createClass(a,[{key:"handleKeydown",value:function handleKeydown(e){"Escape"===e.key&&(e.stopPropagation(),this.emit("wysiwyg-insert-cancel"));}},{key:"render",value:function render(){var _this2=this;return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div\n class=\"panel\"\n part=\"insert-menu\"\n role=\"menu\"\n @keydown=","\n @mousedown=","\n >\n ","\n ","\n </div>\n "])),this.handleKeydown,function(e){return e.preventDefault();},this.heading?r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<div class=\"heading\">","</div>"])),this.heading):i,0===this.items.length?r(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<div class=\"empty\">","</div>"])),this.emptyText):this.items.map(function(e,t){return r(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <button\n type=\"button\"\n class=\"item\"\n role=\"menuitem\"\n @click=","\n >\n <div class=\"label\">","</div>\n ","\n </button>\n "])),function(){return _this2.emit("wysiwyg-insert-select",{index:t});},e.label,e.description?r(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<div class=\"desc\">","</div>"])),e.description):i);}));}}],[{key:"styles",get:function get(){return[t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n :host {\n font-family: var(\n --nile-font-family-sans-serif,\n var(--ng-font-family-body, system-ui, -apple-system, sans-serif)\n );\n position: absolute;\n z-index: 20;\n display: none;\n }\n\n :host([open]) {\n display: block;\n }\n\n .panel {\n width: 260px;\n max-height: 300px;\n overflow-y: auto;\n overscroll-behavior: contain;\n padding: 6px;\n background: var(--nile-wysiwyg-popover-bg, var(--ng-colors-bg-primary));\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));\n border-radius: 8px;\n box-shadow: var(--nile-wysiwyg-popover-shadow, 0 4px 12px rgba(16, 24, 40, 0.12));\n }\n\n .heading {\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--nile-colors-neutral-600, var(--ng-colors-text-tertiary-600));\n padding: 4px 8px;\n }\n\n .item {\n display: block;\n width: 100%;\n text-align: left;\n font: inherit;\n padding: 6px 8px;\n border: none;\n border-radius: 6px;\n background: transparent;\n cursor: pointer;\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n }\n\n .item:hover {\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n }\n\n .item .label {\n font-size: 13px;\n }\n\n .item .desc {\n font-size: 11px;\n color: var(--nile-colors-neutral-600, var(--ng-colors-text-tertiary-600));\n margin-top: 1px;\n }\n\n .empty {\n font-size: 12px;\n color: var(--nile-colors-neutral-600, var(--ng-colors-text-tertiary-600));\n padding: 8px;\n }\n "])))];}}]);}(n);e([o({type:Boolean,reflect:!0})],a.prototype,"open",void 0),e([o({type:String})],a.prototype,"heading",void 0),e([o({type:String,attribute:"empty-text"})],a.prototype,"emptyText",void 0),e([o({attribute:!1})],a.prototype,"items",void 0),a=e([s("nile-wysiwyg-insert-menu")],a);}};});
|
|
2
2
|
//# sourceMappingURL=insert-menu.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insert-menu.cjs.js","sources":["../../../../src/nile-wysiwyg-editor/ui/insert-menu.ts"],"sourcesContent":["import { html, css, TemplateResult, CSSResultArray, nothing } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport NileElement from '../../internal/nile-element';\n\nexport interface InsertMenuItem {\n label: string;\n description?: string;\n}\n\n/**\n * Generic list popover for \"pick one and insert\" toolbar actions — used by the\n * template and merge-field pickers. Emits `wysiwyg-insert-select` { index } and\n * `wysiwyg-insert-cancel`. Never takes focus, so the editor selection survives.\n */\n@customElement('nile-wysiwyg-insert-menu')\nexport class NileWysiwygInsertMenu extends NileElement {\n @property({ type: Boolean, reflect: true }) open = false;\n\n @property({ type: String }) heading = '';\n\n @property({ type: String, attribute: 'empty-text' }) emptyText = 'Nothing configured.';\n\n @property({ attribute: false }) items: InsertMenuItem[] = [];\n\n public static get styles(): CSSResultArray {\n return [\n css`\n :host {\n font-family: var(\n --nile-font-family-sans-serif,\n var(--ng-font-family-body, system-ui, -apple-system, sans-serif)\n );\n position: absolute;\n z-index: 20;\n display: none;\n }\n\n :host([open]) {\n display: block;\n }\n\n .panel {\n width: 260px;\n max-height: 300px;\n overflow-y: auto;\n overscroll-behavior: contain;\n padding: 6px;\n background: var(--nile-wysiwyg-popover-bg,
|
|
1
|
+
{"version":3,"file":"insert-menu.cjs.js","sources":["../../../../src/nile-wysiwyg-editor/ui/insert-menu.ts"],"sourcesContent":["import { html, css, TemplateResult, CSSResultArray, nothing } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport NileElement from '../../internal/nile-element';\n\nexport interface InsertMenuItem {\n label: string;\n description?: string;\n}\n\n/**\n * Generic list popover for \"pick one and insert\" toolbar actions — used by the\n * template and merge-field pickers. Emits `wysiwyg-insert-select` { index } and\n * `wysiwyg-insert-cancel`. Never takes focus, so the editor selection survives.\n */\n@customElement('nile-wysiwyg-insert-menu')\nexport class NileWysiwygInsertMenu extends NileElement {\n @property({ type: Boolean, reflect: true }) open = false;\n\n @property({ type: String }) heading = '';\n\n @property({ type: String, attribute: 'empty-text' }) emptyText = 'Nothing configured.';\n\n @property({ attribute: false }) items: InsertMenuItem[] = [];\n\n public static get styles(): CSSResultArray {\n return [\n css`\n :host {\n font-family: var(\n --nile-font-family-sans-serif,\n var(--ng-font-family-body, system-ui, -apple-system, sans-serif)\n );\n position: absolute;\n z-index: 20;\n display: none;\n }\n\n :host([open]) {\n display: block;\n }\n\n .panel {\n width: 260px;\n max-height: 300px;\n overflow-y: auto;\n overscroll-behavior: contain;\n padding: 6px;\n background: var(--nile-wysiwyg-popover-bg, var(--ng-colors-bg-primary));\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));\n border-radius: 8px;\n box-shadow: var(--nile-wysiwyg-popover-shadow, 0 4px 12px rgba(16, 24, 40, 0.12));\n }\n\n .heading {\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--nile-colors-neutral-600, var(--ng-colors-text-tertiary-600));\n padding: 4px 8px;\n }\n\n .item {\n display: block;\n width: 100%;\n text-align: left;\n font: inherit;\n padding: 6px 8px;\n border: none;\n border-radius: 6px;\n background: transparent;\n cursor: pointer;\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n }\n\n .item:hover {\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n }\n\n .item .label {\n font-size: 13px;\n }\n\n .item .desc {\n font-size: 11px;\n color: var(--nile-colors-neutral-600, var(--ng-colors-text-tertiary-600));\n margin-top: 1px;\n }\n\n .empty {\n font-size: 12px;\n color: var(--nile-colors-neutral-600, var(--ng-colors-text-tertiary-600));\n padding: 8px;\n }\n `,\n ];\n }\n\n private handleKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n event.stopPropagation();\n this.emit('wysiwyg-insert-cancel');\n }\n }\n\n public render(): TemplateResult {\n return html`\n <div\n class=\"panel\"\n part=\"insert-menu\"\n role=\"menu\"\n @keydown=${this.handleKeydown}\n @mousedown=${(e: Event) => e.preventDefault()}\n >\n ${this.heading ? html`<div class=\"heading\">${this.heading}</div>` : nothing}\n ${this.items.length === 0\n ? html`<div class=\"empty\">${this.emptyText}</div>`\n : this.items.map(\n (item, index) => html`\n <button\n type=\"button\"\n class=\"item\"\n role=\"menuitem\"\n @click=${() => this.emit('wysiwyg-insert-select', { index })}\n >\n <div class=\"label\">${item.label}</div>\n ${item.description\n ? html`<div class=\"desc\">${item.description}</div>`\n : nothing}\n </button>\n `\n )}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-wysiwyg-insert-menu': NileWysiwygInsertMenu;\n }\n}\n"],"names":["NileWysiwygInsertMenu","_n","a","constructor","this","open","heading","emptyText","items","_this","_inherits","_createClass","key","value","handleKeydown","event","stopPropagation","emit","render","html","_templateObject","_taggedTemplateLiteral","e","preventDefault","_templateObject2","nothing","length","_templateObject3","map","item","index","_templateObject4","label","description","_templateObject5","__decorate","get","css","_templateObject6","NileElement","property","type","Boolean","reflect","prototype","String","attribute","customElement"],"mappings":"48GAeaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCACuCC,KAAAA,CAAIC,IAAG,CAAA,CAAA,CAAA,CAEvBD,KAAAA,CAAOE,OAAAA,CAAG,GAEeF,KAAAA,CAASG,SAAAA,CAAG,qBAEjCH,CAAAA,KAAAA,CAAKI,MAAqB,EAiH3D,QAAAC,KAAA,EA/GQC,SAAA,CAAAR,CAAA,CAAAD,EAAA,SAAAU,YAAA,CAAAT,CAAA,GAAAU,GAAA,iBAAAC,KAAA,CA0EC,SAAAC,aAAAA,CAAcC,CACF,CAAA,CAAA,QAAA,GAAdA,EAAMH,GACRG,GAAAA,CAAAA,CAAMC,eACNZ,CAAAA,CAAAA,CAAAA,IAAAA,CAAKa,KAAK,uBAEb,CAAA,CAAA,EAEM,GAAAL,GAAA,UAAAC,KAAA,UAAAK,MAAAA,CAAAA,CAAAA,KAAAA,MAAAA,MACL,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,uMAKIjB,IAAKU,CAAAA,aAAAA,CACFQ,SAAAA,CAAAA,QAAaA,CAAAA,CAAEC,CAAAA,cAAAA,CAAAA,CAAAA,GAE3BnB,IAAAA,CAAKE,OAAUa,CAAAA,CAAI,CAAAK,gBAAA,GAAAA,gBAAA,CAAAH,sBAAA,wCAAwBjB,IAAAA,CAAKE,OAAkBmB,EAAAA,CAAAA,CAC5C,CAAA,GAAtBrB,IAAKI,CAAAA,KAAAA,CAAMkB,MACTP,CAAAA,CAAI,CAAAQ,gBAAA,GAAAA,gBAAA,CAAAN,sBAAA,sCAAsBjB,IAAAA,CAAKG,SAC/BH,EAAAA,IAAAA,CAAKI,KAAMoB,CAAAA,GAAAA,CACT,SAACC,CAAAA,CAAMC,SAAUX,CAAAA,CAAI,CAAAY,gBAAA,GAAAA,gBAAA,CAAAV,sBAAA,gTAKR,iBAAMjB,CAAAA,MAAAA,CAAKa,IAAK,CAAA,uBAAA,CAAyB,CAAEa,KAAAA,CAAAA,CAAAA,CAAAA,CAAAA,GAE/BD,CAAKG,CAAAA,KAAAA,CACxBH,CAAAA,CAAKI,WACHd,CAAAA,CAAI,CAAAe,gBAAA,GAAAA,gBAAA,CAAAb,sBAAA,qCAAqBQ,CAAAA,CAAKI,WAC9BR,EAAAA,CAAAA,MAMnB,CAtH2CU,KAAAA,GAAAA,UAAAA,GAAAA,CAQrC,SAAAC,IAAA,CACL,CAAA,MAAO,CACLC,CAAG,CAAAC,gBAAA,GAAAA,gBAAA,CAAAjB,sBAAA,o+DAsEN,EAEO,MAnFiCkB,GACGJ,CAAAA,CAAA,CAA3CK,CAAS,CAAA,CAAEC,KAAMC,OAASC,CAAAA,OAAAA,CAAAA,CAAS,CAAqB3C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA4C,SAAA,CAAA,MAAA,CAAA,IAAA,IAE7BT,CAAA,CAAA,CAA3BK,EAAS,CAAEC,IAAAA,CAAMI,UAAuB7C,CAAA4C,CAAAA,SAAAA,CAAA,SAAA,CAAA,IAAA,EAAA,CAAA,CAEYT,CAAA,CAAA,CAApDK,EAAS,CAAEC,IAAAA,CAAMI,OAAQC,SAAW,CAAA,YAAA,CAAA,CAAA,CAAA,CAAkD9C,EAAA4C,SAAA,CAAA,WAAA,CAAA,IAAA,EAEvDT,CAAAA,CAAAA,CAAAA,CAAA,CAA/BK,CAAAA,CAAS,CAAEM,SAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAsC9C,EAAA4C,SAAA,CAAA,OAAA,CAAA,IAAA,IAPlD5C,CAAqBmC,CAAAA,CAAAA,CAAA,CADjCY,CAAAA,CAAc,0BACF/C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"tslib";import{css as
|
|
1
|
+
import{__decorate as e}from"tslib";import{css as t,html as r,nothing as i}from"lit";import{property as o,customElement as s}from"lit/decorators.js";import{N as n}from"../../internal/nile-element.esm.js";import"../../internal/accessibility/a11y.state.enum.esm.js";import"../../internal/accessibility/a11y.property.enum.esm.js";import"../../internal/accessibility/role.enum.esm.js";let a=class extends n{constructor(){super(...arguments),this.open=!1,this.heading="",this.emptyText="Nothing configured.",this.items=[]}static get styles(){return[t`
|
|
2
2
|
:host {
|
|
3
3
|
font-family: var(
|
|
4
4
|
--nile-font-family-sans-serif,
|
|
@@ -19,8 +19,8 @@ import{__decorate as e}from"tslib";import{css as i,html as t,nothing as s}from"l
|
|
|
19
19
|
overflow-y: auto;
|
|
20
20
|
overscroll-behavior: contain;
|
|
21
21
|
padding: 6px;
|
|
22
|
-
background: var(--nile-wysiwyg-popover-bg,
|
|
23
|
-
border: 1px solid var(--nile-colors-neutral-400,
|
|
22
|
+
background: var(--nile-wysiwyg-popover-bg, var(--ng-colors-bg-primary));
|
|
23
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
24
24
|
border-radius: 8px;
|
|
25
25
|
box-shadow: var(--nile-wysiwyg-popover-shadow, 0 4px 12px rgba(16, 24, 40, 0.12));
|
|
26
26
|
}
|
|
@@ -30,7 +30,7 @@ import{__decorate as e}from"tslib";import{css as i,html as t,nothing as s}from"l
|
|
|
30
30
|
font-weight: 600;
|
|
31
31
|
text-transform: uppercase;
|
|
32
32
|
letter-spacing: 0.04em;
|
|
33
|
-
color: var(--nile-colors-neutral-600,
|
|
33
|
+
color: var(--nile-colors-neutral-600, var(--ng-colors-text-tertiary-600));
|
|
34
34
|
padding: 4px 8px;
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -44,11 +44,11 @@ import{__decorate as e}from"tslib";import{css as i,html as t,nothing as s}from"l
|
|
|
44
44
|
border-radius: 6px;
|
|
45
45
|
background: transparent;
|
|
46
46
|
cursor: pointer;
|
|
47
|
-
color: var(--nile-colors-dark-900,
|
|
47
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.item:hover {
|
|
51
|
-
background: var(--nile-colors-neutral-100,
|
|
51
|
+
background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.item .label {
|
|
@@ -57,16 +57,16 @@ import{__decorate as e}from"tslib";import{css as i,html as t,nothing as s}from"l
|
|
|
57
57
|
|
|
58
58
|
.item .desc {
|
|
59
59
|
font-size: 11px;
|
|
60
|
-
color: var(--nile-colors-neutral-600,
|
|
60
|
+
color: var(--nile-colors-neutral-600, var(--ng-colors-text-tertiary-600));
|
|
61
61
|
margin-top: 1px;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.empty {
|
|
65
65
|
font-size: 12px;
|
|
66
|
-
color: var(--nile-colors-neutral-600,
|
|
66
|
+
color: var(--nile-colors-neutral-600, var(--ng-colors-text-tertiary-600));
|
|
67
67
|
padding: 8px;
|
|
68
68
|
}
|
|
69
|
-
`]}handleKeydown(e){"Escape"===e.key&&(e.stopPropagation(),this.emit("wysiwyg-insert-cancel"))}render(){return
|
|
69
|
+
`]}handleKeydown(e){"Escape"===e.key&&(e.stopPropagation(),this.emit("wysiwyg-insert-cancel"))}render(){return r`
|
|
70
70
|
<div
|
|
71
71
|
class="panel"
|
|
72
72
|
part="insert-menu"
|
|
@@ -74,17 +74,17 @@ import{__decorate as e}from"tslib";import{css as i,html as t,nothing as s}from"l
|
|
|
74
74
|
@keydown=${this.handleKeydown}
|
|
75
75
|
@mousedown=${e=>e.preventDefault()}
|
|
76
76
|
>
|
|
77
|
-
${this.heading?
|
|
78
|
-
${0===this.items.length?
|
|
77
|
+
${this.heading?r`<div class="heading">${this.heading}</div>`:i}
|
|
78
|
+
${0===this.items.length?r`<div class="empty">${this.emptyText}</div>`:this.items.map(((e,t)=>r`
|
|
79
79
|
<button
|
|
80
80
|
type="button"
|
|
81
81
|
class="item"
|
|
82
82
|
role="menuitem"
|
|
83
|
-
@click=${()=>this.emit("wysiwyg-insert-select",{index:
|
|
83
|
+
@click=${()=>this.emit("wysiwyg-insert-select",{index:t})}
|
|
84
84
|
>
|
|
85
85
|
<div class="label">${e.label}</div>
|
|
86
|
-
${e.description?
|
|
86
|
+
${e.description?r`<div class="desc">${e.description}</div>`:i}
|
|
87
87
|
</button>
|
|
88
88
|
`))}
|
|
89
89
|
</div>
|
|
90
|
-
`}};e([o({type:Boolean,reflect:!0})],a.prototype,"open",void 0),e([o({type:String})],a.prototype,"heading",void 0),e([o({type:String,attribute:"empty-text"})],a.prototype,"emptyText",void 0),e([o({attribute:!1})],a.prototype,"items",void 0),a=e([
|
|
90
|
+
`}};e([o({type:Boolean,reflect:!0})],a.prototype,"open",void 0),e([o({type:String})],a.prototype,"heading",void 0),e([o({type:String,attribute:"empty-text"})],a.prototype,"emptyText",void 0),e([o({attribute:!1})],a.prototype,"items",void 0),a=e([s("nile-wysiwyg-insert-menu")],a);
|
|
@@ -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","../../internal/nile-element.cjs.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,i,e,
|
|
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","../../internal/nile-element.cjs.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,r,o,i,e,n,l,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,a;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){r=_lit.css;o=_lit.html;i=_lit.nothing;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;n=_litDecoratorsJs.query;l=_litDecoratorsJs.customElement;},function(_internalNileElementCjsJs){s=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){a=/*#__PURE__*/function(_s){function a(){var _this;_classCallCheck(this,a);_this=_callSuper(this,a,arguments),_this.open=!1,_this.href="",_this.text="",_this.allowText=!1,_this.canRemove=!1;return _this;}_inherits(a,_s);return _createClass(a,[{key:"focusInput",value:function focusInput(){var _this2=this;this.updateComplete.then(function(){var _this2$hrefInput;return(_this2$hrefInput=_this2.hrefInput)===null||_this2$hrefInput===void 0?void 0:_this2$hrefInput.focus();});}},{key:"handleSubmit",value:function handleSubmit(t){var _this$hrefInput$value,_this$hrefInput,_this$shadowRoot,_o$value$trim;t.preventDefault();var r=(_this$hrefInput$value=(_this$hrefInput=this.hrefInput)===null||_this$hrefInput===void 0?void 0:_this$hrefInput.value.trim())!==null&&_this$hrefInput$value!==void 0?_this$hrefInput$value:"";if(!r)return;var o=(_this$shadowRoot=this.shadowRoot)===null||_this$shadowRoot===void 0?void 0:_this$shadowRoot.querySelector(".link-editor__text");this.emit("wysiwyg-link-apply",{href:r,text:(_o$value$trim=o===null||o===void 0?void 0:o.value.trim())!==null&&_o$value$trim!==void 0?_o$value$trim:""});}},{key:"handleKeydown",value:function handleKeydown(t){"Escape"===t.key&&(t.stopPropagation(),this.emit("wysiwyg-link-cancel"));}},{key:"render",value:function render(){var _this3=this;return o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <form\n class=\"link-editor\"\n part=\"link-editor\"\n @submit=","\n @keydown=","\n >\n <label>\n URL\n <input\n class=\"link-editor__href\"\n type=\"url\"\n placeholder=\"https://\"\n .value=","\n />\n </label>\n ","\n <div class=\"link-editor__actions\">\n ","\n <button type=\"button\" @click=",">\n Cancel\n </button>\n <button type=\"submit\" class=\"primary\">Apply</button>\n </div>\n </form>\n "])),this.handleSubmit,this.handleKeydown,this.href,this.allowText?o(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <label>\n Text\n <input class=\"link-editor__text\" type=\"text\" .value="," />\n </label>\n "])),this.text):i,this.canRemove?o(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <button\n type=\"button\"\n class=\"danger\"\n @click=","\n >\n Remove\n </button>\n "])),function(){return _this3.emit("wysiwyg-link-remove");}):i,function(){return _this3.emit("wysiwyg-link-cancel");});}}],[{key:"styles",get:function get(){return[r(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n :host {\n font-family: var(\n --nile-font-family-sans-serif,\n var(--ng-font-family-body, system-ui, -apple-system, sans-serif)\n );\n position: absolute;\n z-index: 20;\n display: none;\n }\n\n :host([open]) {\n display: block;\n }\n\n .link-editor {\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 280px;\n padding: 12px;\n background: var(--nile-wysiwyg-popover-bg, var(--ng-colors-bg-primary));\n border: 1px solid\n var(--nile-wysiwyg-border-color, var(--nile-colors-neutral-400, var(--ng-colors-border-primary)));\n border-radius: var(--nile-wysiwyg-radius, 8px);\n box-shadow: var(\n --nile-wysiwyg-popover-shadow,\n 0 4px 12px rgba(16, 24, 40, 0.12)\n );\n font-size: 13px;\n }\n\n label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));\n }\n\n input {\n font: inherit;\n padding: 6px 8px;\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));\n border-radius: 6px;\n outline: none;\n }\n\n input:focus {\n border-color: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600));\n }\n\n .link-editor__actions {\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n }\n\n button {\n font: inherit;\n padding: 6px 12px;\n border-radius: 6px;\n border: 1px solid transparent;\n cursor: pointer;\n background: transparent;\n color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));\n }\n\n button.primary {\n background: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600));\n color: var(--ng-colors-text-white);\n }\n\n button.danger {\n color: var(--nile-colors-error-600, var(--ng-componentcolors-utility-error-600));\n }\n "])))];}}]);}(s);t([e({type:Boolean,reflect:!0})],a.prototype,"open",void 0),t([e({type:String})],a.prototype,"href",void 0),t([e({type:String})],a.prototype,"text",void 0),t([e({type:Boolean})],a.prototype,"allowText",void 0),t([e({type:Boolean})],a.prototype,"canRemove",void 0),t([n(".link-editor__href")],a.prototype,"hrefInput",void 0),a=t([l("nile-wysiwyg-link-editor")],a);}};});
|
|
2
2
|
//# sourceMappingURL=link-editor.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-editor.cjs.js","sources":["../../../../src/nile-wysiwyg-editor/ui/link-editor.ts"],"sourcesContent":["import { html, css, TemplateResult, CSSResultArray, nothing } from 'lit';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport NileElement from '../../internal/nile-element';\n\n/**\n * Floating link create/edit panel. The host positions it absolutely inside\n * the editor chrome and listens for:\n * - `wysiwyg-link-apply` detail: { href, text }\n * - `wysiwyg-link-remove`\n * - `wysiwyg-link-cancel`\n */\n@customElement('nile-wysiwyg-link-editor')\nexport class NileWysiwygLinkEditor extends NileElement {\n @property({ type: Boolean, reflect: true }) open = false;\n\n @property({ type: String }) href = '';\n\n @property({ type: String }) text = '';\n\n /** Show the text field (only when creating a link from a cursor). */\n @property({ type: Boolean }) allowText = false;\n\n /** Show the remove button (when editing an existing link). */\n @property({ type: Boolean }) canRemove = false;\n\n @query('.link-editor__href') hrefInput?: HTMLInputElement;\n\n public static get styles(): CSSResultArray {\n return [\n css`\n :host {\n font-family: var(\n --nile-font-family-sans-serif,\n var(--ng-font-family-body, system-ui, -apple-system, sans-serif)\n );\n position: absolute;\n z-index: 20;\n display: none;\n }\n\n :host([open]) {\n display: block;\n }\n\n .link-editor {\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 280px;\n padding: 12px;\n background: var(--nile-wysiwyg-popover-bg,
|
|
1
|
+
{"version":3,"file":"link-editor.cjs.js","sources":["../../../../src/nile-wysiwyg-editor/ui/link-editor.ts"],"sourcesContent":["import { html, css, TemplateResult, CSSResultArray, nothing } from 'lit';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport NileElement from '../../internal/nile-element';\n\n/**\n * Floating link create/edit panel. The host positions it absolutely inside\n * the editor chrome and listens for:\n * - `wysiwyg-link-apply` detail: { href, text }\n * - `wysiwyg-link-remove`\n * - `wysiwyg-link-cancel`\n */\n@customElement('nile-wysiwyg-link-editor')\nexport class NileWysiwygLinkEditor extends NileElement {\n @property({ type: Boolean, reflect: true }) open = false;\n\n @property({ type: String }) href = '';\n\n @property({ type: String }) text = '';\n\n /** Show the text field (only when creating a link from a cursor). */\n @property({ type: Boolean }) allowText = false;\n\n /** Show the remove button (when editing an existing link). */\n @property({ type: Boolean }) canRemove = false;\n\n @query('.link-editor__href') hrefInput?: HTMLInputElement;\n\n public static get styles(): CSSResultArray {\n return [\n css`\n :host {\n font-family: var(\n --nile-font-family-sans-serif,\n var(--ng-font-family-body, system-ui, -apple-system, sans-serif)\n );\n position: absolute;\n z-index: 20;\n display: none;\n }\n\n :host([open]) {\n display: block;\n }\n\n .link-editor {\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 280px;\n padding: 12px;\n background: var(--nile-wysiwyg-popover-bg, var(--ng-colors-bg-primary));\n border: 1px solid\n var(--nile-wysiwyg-border-color, var(--nile-colors-neutral-400, var(--ng-colors-border-primary)));\n border-radius: var(--nile-wysiwyg-radius, 8px);\n box-shadow: var(\n --nile-wysiwyg-popover-shadow,\n 0 4px 12px rgba(16, 24, 40, 0.12)\n );\n font-size: 13px;\n }\n\n label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));\n }\n\n input {\n font: inherit;\n padding: 6px 8px;\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));\n border-radius: 6px;\n outline: none;\n }\n\n input:focus {\n border-color: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600));\n }\n\n .link-editor__actions {\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n }\n\n button {\n font: inherit;\n padding: 6px 12px;\n border-radius: 6px;\n border: 1px solid transparent;\n cursor: pointer;\n background: transparent;\n color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));\n }\n\n button.primary {\n background: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600));\n color: var(--ng-colors-text-white);\n }\n\n button.danger {\n color: var(--nile-colors-error-600, var(--ng-componentcolors-utility-error-600));\n }\n `,\n ];\n }\n\n /** Focuses the URL field; called by the host after opening. */\n public focusInput(): void {\n this.updateComplete.then(() => this.hrefInput?.focus());\n }\n\n private handleSubmit(event: Event): void {\n event.preventDefault();\n const href = this.hrefInput?.value.trim() ?? '';\n if (!href) return;\n const textInput = this.shadowRoot?.querySelector<HTMLInputElement>('.link-editor__text');\n this.emit('wysiwyg-link-apply', { href, text: textInput?.value.trim() ?? '' });\n }\n\n private handleKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n event.stopPropagation();\n this.emit('wysiwyg-link-cancel');\n }\n }\n\n public render(): TemplateResult {\n return html`\n <form\n class=\"link-editor\"\n part=\"link-editor\"\n @submit=${this.handleSubmit}\n @keydown=${this.handleKeydown}\n >\n <label>\n URL\n <input\n class=\"link-editor__href\"\n type=\"url\"\n placeholder=\"https://\"\n .value=${this.href}\n />\n </label>\n ${this.allowText\n ? html`\n <label>\n Text\n <input class=\"link-editor__text\" type=\"text\" .value=${this.text} />\n </label>\n `\n : nothing}\n <div class=\"link-editor__actions\">\n ${this.canRemove\n ? html`\n <button\n type=\"button\"\n class=\"danger\"\n @click=${() => this.emit('wysiwyg-link-remove')}\n >\n Remove\n </button>\n `\n : nothing}\n <button type=\"button\" @click=${() => this.emit('wysiwyg-link-cancel')}>\n Cancel\n </button>\n <button type=\"submit\" class=\"primary\">Apply</button>\n </div>\n </form>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-wysiwyg-link-editor': NileWysiwygLinkEditor;\n }\n}\n"],"names":["NileWysiwygLinkEditor","a","this","open","href","text","allowText","canRemove","_this","_inherits","_s","_createClass","key","value","focusInput","updateComplete","then","_this2$hrefInput","hrefInput","focus","handleSubmit","event","preventDefault","trim","_this$hrefInput$value","textInput","shadowRoot","querySelector","emit","_o$value$trim","handleKeydown","stopPropagation","render","_this3","html","_templateObject","_taggedTemplateLiteral","_templateObject2","nothing","_templateObject3","get","css","_templateObject4","NileElement","__decorate","property","type","Boolean","reflect","prototype","String","query","customElement"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as t}from"tslib";import{css as
|
|
1
|
+
import{__decorate as t}from"tslib";import{css as r,html as o,nothing as e}from"lit";import{property as i,query as n,customElement as l}from"lit/decorators.js";import{N as s}from"../../internal/nile-element.esm.js";import"../../internal/accessibility/a11y.state.enum.esm.js";import"../../internal/accessibility/a11y.property.enum.esm.js";import"../../internal/accessibility/role.enum.esm.js";let a=class extends s{constructor(){super(...arguments),this.open=!1,this.href="",this.text="",this.allowText=!1,this.canRemove=!1}static get styles(){return[r`
|
|
2
2
|
:host {
|
|
3
3
|
font-family: var(
|
|
4
4
|
--nile-font-family-sans-serif,
|
|
@@ -19,9 +19,9 @@ import{__decorate as t}from"tslib";import{css as i,html as e,nothing as o}from"l
|
|
|
19
19
|
gap: 8px;
|
|
20
20
|
min-width: 280px;
|
|
21
21
|
padding: 12px;
|
|
22
|
-
background: var(--nile-wysiwyg-popover-bg,
|
|
22
|
+
background: var(--nile-wysiwyg-popover-bg, var(--ng-colors-bg-primary));
|
|
23
23
|
border: 1px solid
|
|
24
|
-
var(--nile-wysiwyg-border-color, var(--nile-colors-neutral-400,
|
|
24
|
+
var(--nile-wysiwyg-border-color, var(--nile-colors-neutral-400, var(--ng-colors-border-primary)));
|
|
25
25
|
border-radius: var(--nile-wysiwyg-radius, 8px);
|
|
26
26
|
box-shadow: var(
|
|
27
27
|
--nile-wysiwyg-popover-shadow,
|
|
@@ -34,19 +34,19 @@ import{__decorate as t}from"tslib";import{css as i,html as e,nothing as o}from"l
|
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: column;
|
|
36
36
|
gap: 4px;
|
|
37
|
-
color: var(--nile-colors-neutral-700,
|
|
37
|
+
color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
input {
|
|
41
41
|
font: inherit;
|
|
42
42
|
padding: 6px 8px;
|
|
43
|
-
border: 1px solid var(--nile-colors-neutral-400,
|
|
43
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
44
44
|
border-radius: 6px;
|
|
45
45
|
outline: none;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
input:focus {
|
|
49
|
-
border-color: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600
|
|
49
|
+
border-color: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.link-editor__actions {
|
|
@@ -62,18 +62,18 @@ import{__decorate as t}from"tslib";import{css as i,html as e,nothing as o}from"l
|
|
|
62
62
|
border: 1px solid transparent;
|
|
63
63
|
cursor: pointer;
|
|
64
64
|
background: transparent;
|
|
65
|
-
color: var(--nile-colors-neutral-700,
|
|
65
|
+
color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
button.primary {
|
|
69
|
-
background: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600
|
|
70
|
-
color:
|
|
69
|
+
background: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600));
|
|
70
|
+
color: var(--ng-colors-text-white);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
button.danger {
|
|
74
|
-
color: var(--nile-colors-error-600,
|
|
74
|
+
color: var(--nile-colors-error-600, var(--ng-componentcolors-utility-error-600));
|
|
75
75
|
}
|
|
76
|
-
`]}focusInput(){this.updateComplete.then((()=>this.hrefInput?.focus()))}handleSubmit(t){t.preventDefault();const
|
|
76
|
+
`]}focusInput(){this.updateComplete.then((()=>this.hrefInput?.focus()))}handleSubmit(t){t.preventDefault();const r=this.hrefInput?.value.trim()??"";if(!r)return;const o=this.shadowRoot?.querySelector(".link-editor__text");this.emit("wysiwyg-link-apply",{href:r,text:o?.value.trim()??""})}handleKeydown(t){"Escape"===t.key&&(t.stopPropagation(),this.emit("wysiwyg-link-cancel"))}render(){return o`
|
|
77
77
|
<form
|
|
78
78
|
class="link-editor"
|
|
79
79
|
part="link-editor"
|
|
@@ -89,14 +89,14 @@ import{__decorate as t}from"tslib";import{css as i,html as e,nothing as o}from"l
|
|
|
89
89
|
.value=${this.href}
|
|
90
90
|
/>
|
|
91
91
|
</label>
|
|
92
|
-
${this.allowText?
|
|
92
|
+
${this.allowText?o`
|
|
93
93
|
<label>
|
|
94
94
|
Text
|
|
95
95
|
<input class="link-editor__text" type="text" .value=${this.text} />
|
|
96
96
|
</label>
|
|
97
|
-
`:
|
|
97
|
+
`:e}
|
|
98
98
|
<div class="link-editor__actions">
|
|
99
|
-
${this.canRemove?
|
|
99
|
+
${this.canRemove?o`
|
|
100
100
|
<button
|
|
101
101
|
type="button"
|
|
102
102
|
class="danger"
|
|
@@ -104,11 +104,11 @@ import{__decorate as t}from"tslib";import{css as i,html as e,nothing as o}from"l
|
|
|
104
104
|
>
|
|
105
105
|
Remove
|
|
106
106
|
</button>
|
|
107
|
-
`:
|
|
107
|
+
`:e}
|
|
108
108
|
<button type="button" @click=${()=>this.emit("wysiwyg-link-cancel")}>
|
|
109
109
|
Cancel
|
|
110
110
|
</button>
|
|
111
111
|
<button type="submit" class="primary">Apply</button>
|
|
112
112
|
</div>
|
|
113
113
|
</form>
|
|
114
|
-
`}};t([
|
|
114
|
+
`}};t([i({type:Boolean,reflect:!0})],a.prototype,"open",void 0),t([i({type:String})],a.prototype,"href",void 0),t([i({type:String})],a.prototype,"text",void 0),t([i({type:Boolean})],a.prototype,"allowText",void 0),t([i({type:Boolean})],a.prototype,"canRemove",void 0),t([n(".link-editor__href")],a.prototype,"hrefInput",void 0),a=t([l("nile-wysiwyg-link-editor")],a);
|