@covalent/components 8.15.0-beta.4 → 8.15.0-beta.5

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 (49) hide show
  1. package/cell/cell.d.ts +1 -0
  2. package/cell/cell.d.ts.map +1 -1
  3. package/cell.js +20 -16
  4. package/cell.mjs +59 -47
  5. package/code-editor/code-editor.d.ts +5 -5
  6. package/code-editor/code-editor.d.ts.map +1 -1
  7. package/{code-editor-7e7e4197.js → code-editor-1a85e0d5.js} +15 -15
  8. package/{code-editor-49ed0cc2.mjs → code-editor-50658551.mjs} +46 -46
  9. package/code-editor.js +1 -1
  10. package/code-editor.mjs +1 -1
  11. package/code-snippet.js +1 -1
  12. package/code-snippet.mjs +1 -1
  13. package/{cssMode-117dc70a.mjs → cssMode-2b74fdc2.mjs} +1 -1
  14. package/{cssMode-9f32fcf1.js → cssMode-9d3a459c.js} +1 -1
  15. package/{freemarker2-22c962f2.js → freemarker2-bde9aca2.js} +1 -1
  16. package/{freemarker2-a368c7af.mjs → freemarker2-cfbd8857.mjs} +1 -1
  17. package/{handlebars-8cfb10a2.mjs → handlebars-c9cf3ba5.mjs} +1 -1
  18. package/{handlebars-a97e1ef4.js → handlebars-f9941f98.js} +1 -1
  19. package/{html-8da5188a.mjs → html-201c3d5b.mjs} +1 -1
  20. package/{html-2b6bfaf8.js → html-e9028ad1.js} +1 -1
  21. package/{htmlMode-789c7165.mjs → htmlMode-81e069aa.mjs} +1 -1
  22. package/{htmlMode-b3001f86.js → htmlMode-8825beb1.js} +1 -1
  23. package/index.js +1 -1
  24. package/index.mjs +1 -1
  25. package/{javascript-4d528a27.js → javascript-3c211951.js} +1 -1
  26. package/{javascript-f014ee80.mjs → javascript-b57f3bab.mjs} +2 -2
  27. package/{jsonMode-071e521b.mjs → jsonMode-1e42d08e.mjs} +1 -1
  28. package/{jsonMode-1db13325.js → jsonMode-8cd3f8b9.js} +1 -1
  29. package/{liquid-f8017dc6.mjs → liquid-987381d2.mjs} +1 -1
  30. package/{liquid-7723b12b.js → liquid-c3f3aaaf.js} +1 -1
  31. package/notebook/notebook.d.ts +51 -19
  32. package/notebook/notebook.d.ts.map +1 -1
  33. package/notebook.js +61 -33
  34. package/notebook.mjs +890 -779
  35. package/package.json +1 -1
  36. package/{python-1c6f39ab.js → python-bc49c081.js} +1 -1
  37. package/{python-5e3b4914.mjs → python-fc06c865.mjs} +1 -1
  38. package/{razor-2ce3ee94.mjs → razor-52a04ea4.mjs} +1 -1
  39. package/{razor-bc0cba40.js → razor-90572182.js} +1 -1
  40. package/select.js +1 -1
  41. package/select.mjs +1 -1
  42. package/{tsMode-fc73b7ce.js → tsMode-d31816b7.js} +1 -1
  43. package/{tsMode-a8318df7.mjs → tsMode-f63ee283.mjs} +1 -1
  44. package/{typescript-6490ca2e.js → typescript-40210801.js} +1 -1
  45. package/{typescript-ba89d39f.mjs → typescript-43c5c20d.mjs} +1 -1
  46. package/{xml-ed522294.js → xml-7bc2fc7c.js} +1 -1
  47. package/{xml-2a05d02d.mjs → xml-fa896994.mjs} +1 -1
  48. package/{yaml-b1226770.mjs → yaml-78bd2cbe.mjs} +1 -1
  49. package/{yaml-e520529c.js → yaml-ed9aa786.js} +1 -1
