@difizen/libro-core 0.1.0 → 0.1.2
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/es/add-cell/index.less +1 -1
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts +1 -2
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts.map +1 -1
- package/es/add-cell/libro-add-cell-slot-contribution.js +12 -6
- package/es/add-cell/libro-add-cell-view.d.ts +4 -4
- package/es/add-cell/libro-add-cell-view.d.ts.map +1 -1
- package/es/add-cell/libro-add-cell-view.js +4 -6
- package/es/cell/libro-cell-contribution.d.ts +1 -2
- package/es/cell/libro-cell-contribution.d.ts.map +1 -1
- package/es/cell/libro-cell-contribution.js +14 -8
- package/es/cell/libro-cell-model.d.ts +9 -0
- package/es/cell/libro-cell-model.d.ts.map +1 -1
- package/es/cell/libro-cell-model.js +53 -11
- package/es/cell/libro-cell-protocol.d.ts +2 -0
- package/es/cell/libro-cell-protocol.d.ts.map +1 -1
- package/es/cell/libro-cell-view.d.ts +39 -3
- package/es/cell/libro-cell-view.d.ts.map +1 -1
- package/es/cell/libro-cell-view.js +54 -24
- package/es/cell/libro-edit-cell-view.d.ts +6 -12
- package/es/cell/libro-edit-cell-view.d.ts.map +1 -1
- package/es/cell/libro-edit-cell-view.js +9 -4
- package/es/cell/libro-executable-cell-view.d.ts +2 -0
- package/es/cell/libro-executable-cell-view.d.ts.map +1 -1
- package/es/cell/libro-executable-cell-view.js +4 -1
- package/es/collapse-service.d.ts +1 -1
- package/es/collapse-service.d.ts.map +1 -1
- package/es/collapse-service.js +1 -1
- package/es/command/document-commands.d.ts +5 -0
- package/es/command/document-commands.d.ts.map +1 -0
- package/es/command/document-commands.js +3 -2
- package/es/command/kernel-command.d.ts +5 -0
- package/es/command/kernel-command.d.ts.map +1 -0
- package/es/command/kernel-command.js +3 -0
- package/es/command/libro-command-contribution.d.ts +0 -1
- package/es/command/libro-command-contribution.d.ts.map +1 -1
- package/es/command/libro-command-contribution.js +179 -129
- package/es/command/libro-command-register.d.ts +0 -1
- package/es/command/libro-command-register.d.ts.map +1 -1
- package/es/command/libro-command-register.js +13 -7
- package/es/command/notebook-commands.d.ts +6 -0
- package/es/command/notebook-commands.d.ts.map +1 -0
- package/es/command/notebook-commands.js +17 -4
- package/es/components/cell-protocol.d.ts +5 -5
- package/es/components/cell-protocol.d.ts.map +1 -1
- package/es/components/dnd-cell-item-render.d.ts +6 -2
- package/es/components/dnd-cell-item-render.d.ts.map +1 -1
- package/es/components/dnd-cell-item-render.js +194 -89
- package/es/components/dnd-component/custom-drag-layer.d.ts +1 -1
- package/es/components/dnd-component/custom-drag-layer.d.ts.map +1 -1
- package/es/components/dnd-component/custom-drag-layer.js +3 -4
- package/es/components/dnd-component/default-dnd-content.d.ts +2 -1
- package/es/components/dnd-component/default-dnd-content.d.ts.map +1 -1
- package/es/components/dnd-component/default-dnd-content.js +100 -44
- package/es/components/dnd-component/dnd-context.js +1 -1
- package/es/components/dnd-component/dnd-list.d.ts +9 -5
- package/es/components/dnd-component/dnd-list.d.ts.map +1 -1
- package/es/components/dnd-component/dnd-list.js +93 -26
- package/es/components/dnd-component/index.d.ts +1 -1
- package/es/components/dnd-component/index.d.ts.map +1 -1
- package/es/components/dnd-component/index.js +2 -2
- package/es/components/dnd-component/index.less +8 -0
- package/es/components/dnd-component/overscanIndices-getter.d.ts +22 -0
- package/es/components/dnd-component/overscanIndices-getter.d.ts.map +1 -0
- package/es/components/dnd-component/overscanIndices-getter.js +58 -0
- package/es/components/dnd-component/virtualized-manager.d.ts +19 -0
- package/es/components/dnd-component/virtualized-manager.d.ts.map +1 -0
- package/es/components/dnd-component/virtualized-manager.js +60 -0
- package/es/components/index.d.ts +2 -2
- package/es/components/index.d.ts.map +1 -1
- package/es/components/index.js +2 -2
- package/es/components/libro-virtualized-render.d.ts +15 -0
- package/es/components/libro-virtualized-render.d.ts.map +1 -0
- package/es/components/libro-virtualized-render.js +174 -0
- package/es/content/index.d.ts +1 -0
- package/es/content/index.d.ts.map +1 -1
- package/es/content/index.js +2 -1
- package/es/content/libro-content-contribution.d.ts +2 -2
- package/es/content/libro-content-contribution.d.ts.map +1 -1
- package/es/content/libro-content-contribution.js +2 -3
- package/es/content/libro-content-module.d.ts.map +1 -1
- package/es/content/libro-content-module.js +3 -2
- package/es/content/libro-content-protocol.d.ts +5 -0
- package/es/content/libro-content-protocol.d.ts.map +1 -1
- package/es/content/libro-content-protocol.js +2 -1
- package/es/content/libro-content-service.d.ts +6 -4
- package/es/content/libro-content-service.d.ts.map +1 -1
- package/es/content/libro-content-service.js +36 -8
- package/es/content/libro-save-content-contribution.d.ts +6 -0
- package/es/content/libro-save-content-contribution.d.ts.map +1 -0
- package/es/content/libro-save-content-contribution.js +27 -0
- package/es/formatter/index.d.ts +6 -0
- package/es/formatter/index.d.ts.map +1 -0
- package/es/formatter/index.js +5 -0
- package/es/formatter/libro-formatter-json-contribution.d.ts +18 -0
- package/es/formatter/libro-formatter-json-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-json-contribution.js +41 -0
- package/es/formatter/libro-formatter-manager.d.ts +16 -0
- package/es/formatter/libro-formatter-manager.d.ts.map +1 -0
- package/es/formatter/libro-formatter-manager.js +86 -0
- package/es/formatter/libro-formatter-module.d.ts +3 -0
- package/es/formatter/libro-formatter-module.d.ts.map +1 -0
- package/es/formatter/libro-formatter-module.js +7 -0
- package/es/formatter/libro-formatter-protocol.d.ts +37 -0
- package/es/formatter/libro-formatter-protocol.d.ts.map +1 -0
- package/es/formatter/libro-formatter-protocol.js +18 -0
- package/es/formatter/libro-formatter-string-contribution.d.ts +18 -0
- package/es/formatter/libro-formatter-string-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-string-contribution.js +41 -0
- package/es/formatter/libro-formatter-trans-default-contribution.d.ts +7 -0
- package/es/formatter/libro-formatter-trans-default-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-trans-default-contribution.js +19 -0
- package/es/index.d.ts +5 -1
- package/es/index.d.ts.map +1 -1
- package/es/index.js +6 -2
- package/es/index.less +135 -58
- package/es/libro-context-key.d.ts.map +1 -1
- package/es/libro-keybind-registry.d.ts +5 -0
- package/es/libro-keybind-registry.d.ts.map +1 -0
- package/es/libro-model.d.ts +13 -2
- package/es/libro-model.d.ts.map +1 -1
- package/es/libro-model.js +149 -70
- package/es/libro-protocol.d.ts +44 -2
- package/es/libro-protocol.d.ts.map +1 -1
- package/es/libro-protocol.js +16 -3
- package/es/libro-service.d.ts +1 -1
- package/es/libro-service.d.ts.map +1 -1
- package/es/libro-service.js +29 -20
- package/es/libro-setting-contribution.d.ts +5 -0
- package/es/libro-setting-contribution.d.ts.map +1 -0
- package/es/{configuration/libro-configuration-contribution.js → libro-setting-contribution.js} +8 -9
- package/es/libro-setting.d.ts +11 -0
- package/es/libro-setting.d.ts.map +1 -0
- package/es/{configuration/libro-configuration.js → libro-setting.js} +17 -7
- package/es/libro-view.d.ts +21 -8
- package/es/libro-view.d.ts.map +1 -1
- package/es/libro-view.js +477 -338
- package/es/material-from-designer.d.ts +30 -0
- package/es/material-from-designer.d.ts.map +1 -0
- package/es/material-from-designer.js +112 -1
- package/es/module.d.ts.map +1 -1
- package/es/module.js +20 -5
- package/es/output/output-area.d.ts +3 -4
- package/es/output/output-area.d.ts.map +1 -1
- package/es/output/output-area.js +23 -16
- package/es/output/output-contribution.d.ts +0 -1
- package/es/output/output-contribution.d.ts.map +1 -1
- package/es/output/output-contribution.js +14 -9
- package/es/output/output-model.d.ts +2 -2
- package/es/output/output-model.d.ts.map +1 -1
- package/es/output/output-model.js +2 -2
- package/es/output/output-protocol.d.ts.map +1 -1
- package/es/output/output-protocol.js +0 -2
- package/es/settings/index.d.ts +5 -0
- package/es/settings/index.d.ts.map +1 -0
- package/es/settings/index.js +4 -0
- package/es/settings/index.less +3 -0
- package/es/settings/module.d.ts +3 -0
- package/es/settings/module.d.ts.map +1 -0
- package/es/settings/module.js +4 -0
- package/es/settings/setting-editor/configuration-panel-view.d.ts +13 -0
- package/es/settings/setting-editor/configuration-panel-view.d.ts.map +1 -0
- package/es/settings/setting-editor/configuration-panel-view.js +115 -0
- package/es/settings/setting-editor/configuration-render-contribution.d.ts +6 -0
- package/es/settings/setting-editor/configuration-render-contribution.d.ts.map +1 -0
- package/es/settings/setting-editor/configuration-render-contribution.js +77 -0
- package/es/settings/setting-editor/default-node-render.d.ts +9 -0
- package/es/settings/setting-editor/default-node-render.d.ts.map +1 -0
- package/es/settings/setting-editor/default-node-render.js +79 -0
- package/es/settings/setting-editor/index.d.ts +7 -0
- package/es/settings/setting-editor/index.d.ts.map +1 -0
- package/es/settings/setting-editor/index.js +6 -0
- package/es/settings/setting-editor/index.less +12 -0
- package/es/settings/setting-editor/module.d.ts +3 -0
- package/es/settings/setting-editor/module.d.ts.map +1 -0
- package/es/settings/setting-editor/module.js +7 -0
- package/es/settings/setting-editor/setting-editor-view.d.ts +15 -0
- package/es/settings/setting-editor/setting-editor-view.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-editor-view.js +169 -0
- package/es/settings/setting-editor/setting-tree-service.d.ts +9 -0
- package/es/settings/setting-editor/setting-tree-service.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-tree-service.js +118 -0
- package/es/settings/setting-editor/setting-tree-view.d.ts +19 -0
- package/es/settings/setting-editor/setting-tree-view.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-tree-view.js +88 -0
- package/es/settings/settings-contribution.d.ts +7 -0
- package/es/settings/settings-contribution.d.ts.map +1 -0
- package/es/settings/settings-contribution.js +36 -0
- package/es/settings/settings-modal.d.ts +5 -0
- package/es/settings/settings-modal.d.ts.map +1 -0
- package/es/settings/settings-modal.js +53 -0
- package/es/settings/settings-modal.less +3 -0
- package/es/settings/settings-protocol.d.ts +4 -0
- package/es/settings/settings-protocol.d.ts.map +1 -0
- package/es/settings/settings-protocol.js +5 -0
- package/es/slot/libro-slot-manager.d.ts +2 -2
- package/es/slot/libro-slot-manager.d.ts.map +1 -1
- package/es/slot/libro-slot-manager.js +14 -8
- package/es/slot/libro-slot-view.d.ts +3 -3
- package/es/slot/libro-slot-view.d.ts.map +1 -1
- package/es/slot/libro-slot-view.js +2 -2
- package/es/theme/libro-color-registry.d.ts +6 -0
- package/es/theme/libro-color-registry.d.ts.map +1 -0
- package/es/theme/libro-color-registry.js +7 -0
- package/es/toolbar/all-outputs-scroll-icon.d.ts +3 -0
- package/es/toolbar/all-outputs-scroll-icon.d.ts.map +1 -0
- package/es/toolbar/all-outputs-scroll-icon.js +10 -0
- package/es/toolbar/libro-toolbar.d.ts +2 -1
- package/es/toolbar/libro-toolbar.d.ts.map +1 -1
- package/es/toolbar/libro-toolbar.js +44 -8
- package/es/toolbar/restart-clear-outputs-modal.d.ts +1 -2
- package/es/toolbar/restart-clear-outputs-modal.d.ts.map +1 -1
- package/es/toolbar/restart-clear-outputs-modal.js +2 -2
- package/es/toolbar/shutdown-modal.d.ts +1 -2
- package/es/toolbar/shutdown-modal.d.ts.map +1 -1
- package/es/toolbar/shutdown-modal.js +2 -2
- package/es/toolbar/side-toolar-more-select.d.ts.map +1 -1
- package/es/toolbar/side-toolar-more-select.js +2 -2
- package/es/virtualized-manager-helper.d.ts +11 -0
- package/es/virtualized-manager-helper.d.ts.map +1 -0
- package/es/virtualized-manager-helper.js +51 -0
- package/es/virtualized-manager.d.ts +19 -0
- package/es/virtualized-manager.d.ts.map +1 -0
- package/es/virtualized-manager.js +61 -0
- package/package.json +9 -6
- package/src/add-cell/index.less +1 -1
- package/src/add-cell/libro-add-cell-slot-contribution.ts +1 -4
- package/src/add-cell/libro-add-cell-view.tsx +13 -6
- package/src/cell/libro-cell-contribution.ts +2 -6
- package/src/cell/libro-cell-model.ts +57 -4
- package/src/cell/libro-cell-protocol.ts +2 -0
- package/src/cell/libro-cell-view.tsx +21 -9
- package/src/cell/libro-edit-cell-view.tsx +10 -9
- package/src/cell/libro-executable-cell-view.ts +6 -1
- package/src/collapse-service.ts +1 -1
- package/src/command/document-commands.ts +3 -5
- package/src/command/kernel-command.ts +3 -0
- package/src/command/libro-command-contribution.ts +107 -91
- package/src/command/libro-command-register.ts +1 -4
- package/src/command/notebook-commands.ts +16 -3
- package/src/components/cell-protocol.ts +5 -5
- package/src/components/dnd-cell-item-render.tsx +239 -92
- package/src/components/dnd-component/custom-drag-layer.tsx +5 -6
- package/src/components/dnd-component/default-dnd-content.tsx +113 -42
- package/src/components/dnd-component/dnd-context.tsx +1 -1
- package/src/components/dnd-component/dnd-list.tsx +135 -43
- package/src/components/dnd-component/index.less +8 -0
- package/src/components/dnd-component/index.tsx +1 -1
- package/src/components/dnd-component/overscanIndices-getter.ts +92 -0
- package/src/components/dnd-component/virtualized-manager.ts +34 -0
- package/src/components/index.ts +2 -2
- package/src/components/libro-virtualized-render.tsx +178 -0
- package/src/content/index.ts +1 -0
- package/src/content/libro-content-contribution.ts +2 -3
- package/src/content/libro-content-module.ts +11 -3
- package/src/content/libro-content-protocol.ts +6 -0
- package/src/content/libro-content-service.ts +26 -8
- package/src/content/libro-save-content-contribution.ts +12 -0
- package/src/formatter/index.ts +5 -0
- package/src/formatter/libro-formatter-json-contribution.ts +42 -0
- package/src/formatter/libro-formatter-manager.ts +85 -0
- package/src/formatter/libro-formatter-module.ts +19 -0
- package/src/formatter/libro-formatter-protocol.ts +63 -0
- package/src/formatter/libro-formatter-string-contribution.ts +41 -0
- package/src/formatter/libro-formatter-trans-default-contribution.ts +15 -0
- package/src/index.less +135 -58
- package/src/index.tsx +6 -1
- package/src/libro-context-key.ts +3 -3
- package/src/libro-model.ts +87 -23
- package/src/libro-protocol.ts +81 -4
- package/src/libro-service.ts +4 -13
- package/src/{configuration/libro-configuration-contribution.ts → libro-setting-contribution.ts} +7 -8
- package/src/{configuration/libro-configuration.ts → libro-setting.ts} +18 -7
- package/src/libro-view.tsx +273 -141
- package/src/material-from-designer.tsx +93 -1
- package/src/module.ts +29 -7
- package/src/output/output-area.tsx +18 -12
- package/src/output/output-contribution.ts +2 -6
- package/src/output/output-model.tsx +3 -3
- package/src/output/output-protocol.ts +0 -1
- package/src/settings/index.less +3 -0
- package/src/settings/index.ts +4 -0
- package/src/settings/module.ts +8 -0
- package/src/settings/setting-editor/configuration-panel-view.tsx +89 -0
- package/src/settings/setting-editor/configuration-render-contribution.ts +81 -0
- package/src/settings/setting-editor/default-node-render.tsx +65 -0
- package/src/settings/setting-editor/index.less +12 -0
- package/src/settings/setting-editor/index.ts +6 -0
- package/src/settings/setting-editor/module.ts +17 -0
- package/src/settings/setting-editor/setting-editor-view.tsx +93 -0
- package/src/settings/setting-editor/setting-tree-service.ts +82 -0
- package/src/settings/setting-editor/setting-tree-view.tsx +95 -0
- package/src/settings/settings-contribution.tsx +24 -0
- package/src/settings/settings-modal.less +3 -0
- package/src/settings/settings-modal.tsx +50 -0
- package/src/settings/settings-protocol.ts +7 -0
- package/src/slot/libro-slot-manager.ts +1 -3
- package/src/slot/libro-slot-view.tsx +2 -5
- package/src/theme/libro-color-registry.ts +6 -0
- package/src/toolbar/all-outputs-scroll-icon.tsx +19 -0
- package/src/toolbar/libro-toolbar.tsx +30 -5
- package/src/toolbar/restart-clear-outputs-modal.tsx +3 -3
- package/src/toolbar/shutdown-modal.tsx +3 -3
- package/src/toolbar/side-toolar-more-select.tsx +2 -1
- package/src/virtualized-manager-helper.ts +29 -0
- package/src/virtualized-manager.ts +34 -0
|
@@ -0,0 +1,41 @@
|
|
|
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); }
|
|
2
|
+
var _dec, _class;
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
9
|
+
import { concatMultilineString } from '@difizen/libro-common';
|
|
10
|
+
import { singleton } from '@difizen/mana-app';
|
|
11
|
+
import { DefaultDecodedFormatter, FormatterContribution } from "./libro-formatter-protocol.js";
|
|
12
|
+
export var FormatterJsonContribution = (_dec = singleton({
|
|
13
|
+
contrib: FormatterContribution
|
|
14
|
+
}), _dec(_class = /*#__PURE__*/_createClass(function FormatterJsonContribution() {
|
|
15
|
+
var _this = this;
|
|
16
|
+
_classCallCheck(this, FormatterJsonContribution);
|
|
17
|
+
this.formatter = 'formatter-json';
|
|
18
|
+
this.formatterOptions = void 0;
|
|
19
|
+
this.canHandle = function (libroFormatter) {
|
|
20
|
+
if (libroFormatter === _this.formatter) {
|
|
21
|
+
return 100;
|
|
22
|
+
}
|
|
23
|
+
return 1;
|
|
24
|
+
};
|
|
25
|
+
this.encode = function (source) {
|
|
26
|
+
return {
|
|
27
|
+
source: source.value,
|
|
28
|
+
metadata: {
|
|
29
|
+
libroFormatter: 'formatter-string'
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
this.decode = function (formatterValue) {
|
|
34
|
+
return {
|
|
35
|
+
value: concatMultilineString(formatterValue.source)
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
this.validate = function (source) {
|
|
39
|
+
return DefaultDecodedFormatter.is(source);
|
|
40
|
+
};
|
|
41
|
+
})) || _class);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Contribution } from '@difizen/mana-app';
|
|
2
|
+
import { CellModelContribution } from '../cell/index.js';
|
|
3
|
+
import { FormatterContribution, FormatterTransContribution } from './libro-formatter-protocol.js';
|
|
4
|
+
import type { DefaultEncodedFormatter } from './libro-formatter-protocol.js';
|
|
5
|
+
export declare class LibroFormatterManager<T, U> {
|
|
6
|
+
protected readonly formatterProvider: Contribution.Provider<FormatterContribution<T>>;
|
|
7
|
+
protected readonly formatterTransProvider: Contribution.Provider<FormatterTransContribution<T, U>>;
|
|
8
|
+
protected readonly cellModelProvider: Contribution.Provider<CellModelContribution>;
|
|
9
|
+
constructor(cellModelProvider: Contribution.Provider<CellModelContribution>);
|
|
10
|
+
protected findFormatterProvider(libroFormatter: string, options?: object): FormatterContribution<T>;
|
|
11
|
+
protected findFormatterTransProvider(origin: string, target: string): FormatterTransContribution<T, U>;
|
|
12
|
+
encode(libroFormatter: string, source: T): DefaultEncodedFormatter;
|
|
13
|
+
decode(libroFormatter: string, formatterValue: DefaultEncodedFormatter): T;
|
|
14
|
+
adapter(libroFormatter: string, formatterValue: DefaultEncodedFormatter): U;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=libro-formatter-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"libro-formatter-manager.d.ts","sourceRoot":"","sources":["../../src/formatter/libro-formatter-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAE7E,qBACa,qBAAqB,CAAC,CAAC,EAAE,CAAC;IAErC,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,YAAY,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtF,SAAS,CAAC,QAAQ,CAAC,sBAAsB,EAAE,YAAY,CAAC,QAAQ,CAC9D,0BAA0B,CAAC,CAAC,EAAE,CAAC,CAAC,CACjC,CAAC;IACF,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,YAAY,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;gBAIjF,iBAAiB,EAAE,YAAY,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAKjE,SAAS,CAAC,qBAAqB,CAC7B,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,MAAM,GACf,qBAAqB,CAAC,CAAC,CAAC;IAS3B,SAAS,CAAC,0BAA0B,CAClC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,0BAA0B,CAAC,CAAC,EAAE,CAAC,CAAC;IAcnC,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,uBAAuB;IAKlE,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,uBAAuB,GAAG,CAAC;IAK1E,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,uBAAuB,GAAG,CAAC;CAiB5E"}
|
|
@@ -0,0 +1,86 @@
|
|
|
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); }
|
|
2
|
+
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
3
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
10
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
11
|
+
import { contrib, Priority, singleton } from '@difizen/mana-app';
|
|
12
|
+
import { CellModelContribution } from "../cell/index.js";
|
|
13
|
+
import { FormatterContribution, FormatterTransContribution } from "./libro-formatter-protocol.js";
|
|
14
|
+
export var LibroFormatterManager = (_dec = singleton(), _dec2 = contrib(FormatterContribution), _dec3 = contrib(FormatterTransContribution), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
15
|
+
function LibroFormatterManager(cellModelProvider) {
|
|
16
|
+
_classCallCheck(this, LibroFormatterManager);
|
|
17
|
+
_initializerDefineProperty(this, "formatterProvider", _descriptor, this);
|
|
18
|
+
_initializerDefineProperty(this, "formatterTransProvider", _descriptor2, this);
|
|
19
|
+
this.cellModelProvider = void 0;
|
|
20
|
+
this.cellModelProvider = cellModelProvider;
|
|
21
|
+
}
|
|
22
|
+
LibroFormatterManager = contrib(CellModelContribution)(LibroFormatterManager, undefined, 0) || LibroFormatterManager;
|
|
23
|
+
_createClass(LibroFormatterManager, [{
|
|
24
|
+
key: "findFormatterProvider",
|
|
25
|
+
value: function findFormatterProvider(libroFormatter, options) {
|
|
26
|
+
var prioritized = Priority.sortSync(this.formatterProvider.getContributions(), function (contribution) {
|
|
27
|
+
return contribution.canHandle(libroFormatter, options);
|
|
28
|
+
});
|
|
29
|
+
var sorted = prioritized.map(function (c) {
|
|
30
|
+
return c.value;
|
|
31
|
+
});
|
|
32
|
+
return sorted[0];
|
|
33
|
+
}
|
|
34
|
+
}, {
|
|
35
|
+
key: "findFormatterTransProvider",
|
|
36
|
+
value: function findFormatterTransProvider(origin, target) {
|
|
37
|
+
var prioritized = Priority.sortSync(this.formatterTransProvider.getContributions(), function (contribution) {
|
|
38
|
+
if (origin === contribution.origin && target === contribution.target) {
|
|
39
|
+
return contribution.priority;
|
|
40
|
+
}
|
|
41
|
+
return 1;
|
|
42
|
+
});
|
|
43
|
+
var sorted = prioritized.map(function (c) {
|
|
44
|
+
return c.value;
|
|
45
|
+
});
|
|
46
|
+
return sorted[0];
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
key: "encode",
|
|
50
|
+
value: function encode(libroFormatter, source) {
|
|
51
|
+
var formatter = this.findFormatterProvider(libroFormatter);
|
|
52
|
+
return formatter.encode(source);
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
key: "decode",
|
|
56
|
+
value: function decode(libroFormatter, formatterValue) {
|
|
57
|
+
var formatter = this.findFormatterProvider(libroFormatter);
|
|
58
|
+
return formatter.decode(formatterValue);
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
key: "adapter",
|
|
62
|
+
value: function adapter(libroFormatter, formatterValue) {
|
|
63
|
+
var originFormatter = this.findFormatterProvider(formatterValue.metadata.libroFormatter);
|
|
64
|
+
var originDecodedValue = originFormatter.decode(formatterValue);
|
|
65
|
+
var targetFormatter = this.findFormatterProvider(libroFormatter);
|
|
66
|
+
if (targetFormatter.validate(originDecodedValue)) {
|
|
67
|
+
return originDecodedValue;
|
|
68
|
+
} else {
|
|
69
|
+
var formatterTransProvider = this.findFormatterTransProvider(formatterValue.metadata.libroFormatter, libroFormatter);
|
|
70
|
+
var decodedValue = formatterTransProvider.decodedValueTrans(originDecodedValue);
|
|
71
|
+
return decodedValue;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}]);
|
|
75
|
+
return LibroFormatterManager;
|
|
76
|
+
}(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "formatterProvider", [_dec2], {
|
|
77
|
+
configurable: true,
|
|
78
|
+
enumerable: true,
|
|
79
|
+
writable: true,
|
|
80
|
+
initializer: null
|
|
81
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "formatterTransProvider", [_dec3], {
|
|
82
|
+
configurable: true,
|
|
83
|
+
enumerable: true,
|
|
84
|
+
writable: true,
|
|
85
|
+
initializer: null
|
|
86
|
+
})), _class2)) || _class);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"libro-formatter-module.d.ts","sourceRoot":"","sources":["../../src/formatter/libro-formatter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAW/C,eAAO,MAAM,oBAAoB,YAO9B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ManaModule } from '@difizen/mana-app';
|
|
2
|
+
import { FormatterJsonContribution } from "./libro-formatter-json-contribution.js";
|
|
3
|
+
import { LibroFormatterManager } from "./libro-formatter-manager.js";
|
|
4
|
+
import { FormatterContribution, FormatterTransContribution } from "./libro-formatter-protocol.js";
|
|
5
|
+
import { FormatterStringContribution } from "./libro-formatter-string-contribution.js";
|
|
6
|
+
import { FormatterTransDefaultContribution } from "./libro-formatter-trans-default-contribution.js";
|
|
7
|
+
export var LibroFormatterModule = ManaModule.create().contribution(FormatterContribution, FormatterTransContribution).register(LibroFormatterManager, FormatterStringContribution, FormatterJsonContribution, FormatterTransDefaultContribution);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { MultilineString } from '@difizen/libro-common';
|
|
2
|
+
import { Syringe } from '@difizen/mana-app';
|
|
3
|
+
export declare const FormatterContribution: Syringe.DefinedToken;
|
|
4
|
+
export interface FormatterContribution<T> {
|
|
5
|
+
formatter: string;
|
|
6
|
+
formatterOptions?: object;
|
|
7
|
+
canHandle: (libroFormatter: string, options?: object) => number;
|
|
8
|
+
encode: (source: T) => DefaultEncodedFormatter;
|
|
9
|
+
decode: (formatterValue: DefaultEncodedFormatter) => T;
|
|
10
|
+
validate: (source: T) => source is T;
|
|
11
|
+
}
|
|
12
|
+
export declare const FormatterTransContribution: Syringe.DefinedToken;
|
|
13
|
+
export interface FormatterTransContribution<T, U> {
|
|
14
|
+
origin?: string;
|
|
15
|
+
target?: string;
|
|
16
|
+
priority: number;
|
|
17
|
+
decodedValueTrans: (source: T) => U;
|
|
18
|
+
}
|
|
19
|
+
export interface DefaultEncodedFormatter {
|
|
20
|
+
source: MultilineString;
|
|
21
|
+
metadata: {
|
|
22
|
+
libroFormatter: string;
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}
|
|
27
|
+
export interface DefaultDecodedFormatter {
|
|
28
|
+
value: string;
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}
|
|
31
|
+
export declare const DefaultDecodedFormatter: {
|
|
32
|
+
is: (arg: Record<any, any> | undefined) => arg is DefaultDecodedFormatter;
|
|
33
|
+
};
|
|
34
|
+
export declare const DefaultEncodedFormatter: {
|
|
35
|
+
is: (arg: Record<any, any> | undefined) => arg is DefaultEncodedFormatter;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=libro-formatter-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"libro-formatter-protocol.d.ts","sourceRoot":"","sources":["../../src/formatter/libro-formatter-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,eAAO,MAAM,qBAAqB,sBAA+C,CAAC;AAElF,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IAChE,MAAM,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,uBAAuB,CAAC;IAC/C,MAAM,EAAE,CAAC,cAAc,EAAE,uBAAuB,KAAK,CAAC,CAAC;IACvD,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,IAAI,CAAC,CAAC;CACtC;AAED,eAAO,MAAM,0BAA0B,sBAEtC,CAAC;AAEF,MAAM,WAAW,0BAA0B,CAAC,CAAC,EAAE,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE;QACR,cAAc,EAAE,MAAM,CAAC;QACvB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,eAAO,MAAM,uBAAuB;cACxB,OAAO,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS;CAQvC,CAAC;AAEF,eAAO,MAAM,uBAAuB;cACxB,OAAO,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS;CAWvC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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); }
|
|
2
|
+
import { Syringe } from '@difizen/mana-app';
|
|
3
|
+
export var FormatterContribution = Syringe.defineToken('FormatterContribution');
|
|
4
|
+
export var FormatterTransContribution = Syringe.defineToken('FormatterTransContribution');
|
|
5
|
+
export var DefaultDecodedFormatter = {
|
|
6
|
+
is: function is(arg) {
|
|
7
|
+
return !!arg &&
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
|
+
'value' in arg && typeof arg.value === 'string';
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export var DefaultEncodedFormatter = {
|
|
13
|
+
is: function is(arg) {
|
|
14
|
+
return !!arg &&
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
+
'source' in arg && 'metadata' in arg && 'libroFormatter' in arg['metadata'] && typeof arg.metadata.libroFormatter === 'string' && _typeof(arg.metadata) === 'object';
|
|
17
|
+
}
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DefaultEncodedFormatter } from './libro-formatter-protocol.js';
|
|
2
|
+
import { DefaultDecodedFormatter, FormatterContribution } from './libro-formatter-protocol.js';
|
|
3
|
+
export declare class FormatterStringContribution implements FormatterContribution<DefaultDecodedFormatter> {
|
|
4
|
+
formatter: string;
|
|
5
|
+
formatterOptions?: object;
|
|
6
|
+
canHandle: (libroFormatter: string) => 100 | 1;
|
|
7
|
+
encode: (source: DefaultDecodedFormatter) => {
|
|
8
|
+
source: string;
|
|
9
|
+
metadata: {
|
|
10
|
+
libroFormatter: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
decode: (formatterValue: DefaultEncodedFormatter) => {
|
|
14
|
+
value: string;
|
|
15
|
+
};
|
|
16
|
+
validate: (source: DefaultDecodedFormatter) => source is DefaultDecodedFormatter;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=libro-formatter-string-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"libro-formatter-string-contribution.d.ts","sourceRoot":"","sources":["../../src/formatter/libro-formatter-string-contribution.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAEvC,qBACa,2BACX,YAAW,qBAAqB,CAAC,uBAAuB,CAAC;IAEzD,SAAS,SAAsB;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,SAAS,mBAAoB,MAAM,aAKjC;IAEF,MAAM,WAAY,uBAAuB;;;;;MAOvC;IAEF,MAAM,mBAAoB,uBAAuB;;MAE/C;IAEF,QAAQ,WAAY,uBAAuB,uCAEzC;CACH"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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); }
|
|
2
|
+
var _dec, _class;
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
9
|
+
import { concatMultilineString } from '@difizen/libro-common';
|
|
10
|
+
import { singleton } from '@difizen/mana-app';
|
|
11
|
+
import { DefaultDecodedFormatter, FormatterContribution } from "./libro-formatter-protocol.js";
|
|
12
|
+
export var FormatterStringContribution = (_dec = singleton({
|
|
13
|
+
contrib: FormatterContribution
|
|
14
|
+
}), _dec(_class = /*#__PURE__*/_createClass(function FormatterStringContribution() {
|
|
15
|
+
var _this = this;
|
|
16
|
+
_classCallCheck(this, FormatterStringContribution);
|
|
17
|
+
this.formatter = 'formatter-string';
|
|
18
|
+
this.formatterOptions = void 0;
|
|
19
|
+
this.canHandle = function (libroFormatter) {
|
|
20
|
+
if (libroFormatter === _this.formatter) {
|
|
21
|
+
return 100;
|
|
22
|
+
}
|
|
23
|
+
return 1;
|
|
24
|
+
};
|
|
25
|
+
this.encode = function (source) {
|
|
26
|
+
return {
|
|
27
|
+
source: source.value,
|
|
28
|
+
metadata: {
|
|
29
|
+
libroFormatter: 'formatter-string'
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
this.decode = function (formatterValue) {
|
|
34
|
+
return {
|
|
35
|
+
value: concatMultilineString(formatterValue.source)
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
this.validate = function (source) {
|
|
39
|
+
return DefaultDecodedFormatter.is(source);
|
|
40
|
+
};
|
|
41
|
+
})) || _class);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DefaultDecodedFormatter } from './libro-formatter-protocol.js';
|
|
2
|
+
import { FormatterTransContribution } from './libro-formatter-protocol.js';
|
|
3
|
+
export declare class FormatterTransDefaultContribution implements FormatterTransContribution<DefaultDecodedFormatter, DefaultDecodedFormatter> {
|
|
4
|
+
priority: number;
|
|
5
|
+
decodedValueTrans: (source: DefaultDecodedFormatter) => DefaultDecodedFormatter;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=libro-formatter-trans-default-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"libro-formatter-trans-default-contribution.d.ts","sourceRoot":"","sources":["../../src/formatter/libro-formatter-trans-default-contribution.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAE3E,qBACa,iCACX,YACE,0BAA0B,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;IAE9E,QAAQ,SAAK;IAEb,iBAAiB,WAAY,uBAAuB,6BAAY;CACjE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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); }
|
|
2
|
+
var _dec, _class;
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
9
|
+
import { singleton } from '@difizen/mana-app';
|
|
10
|
+
import { FormatterTransContribution } from "./libro-formatter-protocol.js";
|
|
11
|
+
export var FormatterTransDefaultContribution = (_dec = singleton({
|
|
12
|
+
contrib: FormatterTransContribution
|
|
13
|
+
}), _dec(_class = /*#__PURE__*/_createClass(function FormatterTransDefaultContribution() {
|
|
14
|
+
_classCallCheck(this, FormatterTransDefaultContribution);
|
|
15
|
+
this.priority = 1;
|
|
16
|
+
this.decodedValueTrans = function (source) {
|
|
17
|
+
return source;
|
|
18
|
+
};
|
|
19
|
+
})) || _class);
|
package/es/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export * from './libro-service.js';
|
|
|
5
5
|
export * from './libro-model.js';
|
|
6
6
|
export * from './cell/index.js';
|
|
7
7
|
export * from './components/index.js';
|
|
8
|
-
export * from './configuration/libro-configuration.js';
|
|
9
8
|
export * from './toolbar/index.js';
|
|
10
9
|
export * from './output/index.js';
|
|
11
10
|
export * from './slot/index.js';
|
|
@@ -17,4 +16,9 @@ export * from './material-from-designer.js';
|
|
|
17
16
|
export * from './libro-view-tracker.js';
|
|
18
17
|
export * from './content/index.js';
|
|
19
18
|
export * from './collapse-service.js';
|
|
19
|
+
export * from './formatter/index.js';
|
|
20
|
+
export * from './libro-setting.js';
|
|
21
|
+
export * from './settings/index.js';
|
|
22
|
+
export * from './virtualized-manager.js';
|
|
23
|
+
export * from './virtualized-manager-helper.js';
|
|
20
24
|
//# sourceMappingURL=index.d.ts.map
|
package/es/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC"}
|
package/es/index.js
CHANGED
|
@@ -5,7 +5,6 @@ export * from "./libro-service.js";
|
|
|
5
5
|
export * from "./libro-model.js";
|
|
6
6
|
export * from "./cell/index.js";
|
|
7
7
|
export * from "./components/index.js";
|
|
8
|
-
export * from "./configuration/libro-configuration.js";
|
|
9
8
|
export * from "./toolbar/index.js";
|
|
10
9
|
export * from "./output/index.js";
|
|
11
10
|
export * from "./slot/index.js";
|
|
@@ -16,4 +15,9 @@ export * from "./add-cell/index.js";
|
|
|
16
15
|
export * from "./material-from-designer.js";
|
|
17
16
|
export * from "./libro-view-tracker.js";
|
|
18
17
|
export * from "./content/index.js";
|
|
19
|
-
export * from "./collapse-service.js";
|
|
18
|
+
export * from "./collapse-service.js";
|
|
19
|
+
export * from "./formatter/index.js";
|
|
20
|
+
export * from "./libro-setting.js";
|
|
21
|
+
export * from "./settings/index.js";
|
|
22
|
+
export * from "./virtualized-manager.js";
|
|
23
|
+
export * from "./virtualized-manager-helper.js";
|