@easyquery/ui 7.3.0-rc02 → 7.3.0

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.
@@ -209,10 +209,9 @@
209
209
  }
210
210
 
211
211
  .eqjs-mobile .eqjs-qp-valueelement input[type="text"] {
212
- top: auto;
213
- bottom: auto;
212
+ top: 0;
213
+ bottom: 0;
214
214
  width: 100%;
215
- height: 1.2rem;
216
215
  left: 0;
217
216
  }
218
217
 
@@ -264,4 +263,8 @@
264
263
  height: 22px;
265
264
  }
266
265
 
267
- /* QueryPanel end */
266
+ /* ColumnsPanel end */
267
+
268
+ .eqjs-qp-panel.eqjs-mobile *:focus, .eqjs-qc-panel.eqjs-mobile *:focus, .eqjs-ep-panel.eqjs-mobile *:focus, .eqjs-cb-panel.eqjs-mobile *:focus, .eqjs-grb-panel.eqjs-mobile *:focus {
269
+ border: none;
270
+ }
@@ -198,7 +198,7 @@ body {
198
198
  }
199
199
 
200
200
  .eqjs-qp-condelement {
201
- margin: 5px 8px 0 0;
201
+ margin: 4px 8px 2px 0;
202
202
  padding: 1px;
203
203
  vertical-align: top;
204
204
  font-size: 14px;
@@ -316,7 +316,6 @@ body {
316
316
  overflow: hidden;
317
317
  text-overflow: ellipsis;
318
318
  white-space: nowrap;
319
- display: inline-block;
320
319
  }
321
320
 
322
321
  .eqjs-qp-valueelement input[type="text"]{
@@ -2434,7 +2434,7 @@ body {
2434
2434
  }
2435
2435
 
2436
2436
  .eqjs-qp-condelement {
2437
- margin: 5px 8px 0 0;
2437
+ margin: 4px 8px 2px 0;
2438
2438
  padding: 1px;
2439
2439
  vertical-align: top;
2440
2440
  font-size: 14px;
@@ -2554,7 +2554,6 @@ body {
2554
2554
  overflow: hidden;
2555
2555
  text-overflow: ellipsis;
2556
2556
  white-space: nowrap;
2557
- display: inline-block;
2558
2557
  }
2559
2558
 
2560
2559
  .eqjs-qp-valueelement input[type="text"]{
@@ -3980,10 +3979,9 @@ input.eqjs-invalid {
3980
3979
  }
3981
3980
 
3982
3981
  .eqjs-mobile .eqjs-qp-valueelement input[type="text"] {
3983
- top: auto;
3984
- bottom: auto;
3982
+ top: 0;
3983
+ bottom: 0;
3985
3984
  width: 100%;
3986
- height: 1.2rem;
3987
3985
  left: 0;
3988
3986
  }
3989
3987
 
@@ -4035,7 +4033,12 @@ input.eqjs-invalid {
4035
4033
  height: 22px;
4036
4034
  }
4037
4035
 
4038
- /* QueryPanel end */
4036
+ /* ColumnsPanel end */
4037
+
4038
+ .eqjs-qp-panel.eqjs-mobile *:focus, .eqjs-qc-panel.eqjs-mobile *:focus, .eqjs-ep-panel.eqjs-mobile *:focus, .eqjs-cb-panel.eqjs-mobile *:focus, .eqjs-grb-panel.eqjs-mobile *:focus {
4039
+ border: none;
4040
+ }
4041
+
4039
4042
  /* EasyChart START */
4040
4043
 
4041
4044
  .eqjs-chart-header {
@@ -4631,6 +4634,7 @@ input.eqjs-invalid {
4631
4634
 
4632
4635
  :root {
4633
4636
  --column-panel-expr-block-size: 220px;
4637
+ --column-panel-attr-size: 100px;
4634
4638
  --column-panel-caption-size: 100px;
4635
4639
  --tool-button-width: 22px;
4636
4640
  --tool-button-height: 22px;
@@ -4794,7 +4798,7 @@ input.eqjs-invalid {
4794
4798
 
4795
4799
  .eqjs-qc-expr-block {
4796
4800
  flex-basis: var(--column-panel-expr-block-size);
4797
- min-width: var(--column-panel-expr-block-size);
4801
+ min-width: var(--column-panel-attr-size);
4798
4802
  white-space: nowrap;
4799
4803
  margin-left: 10px;
4800
4804
  flex-shrink: 1;
@@ -4813,7 +4817,7 @@ input.eqjs-invalid {
4813
4817
  border-bottom: none;
4814
4818
  }
4815
4819
 
4816
- .eqjs-qc-captionelement {
4820
+ .eqjs-qc-captionelement, .eqjs-qp-valueelement {
4817
4821
  margin-left: 10px;
4818
4822
  flex-shrink: 1;
4819
4823
  flex-grow: 1;
@@ -4826,11 +4830,31 @@ input.eqjs-invalid {
4826
4830
  flex-wrap: nowrap;
4827
4831
  }
4828
4832
 
4829
- .eqjs-qc-captionelement a, .eqjs-qc-captionelement span {
4833
+ .eqjs-qc-attrelement, .eqjs-qp-attrelement, .eqjs-qp-operelement {
4834
+ margin-left: 0;
4835
+ flex-shrink: 1;
4836
+ flex-grow: 1;
4837
+ min-width: 0;
4838
+ overflow: hidden;
4839
+ height: 100%;
4840
+ display: flex;
4841
+ align-items: center;
4842
+ flex-wrap: nowrap;
4843
+ width: var(--column-panel-attr-size);
4844
+ flex-basis: var(--column-panel-expr-block-size);
4845
+ }
4846
+
4847
+ .eqjs-qc-captionelement a,
4848
+ .eqjs-qc-captionelement span,
4849
+ .eqjs-qc-attrelement a,
4850
+ .eqjs-qp-attrelement a,
4851
+ .eqjs-qp-valueelement a,
4852
+ .eqjs-qp-operelement a
4853
+ {
4830
4854
  white-space: nowrap;
4831
4855
  overflow: hidden;
4832
4856
  text-overflow: ellipsis;
4833
- display: inline-flex;
4857
+ display: block;
4834
4858
  align-items: center;
4835
4859
  border: 1px solid transparent;
4836
4860
  padding: 0 2px;
@@ -4912,10 +4936,6 @@ input.eqjs-invalid {
4912
4936
  max-height: 250px;
4913
4937
  }
4914
4938
 
4915
- .eqjs-button {
4916
- /*border: 1px solid red;*/
4917
- }
4918
-
4919
4939
  .eqjs-qc-colelement {
4920
4940
  margin: 0;
4921
4941
  }
@@ -4932,6 +4952,31 @@ input.eqjs-invalid {
4932
4952
  top: -1px;
4933
4953
  }
4934
4954
 
4955
+ .eqjs-qp-row {
4956
+ padding-right: 66px;
4957
+ flex-wrap: nowrap;
4958
+ /*min-width: 360px;*/
4959
+ }
4960
+
4961
+ .eqjs-qp-attrelement {
4962
+ max-width: -moz-fit-content;
4963
+ max-width: fit-content;
4964
+ }
4965
+
4966
+ .eqjs-qp-valueelement {
4967
+ min-width: 50px!important;
4968
+ margin-left: 0;
4969
+ }
4970
+
4971
+ .eqjs-qp-operelement {
4972
+ max-width: -moz-fit-content;
4973
+ max-width: fit-content;
4974
+ }
4975
+
4976
+ .eqjs-qp-disabled span, .eqjs-qc-disabled span {
4977
+ margin-bottom: 0;
4978
+ }
4979
+
4935
4980
  /* Debug styles */
4936
4981
 
4937
4982
  /*.eqjs-qc-row {*/
@@ -1,5 +1,6 @@
1
1
  :root {
2
2
  --column-panel-expr-block-size: 220px;
3
+ --column-panel-attr-size: 100px;
3
4
  --column-panel-caption-size: 100px;
4
5
  --tool-button-width: 22px;
5
6
  --tool-button-height: 22px;
@@ -163,7 +164,7 @@
163
164
 
164
165
  .eqjs-qc-expr-block {
165
166
  flex-basis: var(--column-panel-expr-block-size);
166
- min-width: var(--column-panel-expr-block-size);
167
+ min-width: var(--column-panel-attr-size);
167
168
  white-space: nowrap;
168
169
  margin-left: 10px;
169
170
  flex-shrink: 1;
@@ -182,7 +183,7 @@
182
183
  border-bottom: none;
183
184
  }
184
185
 
185
- .eqjs-qc-captionelement {
186
+ .eqjs-qc-captionelement, .eqjs-qp-valueelement {
186
187
  margin-left: 10px;
187
188
  flex-shrink: 1;
188
189
  flex-grow: 1;
@@ -195,11 +196,31 @@
195
196
  flex-wrap: nowrap;
196
197
  }
197
198
 
198
- .eqjs-qc-captionelement a, .eqjs-qc-captionelement span {
199
+ .eqjs-qc-attrelement, .eqjs-qp-attrelement, .eqjs-qp-operelement {
200
+ margin-left: 0;
201
+ flex-shrink: 1;
202
+ flex-grow: 1;
203
+ min-width: 0;
204
+ overflow: hidden;
205
+ height: 100%;
206
+ display: flex;
207
+ align-items: center;
208
+ flex-wrap: nowrap;
209
+ width: var(--column-panel-attr-size);
210
+ flex-basis: var(--column-panel-expr-block-size);
211
+ }
212
+
213
+ .eqjs-qc-captionelement a,
214
+ .eqjs-qc-captionelement span,
215
+ .eqjs-qc-attrelement a,
216
+ .eqjs-qp-attrelement a,
217
+ .eqjs-qp-valueelement a,
218
+ .eqjs-qp-operelement a
219
+ {
199
220
  white-space: nowrap;
200
221
  overflow: hidden;
201
222
  text-overflow: ellipsis;
202
- display: inline-flex;
223
+ display: block;
203
224
  align-items: center;
204
225
  border: 1px solid transparent;
205
226
  padding: 0 2px;
@@ -281,10 +302,6 @@
281
302
  max-height: 250px;
282
303
  }
283
304
 
284
- .eqjs-button {
285
- /*border: 1px solid red;*/
286
- }
287
-
288
305
  .eqjs-qc-colelement {
289
306
  margin: 0;
290
307
  }
@@ -301,6 +318,29 @@
301
318
  top: -1px;
302
319
  }
303
320
 
321
+ .eqjs-qp-row {
322
+ padding-right: 66px;
323
+ flex-wrap: nowrap;
324
+ /*min-width: 360px;*/
325
+ }
326
+
327
+ .eqjs-qp-attrelement {
328
+ max-width: fit-content;
329
+ }
330
+
331
+ .eqjs-qp-valueelement {
332
+ min-width: 50px!important;
333
+ margin-left: 0;
334
+ }
335
+
336
+ .eqjs-qp-operelement {
337
+ max-width: fit-content;
338
+ }
339
+
340
+ .eqjs-qp-disabled span, .eqjs-qc-disabled span {
341
+ margin-bottom: 0;
342
+ }
343
+
304
344
  /* Debug styles */
305
345
 
306
346
  /*.eqjs-qc-row {*/
@@ -7714,7 +7714,7 @@ class QueryPanel extends core.Widget {
7714
7714
  }
7715
7715
  }
7716
7716
  };
7717
- let autoEdit = this.options.autoEditNewCondition;
7717
+ let autoEdit = this.options.autoEditNewCondition && !ui.browserUtils.isMobileMode();
7718
7718
  if (Array.isArray(conds)) {
7719
7719
  conds.forEach((cond) => modifyCondition(cond, autoEdit));
7720
7720
  autoEdit = false;
@@ -7734,10 +7734,10 @@ class QueryPanel extends core.Widget {
7734
7734
  if (parentEl) {
7735
7735
  const newCondContainer = parentEl.lastChild;
7736
7736
  if (newCondContainer) {
7737
- const el = renderer.render(this.options.autoEditNewCondition);
7737
+ const el = renderer.render(this.options.autoEditNewCondition && !ui.browserUtils.isMobileMode());
7738
7738
  newCondContainer.appendChild(el);
7739
7739
  el.scrollIntoView(false);
7740
- if (isFocusInside && !this.options.autoEditNewCondition) {
7740
+ if (isFocusInside && (!this.options.autoEditNewCondition || ui.browserUtils.isMobileMode())) {
7741
7741
  el.querySelector(`a`).focus();
7742
7742
  }
7743
7743
  }
@@ -7712,7 +7712,7 @@ class QueryPanel extends Widget {
7712
7712
  }
7713
7713
  }
7714
7714
  };
7715
- let autoEdit = this.options.autoEditNewCondition;
7715
+ let autoEdit = this.options.autoEditNewCondition && !browserUtils.isMobileMode();
7716
7716
  if (Array.isArray(conds)) {
7717
7717
  conds.forEach((cond) => modifyCondition(cond, autoEdit));
7718
7718
  autoEdit = false;
@@ -7732,10 +7732,10 @@ class QueryPanel extends Widget {
7732
7732
  if (parentEl) {
7733
7733
  const newCondContainer = parentEl.lastChild;
7734
7734
  if (newCondContainer) {
7735
- const el = renderer.render(this.options.autoEditNewCondition);
7735
+ const el = renderer.render(this.options.autoEditNewCondition && !browserUtils.isMobileMode());
7736
7736
  newCondContainer.appendChild(el);
7737
7737
  el.scrollIntoView(false);
7738
- if (isFocusInside && !this.options.autoEditNewCondition) {
7738
+ if (isFocusInside && (!this.options.autoEditNewCondition || browserUtils.isMobileMode())) {
7739
7739
  el.querySelector(`a`).focus();
7740
7740
  }
7741
7741
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyquery/ui",
3
- "version": "7.3.0-rc02",
3
+ "version": "7.3.0",
4
4
  "description": "EasyQuery.JS Community UI widgets",
5
5
  "types": "./dist/types/public_api.d.ts",
6
6
  "main": "./dist/easyquery.ui.cjs.js",
@@ -30,7 +30,7 @@
30
30
  "bugs": "https://korzh.com/support",
31
31
  "license": "LGPL-3.0",
32
32
  "peerDependencies": {
33
- "@easyquery/core": "^7.3.0-rc02"
33
+ "@easyquery/core": "^7.3.0"
34
34
  },
35
35
  "files": [
36
36
  "dist",