package/index.mjs CHANGED
@@ -9,7 +9,7 @@ import { CovalentCard as ro } from "./card.mjs";
9
9
  import { C as po } from "./chip-fb0ea5c5.mjs";
10
10
  import { CovalentChipSet as ao } from "./chip-set.mjs";
11
11
  import { CovalentCircularProgress as no } from "./circular-progress.mjs";
12
- import { C as Co } from "./code-editor-49ed0cc2.mjs";
12
+ import { C as Co } from "./code-editor-50658551.mjs";
13
13
  import { CovalentCodeSnippet as fo } from "./code-snippet.mjs";
14
14
  import { C as so } from "./dialog-16aad066.mjs";
15
15
  import { CovalentDrawer as co } from "./drawer.mjs";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./typescript-6490ca2e.js");require("./code-editor-7e7e4197.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./directive-1186bc23.js");/*!-----------------------------------------------------------------------------
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./typescript-40210801.js");require("./code-editor-1a85e0d5.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./directive-1186bc23.js");/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
4
  * Released under the MIT license
@@ -1,5 +1,5 @@
1
- import { conf as t, language as e } from "./typescript-ba89d39f.mjs";
2
- import "./code-editor-49ed0cc2.mjs";
1
+ import { conf as t, language as e } from "./typescript-43c5c20d.mjs";
2
+ import "./code-editor-50658551.mjs";
3
3
  import "./query-assigned-elements-4a39219d.mjs";
4
4
  import "./property-9b6ea53b.mjs";
5
5
  import "./async-directive-99a01ec7.mjs";
@@ -1,7 +1,7 @@
1
1
  var Ge = Object.defineProperty;
