@operato/app 9.0.0-beta.63 → 9.0.0-beta.64
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/CHANGELOG.md +9 -0
- package/dist/src/grist-editor/ox-grist-editor-code.d.ts +1 -1
- package/dist/src/grist-editor/ox-grist-editor-code.js +1 -1
- package/dist/src/grist-editor/ox-grist-editor-code.js.map +1 -1
- package/dist/src/grist-editor/ox-grist-editor-json.d.ts +1 -1
- package/dist/src/grist-editor/ox-grist-editor-json.js +1 -1
- package/dist/src/grist-editor/ox-grist-editor-json.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/dist/src/grist-editor/ox-popup-code-input.d.ts +0 -14
- package/dist/src/grist-editor/ox-popup-code-input.js +0 -78
- package/dist/src/grist-editor/ox-popup-code-input.js.map +0 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@operato/app",
|
|
3
3
|
"description": "WebApplication production supporting components following open-wc recommendations",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "9.0.0-beta.
|
|
5
|
+
"version": "9.0.0-beta.64",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"module": "dist/src/index.js",
|
|
@@ -140,16 +140,16 @@
|
|
|
140
140
|
"@graphql-tools/delegate": "^10.0.1",
|
|
141
141
|
"@graphql-tools/wrap": "^8.5.0",
|
|
142
142
|
"@material/web": "^2.0.0",
|
|
143
|
-
"@operato/attachment": "^9.0.0-beta.
|
|
144
|
-
"@operato/data-grist": "^9.0.0-beta.
|
|
145
|
-
"@operato/font": "^9.0.0-beta.
|
|
143
|
+
"@operato/attachment": "^9.0.0-beta.64",
|
|
144
|
+
"@operato/data-grist": "^9.0.0-beta.64",
|
|
145
|
+
"@operato/font": "^9.0.0-beta.64",
|
|
146
146
|
"@operato/form": "^9.0.0-beta.61",
|
|
147
147
|
"@operato/graphql": "^9.0.0-beta.38",
|
|
148
148
|
"@operato/i18n": "^9.0.0-beta.37",
|
|
149
149
|
"@operato/input": "^9.0.0-beta.61",
|
|
150
150
|
"@operato/layout": "^9.0.0-beta.52",
|
|
151
|
-
"@operato/property-editor": "^9.0.0-beta.
|
|
152
|
-
"@operato/property-panel": "^9.0.0-beta.
|
|
151
|
+
"@operato/property-editor": "^9.0.0-beta.64",
|
|
152
|
+
"@operato/property-panel": "^9.0.0-beta.64",
|
|
153
153
|
"@operato/shell": "^9.0.0-beta.52",
|
|
154
154
|
"@operato/styles": "^9.0.0-beta.47",
|
|
155
155
|
"@operato/utils": "^9.0.0-beta.38",
|
|
@@ -193,5 +193,5 @@
|
|
|
193
193
|
"prettier --write"
|
|
194
194
|
]
|
|
195
195
|
},
|
|
196
|
-
"gitHead": "
|
|
196
|
+
"gitHead": "4a134e42adc057a0016296f90d61979f601a1220"
|
|
197
197
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import '@material/web/icon/icon.js';
|
|
2
|
-
import '@operato/input/ox-input-code.js';
|
|
3
|
-
import { LitElement } from 'lit';
|
|
4
|
-
export declare class OxPopupCodeInput extends LitElement {
|
|
5
|
-
static styles: import("lit").CSSResult[];
|
|
6
|
-
value: any;
|
|
7
|
-
mode: string;
|
|
8
|
-
confirmCallback: (newval: any) => void;
|
|
9
|
-
language?: string;
|
|
10
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
11
|
-
private onChange;
|
|
12
|
-
private onCancel;
|
|
13
|
-
private onConfirm;
|
|
14
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import '@material/web/icon/icon.js';
|
|
3
|
-
import '@operato/input/ox-input-code.js';
|
|
4
|
-
import { css, html, LitElement } from 'lit';
|
|
5
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
6
|
-
import { i18next } from '@operato/i18n';
|
|
7
|
-
import { closePopup } from '@operato/popup';
|
|
8
|
-
import { CommonHeaderStyles, ScrollbarStyles } from '@operato/styles';
|
|
9
|
-
let OxPopupCodeInput = class OxPopupCodeInput extends LitElement {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.mode = 'javascript';
|
|
13
|
-
this.language = 'javascript';
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
return html `
|
|
17
|
-
<ox-input-code .value=${this.value} @change=${this.onChange.bind(this)} .language=${this.language}>
|
|
18
|
-
</ox-input-code>
|
|
19
|
-
|
|
20
|
-
<div class="footer">
|
|
21
|
-
<div filler></div>
|
|
22
|
-
<button @click=${this.onCancel.bind(this)} danger>
|
|
23
|
-
<md-icon>cancel</md-icon>${i18next.t('button.cancel')}
|
|
24
|
-
</button>
|
|
25
|
-
<button @click=${this.onConfirm.bind(this)} done><md-icon>done</md-icon>${i18next.t('button.confirm')}</button>
|
|
26
|
-
</div>
|
|
27
|
-
`;
|
|
28
|
-
}
|
|
29
|
-
onChange(e) {
|
|
30
|
-
e.stopPropagation();
|
|
31
|
-
this.value = e.detail;
|
|
32
|
-
}
|
|
33
|
-
onCancel(e) {
|
|
34
|
-
closePopup(this);
|
|
35
|
-
}
|
|
36
|
-
onConfirm(e) {
|
|
37
|
-
this.confirmCallback && this.confirmCallback(this.value);
|
|
38
|
-
closePopup(this);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
OxPopupCodeInput.styles = [
|
|
42
|
-
CommonHeaderStyles,
|
|
43
|
-
ScrollbarStyles,
|
|
44
|
-
css `
|
|
45
|
-
:host {
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
|
|
49
|
-
background-color: var(--md-sys-color-surface);
|
|
50
|
-
|
|
51
|
-
width: var(--overlay-center-normal-width, 50%);
|
|
52
|
-
height: var(--overlay-center-normal-height, 50%);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
ox-input-code {
|
|
56
|
-
flex: 1;
|
|
57
|
-
overflow-y: auto;
|
|
58
|
-
margin: var(--spacing-small);
|
|
59
|
-
}
|
|
60
|
-
`
|
|
61
|
-
];
|
|
62
|
-
__decorate([
|
|
63
|
-
property({ type: Object })
|
|
64
|
-
], OxPopupCodeInput.prototype, "value", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
property({ type: String })
|
|
67
|
-
], OxPopupCodeInput.prototype, "mode", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
property({ type: Object })
|
|
70
|
-
], OxPopupCodeInput.prototype, "confirmCallback", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
property({ type: String })
|
|
73
|
-
], OxPopupCodeInput.prototype, "language", void 0);
|
|
74
|
-
OxPopupCodeInput = __decorate([
|
|
75
|
-
customElement('ox-popup-code-input')
|
|
76
|
-
], OxPopupCodeInput);
|
|
77
|
-
export { OxPopupCodeInput };
|
|
78
|
-
//# sourceMappingURL=ox-popup-code-input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ox-popup-code-input.js","sourceRoot":"","sources":["../../../src/grist-editor/ox-popup-code-input.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,iCAAiC,CAAA;AAExC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE3D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAG9D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QAwBuB,SAAI,GAAW,YAAY,CAAA;QAE3B,aAAQ,GAAY,YAAY,CAAA;IA+B9D,CAAC;IA7BC,MAAM;QACJ,OAAO,IAAI,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{ css, html, LitElement } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\n\nimport { i18next } from '@operato/i18n'\nimport { closePopup } from '@operato/popup'\nimport { CommonHeaderStyles, ScrollbarStyles } from '@operato/styles'\n\n@customElement('ox-popup-code-input')\nexport class OxPopupCodeInput extends LitElement {\n static styles = [\n CommonHeaderStyles,\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: var(--md-sys-color-surface);\n\n width: var(--overlay-center-normal-width, 50%);\n height: var(--overlay-center-normal-height, 50%);\n }\n\n ox-input-code {\n flex: 1;\n overflow-y: auto;\n margin: var(--spacing-small);\n }\n `\n ]\n\n @property({ type: Object }) value: any\n @property({ type: String }) mode: string = 'javascript'\n @property({ type: Object }) confirmCallback!: (newval: any) => void\n @property({ type: String }) language?: string = 'javascript'\n\n render() {\n return html`\n <ox-input-code .value=${this.value} @change=${this.onChange.bind(this)} .language=${this.language}>\n </ox-input-code>\n\n <div class=\"footer\">\n <div filler></div>\n <button @click=${this.onCancel.bind(this)} danger>\n <md-icon>cancel</md-icon>${i18next.t('button.cancel')}\n </button>\n <button @click=${this.onConfirm.bind(this)} done><md-icon>done</md-icon>${i18next.t('button.confirm')}</button>\n </div>\n `\n }\n\n private onChange(e: CustomEvent) {\n e.stopPropagation()\n\n this.value = e.detail\n }\n\n private onCancel(e: Event) {\n closePopup(this)\n }\n\n private onConfirm(e: Event) {\n this.confirmCallback && this.confirmCallback(this.value)\n closePopup(this)\n }\n}\n"]}
|