@aquera/nile-elements 0.0.89 → 0.0.90
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 +7 -0
- package/demo/variables.css +6 -0
- package/demo/variables_v2.css +6 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +249 -221
- 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.esm.js +3 -3
- package/dist/nile-divider/nile-divider.css.cjs.js +1 -1
- package/dist/nile-divider/nile-divider.css.cjs.js.map +1 -1
- package/dist/nile-divider/nile-divider.css.esm.js +2 -2
- package/dist/nile-toolbar/index.cjs.js +1 -1
- package/dist/nile-toolbar/index.cjs.js.map +1 -1
- package/dist/nile-toolbar/index.esm.js +1 -3
- package/dist/nile-toolbar/nile-toolbar.cjs.js +2 -0
- package/dist/nile-toolbar/nile-toolbar.cjs.js.map +1 -0
- package/dist/nile-toolbar/nile-toolbar.css.cjs.js +1 -1
- package/dist/nile-toolbar/nile-toolbar.css.cjs.js.map +1 -1
- package/dist/nile-toolbar/nile-toolbar.css.esm.js +20 -4
- package/dist/nile-toolbar/nile-toolbar.esm.js +9 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +6 -7
- package/dist/src/nile-code-editor/nile-code-editor.js +11 -9
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/src/nile-divider/nile-divider.css.js +2 -2
- package/dist/src/nile-divider/nile-divider.css.js.map +1 -1
- package/dist/src/nile-toolbar/index.d.ts +1 -31
- package/dist/src/nile-toolbar/index.js +1 -41
- package/dist/src/nile-toolbar/index.js.map +1 -1
- package/dist/src/nile-toolbar/nile-toolbar.css.d.ts +5 -5
- package/dist/src/nile-toolbar/nile-toolbar.css.js +23 -7
- package/dist/src/nile-toolbar/nile-toolbar.css.js.map +1 -1
- package/dist/src/nile-toolbar/nile-toolbar.d.ts +34 -0
- package/dist/src/nile-toolbar/nile-toolbar.js +61 -0
- package/dist/src/nile-toolbar/nile-toolbar.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -2
- package/src/index.ts +2 -0
- package/src/nile-code-editor/nile-code-editor.ts +41 -30
- package/src/nile-divider/nile-divider.css.ts +2 -2
- package/src/nile-toolbar/index.ts +1 -52
- package/src/nile-toolbar/nile-toolbar.css.ts +25 -9
- package/src/nile-toolbar/nile-toolbar.ts +63 -0
@@ -0,0 +1,61 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { __decorate } from "tslib";
|
8
|
+
import { html, property } from 'lit-element';
|
9
|
+
import { customElement } from 'lit/decorators.js';
|
10
|
+
import { styles } from './nile-toolbar.css';
|
11
|
+
import NileElement from '../internal/nile-element';
|
12
|
+
/**
|
13
|
+
* Nile toolbar component.
|
14
|
+
*
|
15
|
+
* @tag nile-toolbar
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
let NileToolbar = class NileToolbar extends NileElement {
|
19
|
+
constructor() {
|
20
|
+
super(...arguments);
|
21
|
+
this.color = '';
|
22
|
+
this.background = '';
|
23
|
+
/* #endregion */
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* The styles for nile-toolbar
|
27
|
+
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
28
|
+
*/
|
29
|
+
static get styles() {
|
30
|
+
return [styles];
|
31
|
+
}
|
32
|
+
/* #endregion */
|
33
|
+
/* #region Methods */
|
34
|
+
/**
|
35
|
+
* Render method
|
36
|
+
* @slot This is a slot test
|
37
|
+
*/
|
38
|
+
render() {
|
39
|
+
return html `
|
40
|
+
<div class="toolbar" part="nile-toolbar" style="${this.color ? 'color:' + this.color + ';' : ''} ${this.background ? 'background:' + this.background + ';' : ''}">
|
41
|
+
<slot name="start"></slot>
|
42
|
+
<div class="toolbar-content" part="toolbar-mid">
|
43
|
+
<slot></slot>
|
44
|
+
</div>
|
45
|
+
<slot name="end"></slot>
|
46
|
+
</div>
|
47
|
+
`;
|
48
|
+
}
|
49
|
+
};
|
50
|
+
__decorate([
|
51
|
+
property({ reflect: true })
|
52
|
+
], NileToolbar.prototype, "color", void 0);
|
53
|
+
__decorate([
|
54
|
+
property({ reflect: true })
|
55
|
+
], NileToolbar.prototype, "background", void 0);
|
56
|
+
NileToolbar = __decorate([
|
57
|
+
customElement('nile-toolbar')
|
58
|
+
], NileToolbar);
|
59
|
+
export { NileToolbar };
|
60
|
+
export default NileToolbar;
|
61
|
+
//# sourceMappingURL=nile-toolbar.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-toolbar.js","sourceRoot":"","sources":["../../../src/nile-toolbar/nile-toolbar.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAc,IAAI,EAAE,QAAQ,EAAkC,MAAM,aAAa,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAGnD;;;;;GAKG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,WAAW;IAArC;;QAEuB,UAAK,GAAW,EAAE,CAAA;QAClB,eAAU,GAAW,EAAE,CAAA;QA8BpD,gBAAgB;IACjB,CAAC;IA7BA;;;OAGG;IACI,MAAM,KAAK,MAAM;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;IAED,gBAAgB;IAEhB,qBAAqB;IAErB;;;OAGG;IACI,MAAM;QACZ,OAAO,IAAI,CAAA;oDACuC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,aAAa,GAAG,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE;;;;;;;IAO7J,CAAC;IACJ,CAAC;CAGD,CAAA;AAhC6B;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAAmB;AAClB;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAAwB;AAHxC,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CAkCvB;SAlCY,WAAW;AAoCxB,eAAe,WAAW,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html, property, CSSResultArray, TemplateResult } from 'lit-element';\nimport { customElement } from 'lit/decorators.js';\nimport { styles } from './nile-toolbar.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile toolbar component.\n *\n * @tag nile-toolbar\n *\n */\n@customElement('nile-toolbar')\nexport class NileToolbar extends NileElement {\n\n\t@property({ reflect: true }) color: string = ''\n\t@property({ reflect: true }) background: string = ''\n\n\t/**\n\t * The styles for nile-toolbar\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t<div class=\"toolbar\" part=\"nile-toolbar\" style=\"${this.color ? 'color:' + this.color + ';' : ''} ${this.background ? 'background:' + this.background + ';' : ''}\">\n\t\t <slot name=\"start\"></slot>\n\t\t <div class=\"toolbar-content\" part=\"toolbar-mid\">\n\t\t\t<slot></slot>\n\t\t </div>\n\t\t <slot name=\"end\"></slot>\n\t\t</div>\n\t `;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileToolbar;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'nile-toolbar': NileToolbar;\n\t}\n}"]}
|