@aquera/nile-elements 0.0.84 → 0.0.86

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 (53) hide show
  1. package/README.md +7 -0
  2. package/demo/index.html +1 -1
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.esm.js +1 -1
  5. package/dist/index.iife.js +131 -2
  6. package/dist/nile-detail/index.cjs.js +2 -0
  7. package/dist/nile-detail/index.cjs.js.map +1 -0
  8. package/dist/nile-detail/index.esm.js +1 -0
  9. package/dist/nile-detail/nile-detail.cjs.js +2 -0
  10. package/dist/nile-detail/nile-detail.cjs.js.map +1 -0
  11. package/dist/nile-detail/nile-detail.css.cjs.js +2 -0
  12. package/dist/nile-detail/nile-detail.css.cjs.js.map +1 -0
  13. package/dist/nile-detail/nile-detail.css.esm.js +93 -0
  14. package/dist/nile-detail/nile-detail.esm.js +34 -0
  15. package/dist/nile-title/index.cjs.js +2 -0
  16. package/dist/nile-title/index.cjs.js.map +1 -0
  17. package/dist/nile-title/index.esm.js +1 -0
  18. package/dist/nile-title/nile-title.cjs.js +2 -0
  19. package/dist/nile-title/nile-title.cjs.js.map +1 -0
  20. package/dist/nile-title/nile-title.css.cjs.js +2 -0
  21. package/dist/nile-title/nile-title.css.cjs.js.map +1 -0
  22. package/dist/nile-title/nile-title.css.esm.js +5 -0
  23. package/dist/nile-title/nile-title.esm.js +1 -0
  24. package/dist/src/index.d.ts +2 -0
  25. package/dist/src/index.js +2 -0
  26. package/dist/src/index.js.map +1 -1
  27. package/dist/src/nile-detail/index.d.ts +1 -0
  28. package/dist/src/nile-detail/index.js +2 -0
  29. package/dist/src/nile-detail/index.js.map +1 -0
  30. package/dist/src/nile-detail/nile-detail.css.d.ts +12 -0
  31. package/dist/src/nile-detail/nile-detail.css.js +105 -0
  32. package/dist/src/nile-detail/nile-detail.css.js.map +1 -0
  33. package/dist/src/nile-detail/nile-detail.d.ts +70 -0
  34. package/dist/src/nile-detail/nile-detail.js +225 -0
  35. package/dist/src/nile-detail/nile-detail.js.map +1 -0
  36. package/dist/src/nile-title/index.d.ts +1 -0
  37. package/dist/src/nile-title/index.js +2 -0
  38. package/dist/src/nile-title/index.js.map +1 -0
  39. package/dist/src/nile-title/nile-title.css.d.ts +12 -0
  40. package/dist/src/nile-title/nile-title.css.js +17 -0
  41. package/dist/src/nile-title/nile-title.css.js.map +1 -0
  42. package/dist/src/nile-title/nile-title.d.ts +42 -0
  43. package/dist/src/nile-title/nile-title.js +66 -0
  44. package/dist/src/nile-title/nile-title.js.map +1 -0
  45. package/dist/tsconfig.tsbuildinfo +1 -1
  46. package/package.json +4 -2
  47. package/src/index.ts +3 -1
  48. package/src/nile-detail/index.ts +1 -0
  49. package/src/nile-detail/nile-detail.css.ts +107 -0
  50. package/src/nile-detail/nile-detail.ts +236 -0
  51. package/src/nile-title/index.ts +1 -0
  52. package/src/nile-title/nile-title.css.ts +19 -0
  53. package/src/nile-title/nile-title.ts +69 -0
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright Aquera Inc 2023
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { css } from 'lit-element';
8
+ /**
9
+ * Title CSS
10
+ */
11
+ export const styles = css `
12
+ :host {
13
+ font: 500 20px / 30px var(--nile-font-family-sans-serif);
14
+ }
15
+ `;
16
+ export default [styles];
17
+ //# sourceMappingURL=nile-title.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-title.css.js","sourceRoot":"","sources":["../../../src/nile-title/nile-title.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,aAAa,CAAC;AAEhC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;CAIxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit-element';\n\n/**\n * Title CSS\n */\nexport const styles = css`\n\t:host {\n font: 500 20px / 30px var(--nile-font-family-sans-serif);\n\t}\n`;\n\nexport default [styles];\n"]}
@@ -0,0 +1,42 @@
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 { CSSResultArray, TemplateResult } from 'lit-element';
8
+ import NileElement from '../internal/nile-element';
9
+ /**
10
+ * Nile title component.
11
+ *
12
+ * @tag nile-title
13
+ *
14
+ */
15
+ export declare class NileTitle extends NileElement {
16
+ headerText: string;
17
+ pageTitle: string;
18
+ /**
19
+ * The styles for nile-title
20
+ * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
21
+ */
22
+ static get styles(): CSSResultArray;
23
+ /**
24
+ * Called when the component is updated
25
+ */
26
+ protected updated(_changedProperties: Map<string | number | symbol, unknown>): void;
27
+ /**
28
+ * Updates the document title based on pageTitle or headerText
29
+ */
30
+ private updateDocumentTitle;
31
+ /**
32
+ * Render method
33
+ * @slot This is a slot test
34
+ */
35
+ render(): TemplateResult;
36
+ }
37
+ export default NileTitle;
38
+ declare global {
39
+ interface HTMLElementTagNameMap {
40
+ 'nile-title': NileTitle;
41
+ }
42
+ }
@@ -0,0 +1,66 @@
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-title.css';
11
+ import NileElement from '../internal/nile-element';
12
+ /**
13
+ * Nile title component.
14
+ *
15
+ * @tag nile-title
16
+ *
17
+ */
18
+ let NileTitle = class NileTitle extends NileElement {
19
+ constructor() {
20
+ super(...arguments);
21
+ this.headerText = '';
22
+ this.pageTitle = '';
23
+ /* #endregion */
24
+ }
25
+ /**
26
+ * The styles for nile-title
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
+ * Called when the component is updated
36
+ */
37
+ updated(_changedProperties) {
38
+ super.updated(_changedProperties);
39
+ this.updateDocumentTitle();
40
+ }
41
+ /**
42
+ * Updates the document title based on pageTitle or headerText
43
+ */
44
+ updateDocumentTitle() {
45
+ document.title = this.pageTitle || this.headerText;
46
+ }
47
+ /**
48
+ * Render method
49
+ * @slot This is a slot test
50
+ */
51
+ render() {
52
+ return html ` ${this.headerText ? html ` ${this.headerText} ` : ''} `;
53
+ }
54
+ };
55
+ __decorate([
56
+ property({ type: String })
57
+ ], NileTitle.prototype, "headerText", void 0);
58
+ __decorate([
59
+ property({ type: String })
60
+ ], NileTitle.prototype, "pageTitle", void 0);
61
+ NileTitle = __decorate([
62
+ customElement('nile-title')
63
+ ], NileTitle);
64
+ export { NileTitle };
65
+ export default NileTitle;
66
+ //# sourceMappingURL=nile-title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-title.js","sourceRoot":"","sources":["../../../src/nile-title/nile-title.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAa,IAAI,EAAE,QAAQ,EAAiC,MAAM,aAAa,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AACxC,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD;;;;;GAKG;AAEI,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,WAAW;IAAnC;;QACuB,eAAU,GAAG,EAAE,CAAC;QAEhB,cAAS,GAAG,EAAE,CAAC;QAqC3C,gBAAgB;IAClB,CAAC;IApCC;;;OAGG;IACI,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAED,gBAAgB;IAEhB,qBAAqB;IAErB;;OAEG;IACO,OAAO,CAAC,kBAA0D;QAC1E,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;QAClC,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;IAED;;OAEG;IACK,mBAAmB;QACzB,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,UAAU,CAAC;IACrD,CAAC;IAED;;;OAGG;IACI,MAAM;QACX,OAAO,IAAI,CAAA,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAA,IAAI,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IACtE,CAAC;CAGF,CAAA;AAxC6B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAiB;AAEhB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAgB;AAHhC,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CAyCrB;SAzCY,SAAS;AA2CtB,eAAe,SAAS,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-title.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile title component.\n *\n * @tag nile-title\n *\n */\n@customElement('nile-title')\nexport class NileTitle extends NileElement {\n @property({ type: String }) headerText = '';\n\n @property({ type: String }) pageTitle = '';\n\n /**\n * The styles for nile-title\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 /* #endregion */\n\n /* #region Methods */\n\n /**\n * Called when the component is updated\n */\n protected updated(_changedProperties: Map<string | number | symbol, unknown>): void {\n super.updated(_changedProperties);\n this.updateDocumentTitle();\n }\n\n /**\n * Updates the document title based on pageTitle or headerText\n */\n private updateDocumentTitle(): void {\n document.title = this.pageTitle || this.headerText;\n }\n\n /**\n * Render method\n * @slot This is a slot test\n */\n public render(): TemplateResult {\n return html` ${this.headerText ? html` ${this.headerText} ` : ''} `;\n }\n\n /* #endregion */\n}\n\nexport default NileTitle;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-title': NileTitle;\n }\n}\n"]}