2
2
  var Qe = (e, n, i) => n in e ? Ge(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var A = (e, n, i) => (Qe(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Ze } from "./code-editor-49ed0cc2.mjs";
4
+ import { m as Ze } from "./code-editor-50658551.mjs";
5
5
  import "./query-assigned-elements-4a39219d.mjs";
6
6
  import "./property-9b6ea53b.mjs";
7
7
  import "./async-directive-99a01ec7.mjs";
@@ -1,4 +1,4 @@
1
- "use strict";var st=Object.defineProperty;var ot=(e,n,i)=>n in e?st(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var S=(e,n,i)=>(ot(e,typeof n!="symbol"?n+"":n,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ut=require("./code-editor-7e7e4197.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./directive-1186bc23.js");/*!-----------------------------------------------------------------------------
1
+ "use strict";var st=Object.defineProperty;var ot=(e,n,i)=>n in e?st(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var S=(e,n,i)=>(ot(e,typeof n!="symbol"?n+"":n,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ut=require("./code-editor-1a85e0d5.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./directive-1186bc23.js");/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
4
  * Released under the MIT license
@@ -1,4 +1,4 @@
1
- import { m as d } from "./code-editor-49ed0cc2.mjs";
1
+ import { m as d } from "./code-editor-50658551.mjs";
2
2
  import "./query-assigned-elements-4a39219d.mjs";
3
3
  import "./property-9b6ea53b.mjs";
4
4
  import "./async-directive-99a01ec7.mjs";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./code-editor-7e7e4197.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./directive-1186bc23.js");/*!-----------------------------------------------------------------------------
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./code-editor-1a85e0d5.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./directive-1186bc23.js");/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
4
  * Released under the MIT license
@@ -1,8 +1,10 @@
1
- import { LitElement, PropertyValues } from 'lit';
1
+ import { LitElement, PropertyValues, TemplateResult } from 'lit';
2
2
  import '../cell/cell';
3
3
  import '../icon/icon';
4
4
  import '../icon-button/icon-button';
5
5
  import '../button/button';
6
+ import '../select/select';
7
+ import '../list/list-item';
6
8
  declare global {
7
9
  interface HTMLElementTagNameMap {
8
10
  'cv-notebook': CovalentNotebook;
@@ -10,47 +12,77 @@ declare global {
10
12
  }
11
13
  interface CellData {
12
14
  code: string;
15
+ errors?: string[];
16
+ index?: number;
17
+ inputs?: {
18
+ password: boolean;
19
+ prompt: string;
20
+ }[];
13
21
  language: string;
14
- output?: HTMLElement | string;
22
+ outputs?: {
23
+ data: {
24
+ [key: string]: string;
25
+ };
26
+ metadata?: {
27
+ [key: string]: string;
28
+ };
29
+ outputType?: string;
30
+ }[];
15
31
  selected?: boolean;
16
- index?: number;
17
32
  showEditor?: boolean;
33
+ timesExecuted?: number;
34
+ }
35
+ interface CellType {
36
+ type: string;
37
+ name: string;
38
+ selected?: boolean;
18
39
  }
19
40
  export declare class CovalentNotebook extends LitElement {
20
41
  /**
21
42
  * The cells in a notebook
22
43
  */
23
44
  cells: CellData[];
45
+ /**
46
+ * The cell types in a notebook
47
+ */
48
+ cellTypes: CellType[];
49
+ /**
50
+ * The selected cell type for a cell
51
+ */
52
+ cellType: string;
24
53
  /**
25
54
  * Default language for cells in the notebook
26
55
  */
27
56
  defaultLanguage: string;
57
+ private _clipboardCell;
28
58
  private _draggedCellIndex;
29
59
  private _selectedCellIndex;
30
- private _clipboardCell;
31
60
  static styles: import("lit").CSSResult[];
61
+ addCell(cellData: CellData): void;
62
+ copyCell(): void;
63
+ cutCell(): void;
64
+ deleteCell(): void;
65
+ deselectAllCells(): void;
66
+ dispatchCustomCellEvent(name: string, cell?: CellData): void;
67
+ protected firstUpdated(): void;
68
+ handleCellTypeChange(e: CustomEvent): void;
69
+ handleCodeChange(e: CustomEvent, index: number): void;
32
70
  handleDragStart(e: DragEvent, index: number): void;
33
71
  handleDragOver(e: DragEvent): void;
34
72
  handleDrop(e: DragEvent, index: number): void;
35
73
  handleDragLeave(e: DragEvent): void;
36
74
  handleDragEnd(): void;
37
- removeCSS(className: string, targetElement: Document | ShadowRoot | null): void;
38
- addCell(cellData: CellData): void;
39
- deleteCell(): void;
40
- deselectAllCells(): void;
41
- selectCell(index: number): void;
42
- runCell(): void;
43
- convertMarkdowntoHTML(cell: CellData): void;
44
- handleCodeChange(e: CustomEvent, index: number): void;
75
+ handleInputKeydown(event: KeyboardEvent): void;
45
76
  handleOutputCLick(index: number): void;
46
- cutCell(): void;
47
- copyCell(): void;
48
- pasteCell(): void;
49
77
  initializeMonaco(): void;
50
- dispatchCustomCellEvent(name: string, cell?: CellData): void;
51
- protected updated(changedProperties: PropertyValues): void;
52
- protected firstUpdated(): void;
53
- protected render(): import("lit-html").TemplateResult<1>;
78
+ pasteCell(): void;
79
+ renderCellOutput(cell: CellData): TemplateResult<1>;
80
+ protected render(): TemplateResult<1>;
81
+ removeCSS(className: string, targetElement: Document | ShadowRoot | null): void;
82
+ runCell(): void;
83
+ selectCell(index: number): void;
84
+ shouldRenderEditor(cell: CellData): boolean;
85
+ protected updated(_changedProperties: PropertyValues): void;
54
86
  }
55
87
  export default CovalentNotebook;
56
88
  //# sourceMappingURL=notebook.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notebook.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/notebook/notebook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAa,MAAM,KAAK,CAAC;AAIvE,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AACtB,OAAO,4BAA4B,CAAC;AACpC,OAAO,kBAAkB,CAAC;AAE1B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,gBAAgB,CAAC;KACjC;CACF;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