@operato/app 1.5.24 → 1.5.27

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/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": "1.5.24",
5
+ "version": "1.5.27",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.js",
8
8
  "exports": {
@@ -24,7 +24,7 @@
24
24
  "./grist-editor/ox-grist-renderer-crontab.js": "./dist/src/grist-editor/ox-grist-renderer-crontab.js",
25
25
  "./grist-editor/ox-grist-editor-json.js": "./dist/src/grist-editor/ox-grist-editor-json.js",
26
26
  "./grist-editor/ox-grist-editor-code.js": "./dist/src/grist-editor/ox-grist-editor-code.js",
27
- "./grist-editor/ox-grist-editor-permission.js": "./dist/src/grist-editor/ox-grist-editor-permission.js",
27
+ "./grist-editor/ox-grist-editor-privilege.js": "./dist/src/grist-editor/ox-grist-editor-privilege.js",
28
28
  "./grist-editor/ox-grist-editor-resource-object.js": "./dist/src/grist-editor/ox-grist-editor-resource-object.js",
29
29
  "./grist-editor/ox-grist-editor-resource-object-legacy.js": "./dist/src/grist-editor/ox-grist-editor-resource-object-legacy.js",
30
30
  "./grist-editor/ox-grist-editor-resource-code.js": "./dist/src/grist-editor/ox-grist-editor-resource-code.js",
@@ -84,8 +84,8 @@
84
84
  "grist-editor/ox-grist-editor-code.js": [
85
85
  "dist/src/grist-editor/ox-grist-editor-code.d.ts"
86
86
  ],
87
- "grist-editor/ox-grist-editor-permission.js": [
88
- "dist/src/grist-editor/ox-grist-editor-permission.d.ts"
87
+ "grist-editor/ox-grist-editor-privilege.js": [
88
+ "dist/src/grist-editor/ox-grist-editor-privilege.d.ts"
89
89
  ],
90
90
  "grist-editor/ox-grist-editor-resource-object.js": [
91
91
  "dist/src/grist-editor/ox-grist-editor-resource-object.d.ts"
@@ -129,15 +129,15 @@
129
129
  "@material/mwc-button": "^0.27.0",
130
130
  "@material/mwc-icon": "^0.27.0",
131
131
  "@material/mwc-icon-button": "^0.27.0",
132
- "@operato/attachment": "^1.5.24",
133
- "@operato/data-grist": "^1.5.24",
134
- "@operato/font": "^1.5.24",
132
+ "@operato/attachment": "^1.5.27",
133
+ "@operato/data-grist": "^1.5.27",
134
+ "@operato/font": "^1.5.27",
135
135
  "@operato/form": "^1.4.77",
136
136
  "@operato/graphql": "^1.4.76",
137
137
  "@operato/i18n": "^1.5.14",
138
- "@operato/input": "^1.5.24",
139
- "@operato/layout": "^1.5.15",
140
- "@operato/property-editor": "^1.5.24",
138
+ "@operato/input": "^1.5.27",
139
+ "@operato/layout": "^1.5.27",
140
+ "@operato/property-editor": "^1.5.27",
141
141
  "@operato/shell": "^1.4.87",
142
142
  "@operato/styles": "^1.4.64",
143
143
  "@operato/utils": "^1.4.64",
@@ -182,5 +182,5 @@
182
182
  "prettier --write"
183
183
  ]
184
184
  },
185
- "gitHead": "840159e3db256c4a8d35fb3461e590729587742e"
185
+ "gitHead": "014457ceb1f2671743226ac18423ead229c8b571"
186
186
  }
@@ -1,4 +1,4 @@
1
- import './ox-popup-permission-input.js'
1
+ import './ox-popup-privilege-input.js'
2
2
 
3
3
  import { html } from 'lit'
4
4
  import { customElement } from 'lit/decorators.js'
@@ -7,10 +7,10 @@ import { OxGristEditor } from '@operato/data-grist'
7
7
  import { i18next } from '@operato/i18n'
8
8
  import { openPopup } from '@operato/layout'
9
9
 
10
- @customElement('ox-grist-editor-permission')
11
- export class OxGristEditorPermission extends OxGristEditor {
10
+ @customElement('ox-grist-editor-privilege')
11
+ export class OxGristEditorPrivilege extends OxGristEditor {
12
12
  get editorTemplate() {
13
- return html` <div tabindex="0">${this.value || ''}</div> `
13
+ return html` <div tabindex="0">...</div> `
14
14
  }
15
15
 
16
16
  _onclick(e: Event): void {
@@ -45,16 +45,13 @@ export class OxGristEditorPermission extends OxGristEditor {
45
45
 
46
46
  var popup = openPopup(
47
47
  html`
48
- <ox-popup-permission-input
49
- .value=${this.value}
50
- .confirmCallback=${change.bind(this)}
51
- ></ox-popup-permission-input>
48
+ <ox-popup-privilege-input .value=${this.value} .confirmCallback=${change.bind(this)}></ox-popup-privilege-input>
52
49
  `,
53
50
  {
54
51
  backdrop: true,
55
- title: i18next.t('title.edit permission'),
56
- size: 'small',
57
- help: 'data-grist/grist-editor/permission'
52
+ title: i18next.t('title.edit privilege'),
53
+ size: 'medium',
54
+ help: 'data-grist/grist-editor/privilege'
58
55
  }
59
56
  )
60
57
  }
@@ -1,4 +1,4 @@
1
- import '@operato/input/ox-input-permission.js'
1
+ import '@operato/input/ox-input-privilege.js'
2
2
 
3
3
  import gql from 'graphql-tag'
4
4
  import { css, html, LitElement, PropertyValueMap } from 'lit'
@@ -9,8 +9,8 @@ import { closePopup } from '@operato/popup'
9
9
  import { ScrollbarStyles } from '@operato/styles'
10
10
  import { client } from '@operato/graphql'
11
11
 
12
- @customElement('ox-popup-permission-input')
13
- export class OxPopupPermissionInput extends LitElement {
12
+ @customElement('ox-popup-privilege-input')
13
+ export class OxPopupPrivilegeInput extends LitElement {
14
14
  static styles = [
15
15
  ScrollbarStyles,
16
16
  css`
@@ -24,7 +24,7 @@ export class OxPopupPermissionInput extends LitElement {
24
24
  height: var(--overlay-center-normal-height, 50%);
25
25
  }
26
26
 
27
- ox-input-permission {
27
+ ox-input-privilege {
28
28
  flex: 1;
29
29
  overflow-y: auto;
30
30
  }
@@ -48,8 +48,8 @@ export class OxPopupPermissionInput extends LitElement {
48
48
 
49
49
  render() {
50
50
  return html`
51
- <ox-input-permission .value=${this.value} .privileges=${this.privileges} @change=${this.onChange.bind(this)}>
52
- </ox-input-permission>
51
+ <ox-input-privilege .value=${this.value} .privileges=${this.privileges} @change=${this.onChange.bind(this)}>
52
+ </ox-input-privilege>
53
53
 
54
54
  <div class="button-container">
55
55
  <mwc-button @click=${this.onReset.bind(this)}>${i18next.t('button.reset')}</mwc-button>