@operato/app 7.0.53 → 7.0.56

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": "7.0.53",
5
+ "version": "7.0.56",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.js",
8
8
  "exports": {
@@ -136,17 +136,17 @@
136
136
  "@graphql-tools/delegate": "^10.0.1",
137
137
  "@graphql-tools/wrap": "^8.5.0",
138
138
  "@material/web": "^1.5.0",
139
- "@operato/attachment": "^7.0.53",
140
- "@operato/data-grist": "^7.0.53",
141
- "@operato/font": "^7.0.53",
142
- "@operato/form": "^7.0.53",
139
+ "@operato/attachment": "^7.0.56",
140
+ "@operato/data-grist": "^7.0.56",
141
+ "@operato/font": "^7.0.56",
142
+ "@operato/form": "^7.0.56",
143
143
  "@operato/graphql": "^7.0.53",
144
144
  "@operato/i18n": "^7.0.53",
145
- "@operato/input": "^7.0.53",
146
- "@operato/layout": "^7.0.53",
147
- "@operato/property-editor": "^7.0.53",
148
- "@operato/shell": "^7.0.53",
149
- "@operato/styles": "^7.0.53",
145
+ "@operato/input": "^7.0.56",
146
+ "@operato/layout": "^7.0.56",
147
+ "@operato/property-editor": "^7.0.56",
148
+ "@operato/shell": "^7.0.56",
149
+ "@operato/styles": "^7.0.56",
150
150
  "@operato/utils": "^7.0.53",
151
151
  "cm6-graphql": "^0.0.14",
152
152
  "codemirror": "^6.0.1",
@@ -188,5 +188,5 @@
188
188
  "prettier --write"
189
189
  ]
190
190
  },
191
- "gitHead": "1b56b8daa9f91c79055a41fccd9a072358fee823"
191
+ "gitHead": "739d3191f3ceec33de0600958d434b9207864274"
192
192
  }
@@ -82,12 +82,15 @@ export class OxPropertyEditorResourceObject extends OxPropertyEditor {
82
82
  ? {
83
83
  ...(columns || [])
84
84
  .map((field: any) => field.name)
85
- .reduce((obj: { [field: string]: any }, fieldName: string) => {
86
- return (obj = {
87
- ...obj,
88
- [fieldName]: selected[fieldName]
89
- })
90
- }, {} as { [field: string]: any }),
85
+ .reduce(
86
+ (obj: { [field: string]: any }, fieldName: string) => {
87
+ return (obj = {
88
+ ...obj,
89
+ [fieldName]: selected[fieldName]
90
+ })
91
+ },
92
+ {} as { [field: string]: any }
93
+ ),
91
94
  [idField]: selected[idField],
92
95
  [nameField]: selected[nameField],
93
96
  [descriptionField]: selected[descriptionField]
@@ -18,12 +18,12 @@ import { client, gqlContext } from '@operato/graphql'
18
18
  import { i18next } from '@operato/i18n'
19
19
  import { closePopup } from '@operato/popup'
20
20
  import { adjustFilters, isMobileDevice } from '@operato/utils'
21
- import { ButtonContainerStyles } from '@operato/styles'
21
+ import { ButtonContainerStyles, CommonHeaderStyles } from '@operato/styles'
22
22
 
23
23
  @customElement('ox-selector-resource-object')
24
24
  export class OxSelectorResourceObject extends LitElement {
25
25
  static styles = [
26
- ButtonContainerStyles,
26
+ CommonHeaderStyles,
27
27
  css`
28
28
  :host {
29
29
  display: flex;
@@ -39,14 +39,12 @@ export class OxSelectorResourceObject extends LitElement {
39
39
  flex: 1;
40
40
  }
41
41
 
42
- #filters {
43
- display: flex;
44
- flex-direction: row;
45
- justify-content: space-between;
42
+ .header {
43
+ grid-template-areas: 'filters actions';
46
44
  }
47
45
 
48
- #filters > * {
49
- padding: var(--padding-default) var(--spacing-large);
46
+ [filler] {
47
+ margin-left: auto;
50
48
  }
51
49
  `
52
50
  ]
@@ -88,18 +86,22 @@ export class OxSelectorResourceObject extends LitElement {
88
86
  .fetchHandler=${this.fetchHandler.bind(this)}
89
87
  .selectedRecords=${this.selectedRecords}
90
88
  >
91
- <div id="filters" slot="headroom">
92
- <ox-filters-form autofocus without-search></ox-filters-form>
89
+ <div class="header" slot="headroom">
90
+ <div class="filters">
91
+ <ox-filters-form autofocus without-search></ox-filters-form>
92
+ </div>
93
93
  </div>
94
94
  </ox-grist>
95
95
 
96
- <div class="button-container" style="margin-left: unset;">
96
+ <div class="footer">
97
97
  <button @click=${this.onEmpty.bind(this)}>
98
98
  <md-icon>check_box_outline_blank</md-icon>${i18next.t('button.empty')}
99
99
  </button>
100
+
100
101
  <div filler></div>
102
+
101
103
  <button @click=${this.onCancel.bind(this)}><md-icon>cancel</md-icon>${i18next.t('button.cancel')}</button>
102
- <button @click=${this.onConfirm.bind(this)}><md-icon>done</md-icon>${i18next.t('button.confirm')}</button>
104
+ <button @click=${this.onConfirm.bind(this)} done><md-icon>done</md-icon>${i18next.t('button.confirm')}</button>
103
105
  </div>
104
106
  `
105
107
  }