@things-factory/id-rule-base 6.2.121 → 6.2.123

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.
@@ -115,14 +115,16 @@ export class GristCodeInputPopup extends LitElement {
115
115
  }
116
116
 
117
117
  updated(changed) {
118
- if (changed.has('record') && !this.value) {
119
- this.record.name && this.getRule(this.record.name)
118
+ if (changed.has('value')) {
119
+ if (this.value && typeof this.value === 'string') {
120
+ this.getRule(this.value)
121
+ }
120
122
  }
121
123
  }
122
124
 
123
- async getRule(type) {
125
+ async getRule() {
124
126
  var response = await client.query({
125
- query: FETCH_ID_RULE_GQL(type),
127
+ query: FETCH_ID_RULE_GQL(this.value),
126
128
  context: gqlContext()
127
129
  })
128
130
 
@@ -137,7 +139,7 @@ export class GristCodeInputPopup extends LitElement {
137
139
 
138
140
  async createIdRule() {
139
141
  var idRule = {
140
- type: this.record.name,
142
+ type: this.value,
141
143
  rule: `return ''`
142
144
  }
143
145
 
@@ -44,6 +44,16 @@ export class GristCodeInput extends OxGristEditor {
44
44
  display: flex;
45
45
  overflow: hidden;
46
46
  }
47
+
48
+ input {
49
+ border: none;
50
+ background-color: transparent;
51
+ }
52
+
53
+ input:focus {
54
+ outline: none;
55
+ border: none;
56
+ }
47
57
  `
48
58
  }
49
59
 
@@ -57,13 +67,14 @@ export class GristCodeInput extends OxGristEditor {
57
67
 
58
68
  render() {
59
69
  return html`
60
- <text-input
70
+ <input
71
+ type="text"
61
72
  .value=${this.value}
62
73
  .record=${this.record}
63
74
  .column=${this.column}
64
75
  .field=${this.column}
65
76
  .row=${this.row}
66
- ></text-input>
77
+ ></input>
67
78
  <mwc-icon id="more" @click=${e => this.openPopup()}>more_vert</mwc-icon>
68
79
  `
69
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/id-rule-base",
3
- "version": "6.2.121",
3
+ "version": "6.2.123",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -26,9 +26,9 @@
26
26
  "dependencies": {
27
27
  "@operato/data-grist": "^1.5.49",
28
28
  "@operato/input": "^1.5.49",
29
- "@things-factory/i18n-base": "^6.2.121",
30
- "@things-factory/setting-base": "^6.2.121",
31
- "@things-factory/shell": "^6.2.121"
29
+ "@things-factory/i18n-base": "^6.2.122",
30
+ "@things-factory/setting-base": "^6.2.122",
31
+ "@things-factory/shell": "^6.2.122"
32
32
  },
33
- "gitHead": "69cf96b129842591e03dece330e7a7c605c6b3e2"
33
+ "gitHead": "369fd389d981f0c4c921575fd41f78cc2873bbd4"
34
34
  }