@openremote/or-rules 1.22.0-snapshot.20260413090029 → 1.22.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.
- package/custom-elements-jsx.d.ts +1 -8
- package/custom-elements.json +60 -9
- package/dist/umd/index.bundle.js +42 -24
- package/dist/umd/index.bundle.js.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -6
- package/lib/index.js.map +1 -1
- package/lib/or-rule-group-viewer.d.ts.map +1 -1
- package/lib/or-rule-group-viewer.js +2 -2
- package/lib/or-rule-group-viewer.js.map +1 -1
- package/lib/or-rule-text-viewer.js +2 -2
- package/lib/or-rule-text-viewer.js.map +1 -1
- package/lib/or-rule-tree.d.ts +2 -0
- package/lib/or-rule-tree.d.ts.map +1 -1
- package/lib/or-rule-tree.js +6 -6
- package/lib/or-rule-tree.js.map +1 -1
- package/lib/or-rule-viewer.d.ts +1 -0
- package/lib/or-rule-viewer.d.ts.map +1 -1
- package/lib/or-rule-viewer.js +35 -17
- package/lib/or-rule-viewer.js.map +1 -1
- package/package.json +14 -14
package/custom-elements-jsx.d.ts
CHANGED
|
@@ -104,8 +104,7 @@ export type OrRuleGroupViewerProps = {
|
|
|
104
104
|
/** */
|
|
105
105
|
"readonly"?: OrRuleGroupViewer['readonly'];
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
"onundefined"?: (e: CustomEvent<OrRulesGroupNameChangeEvent>) => void;
|
|
107
|
+
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
|
|
@@ -204,12 +203,6 @@ export type OrRuleViewerProps = {
|
|
|
204
203
|
*
|
|
205
204
|
* - `group`: Name of the group
|
|
206
205
|
* - `readonly`: undefined
|
|
207
|
-
*
|
|
208
|
-
* ## Events
|
|
209
|
-
*
|
|
210
|
-
* Events that will be emitted by the component.
|
|
211
|
-
*
|
|
212
|
-
* - `undefined`: undefined
|
|
213
206
|
*/
|
|
214
207
|
"or-rule-group-viewer": Partial<OrRuleGroupViewerProps & BaseProps<OrRuleGroupViewer> & BaseEvents>;
|
|
215
208
|
|
package/custom-elements.json
CHANGED
|
@@ -474,6 +474,34 @@
|
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
},
|
|
477
|
+
{
|
|
478
|
+
"kind": "method",
|
|
479
|
+
"name": "_isLegacyJavascriptRuleset",
|
|
480
|
+
"privacy": "protected",
|
|
481
|
+
"parameters": [
|
|
482
|
+
{
|
|
483
|
+
"name": "ruleset",
|
|
484
|
+
"optional": true,
|
|
485
|
+
"type": {
|
|
486
|
+
"text": "RulesetUnion"
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
]
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"kind": "method",
|
|
493
|
+
"name": "_containsLegacyJavascriptRuleset",
|
|
494
|
+
"privacy": "protected",
|
|
495
|
+
"parameters": [
|
|
496
|
+
{
|
|
497
|
+
"name": "rulesets",
|
|
498
|
+
"optional": true,
|
|
499
|
+
"type": {
|
|
500
|
+
"text": "(RulesetUnion | undefined)[]"
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
]
|
|
504
|
+
},
|
|
477
505
|
{
|
|
478
506
|
"kind": "method",
|
|
479
507
|
"name": "_confirmContinue",
|
|
@@ -967,13 +995,6 @@
|
|
|
967
995
|
}
|
|
968
996
|
}
|
|
969
997
|
],
|
|
970
|
-
"events": [
|
|
971
|
-
{
|
|
972
|
-
"type": {
|
|
973
|
-
"text": "OrRulesGroupNameChangeEvent"
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
],
|
|
977
998
|
"attributes": [
|
|
978
999
|
{
|
|
979
1000
|
"name": "group",
|
|
@@ -1190,7 +1211,7 @@
|
|
|
1190
1211
|
},
|
|
1191
1212
|
"privacy": "public",
|
|
1192
1213
|
"static": true,
|
|
1193
|
-
"default": "[RulesetLang.JSON, RulesetLang.GROOVY, RulesetLang.
|
|
1214
|
+
"default": "[RulesetLang.JSON, RulesetLang.GROOVY, RulesetLang.FLOW]"
|
|
1194
1215
|
},
|
|
1195
1216
|
{
|
|
1196
1217
|
"kind": "field",
|
|
@@ -1596,6 +1617,25 @@
|
|
|
1596
1617
|
],
|
|
1597
1618
|
"description": "Utility function for getting the list of allowed languages based on config and global parameters."
|
|
1598
1619
|
},
|
|
1620
|
+
{
|
|
1621
|
+
"kind": "method",
|
|
1622
|
+
"name": "_isLegacyJavascriptRuleset",
|
|
1623
|
+
"privacy": "protected",
|
|
1624
|
+
"parameters": [
|
|
1625
|
+
{
|
|
1626
|
+
"name": "ruleset",
|
|
1627
|
+
"optional": true,
|
|
1628
|
+
"type": {
|
|
1629
|
+
"text": "RulesetUnion"
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
]
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
"kind": "method",
|
|
1636
|
+
"name": "_isSelectedLegacyJavascriptRuleset",
|
|
1637
|
+
"privacy": "protected"
|
|
1638
|
+
},
|
|
1599
1639
|
{
|
|
1600
1640
|
"kind": "method",
|
|
1601
1641
|
"name": "_getRulesetLangIcon",
|
|
@@ -1745,7 +1785,7 @@
|
|
|
1745
1785
|
{
|
|
1746
1786
|
"kind": "variable",
|
|
1747
1787
|
"name": "style",
|
|
1748
|
-
"default": "css` :host { display: block; height: 100%; width: 100%; overflow-y: auto; } or-scheduler { margin-left: 10px; margin-right: 20px; max-width: 400px; } .wrapper { display: flex; flex-direction: column; align-items: center; height: 100%; } #main-wrapper.saving { opacity: 0.5; pointer-events: none; } #rule-name { max-width: 400px; flex: 1 1 0; display: flex; } #rule-header { display: flex; align-items: center; width: 100%; box-sizing: border-box; min-height: var(--internal-or-rules-header-height); height: var(--internal-or-rules-header-height); z-index: 7; padding: 15px 20px; --or-icon-fill: var(--internal-or-rules-panel-color); } #rule-header-controls { margin-left: auto; display: flex; align-items: center; } #rule-id { margin-left: 10px; font-size: small; } #active-wrapper { display: flex; align-items: center; } #rule-view { flex-grow: 1; background-color: var(--internal-or-rules-background-color); } .iconfill-gray { margin-left: 10px; --or-icon-fill: var(--internal-or-rules-list-icon-color-ok); } .iconfill-red { margin-left: 10px; --or-icon-fill: var(--internal-or-rules-list-icon-color-error); } `"
|
|
1788
|
+
"default": "css` :host { display: block; height: 100%; width: 100%; overflow-y: auto; } or-scheduler { margin-left: 10px; margin-right: 20px; max-width: 400px; } .wrapper { display: flex; flex-direction: column; align-items: center; height: 100%; } #main-wrapper.saving { opacity: 0.5; pointer-events: none; } #rule-name { max-width: 400px; flex: 1 1 0; display: flex; } #rule-header { display: flex; align-items: center; width: 100%; box-sizing: border-box; min-height: var(--internal-or-rules-header-height); height: var(--internal-or-rules-header-height); z-index: 7; padding: 15px 20px; --or-icon-fill: var(--internal-or-rules-panel-color); } #rule-header-controls { margin-left: auto; display: flex; align-items: center; } #rule-id { margin-left: 10px; font-size: small; } #active-wrapper { display: flex; align-items: center; } #rule-view { flex-grow: 1; background-color: var(--internal-or-rules-background-color); } .iconfill-gray { margin-left: 10px; --or-icon-fill: var(--internal-or-rules-list-icon-color-ok); } .iconfill-red { margin-left: 10px; --or-icon-fill: var(--internal-or-rules-list-icon-color-error); } .legacy-warning { width: calc(100% - 40px); box-sizing: border-box; margin: 0 20px 15px; padding: 12px 14px; border-radius: 4px; border: 2px solid var(--internal-or-rules-invalid-color); color: var(--internal-or-rules-invalid-color); } `"
|
|
1749
1789
|
},
|
|
1750
1790
|
{
|
|
1751
1791
|
"kind": "class",
|
|
@@ -1866,6 +1906,17 @@
|
|
|
1866
1906
|
"name": "_cannotSave",
|
|
1867
1907
|
"privacy": "protected"
|
|
1868
1908
|
},
|
|
1909
|
+
{
|
|
1910
|
+
"kind": "method",
|
|
1911
|
+
"name": "_isLegacyJavascriptRuleset",
|
|
1912
|
+
"privacy": "protected",
|
|
1913
|
+
"parameters": [
|
|
1914
|
+
{
|
|
1915
|
+
"name": "ruleset",
|
|
1916
|
+
"default": "this.ruleset"
|
|
1917
|
+
}
|
|
1918
|
+
]
|
|
1919
|
+
},
|
|
1869
1920
|
{
|
|
1870
1921
|
"kind": "method",
|
|
1871
1922
|
"name": "_changeName",
|