@elyx-code/project-logic-tree 0.0.6915 → 0.0.6916
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/dist/index.cjs +2 -2
- package/dist/index.js +109 -107
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51428,58 +51428,58 @@ const lst = {
|
|
|
51428
51428
|
outputDescription: null,
|
|
51429
51429
|
error: VZt,
|
|
51430
51430
|
parent: null
|
|
51431
|
-
},
|
|
51431
|
+
}, zi = ie[d.Operation][Fi.DeriveKeyPBKDF2], mu = {
|
|
51432
51432
|
id: "crypto-derive-key-pbkdf2--ref",
|
|
51433
51433
|
type: d.GenericReference,
|
|
51434
|
-
entityId:
|
|
51434
|
+
entityId: zi.id,
|
|
51435
51435
|
version: "1",
|
|
51436
51436
|
entityType: d.ActionDescriptor
|
|
51437
51437
|
}, NZt = {
|
|
51438
51438
|
type: d.GenericReference,
|
|
51439
51439
|
id: "crypto-pbkdf2--password-ref",
|
|
51440
|
-
entityId:
|
|
51440
|
+
entityId: zi.inputs.password.id,
|
|
51441
51441
|
version: "1",
|
|
51442
51442
|
entityType: d.ValueDescriptor
|
|
51443
51443
|
}, xZt = {
|
|
51444
51444
|
type: d.GenericReference,
|
|
51445
51445
|
id: "crypto-pbkdf2--salt-ref",
|
|
51446
|
-
entityId:
|
|
51446
|
+
entityId: zi.inputs.salt.id,
|
|
51447
51447
|
version: "1",
|
|
51448
51448
|
entityType: d.ValueDescriptor
|
|
51449
51449
|
}, $Zt = {
|
|
51450
51450
|
type: d.GenericReference,
|
|
51451
51451
|
id: "crypto-pbkdf2--iterations-ref",
|
|
51452
|
-
entityId:
|
|
51452
|
+
entityId: zi.inputs.iterations.id,
|
|
51453
51453
|
version: "1",
|
|
51454
51454
|
entityType: d.ValueDescriptor
|
|
51455
51455
|
}, LZt = {
|
|
51456
51456
|
type: d.GenericReference,
|
|
51457
51457
|
id: "crypto-pbkdf2--length-ref",
|
|
51458
|
-
entityId:
|
|
51458
|
+
entityId: zi.inputs.length.id,
|
|
51459
51459
|
version: "1",
|
|
51460
51460
|
entityType: d.ValueDescriptor
|
|
51461
51461
|
}, GZt = {
|
|
51462
51462
|
type: d.GenericReference,
|
|
51463
51463
|
id: "crypto-pbkdf2--hash-alg-ref",
|
|
51464
|
-
entityId:
|
|
51464
|
+
entityId: zi.inputs.hashAlg.id,
|
|
51465
51465
|
version: "1",
|
|
51466
51466
|
entityType: d.ValueDescriptor
|
|
51467
51467
|
}, MZt = {
|
|
51468
51468
|
type: d.GenericReference,
|
|
51469
51469
|
id: "crypto-pbkdf2--password-encoding-ref",
|
|
51470
|
-
entityId:
|
|
51470
|
+
entityId: zi.inputs.passwordEncoding.id,
|
|
51471
51471
|
version: "1",
|
|
51472
51472
|
entityType: d.ValueDescriptor
|
|
51473
51473
|
}, BZt = {
|
|
51474
51474
|
type: d.GenericReference,
|
|
51475
51475
|
id: "crypto-pbkdf2--salt-encoding-ref",
|
|
51476
|
-
entityId:
|
|
51476
|
+
entityId: zi.inputs.saltEncoding.id,
|
|
51477
51477
|
version: "1",
|
|
51478
51478
|
entityType: d.ValueDescriptor
|
|
51479
51479
|
}, UZt = {
|
|
51480
51480
|
type: d.GenericReference,
|
|
51481
51481
|
id: "crypto-pbkdf2--output-encoding-ref",
|
|
51482
|
-
entityId:
|
|
51482
|
+
entityId: zi.inputs.outputEncoding.id,
|
|
51483
51483
|
version: "1",
|
|
51484
51484
|
entityType: d.ValueDescriptor
|
|
51485
51485
|
}, Mp = {
|
|
@@ -51488,7 +51488,7 @@ const lst = {
|
|
|
51488
51488
|
interactiveEntities: null,
|
|
51489
51489
|
actionEntities: null,
|
|
51490
51490
|
inferred: !1,
|
|
51491
|
-
id:
|
|
51491
|
+
id: zi.inputs.password.dataType.id,
|
|
51492
51492
|
deletable: !1,
|
|
51493
51493
|
editable: !1,
|
|
51494
51494
|
type: d.DataType,
|
|
@@ -51511,49 +51511,49 @@ const lst = {
|
|
|
51511
51511
|
parent: NZt
|
|
51512
51512
|
}, kZt = {
|
|
51513
51513
|
...Mp,
|
|
51514
|
-
id:
|
|
51514
|
+
id: zi.inputs.salt.dataType.id,
|
|
51515
51515
|
parent: xZt
|
|
51516
51516
|
}, Yk = {
|
|
51517
51517
|
...Mp,
|
|
51518
|
-
id:
|
|
51518
|
+
id: zi.inputs.iterations.dataType.id,
|
|
51519
51519
|
entity: Ne,
|
|
51520
51520
|
parent: $Zt
|
|
51521
51521
|
}, jZt = {
|
|
51522
51522
|
...Yk,
|
|
51523
|
-
id:
|
|
51523
|
+
id: zi.inputs.length.dataType.id,
|
|
51524
51524
|
parent: LZt
|
|
51525
51525
|
}, FZt = {
|
|
51526
51526
|
...Mp,
|
|
51527
|
-
id:
|
|
51527
|
+
id: zi.inputs.hashAlg.dataType.id,
|
|
51528
51528
|
entity: Lt,
|
|
51529
51529
|
options: Hk,
|
|
51530
51530
|
parent: GZt
|
|
51531
51531
|
}, KZt = {
|
|
51532
51532
|
...Mp,
|
|
51533
|
-
id:
|
|
51533
|
+
id: zi.inputs.passwordEncoding.dataType.id,
|
|
51534
51534
|
entity: Lt,
|
|
51535
51535
|
options: Ao,
|
|
51536
51536
|
parent: MZt
|
|
51537
51537
|
}, qZt = {
|
|
51538
51538
|
...Mp,
|
|
51539
|
-
id:
|
|
51539
|
+
id: zi.inputs.saltEncoding.dataType.id,
|
|
51540
51540
|
entity: Lt,
|
|
51541
51541
|
options: Ao,
|
|
51542
51542
|
parent: BZt
|
|
51543
51543
|
}, ZZt = {
|
|
51544
51544
|
...Mp,
|
|
51545
|
-
id:
|
|
51545
|
+
id: zi.inputs.outputEncoding.dataType.id,
|
|
51546
51546
|
entity: Lt,
|
|
51547
51547
|
options: Ao,
|
|
51548
51548
|
parent: UZt
|
|
51549
51549
|
}, SZt = {
|
|
51550
51550
|
type: d.GenericReference,
|
|
51551
51551
|
id: "crypto-pbkdf2--iterations-default-parent-ref",
|
|
51552
|
-
entityId:
|
|
51552
|
+
entityId: zi.inputs.iterations.id,
|
|
51553
51553
|
version: "1",
|
|
51554
51554
|
entityType: d.ValueDescriptor
|
|
51555
51555
|
}, WZt = {
|
|
51556
|
-
id:
|
|
51556
|
+
id: zi.inputs.iterations.defaultValue.id,
|
|
51557
51557
|
deletable: !1,
|
|
51558
51558
|
editable: !1,
|
|
51559
51559
|
type: d.LiteralValue,
|
|
@@ -51572,11 +51572,11 @@ const lst = {
|
|
|
51572
51572
|
}, HZt = {
|
|
51573
51573
|
type: d.GenericReference,
|
|
51574
51574
|
id: "crypto-pbkdf2--length-default-parent-ref",
|
|
51575
|
-
entityId:
|
|
51575
|
+
entityId: zi.inputs.length.id,
|
|
51576
51576
|
version: "1",
|
|
51577
51577
|
entityType: d.ValueDescriptor
|
|
51578
51578
|
}, zZt = {
|
|
51579
|
-
id:
|
|
51579
|
+
id: zi.inputs.length.defaultValue.id,
|
|
51580
51580
|
deletable: !1,
|
|
51581
51581
|
editable: !1,
|
|
51582
51582
|
type: d.LiteralValue,
|
|
@@ -51595,11 +51595,11 @@ const lst = {
|
|
|
51595
51595
|
}, JZt = {
|
|
51596
51596
|
type: d.GenericReference,
|
|
51597
51597
|
id: "crypto-pbkdf2--hash-alg-default-parent-ref",
|
|
51598
|
-
entityId:
|
|
51598
|
+
entityId: zi.inputs.hashAlg.id,
|
|
51599
51599
|
version: "1",
|
|
51600
51600
|
entityType: d.ValueDescriptor
|
|
51601
51601
|
}, YZt = {
|
|
51602
|
-
id:
|
|
51602
|
+
id: zi.inputs.hashAlg.defaultValue.id,
|
|
51603
51603
|
deletable: !1,
|
|
51604
51604
|
editable: !1,
|
|
51605
51605
|
type: d.LiteralValue,
|
|
@@ -51618,11 +51618,11 @@ const lst = {
|
|
|
51618
51618
|
}, QZt = {
|
|
51619
51619
|
type: d.GenericReference,
|
|
51620
51620
|
id: "crypto-pbkdf2--password-encoding-default-parent-ref",
|
|
51621
|
-
entityId:
|
|
51621
|
+
entityId: zi.inputs.passwordEncoding.id,
|
|
51622
51622
|
version: "1",
|
|
51623
51623
|
entityType: d.ValueDescriptor
|
|
51624
51624
|
}, XZt = {
|
|
51625
|
-
id:
|
|
51625
|
+
id: zi.inputs.passwordEncoding.defaultValue.id,
|
|
51626
51626
|
deletable: !1,
|
|
51627
51627
|
editable: !1,
|
|
51628
51628
|
type: d.LiteralValue,
|
|
@@ -51641,11 +51641,11 @@ const lst = {
|
|
|
51641
51641
|
}, e6t = {
|
|
51642
51642
|
type: d.GenericReference,
|
|
51643
51643
|
id: "crypto-pbkdf2--salt-encoding-default-parent-ref",
|
|
51644
|
-
entityId:
|
|
51644
|
+
entityId: zi.inputs.saltEncoding.id,
|
|
51645
51645
|
version: "1",
|
|
51646
51646
|
entityType: d.ValueDescriptor
|
|
51647
51647
|
}, t6t = {
|
|
51648
|
-
id:
|
|
51648
|
+
id: zi.inputs.saltEncoding.defaultValue.id,
|
|
51649
51649
|
deletable: !1,
|
|
51650
51650
|
editable: !1,
|
|
51651
51651
|
type: d.LiteralValue,
|
|
@@ -51664,11 +51664,11 @@ const lst = {
|
|
|
51664
51664
|
}, i6t = {
|
|
51665
51665
|
type: d.GenericReference,
|
|
51666
51666
|
id: "crypto-pbkdf2--output-encoding-default-parent-ref",
|
|
51667
|
-
entityId:
|
|
51667
|
+
entityId: zi.inputs.outputEncoding.id,
|
|
51668
51668
|
version: "1",
|
|
51669
51669
|
entityType: d.ValueDescriptor
|
|
51670
51670
|
}, r6t = {
|
|
51671
|
-
id:
|
|
51671
|
+
id: zi.inputs.outputEncoding.defaultValue.id,
|
|
51672
51672
|
deletable: !1,
|
|
51673
51673
|
editable: !1,
|
|
51674
51674
|
type: d.LiteralValue,
|
|
@@ -51685,7 +51685,7 @@ const lst = {
|
|
|
51685
51685
|
autogeneration: null,
|
|
51686
51686
|
parent: i6t
|
|
51687
51687
|
}, n6t = {
|
|
51688
|
-
id:
|
|
51688
|
+
id: zi.inputs.password.id,
|
|
51689
51689
|
deletable: !1,
|
|
51690
51690
|
editable: !1,
|
|
51691
51691
|
type: d.ValueDescriptor,
|
|
@@ -51704,7 +51704,7 @@ const lst = {
|
|
|
51704
51704
|
index: 0,
|
|
51705
51705
|
parent: mu
|
|
51706
51706
|
}, a6t = {
|
|
51707
|
-
id:
|
|
51707
|
+
id: zi.inputs.salt.id,
|
|
51708
51708
|
deletable: !1,
|
|
51709
51709
|
editable: !1,
|
|
51710
51710
|
type: d.ValueDescriptor,
|
|
@@ -51723,7 +51723,7 @@ const lst = {
|
|
|
51723
51723
|
index: 1,
|
|
51724
51724
|
parent: mu
|
|
51725
51725
|
}, s6t = {
|
|
51726
|
-
id:
|
|
51726
|
+
id: zi.inputs.iterations.id,
|
|
51727
51727
|
deletable: !1,
|
|
51728
51728
|
editable: !1,
|
|
51729
51729
|
type: d.ValueDescriptor,
|
|
@@ -51742,7 +51742,7 @@ const lst = {
|
|
|
51742
51742
|
index: 2,
|
|
51743
51743
|
parent: mu
|
|
51744
51744
|
}, l6t = {
|
|
51745
|
-
id:
|
|
51745
|
+
id: zi.inputs.length.id,
|
|
51746
51746
|
deletable: !1,
|
|
51747
51747
|
editable: !1,
|
|
51748
51748
|
type: d.ValueDescriptor,
|
|
@@ -51761,7 +51761,7 @@ const lst = {
|
|
|
51761
51761
|
index: 3,
|
|
51762
51762
|
parent: mu
|
|
51763
51763
|
}, o6t = {
|
|
51764
|
-
id:
|
|
51764
|
+
id: zi.inputs.hashAlg.id,
|
|
51765
51765
|
deletable: !1,
|
|
51766
51766
|
editable: !1,
|
|
51767
51767
|
type: d.ValueDescriptor,
|
|
@@ -51780,7 +51780,7 @@ const lst = {
|
|
|
51780
51780
|
index: 4,
|
|
51781
51781
|
parent: mu
|
|
51782
51782
|
}, d6t = {
|
|
51783
|
-
id:
|
|
51783
|
+
id: zi.inputs.passwordEncoding.id,
|
|
51784
51784
|
deletable: !1,
|
|
51785
51785
|
editable: !1,
|
|
51786
51786
|
type: d.ValueDescriptor,
|
|
@@ -51799,7 +51799,7 @@ const lst = {
|
|
|
51799
51799
|
index: 5,
|
|
51800
51800
|
parent: mu
|
|
51801
51801
|
}, u6t = {
|
|
51802
|
-
id:
|
|
51802
|
+
id: zi.inputs.saltEncoding.id,
|
|
51803
51803
|
deletable: !1,
|
|
51804
51804
|
editable: !1,
|
|
51805
51805
|
type: d.ValueDescriptor,
|
|
@@ -51818,7 +51818,7 @@ const lst = {
|
|
|
51818
51818
|
index: 6,
|
|
51819
51819
|
parent: mu
|
|
51820
51820
|
}, p6t = {
|
|
51821
|
-
id:
|
|
51821
|
+
id: zi.inputs.outputEncoding.id,
|
|
51822
51822
|
deletable: !1,
|
|
51823
51823
|
editable: !1,
|
|
51824
51824
|
type: d.ValueDescriptor,
|
|
@@ -51838,7 +51838,7 @@ const lst = {
|
|
|
51838
51838
|
parent: mu
|
|
51839
51839
|
}, c6t = {
|
|
51840
51840
|
...Mp,
|
|
51841
|
-
id:
|
|
51841
|
+
id: zi.dataType.id,
|
|
51842
51842
|
entity: be,
|
|
51843
51843
|
// encoded derived key as string
|
|
51844
51844
|
parent: mu
|
|
@@ -51850,7 +51850,7 @@ const lst = {
|
|
|
51850
51850
|
entityType: d.ActionDescriptor
|
|
51851
51851
|
}, y6t = {
|
|
51852
51852
|
parentRelationType: k.ReturnedError,
|
|
51853
|
-
id:
|
|
51853
|
+
id: zi.error.id,
|
|
51854
51854
|
deletable: !1,
|
|
51855
51855
|
editable: !1,
|
|
51856
51856
|
type: d.ValueDescriptor,
|
|
@@ -159049,11 +159049,11 @@ const oIi = /* @__PURE__ */ ys(Wu), UZi = /* @__PURE__ */ OQe({
|
|
|
159049
159049
|
__proto__: null,
|
|
159050
159050
|
default: oIi
|
|
159051
159051
|
}, [Wu]);
|
|
159052
|
-
var Ot = /* @__PURE__ */ ((s) => (s.SearchStatement = "search-statement", s.NestedSearchStatement = "nested-search-statement", s.DataSource = "data-source", s.ColumnRef = "column-ref", s.ValueRef = "value-ref", s.LiteralValue = "search-statement-literal-value", s.WhereStatement = "where-statement", s.AggregationStatement = "aggregation-statement", s.SortStatement = "sort-statement", s.AllColumnsSelector = "all-columns-selector", s.FunctionCall = "function-call", s))(Ot || {}),
|
|
159052
|
+
var Ot = /* @__PURE__ */ ((s) => (s.SearchStatement = "search-statement", s.NestedSearchStatement = "nested-search-statement", s.DataSource = "data-source", s.ColumnRef = "column-ref", s.ValueRef = "value-ref", s.LiteralValue = "search-statement-literal-value", s.WhereStatement = "where-statement", s.AggregationStatement = "aggregation-statement", s.SortStatement = "sort-statement", s.AllColumnsSelector = "all-columns-selector", s.FunctionCall = "function-call", s))(Ot || {}), Ji = /* @__PURE__ */ ((s) => (s.Table = "table", s.Query = "query", s.Aggregation = "aggregation", s.Function = "function", s))(Ji || {}), wV = /* @__PURE__ */ ((s) => (s.Ascending = "asc", s.Descending = "desc", s))(wV || {}), Hl = /* @__PURE__ */ ((s) => (s.Like = "like", s.NotLike = "not-like", s.In = "in", s.Equal = "=", s.Between = "-", s.BiggerThan = ">", s.SmallerThan = "<", s.BiggerThanOrEqualTo = ">=", s.SmallerThanOrEqualTo = "<=", s.NotEqual = "!=", s))(Hl || {}), $t = /* @__PURE__ */ ((s) => (s.String = "string", s.Number = "number", s.Boolean = "boolean", s.Null = "null", s.Date = "date", s.Array = "array", s))($t || {}), ya = /* @__PURE__ */ ((s) => (s.Inner = "inner", s.Left = "left", s.Right = "right", s.Full = "full", s.Cross = "cross", s.Self = "self", s.Natural = "natural", s))(ya || {}), Xr = /* @__PURE__ */ ((s) => (s.Scalar = "SCALAR", s.Aggregate = "AGGREGATE", s.TableValued = "TABLE_VALUED", s))(Xr || {}), Yn = /* @__PURE__ */ ((s) => (s.Upper = "UPPER", s.Lower = "LOWER", s.Max = "MAX", s.Min = "MIN", s.JsonBuildObject = "json_build_object", s.RowToJson = "row_to_json", s.JsonAgg = "json_agg", s.Count = "COUNT", s.GenerateSeries = "generate_series", s.Unnest = "unnest", s.Coalesce = "COALESCE", s.Concat = "CONCAT", s.Sum = "SUM", s.Length = "LENGTH", s.Round = "ROUND", s.Now = "NOW", s))(Yn || {});
|
|
159053
159053
|
const kZi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
159054
159054
|
__proto__: null,
|
|
159055
159055
|
AggregationStatementType: ya,
|
|
159056
|
-
DataSourceType:
|
|
159056
|
+
DataSourceType: Ji,
|
|
159057
159057
|
FunctionNames: Yn,
|
|
159058
159058
|
SQLFunctionCategory: Xr,
|
|
159059
159059
|
SearchLiteralValueType: $t,
|
|
@@ -159301,7 +159301,7 @@ class dT {
|
|
|
159301
159301
|
get columns() {
|
|
159302
159302
|
var p;
|
|
159303
159303
|
return (((p = this.dataSource) == null ? void 0 : p.columns) || []).map((i) => {
|
|
159304
|
-
const r = new
|
|
159304
|
+
const r = new Hi(this.owner);
|
|
159305
159305
|
return r.source = i, r.parent = this.dataSource, r.as = i.as, r;
|
|
159306
159306
|
});
|
|
159307
159307
|
}
|
|
@@ -159313,7 +159313,7 @@ class dT {
|
|
|
159313
159313
|
var p;
|
|
159314
159314
|
return (((p = this.dataSource) == null ? void 0 : p.selections) || []).map((i) => {
|
|
159315
159315
|
if (i.type === Ot.ColumnRef) {
|
|
159316
|
-
const r = new
|
|
159316
|
+
const r = new Hi(this.owner);
|
|
159317
159317
|
return r.source = i, r.parent = i.parent, r.as = i.as, r;
|
|
159318
159318
|
} else if (i.type === Ot.AllColumnsSelector) {
|
|
159319
159319
|
const r = new tf(this.owner);
|
|
@@ -159325,14 +159325,14 @@ class dT {
|
|
|
159325
159325
|
get selectedColumns() {
|
|
159326
159326
|
var p;
|
|
159327
159327
|
return (((p = this.dataSource) == null ? void 0 : p.selectedColumns) || []).map((i) => {
|
|
159328
|
-
const r = new
|
|
159328
|
+
const r = new Hi(this.owner);
|
|
159329
159329
|
return r.source = i, r.parent = i.parent, r.as = i.as, r;
|
|
159330
159330
|
});
|
|
159331
159331
|
}
|
|
159332
159332
|
get primaryKeys() {
|
|
159333
159333
|
var p;
|
|
159334
159334
|
return (((p = this.dataSource) == null ? void 0 : p.primaryKeys) || []).map((i) => {
|
|
159335
|
-
const r = new
|
|
159335
|
+
const r = new Hi(this.owner);
|
|
159336
159336
|
return r.source = i, r.parent = i.parent, r.as = i.as, r;
|
|
159337
159337
|
});
|
|
159338
159338
|
}
|
|
@@ -159345,7 +159345,7 @@ class dT {
|
|
|
159345
159345
|
var i;
|
|
159346
159346
|
const p = ((i = this.dataSource) == null ? void 0 : i.primaryKey) || null;
|
|
159347
159347
|
if (p) {
|
|
159348
|
-
const r = new
|
|
159348
|
+
const r = new Hi(this.owner);
|
|
159349
159349
|
return r.source = p, r.parent = p.parent, r.as = p.as, r;
|
|
159350
159350
|
}
|
|
159351
159351
|
return null;
|
|
@@ -159512,7 +159512,7 @@ class $q {
|
|
|
159512
159512
|
// The goal is to remove all references to that data source in a non-destructive way
|
|
159513
159513
|
removeDataSource(p) {
|
|
159514
159514
|
var i, r;
|
|
159515
|
-
this.left instanceof
|
|
159515
|
+
this.left instanceof Hi && ((i = this.left.parent) == null ? void 0 : i.id) === (p == null ? void 0 : p.id) && (this.left = null, this.remove()), this.right instanceof Hi && ((r = this.right.parent) == null ? void 0 : r.id) === (p == null ? void 0 : p.id) && (this.right = null, this.remove()), this.and.forEach((a) => {
|
|
159516
159516
|
a.removeDataSource(p);
|
|
159517
159517
|
}), this.or.forEach((a) => {
|
|
159518
159518
|
a.removeDataSource(p);
|
|
@@ -159531,7 +159531,7 @@ class $q {
|
|
|
159531
159531
|
let c = "";
|
|
159532
159532
|
if (this.left instanceof OT)
|
|
159533
159533
|
c = this.left.toQuery();
|
|
159534
|
-
else if (this.left instanceof
|
|
159534
|
+
else if (this.left instanceof Hi) {
|
|
159535
159535
|
const f = this.left.as;
|
|
159536
159536
|
c = ((r = this.left.parent) == null ? void 0 : r.as) + "." + f;
|
|
159537
159537
|
} else
|
|
@@ -159539,7 +159539,7 @@ class $q {
|
|
|
159539
159539
|
let e = "";
|
|
159540
159540
|
if (this.right instanceof OT)
|
|
159541
159541
|
e = this.right.toQuery();
|
|
159542
|
-
else if (this.right instanceof
|
|
159542
|
+
else if (this.right instanceof Hi) {
|
|
159543
159543
|
const f = this.right.as;
|
|
159544
159544
|
e = ((a = this.right.parent) == null ? void 0 : a.as) + "." + f;
|
|
159545
159545
|
} else
|
|
@@ -159628,7 +159628,7 @@ class DV {
|
|
|
159628
159628
|
get columns() {
|
|
159629
159629
|
var p;
|
|
159630
159630
|
return (((p = this.statement) == null ? void 0 : p.columns) || []).map((i) => {
|
|
159631
|
-
const r = new
|
|
159631
|
+
const r = new Hi(this.owner);
|
|
159632
159632
|
return r.source = i, r.parent = i.parent, r.as = i.as, r;
|
|
159633
159633
|
});
|
|
159634
159634
|
}
|
|
@@ -159640,7 +159640,7 @@ class DV {
|
|
|
159640
159640
|
var p;
|
|
159641
159641
|
return (((p = this.statement) == null ? void 0 : p.selections) || []).map((i) => {
|
|
159642
159642
|
if (i.type === Ot.ColumnRef) {
|
|
159643
|
-
const r = new
|
|
159643
|
+
const r = new Hi(this.owner);
|
|
159644
159644
|
return r.source = i, r.parent = i.parent, r.as = i.as, r;
|
|
159645
159645
|
} else if (i.type === Ot.AllColumnsSelector) {
|
|
159646
159646
|
const r = new tf(this.owner);
|
|
@@ -159652,14 +159652,14 @@ class DV {
|
|
|
159652
159652
|
get selectedColumns() {
|
|
159653
159653
|
var p;
|
|
159654
159654
|
return (((p = this.statement) == null ? void 0 : p.selectedColumns) || []).map((i) => {
|
|
159655
|
-
const r = new
|
|
159655
|
+
const r = new Hi(this.owner);
|
|
159656
159656
|
return r.source = i, r.parent = i.parent, r.as = i.as, r;
|
|
159657
159657
|
});
|
|
159658
159658
|
}
|
|
159659
159659
|
get primaryKeys() {
|
|
159660
159660
|
var p;
|
|
159661
159661
|
return (((p = this.statement) == null ? void 0 : p.primaryKeys) || []).map((i) => {
|
|
159662
|
-
const r = new
|
|
159662
|
+
const r = new Hi(this.owner);
|
|
159663
159663
|
return r.source = i, r.parent = i.parent, r.as = i.as, r;
|
|
159664
159664
|
});
|
|
159665
159665
|
}
|
|
@@ -159672,7 +159672,7 @@ class DV {
|
|
|
159672
159672
|
var i;
|
|
159673
159673
|
const p = ((i = this.statement) == null ? void 0 : i.primaryKey) || null;
|
|
159674
159674
|
if (p) {
|
|
159675
|
-
const r = new
|
|
159675
|
+
const r = new Hi(this.owner);
|
|
159676
159676
|
return r.source = p, r.parent = p.parent, r.as = p.as, r;
|
|
159677
159677
|
}
|
|
159678
159678
|
return null;
|
|
@@ -159690,7 +159690,7 @@ class Xn {
|
|
|
159690
159690
|
R(this, "query", null);
|
|
159691
159691
|
R(this, "aggregation", null);
|
|
159692
159692
|
R(this, "functionCall", null);
|
|
159693
|
-
R(this, "sourceType",
|
|
159693
|
+
R(this, "sourceType", Ji.Table);
|
|
159694
159694
|
// Store manual aliases for functions
|
|
159695
159695
|
R(this, "_asFallback", "");
|
|
159696
159696
|
this.owner = p;
|
|
@@ -159703,59 +159703,61 @@ class Xn {
|
|
|
159703
159703
|
return Ot.DataSource;
|
|
159704
159704
|
}
|
|
159705
159705
|
get isValid() {
|
|
159706
|
-
return (this.sourceType ===
|
|
159706
|
+
return (this.sourceType === Ji.Function ? !!this.functionCall && this.functionCall.isValid : !!this.entity || !!this.query || !!this.aggregation) && !!this.as;
|
|
159707
159707
|
}
|
|
159708
159708
|
get source() {
|
|
159709
|
-
return this.sourceType ===
|
|
159709
|
+
return this.sourceType === Ji.Table ? this.entity : this.sourceType === Ji.Query ? this.query : this.sourceType === Ji.Aggregation ? this.aggregation : this.sourceType === Ji.Function ? this.functionCall : null;
|
|
159710
159710
|
}
|
|
159711
159711
|
set as(p) {
|
|
159712
|
-
this._asFallback = p, this.sourceType ===
|
|
159712
|
+
this._asFallback = p, this.sourceType === Ji.Query && this.source ? this.source.as = p : this.sourceType === Ji.Function && this.functionCall && (this.functionCall.as = p);
|
|
159713
159713
|
}
|
|
159714
159714
|
get as() {
|
|
159715
159715
|
var p, i;
|
|
159716
|
-
return this.sourceType ===
|
|
159716
|
+
return this.sourceType === Ji.Function ? this._asFallback || ((p = this.functionCall) == null ? void 0 : p.as) || "FunctionTable" : this.source && (((i = this.source) == null ? void 0 : i.as) || `"${this.source.name ? Wd(this.source.name) : ""}"`) || "";
|
|
159717
159717
|
}
|
|
159718
159718
|
get columns() {
|
|
159719
159719
|
var p, i, r;
|
|
159720
|
-
if (this.sourceType ===
|
|
159720
|
+
if (this.sourceType === Ji.Table)
|
|
159721
159721
|
return (this.entity ? mn(this.entity) : []).map((c) => {
|
|
159722
|
-
const e = new
|
|
159722
|
+
const e = new Hi(this.owner);
|
|
159723
159723
|
return e.source = c, e.parent = this, e.as = rr(c.name), e;
|
|
159724
159724
|
}) || [];
|
|
159725
|
-
if (this.sourceType ===
|
|
159725
|
+
if (this.sourceType === Ji.Query) {
|
|
159726
159726
|
const a = [];
|
|
159727
159727
|
return (p = this.query) == null || p.selections.forEach((c) => {
|
|
159728
159728
|
var e;
|
|
159729
159729
|
if (c.type === Ot.ColumnRef) {
|
|
159730
|
-
const f = new
|
|
159730
|
+
const f = new Hi(this.owner);
|
|
159731
159731
|
f.source = c, f.parent = this, f.as = c.as, a.push(f);
|
|
159732
159732
|
} else
|
|
159733
159733
|
c.type === Ot.AllColumnsSelector && ((e = c.parent) == null ? void 0 : e.type) === Ot.DataSource && c.parent.columns.forEach((m) => {
|
|
159734
|
-
const b = new
|
|
159734
|
+
const b = new Hi(this.owner);
|
|
159735
159735
|
b.source = m, b.parent = this, b.as = m.as, a.push(b);
|
|
159736
159736
|
});
|
|
159737
159737
|
}), a;
|
|
159738
159738
|
} else {
|
|
159739
|
-
if (this.sourceType ===
|
|
159739
|
+
if (this.sourceType === Ji.Aggregation)
|
|
159740
159740
|
return (((r = (i = this.aggregation) == null ? void 0 : i.dataSource) == null ? void 0 : r.columns) || []).map((a) => {
|
|
159741
|
-
const c = new
|
|
159741
|
+
const c = new Hi(this.owner);
|
|
159742
159742
|
return c.source = a, c.parent = this, c.as = a.as, c;
|
|
159743
159743
|
});
|
|
159744
|
-
if (this.sourceType ===
|
|
159745
|
-
const a = new
|
|
159746
|
-
|
|
159744
|
+
if (this.sourceType === Ji.Function) {
|
|
159745
|
+
const a = new Hi(this.owner);
|
|
159746
|
+
a.parent = this, a.as = "value";
|
|
159747
|
+
const c = new Hi(this.owner);
|
|
159748
|
+
return c.parent = this, c.as = this.as, [a, c];
|
|
159747
159749
|
}
|
|
159748
159750
|
}
|
|
159749
159751
|
return [];
|
|
159750
159752
|
}
|
|
159751
159753
|
get selections() {
|
|
159752
159754
|
var p, i;
|
|
159753
|
-
return this.sourceType ===
|
|
159755
|
+
return this.sourceType === Ji.Table ? this.columns : this.sourceType === Ji.Query ? ((p = this.query) == null ? void 0 : p.selections) || [] : this.sourceType === Ji.Aggregation ? ((i = this.aggregation) == null ? void 0 : i.selections) || [] : [];
|
|
159754
159756
|
}
|
|
159755
159757
|
// Resolves the ultimate entity under any change of data sources
|
|
159756
159758
|
get mainPersistedEntity() {
|
|
159757
159759
|
var p, i, r;
|
|
159758
|
-
return this.sourceType ===
|
|
159760
|
+
return this.sourceType === Ji.Table ? this.entity : this.sourceType === Ji.Query ? ((p = this.query) == null ? void 0 : p.mainPersistedEntity) || null : this.sourceType === Ji.Aggregation && ((r = (i = this.aggregation) == null ? void 0 : i.dataSource) == null ? void 0 : r.mainPersistedEntity) || null;
|
|
159759
159761
|
}
|
|
159760
159762
|
// Flattens the list of selected columns
|
|
159761
159763
|
get selectedColumns() {
|
|
@@ -159805,7 +159807,7 @@ class Xn {
|
|
|
159805
159807
|
return i.length > 0 ? i[0] : null;
|
|
159806
159808
|
}
|
|
159807
159809
|
}
|
|
159808
|
-
class
|
|
159810
|
+
class Hi {
|
|
159809
159811
|
constructor(p) {
|
|
159810
159812
|
R(this, "owner");
|
|
159811
159813
|
R(this, "source", null);
|
|
@@ -159931,7 +159933,7 @@ class Lq {
|
|
|
159931
159933
|
// This can be useful to provide entity specific behaviour on the results of a query if it can safely be assumed that the entity is untouched
|
|
159932
159934
|
get isUntouchedEntity() {
|
|
159933
159935
|
var r, a;
|
|
159934
|
-
if (!this.isValid || !this.from || !this.mainPersistedEntity || this.from.sourceType ===
|
|
159936
|
+
if (!this.isValid || !this.from || !this.mainPersistedEntity || this.from.sourceType === Ji.Query && (!this.from.query || !((r = this.from.query.statement) != null && r.isUntouchedEntity)) || this.validSelections.length === 0 || this.aggregations.some((c) => c.isValid))
|
|
159935
159937
|
return !1;
|
|
159936
159938
|
if (this.validSelections.length === 1 && this.validSelections[0].type === Ot.AllColumnsSelector && ((a = this.validSelections[0].parent) == null ? void 0 : a.id) === this.from.id)
|
|
159937
159939
|
return !0;
|
|
@@ -159957,7 +159959,7 @@ class Lq {
|
|
|
159957
159959
|
const p = [];
|
|
159958
159960
|
return this.from && p.push(this.from), this.aggregations.forEach((i) => {
|
|
159959
159961
|
const r = new Xn(this);
|
|
159960
|
-
r.aggregation = i, r.sourceType =
|
|
159962
|
+
r.aggregation = i, r.sourceType = Ji.Aggregation;
|
|
159961
159963
|
const a = this.addDataSource(r);
|
|
159962
159964
|
p.push(a);
|
|
159963
159965
|
}), p;
|
|
@@ -159966,7 +159968,7 @@ class Lq {
|
|
|
159966
159968
|
return Ot.SearchStatement;
|
|
159967
159969
|
}
|
|
159968
159970
|
get mainPersistedEntity() {
|
|
159969
|
-
return this.from && this.from.sourceType ===
|
|
159971
|
+
return this.from && this.from.sourceType === Ji.Table ? this.from.entity : this.from && this.from.sourceType === Ji.Query && this.from.query ? this.from.query.mainPersistedEntity : null;
|
|
159970
159972
|
}
|
|
159971
159973
|
get mainDatabaseEntity() {
|
|
159972
159974
|
const p = this.mainPersistedEntity;
|
|
@@ -160126,14 +160128,14 @@ class Lq {
|
|
|
160126
160128
|
m && E < this.validSelections.length - 1 && (p += ", ");
|
|
160127
160129
|
});
|
|
160128
160130
|
}
|
|
160129
|
-
if (this.from && this.from.isValid && (p += " FROM ", this.from.sourceType ===
|
|
160131
|
+
if (this.from && this.from.isValid && (p += " FROM ", this.from.sourceType === Ji.Table ? this.from.entity && (p += `"${Wd((i = this.from.entity) == null ? void 0 : i.name)}"`) : this.from.sourceType === Ji.Function ? (r = this.from.functionCall) != null && r.isValid && (p += `${this.from.functionCall.toQuery()} AS ${this.from.as}`) : (c = (a = this.from) == null ? void 0 : a.query) != null && c.isValid && (p += `(${(f = (e = this.from) == null ? void 0 : e.query) == null ? void 0 : f.toQuery()}) AS ${((h = this.from) == null ? void 0 : h.as) || "NestedQuery"}`), this.aggregations.length > 0 && this.aggregations.forEach((m) => {
|
|
160130
160132
|
var E, A, _, P, V, U, M, B, K, re, X, le;
|
|
160131
160133
|
if (!m.isValid)
|
|
160132
160134
|
return;
|
|
160133
160135
|
let b = "";
|
|
160134
|
-
m.joinType === ya.Inner ? b += "INNER JOIN " : m.joinType === ya.Left ? b += "LEFT JOIN " : m.joinType === ya.Right ? b += "RIGHT JOIN " : m.joinType === ya.Full ? b += "FULL JOIN " : m.joinType === ya.Cross ? b += "CROSS JOIN " : m.joinType === ya.Self ? b += "SELF JOIN " : m.joinType === ya.Natural && (b += "NATURAL JOIN "), ((E = m.dataSource) == null ? void 0 : E.sourceType) ===
|
|
160136
|
+
m.joinType === ya.Inner ? b += "INNER JOIN " : m.joinType === ya.Left ? b += "LEFT JOIN " : m.joinType === ya.Right ? b += "RIGHT JOIN " : m.joinType === ya.Full ? b += "FULL JOIN " : m.joinType === ya.Cross ? b += "CROSS JOIN " : m.joinType === ya.Self ? b += "SELF JOIN " : m.joinType === ya.Natural && (b += "NATURAL JOIN "), ((E = m.dataSource) == null ? void 0 : E.sourceType) === Ji.Table ? (A = m.dataSource) != null && A.entity && (b += `"${Wd(
|
|
160135
160137
|
(P = (_ = m.dataSource) == null ? void 0 : _.entity) == null ? void 0 : P.name
|
|
160136
|
-
)}"`) : ((V = m.dataSource) == null ? void 0 : V.sourceType) ===
|
|
160138
|
+
)}"`) : ((V = m.dataSource) == null ? void 0 : V.sourceType) === Ji.Function ? b += `${(M = (U = m.dataSource) == null ? void 0 : U.functionCall) == null ? void 0 : M.toQuery()} AS ${(B = m.dataSource) == null ? void 0 : B.as}` : b += `(${(re = (K = m.dataSource) == null ? void 0 : K.query) == null ? void 0 : re.toQuery()}) AS ${(X = m.dataSource) == null ? void 0 : X.as}`, b += m.on ? " ON " + ((le = m.on) == null ? void 0 : le.toQuery()) : "", p += " " + b;
|
|
160137
160139
|
})), this.where && this.where.isValid && this.from && this.from.isValid && (p += " WHERE " + this.where.toQuery()), this.validSortings.length > 0) {
|
|
160138
160140
|
const m = this.validSortings.sort((E, A) => E.index - A.index);
|
|
160139
160141
|
let b = "";
|
|
@@ -160293,7 +160295,7 @@ const FZi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
160293
160295
|
__proto__: null,
|
|
160294
160296
|
AggregationStatement: dT,
|
|
160295
160297
|
AllColumnsSelector: tf,
|
|
160296
|
-
ColumnRef:
|
|
160298
|
+
ColumnRef: Hi,
|
|
160297
160299
|
DataSource: Xn,
|
|
160298
160300
|
FunctionCall: OT,
|
|
160299
160301
|
NestedSearchStatement: DV,
|
|
@@ -160730,7 +160732,7 @@ function Qo(s, p, i, r, a = !1) {
|
|
|
160730
160732
|
(Q) => Nt(Q.as) === Nt(ae.text)
|
|
160731
160733
|
);
|
|
160732
160734
|
if (H) {
|
|
160733
|
-
c.left = new
|
|
160735
|
+
c.left = new Hi(i), c.left.source = H.source, c.left.as = Nt(H.as);
|
|
160734
160736
|
const Q = new Xn(i);
|
|
160735
160737
|
Q.entity = ((e = H.parent) == null ? void 0 : e.entity) || null, Q.query = ((f = H.parent) == null ? void 0 : f.query) || null, Q.aggregation = ((h = H.parent) == null ? void 0 : h.aggregation) || null, Q.sourceType = ((m = H.parent) == null ? void 0 : m.sourceType) || null;
|
|
160736
160738
|
const pe = i.addDataSource(Q);
|
|
@@ -160753,7 +160755,7 @@ function Qo(s, p, i, r, a = !1) {
|
|
|
160753
160755
|
if (a)
|
|
160754
160756
|
debugger;
|
|
160755
160757
|
if (Q) {
|
|
160756
|
-
c.left = new
|
|
160758
|
+
c.left = new Hi(i), c.left.source = Q, c.left.as = Nt(Q.as);
|
|
160757
160759
|
const pe = new Xn(i);
|
|
160758
160760
|
pe.entity = ((b = Q.parent) == null ? void 0 : b.entity) || null, pe.query = ((E = Q.parent) == null ? void 0 : E.query) || null, pe.aggregation = ((A = Q.parent) == null ? void 0 : A.aggregation) || null, pe.sourceType = ((_ = Q.parent) == null ? void 0 : _.sourceType) || null;
|
|
160759
160761
|
const se = i.addDataSource(pe);
|
|
@@ -160825,7 +160827,7 @@ function Qo(s, p, i, r, a = !1) {
|
|
|
160825
160827
|
(Q) => Nt(Q.as) === Nt(ue.text)
|
|
160826
160828
|
);
|
|
160827
160829
|
if (H) {
|
|
160828
|
-
c.right = new
|
|
160830
|
+
c.right = new Hi(i), c.right.source = H, c.right.as = Nt(H.as);
|
|
160829
160831
|
const Q = new Xn(i);
|
|
160830
160832
|
Q.entity = ((P = H.parent) == null ? void 0 : P.entity) || null, Q.query = ((V = H.parent) == null ? void 0 : V.query) || null, Q.aggregation = ((U = H.parent) == null ? void 0 : U.aggregation) || null, Q.sourceType = ((M = H.parent) == null ? void 0 : M.sourceType) || null;
|
|
160831
160833
|
const pe = i.addDataSource(Q);
|
|
@@ -160848,7 +160850,7 @@ function Qo(s, p, i, r, a = !1) {
|
|
|
160848
160850
|
if (a)
|
|
160849
160851
|
debugger;
|
|
160850
160852
|
if (Q) {
|
|
160851
|
-
c.right = new
|
|
160853
|
+
c.right = new Hi(i), c.right.source = Q, c.right.as = Nt(Q.as);
|
|
160852
160854
|
const pe = new Xn(i);
|
|
160853
160855
|
pe.entity = ((B = Q.parent) == null ? void 0 : B.entity) || null, pe.query = ((K = Q.parent) == null ? void 0 : K.query) || null, pe.aggregation = ((re = Q.parent) == null ? void 0 : re.aggregation) || null, pe.sourceType = ((X = Q.parent) == null ? void 0 : X.sourceType) || null;
|
|
160854
160856
|
const se = i.addDataSource(pe);
|
|
@@ -160996,7 +160998,7 @@ function Wq(s, p, i, r) {
|
|
|
160996
160998
|
(P) => Nt(P.as) === A
|
|
160997
160999
|
);
|
|
160998
161000
|
if (_) {
|
|
160999
|
-
const P = new
|
|
161001
|
+
const P = new Hi(i);
|
|
161000
161002
|
P.source = _, P.as = A;
|
|
161001
161003
|
const V = new Xn(i);
|
|
161002
161004
|
return V.entity = ((a = _.parent) == null ? void 0 : a.entity) || null, V.query = ((c = _.parent) == null ? void 0 : c.query) || null, V.aggregation = ((e = _.parent) == null ? void 0 : e.aggregation) || null, V.sourceType = ((f = _.parent) == null ? void 0 : f.sourceType) || null, P.parent = i.addDataSource(V), P;
|
|
@@ -161007,7 +161009,7 @@ function Wq(s, p, i, r) {
|
|
|
161007
161009
|
(P) => Nt(P.as) === A
|
|
161008
161010
|
);
|
|
161009
161011
|
if (_) {
|
|
161010
|
-
const P = new
|
|
161012
|
+
const P = new Hi(i);
|
|
161011
161013
|
P.source = _, P.as = A;
|
|
161012
161014
|
const V = new Xn(i);
|
|
161013
161015
|
return V.entity = ((h = _.parent) == null ? void 0 : h.entity) || null, V.query = ((m = _.parent) == null ? void 0 : m.query) || null, V.aggregation = ((b = _.parent) == null ? void 0 : b.aggregation) || null, V.sourceType = ((E = _.parent) == null ? void 0 : E.sourceType) || null, P.parent = i.addDataSource(V), P;
|
|
@@ -161067,7 +161069,7 @@ function PV(s, p, i, r, a, c = {
|
|
|
161067
161069
|
debugger;
|
|
161068
161070
|
if (s.right.expr.type === "func_call") {
|
|
161069
161071
|
const K = new Xn(r);
|
|
161070
|
-
K.sourceType =
|
|
161072
|
+
K.sourceType = Ji.Function, K.as = Nt(
|
|
161071
161073
|
s.right.alias.text
|
|
161072
161074
|
);
|
|
161073
161075
|
const re = Qd(
|
|
@@ -161103,7 +161105,7 @@ function PV(s, p, i, r, a, c = {
|
|
|
161103
161105
|
);
|
|
161104
161106
|
f.push(...X.errors), re.statement = X.state;
|
|
161105
161107
|
const le = new Xn(r);
|
|
161106
|
-
le.query = re, le.sourceType =
|
|
161108
|
+
le.query = re, le.sourceType = Ji.Query;
|
|
161107
161109
|
const te = ((U = X.state) == null ? void 0 : U.columns.map((Q) => {
|
|
161108
161110
|
const pe = _.find(
|
|
161109
161111
|
(se) => se.from === Nt(Q.as)
|
|
@@ -161151,7 +161153,7 @@ function PV(s, p, i, r, a, c = {
|
|
|
161151
161153
|
column: ae
|
|
161152
161154
|
};
|
|
161153
161155
|
});
|
|
161154
|
-
m.push(...X), re.entity = K.entity, re.sourceType =
|
|
161156
|
+
m.push(...X), re.entity = K.entity, re.sourceType = Ji.Table;
|
|
161155
161157
|
const le = new dT(
|
|
161156
161158
|
r
|
|
161157
161159
|
), te = uT(
|
|
@@ -161192,7 +161194,7 @@ function PV(s, p, i, r, a, c = {
|
|
|
161192
161194
|
column: ae
|
|
161193
161195
|
};
|
|
161194
161196
|
});
|
|
161195
|
-
m.push(...X), re.entity = K.entity, re.sourceType =
|
|
161197
|
+
m.push(...X), re.entity = K.entity, re.sourceType = Ji.Table;
|
|
161196
161198
|
const le = new dT(
|
|
161197
161199
|
r
|
|
161198
161200
|
), te = uT(
|
|
@@ -161268,29 +161270,29 @@ function zq(s, p, i, r = !1) {
|
|
|
161268
161270
|
if (E) {
|
|
161269
161271
|
const A = new ld(p);
|
|
161270
161272
|
A.inputMap = E;
|
|
161271
|
-
const _ = new
|
|
161273
|
+
const _ = new Hi(p);
|
|
161272
161274
|
_.source = A, _.as = e.alias.text, f.push(_);
|
|
161273
161275
|
}
|
|
161274
161276
|
} else {
|
|
161275
161277
|
const b = new pr(p);
|
|
161276
161278
|
G(h.value).isValid() ? (b.value = new Date(h.value), b.valueType = $t.Date) : (b.value = h.value, b.valueType = $t.String);
|
|
161277
|
-
const E = new
|
|
161279
|
+
const E = new Hi(p);
|
|
161278
161280
|
E.source = b, E.as = e.alias.text, f.push(E);
|
|
161279
161281
|
}
|
|
161280
161282
|
else if (h.type === "number_literal") {
|
|
161281
161283
|
const m = new pr(p);
|
|
161282
161284
|
m.value = h.value, m.valueType = $t.Number;
|
|
161283
|
-
const b = new
|
|
161285
|
+
const b = new Hi(p);
|
|
161284
161286
|
b.source = m, b.as = e.alias.text, f.push(b);
|
|
161285
161287
|
} else if (h.type === "boolean_literal") {
|
|
161286
161288
|
const m = new pr(p);
|
|
161287
161289
|
m.value = h.value, m.valueType = $t.Boolean;
|
|
161288
|
-
const b = new
|
|
161290
|
+
const b = new Hi(p);
|
|
161289
161291
|
b.source = m, b.as = e.alias.text, f.push(b);
|
|
161290
161292
|
} else if (h.type === "null_literal") {
|
|
161291
161293
|
const m = new pr(p);
|
|
161292
161294
|
m.value = h.value, m.valueType = $t.Null;
|
|
161293
|
-
const b = new
|
|
161295
|
+
const b = new Hi(p);
|
|
161294
161296
|
b.source = m, b.as = e.alias.text, f.push(b);
|
|
161295
161297
|
}
|
|
161296
161298
|
} else if (e.type === "func_call") {
|
|
@@ -161309,29 +161311,29 @@ function zq(s, p, i, r = !1) {
|
|
|
161309
161311
|
if (b) {
|
|
161310
161312
|
const E = new ld(p);
|
|
161311
161313
|
E.inputMap = b;
|
|
161312
|
-
const A = new
|
|
161314
|
+
const A = new Hi(p);
|
|
161313
161315
|
A.source = E, A.as = e.value.toString(), f.push(A);
|
|
161314
161316
|
}
|
|
161315
161317
|
} else {
|
|
161316
161318
|
const m = new pr(p);
|
|
161317
161319
|
G(e.value).isValid() ? (m.value = new Date(e.value), m.valueType = $t.Date) : (m.value = e.value, m.valueType = $t.String);
|
|
161318
|
-
const b = new
|
|
161320
|
+
const b = new Hi(p);
|
|
161319
161321
|
b.source = m, b.as = e.value.toString(), f.push(b);
|
|
161320
161322
|
}
|
|
161321
161323
|
else if (e.type === "number_literal") {
|
|
161322
161324
|
const h = new pr(p);
|
|
161323
161325
|
h.value = e.value, h.valueType = $t.Number;
|
|
161324
|
-
const m = new
|
|
161326
|
+
const m = new Hi(p);
|
|
161325
161327
|
m.source = h, m.as = e.value.toString(), f.push(m);
|
|
161326
161328
|
} else if (e.type === "boolean_literal") {
|
|
161327
161329
|
const h = new pr(p);
|
|
161328
161330
|
h.value = e.value, h.valueType = $t.Boolean;
|
|
161329
|
-
const m = new
|
|
161331
|
+
const m = new Hi(p);
|
|
161330
161332
|
m.source = h, m.as = "boolean", f.push(m);
|
|
161331
161333
|
} else if (e.type === "null_literal") {
|
|
161332
161334
|
const h = new pr(p);
|
|
161333
161335
|
h.value = e.value, h.valueType = $t.Null;
|
|
161334
|
-
const m = new
|
|
161336
|
+
const m = new Hi(p);
|
|
161335
161337
|
m.source = h, m.as = "empty", f.push(m);
|
|
161336
161338
|
}
|
|
161337
161339
|
return f;
|
|
@@ -161424,7 +161426,7 @@ function kc(s, p, i = null, r = !1) {
|
|
|
161424
161426
|
);
|
|
161425
161427
|
if (CV(p).forEach((Q) => {
|
|
161426
161428
|
const pe = new Xn(c);
|
|
161427
|
-
pe.entity = Q, pe.sourceType =
|
|
161429
|
+
pe.entity = Q, pe.sourceType = Ji.Table, pe.as = Q.name, c.addDataSource(pe);
|
|
161428
161430
|
}), !s)
|
|
161429
161431
|
return {
|
|
161430
161432
|
state: c,
|
|
@@ -161467,7 +161469,7 @@ function kc(s, p, i = null, r = !1) {
|
|
|
161467
161469
|
});
|
|
161468
161470
|
else {
|
|
161469
161471
|
const se = new Xn(c);
|
|
161470
|
-
se.sourceType =
|
|
161472
|
+
se.sourceType = Ji.Table, se.entity = pe, c.from = c.addDataSource(se);
|
|
161471
161473
|
}
|
|
161472
161474
|
} else if ((h == null ? void 0 : h.type) === "query") {
|
|
161473
161475
|
const Q = new DV(c);
|
|
@@ -161478,12 +161480,12 @@ function kc(s, p, i = null, r = !1) {
|
|
|
161478
161480
|
);
|
|
161479
161481
|
a.push(...pe.errors), Q.statement = pe.state;
|
|
161480
161482
|
const se = new Xn(c);
|
|
161481
|
-
se.sourceType =
|
|
161483
|
+
se.sourceType = Ji.Query, se.query = Q;
|
|
161482
161484
|
const me = c.addDataSource(se);
|
|
161483
161485
|
c.from = me;
|
|
161484
161486
|
} else if ((h == null ? void 0 : h.type) === "function") {
|
|
161485
161487
|
const Q = new Xn(c);
|
|
161486
|
-
Q.sourceType =
|
|
161488
|
+
Q.sourceType = Ji.Function, Q.as = h.as || "FuncTable";
|
|
161487
161489
|
const pe = Qd(
|
|
161488
161490
|
h.functionCall,
|
|
161489
161491
|
c.columns,
|
|
@@ -161549,7 +161551,7 @@ function kc(s, p, i = null, r = !1) {
|
|
|
161549
161551
|
) === pe);
|
|
161550
161552
|
P.forEach((Q) => {
|
|
161551
161553
|
var me, ve, De, Re, xe, Ue, Se;
|
|
161552
|
-
const pe = new
|
|
161554
|
+
const pe = new Hi(c), se = (((me = c.from) == null ? void 0 : me.columns) || []).find(
|
|
161553
161555
|
(Qe) => Qe.as === Q.from
|
|
161554
161556
|
);
|
|
161555
161557
|
if (se) {
|
|
@@ -161566,10 +161568,10 @@ function kc(s, p, i = null, r = !1) {
|
|
|
161566
161568
|
for (let De = 0; De < ve.columns.length; De++) {
|
|
161567
161569
|
const Re = ve.columns[De];
|
|
161568
161570
|
if (Nt(Re.as) === Q.from) {
|
|
161569
|
-
const xe = new
|
|
161571
|
+
const xe = new Hi(c);
|
|
161570
161572
|
xe.source = Re, xe.as = Nt(Q.to);
|
|
161571
161573
|
const Ue = new Xn(c);
|
|
161572
|
-
Ue.sourceType =
|
|
161574
|
+
Ue.sourceType = Ji.Aggregation, Ue.aggregation = ve;
|
|
161573
161575
|
const Se = c.addDataSource(Ue);
|
|
161574
161576
|
xe.parent = Se, Ue.functionCall = ((pe = ve.dataSource) == null ? void 0 : pe.functionCall) || null, Ue.as = ((se = ve.dataSource) == null ? void 0 : se.as) || "", c.addSelection(xe);
|
|
161575
161577
|
return;
|