@redvars/peacock 3.11.0 → 3.12.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.
Files changed (64) hide show
  1. package/dist/cb-divider.js +7 -6
  2. package/dist/cb-divider.js.map +1 -1
  3. package/dist/cb-group-base-D9gv7SDY.js +114 -0
  4. package/dist/cb-group-base-D9gv7SDY.js.map +1 -0
  5. package/dist/cb-group-base-DsX_2aFl.js +325 -0
  6. package/dist/cb-group-base-DsX_2aFl.js.map +1 -0
  7. package/dist/cb-group.js +96 -0
  8. package/dist/cb-group.js.map +1 -0
  9. package/dist/cb-rule.js +212 -0
  10. package/dist/cb-rule.js.map +1 -0
  11. package/dist/condition-builder.js +90 -35
  12. package/dist/condition-builder.js.map +1 -1
  13. package/dist/custom-elements-jsdocs.json +176 -96
  14. package/dist/custom-elements.json +1412 -225
  15. package/dist/field.js +2 -0
  16. package/dist/field.js.map +1 -1
  17. package/dist/index.js +4 -3
  18. package/dist/index.js.map +1 -1
  19. package/dist/loader.js +6 -13
  20. package/dist/loader.js.map +1 -1
  21. package/dist/src/condition-builder/cb-divider.d.ts +3 -1
  22. package/dist/src/condition-builder/cb-drag.d.ts +10 -0
  23. package/dist/src/condition-builder/cb-group-base.d.ts +59 -0
  24. package/dist/src/condition-builder/cb-group.d.ts +34 -0
  25. package/dist/src/condition-builder/cb-rule.d.ts +32 -0
  26. package/dist/src/condition-builder/cb-types.d.ts +13 -0
  27. package/dist/src/condition-builder/condition-builder.d.ts +35 -14
  28. package/dist/src/condition-builder/index.d.ts +3 -3
  29. package/dist/src/index.d.ts +2 -1
  30. package/dist/test/condition-builder.test.d.ts +1 -0
  31. package/dist/tsconfig.tsbuildinfo +1 -1
  32. package/package.json +1 -1
  33. package/readme.md +2 -2
  34. package/src/condition-builder/cb-divider.scss +4 -5
  35. package/src/condition-builder/cb-divider.ts +3 -1
  36. package/src/condition-builder/cb-drag.ts +35 -0
  37. package/src/condition-builder/cb-group-base.scss +97 -0
  38. package/src/condition-builder/cb-group-base.ts +335 -0
  39. package/src/condition-builder/cb-group.scss +21 -0
  40. package/src/condition-builder/cb-group.ts +72 -0
  41. package/src/condition-builder/cb-rule.scss +90 -0
  42. package/src/condition-builder/cb-rule.ts +129 -0
  43. package/src/condition-builder/cb-types.ts +16 -0
  44. package/src/condition-builder/condition-builder.scss +12 -9
  45. package/src/condition-builder/condition-builder.ts +77 -17
  46. package/src/condition-builder/index.ts +7 -3
  47. package/src/field/field.scss +3 -0
  48. package/src/index.ts +7 -3
  49. package/src/loader.ts +6 -13
  50. package/dist/cb-compound-expression.js +0 -133
  51. package/dist/cb-compound-expression.js.map +0 -1
  52. package/dist/cb-expression.js +0 -78
  53. package/dist/cb-expression.js.map +0 -1
  54. package/dist/cb-predicate.js +0 -141
  55. package/dist/cb-predicate.js.map +0 -1
  56. package/dist/src/condition-builder/cb-compound-expression.d.ts +0 -30
  57. package/dist/src/condition-builder/cb-expression.d.ts +0 -30
  58. package/dist/src/condition-builder/cb-predicate.d.ts +0 -29
  59. package/src/condition-builder/cb-compound-expression.scss +0 -41
  60. package/src/condition-builder/cb-compound-expression.ts +0 -79
  61. package/src/condition-builder/cb-expression.scss +0 -13
  62. package/src/condition-builder/cb-expression.ts +0 -48
  63. package/src/condition-builder/cb-predicate.scss +0 -35
  64. package/src/condition-builder/cb-predicate.ts +0 -101
@@ -33383,22 +33383,89 @@
33383
33383
  },
33384
33384
  {
33385
33385
  "kind": "javascript-module",
33386
- "path": "src/condition-builder/condition-builder.ts",
33386
+ "path": "src/condition-builder/cb-types.ts",
33387
+ "declarations": [],
33388
+ "exports": []
33389
+ },
33390
+ {
33391
+ "kind": "javascript-module",
33392
+ "path": "src/condition-builder/cb-rule.ts",
33387
33393
  "declarations": [
33388
33394
  {
33389
33395
  "kind": "class",
33390
33396
  "description": "",
33391
- "name": "ConditionBuilder",
33392
- "members": [],
33397
+ "name": "CbRule",
33398
+ "cssProperties": [
33399
+ {
33400
+ "description": "Height of the slotted fields (wc-select, wc-input…). Defaults to `2.5rem`.",
33401
+ "name": "--cb-rule-field-height"
33402
+ }
33403
+ ],
33404
+ "members": [
33405
+ {
33406
+ "kind": "field",
33407
+ "name": "_handleEl",
33408
+ "type": {
33409
+ "text": "HTMLElement | undefined"
33410
+ },
33411
+ "privacy": "private",
33412
+ "readonly": true
33413
+ },
33414
+ {
33415
+ "kind": "method",
33416
+ "name": "_onDragStart",
33417
+ "privacy": "private",
33418
+ "parameters": [
33419
+ {
33420
+ "name": "event",
33421
+ "type": {
33422
+ "text": "DragEvent"
33423
+ }
33424
+ }
33425
+ ]
33426
+ },
33427
+ {
33428
+ "kind": "method",
33429
+ "name": "_onDragEnd",
33430
+ "privacy": "private"
33431
+ },
33432
+ {
33433
+ "kind": "method",
33434
+ "name": "_onHandleKeyDown",
33435
+ "privacy": "private",
33436
+ "parameters": [
33437
+ {
33438
+ "name": "event",
33439
+ "type": {
33440
+ "text": "KeyboardEvent"
33441
+ }
33442
+ }
33443
+ ]
33444
+ },
33445
+ {
33446
+ "kind": "method",
33447
+ "name": "_onRemoveClick",
33448
+ "privacy": "private"
33449
+ }
33450
+ ],
33451
+ "events": [
33452
+ {
33453
+ "type": {
33454
+ "text": "CustomEvent<{rule: CbRule, group: HTMLElement | null}>"
33455
+ },
33456
+ "description": "Dispatched when the remove button is clicked. Cancelable: unless prevented, the rule removes itself.",
33457
+ "name": "rule-remove"
33458
+ }
33459
+ ],
33393
33460
  "superclass": {
33394
33461
  "name": "LitElement",
33395
33462
  "package": "lit"
33396
33463
  },
33397
- "tagName": "wc-condition-builder",
33464
+ "tagName": "wc-cb-rule",
33398
33465
  "customElement": true,
33399
- "summary": "A condition builder component that allows users to construct complex filter conditions using a visual rule-based interface with predicates, compound expressions, and logical operators.",
33466
+ "summary": "One condition row in a condition builder: a drag handle, the slotted field, operator and value controls, and a remove button.",
33400
33467
  "rawTag": {
33401
- "name": "condition-builder",
33468
+ "name": "cb-rule",
33402
33469
  "description": ""
33403
33470
  }
33404
33471
  }
@@ -33406,275 +33473,1353 @@
33406
33473
  "exports": [
33407
33474
  {
33408
33475
  "kind": "js",
33409
- "name": "ConditionBuilder",
33476
+ "name": "CbRule",
33410
33477
  "declaration": {
33411
- "name": "ConditionBuilder",
33412
- "module": "src/condition-builder/condition-builder.ts"
33478
+ "name": "CbRule",
33479
+ "module": "src/condition-builder/cb-rule.ts"
33480
+ }
33481
+ }
33482
+ ]
33483
+ },
33484
+ {
33485
+ "kind": "javascript-module",
33486
+ "path": "src/condition-builder/cb-drag.ts",
33487
+ "declarations": [
33488
+ {
33489
+ "kind": "function",
33490
+ "name": "getActiveRule",
33491
+ "return": {
33492
+ "type": {
33493
+ "text": "CbRule | null"
33494
+ }
33495
+ }
33496
+ },
33497
+ {
33498
+ "kind": "function",
33499
+ "name": "setActiveRule",
33500
+ "parameters": [
33501
+ {
33502
+ "name": "rule",
33503
+ "type": {
33504
+ "text": "CbRule | null"
33505
+ }
33506
+ }
33507
+ ]
33508
+ },
33509
+ {
33510
+ "kind": "function",
33511
+ "name": "claimDropTarget",
33512
+ "parameters": [
33513
+ {
33514
+ "name": "clear",
33515
+ "type": {
33516
+ "text": "(() => void) | null"
33517
+ }
33518
+ }
33519
+ ],
33520
+ "description": "Makes `clear` the current drop target's cleanup, running the previous one\nso only one group shows a drop indicator at a time. Pass `null` to clear."
33521
+ },
33522
+ {
33523
+ "kind": "function",
33524
+ "name": "releaseDropTarget",
33525
+ "parameters": [
33526
+ {
33527
+ "name": "clear",
33528
+ "type": {
33529
+ "text": "() => void"
33530
+ }
33531
+ }
33532
+ ],
33533
+ "description": "Clears the drop target if `clear` still owns it."
33534
+ }
33535
+ ],
33536
+ "exports": [
33537
+ {
33538
+ "kind": "js",
33539
+ "name": "getActiveRule",
33540
+ "declaration": {
33541
+ "name": "getActiveRule",
33542
+ "module": "src/condition-builder/cb-drag.ts"
33543
+ }
33544
+ },
33545
+ {
33546
+ "kind": "js",
33547
+ "name": "setActiveRule",
33548
+ "declaration": {
33549
+ "name": "setActiveRule",
33550
+ "module": "src/condition-builder/cb-drag.ts"
33551
+ }
33552
+ },
33553
+ {
33554
+ "kind": "js",
33555
+ "name": "claimDropTarget",
33556
+ "declaration": {
33557
+ "name": "claimDropTarget",
33558
+ "module": "src/condition-builder/cb-drag.ts"
33559
+ }
33560
+ },
33561
+ {
33562
+ "kind": "js",
33563
+ "name": "releaseDropTarget",
33564
+ "declaration": {
33565
+ "name": "releaseDropTarget",
33566
+ "module": "src/condition-builder/cb-drag.ts"
33413
33567
  }
33414
33568
  }
33415
33569
  ]
33416
33570
  },
33417
33571
  {
33418
33572
  "kind": "javascript-module",
33419
- "path": "src/condition-builder/cb-predicate.ts",
33573
+ "path": "src/condition-builder/cb-group-base.ts",
33420
33574
  "declarations": [
33421
33575
  {
33422
33576
  "kind": "class",
33423
- "description": "",
33424
- "name": "CbPredicate",
33577
+ "description": "Shared behaviour of `wc-condition-builder` and `wc-cb-group`: the And/Or\noperator pill, the bracket joining the items, and dropping dragged rules.",
33578
+ "name": "CbGroupBase",
33425
33579
  "members": [
33580
+ {
33581
+ "kind": "method",
33582
+ "name": "_rowCenter",
33583
+ "privacy": "private",
33584
+ "static": true,
33585
+ "return": {
33586
+ "type": {
33587
+ "text": "number"
33588
+ }
33589
+ },
33590
+ "parameters": [
33591
+ {
33592
+ "name": "item",
33593
+ "type": {
33594
+ "text": "Element"
33595
+ }
33596
+ }
33597
+ ],
33598
+ "description": "Viewport Y of the middle of an item's first row, where the bracket meets it."
33599
+ },
33600
+ {
33601
+ "kind": "field",
33602
+ "name": "operator",
33603
+ "type": {
33604
+ "text": "CbOperator"
33605
+ },
33606
+ "default": "'and'",
33607
+ "description": "The logical operator joining the rules and groups in this group.",
33608
+ "attribute": "operator",
33609
+ "reflects": true,
33610
+ "expandedType": {
33611
+ "text": "'and' | 'or'"
33612
+ }
33613
+ },
33614
+ {
33615
+ "kind": "field",
33616
+ "name": "_itemCount",
33617
+ "type": {
33618
+ "text": "number"
33619
+ },
33620
+ "privacy": "private",
33621
+ "default": "0",
33622
+ "description": "Number of rules and groups in the default slot."
33623
+ },
33624
+ {
33625
+ "kind": "field",
33626
+ "name": "_dropIndicatorTop",
33627
+ "type": {
33628
+ "text": "number | null"
33629
+ },
33630
+ "privacy": "private",
33631
+ "default": "null",
33632
+ "description": "Y of the drop indicator inside `.items`, or `null` when nothing is dragged over."
33633
+ },
33634
+ {
33635
+ "kind": "field",
33636
+ "name": "_menuOpen",
33637
+ "type": {
33638
+ "text": "boolean"
33639
+ },
33640
+ "privacy": "private",
33641
+ "default": "false",
33642
+ "description": "Whether the operator menu is open."
33643
+ },
33644
+ {
33645
+ "kind": "field",
33646
+ "name": "_itemsEl",
33647
+ "type": {
33648
+ "text": "HTMLElement | undefined"
33649
+ },
33650
+ "privacy": "private",
33651
+ "readonly": true
33652
+ },
33653
+ {
33654
+ "kind": "field",
33655
+ "name": "_connectorEl",
33656
+ "type": {
33657
+ "text": "HTMLElement | undefined"
33658
+ },
33659
+ "privacy": "private",
33660
+ "readonly": true
33661
+ },
33662
+ {
33663
+ "kind": "field",
33664
+ "name": "_pillEl",
33665
+ "type": {
33666
+ "text": "HTMLElement | undefined"
33667
+ },
33668
+ "privacy": "private",
33669
+ "readonly": true
33670
+ },
33671
+ {
33672
+ "kind": "field",
33673
+ "name": "_menuEl",
33674
+ "type": {
33675
+ "text": "MenuElement | undefined"
33676
+ },
33677
+ "privacy": "private",
33678
+ "readonly": true
33679
+ },
33680
+ {
33681
+ "kind": "field",
33682
+ "name": "_menuId",
33683
+ "privacy": "private",
33684
+ "readonly": true,
33685
+ "default": "`cb-operator-menu-${Math.random().toString(36).slice(2, 9)}`",
33686
+ "description": "Id linking the operator pill to its menu."
33687
+ },
33688
+ {
33689
+ "kind": "field",
33690
+ "name": "_resizeObserver",
33691
+ "privacy": "private",
33692
+ "readonly": true,
33693
+ "default": "new ResizeObserver(() => this._layoutConnector(), )",
33694
+ "description": "Re-measures the bracket when any item changes size."
33695
+ },
33696
+ {
33697
+ "kind": "field",
33698
+ "name": "_dropIndex",
33699
+ "type": {
33700
+ "text": "number"
33701
+ },
33702
+ "privacy": "private",
33703
+ "default": "-1",
33704
+ "description": "Index the dragged rule would be inserted at, or -1."
33705
+ },
33426
33706
  {
33427
33707
  "kind": "field",
33428
- "name": "conditionOperator",
33708
+ "name": "items",
33429
33709
  "type": {
33430
- "text": "'and' | 'or' | undefined"
33710
+ "text": "HTMLElement[]"
33711
+ },
33712
+ "description": "The rules and groups in this group, in order.",
33713
+ "readonly": true
33714
+ },
33715
+ {
33716
+ "kind": "method",
33717
+ "name": "moveRule",
33718
+ "return": {
33719
+ "type": {
33720
+ "text": "boolean"
33721
+ }
33722
+ },
33723
+ "parameters": [
33724
+ {
33725
+ "name": "rule",
33726
+ "type": {
33727
+ "text": "CbRule"
33728
+ }
33729
+ },
33730
+ {
33731
+ "name": "index",
33732
+ "type": {
33733
+ "text": "number"
33734
+ }
33735
+ }
33736
+ ],
33737
+ "description": "Moves `rule` into this group at `index` (counted without the rule itself).\nFires a cancelable `rule-move` event first. Returns whether it moved."
33738
+ },
33739
+ {
33740
+ "kind": "method",
33741
+ "name": "_onSlotChange",
33742
+ "privacy": "private"
33743
+ },
33744
+ {
33745
+ "kind": "method",
33746
+ "name": "_layoutConnector",
33747
+ "privacy": "private",
33748
+ "description": "Spans the bracket from the first to the last item's first row."
33749
+ },
33750
+ {
33751
+ "kind": "method",
33752
+ "name": "_onPillClick",
33753
+ "privacy": "private",
33754
+ "parameters": [
33755
+ {
33756
+ "name": "event",
33757
+ "type": {
33758
+ "text": "MouseEvent"
33759
+ }
33760
+ }
33761
+ ]
33762
+ },
33763
+ {
33764
+ "kind": "method",
33765
+ "name": "_onMenuActivate",
33766
+ "privacy": "private",
33767
+ "parameters": [
33768
+ {
33769
+ "name": "event",
33770
+ "type": {
33771
+ "text": "CustomEvent<{ item: { value: string } }>"
33772
+ }
33773
+ }
33774
+ ]
33775
+ },
33776
+ {
33777
+ "kind": "field",
33778
+ "name": "_clearDropIndicator",
33779
+ "privacy": "private",
33780
+ "readonly": true
33781
+ },
33782
+ {
33783
+ "kind": "method",
33784
+ "name": "_onDragOver",
33785
+ "privacy": "private",
33786
+ "parameters": [
33787
+ {
33788
+ "name": "event",
33789
+ "type": {
33790
+ "text": "DragEvent"
33791
+ }
33792
+ }
33793
+ ]
33794
+ },
33795
+ {
33796
+ "kind": "method",
33797
+ "name": "_onDragLeave",
33798
+ "privacy": "private",
33799
+ "parameters": [
33800
+ {
33801
+ "name": "event",
33802
+ "type": {
33803
+ "text": "DragEvent"
33804
+ }
33805
+ }
33806
+ ]
33807
+ },
33808
+ {
33809
+ "kind": "method",
33810
+ "name": "_onDrop",
33811
+ "privacy": "private",
33812
+ "parameters": [
33813
+ {
33814
+ "name": "event",
33815
+ "type": {
33816
+ "text": "DragEvent"
33817
+ }
33818
+ }
33819
+ ]
33820
+ },
33821
+ {
33822
+ "kind": "method",
33823
+ "name": "renderFooter",
33824
+ "privacy": "protected",
33825
+ "return": {
33826
+ "type": {
33827
+ "text": "TemplateResult | typeof nothing"
33828
+ }
33829
+ },
33830
+ "description": "Content placed after the items; each group type renders its own actions."
33831
+ },
33832
+ {
33833
+ "kind": "method",
33834
+ "name": "_renderConnector",
33835
+ "privacy": "private"
33836
+ },
33837
+ {
33838
+ "kind": "method",
33839
+ "name": "_renderOperatorMenu",
33840
+ "privacy": "private"
33841
+ }
33842
+ ],
33843
+ "events": [
33844
+ {
33845
+ "name": "operator-change",
33846
+ "type": {
33847
+ "text": "CustomEvent"
33848
+ }
33849
+ }
33850
+ ],
33851
+ "attributes": [
33852
+ {
33853
+ "name": "operator",
33854
+ "type": {
33855
+ "text": "CbOperator"
33856
+ },
33857
+ "default": "'and'",
33858
+ "description": "The logical operator joining the rules and groups in this group.",
33859
+ "fieldName": "operator",
33860
+ "expandedType": {
33861
+ "text": "'and' | 'or'"
33862
+ }
33863
+ }
33864
+ ],
33865
+ "superclass": {
33866
+ "name": "LitElement",
33867
+ "package": "lit"
33868
+ },
33869
+ "customElement": true
33870
+ }
33871
+ ],
33872
+ "exports": [
33873
+ {
33874
+ "kind": "js",
33875
+ "name": "CbGroupBase",
33876
+ "declaration": {
33877
+ "name": "CbGroupBase",
33878
+ "module": "src/condition-builder/cb-group-base.ts"
33879
+ }
33880
+ }
33881
+ ]
33882
+ },
33883
+ {
33884
+ "kind": "javascript-module",
33885
+ "path": "src/condition-builder/condition-builder.ts",
33886
+ "declarations": [
33887
+ {
33888
+ "kind": "class",
33889
+ "description": "",
33890
+ "name": "ConditionBuilder",
33891
+ "slots": [
33892
+ {
33893
+ "description": "Rules (`wc-cb-rule`) and groups (`wc-cb-group`).",
33894
+ "name": ""
33895
+ },
33896
+ {
33897
+ "description": "Replaces the default \"Add rule\" and \"Add inner group\" buttons.",
33898
+ "name": "actions"
33899
+ },
33900
+ {
33901
+ "description": "Actions aligned to the end of the footer, such as a \"Run query\" button.",
33902
+ "name": "actions-end"
33903
+ }
33904
+ ],
33905
+ "members": [
33906
+ {
33907
+ "kind": "method",
33908
+ "name": "_dispatchAdd",
33909
+ "privacy": "private",
33910
+ "parameters": [
33911
+ {
33912
+ "name": "type",
33913
+ "type": {
33914
+ "text": "'add-rule' | 'add-group'"
33915
+ }
33916
+ }
33917
+ ]
33918
+ },
33919
+ {
33920
+ "kind": "method",
33921
+ "name": "renderFooter",
33922
+ "privacy": "protected",
33923
+ "return": {
33924
+ "type": {
33925
+ "text": "TemplateResult | typeof nothing"
33926
+ }
33927
+ },
33928
+ "description": "Content placed after the items; each group type renders its own actions.",
33929
+ "inheritedFrom": {
33930
+ "name": "CbGroupBase",
33931
+ "module": "src/condition-builder/cb-group-base.ts"
33932
+ }
33933
+ },
33934
+ {
33935
+ "kind": "method",
33936
+ "name": "_rowCenter",
33937
+ "privacy": "private",
33938
+ "static": true,
33939
+ "return": {
33940
+ "type": {
33941
+ "text": "number"
33942
+ }
33943
+ },
33944
+ "parameters": [
33945
+ {
33946
+ "name": "item",
33947
+ "type": {
33948
+ "text": "Element"
33949
+ }
33950
+ }
33951
+ ],
33952
+ "description": "Viewport Y of the middle of an item's first row, where the bracket meets it.",
33953
+ "inheritedFrom": {
33954
+ "name": "CbGroupBase",
33955
+ "module": "src/condition-builder/cb-group-base.ts"
33956
+ }
33957
+ },
33958
+ {
33959
+ "kind": "field",
33960
+ "name": "operator",
33961
+ "type": {
33962
+ "text": "CbOperator"
33963
+ },
33964
+ "default": "'and'",
33965
+ "description": "The logical operator joining the rules and groups in this group.",
33966
+ "attribute": "operator",
33967
+ "reflects": true,
33968
+ "expandedType": {
33969
+ "text": "'and' | 'or'"
33970
+ },
33971
+ "inheritedFrom": {
33972
+ "name": "CbGroupBase",
33973
+ "module": "src/condition-builder/cb-group-base.ts"
33974
+ }
33975
+ },
33976
+ {
33977
+ "kind": "field",
33978
+ "name": "_itemCount",
33979
+ "type": {
33980
+ "text": "number"
33981
+ },
33982
+ "privacy": "private",
33983
+ "default": "0",
33984
+ "description": "Number of rules and groups in the default slot.",
33985
+ "inheritedFrom": {
33986
+ "name": "CbGroupBase",
33987
+ "module": "src/condition-builder/cb-group-base.ts"
33988
+ }
33989
+ },
33990
+ {
33991
+ "kind": "field",
33992
+ "name": "_dropIndicatorTop",
33993
+ "type": {
33994
+ "text": "number | null"
33995
+ },
33996
+ "privacy": "private",
33997
+ "default": "null",
33998
+ "description": "Y of the drop indicator inside `.items`, or `null` when nothing is dragged over.",
33999
+ "inheritedFrom": {
34000
+ "name": "CbGroupBase",
34001
+ "module": "src/condition-builder/cb-group-base.ts"
34002
+ }
34003
+ },
34004
+ {
34005
+ "kind": "field",
34006
+ "name": "_menuOpen",
34007
+ "type": {
34008
+ "text": "boolean"
34009
+ },
34010
+ "privacy": "private",
34011
+ "default": "false",
34012
+ "description": "Whether the operator menu is open.",
34013
+ "inheritedFrom": {
34014
+ "name": "CbGroupBase",
34015
+ "module": "src/condition-builder/cb-group-base.ts"
34016
+ }
34017
+ },
34018
+ {
34019
+ "kind": "field",
34020
+ "name": "_itemsEl",
34021
+ "type": {
34022
+ "text": "HTMLElement | undefined"
34023
+ },
34024
+ "privacy": "private",
34025
+ "readonly": true,
34026
+ "inheritedFrom": {
34027
+ "name": "CbGroupBase",
34028
+ "module": "src/condition-builder/cb-group-base.ts"
34029
+ }
34030
+ },
34031
+ {
34032
+ "kind": "field",
34033
+ "name": "_connectorEl",
34034
+ "type": {
34035
+ "text": "HTMLElement | undefined"
34036
+ },
34037
+ "privacy": "private",
34038
+ "readonly": true,
34039
+ "inheritedFrom": {
34040
+ "name": "CbGroupBase",
34041
+ "module": "src/condition-builder/cb-group-base.ts"
34042
+ }
34043
+ },
34044
+ {
34045
+ "kind": "field",
34046
+ "name": "_pillEl",
34047
+ "type": {
34048
+ "text": "HTMLElement | undefined"
34049
+ },
34050
+ "privacy": "private",
34051
+ "readonly": true,
34052
+ "inheritedFrom": {
34053
+ "name": "CbGroupBase",
34054
+ "module": "src/condition-builder/cb-group-base.ts"
34055
+ }
34056
+ },
34057
+ {
34058
+ "kind": "field",
34059
+ "name": "_menuEl",
34060
+ "type": {
34061
+ "text": "MenuElement | undefined"
34062
+ },
34063
+ "privacy": "private",
34064
+ "readonly": true,
34065
+ "inheritedFrom": {
34066
+ "name": "CbGroupBase",
34067
+ "module": "src/condition-builder/cb-group-base.ts"
34068
+ }
34069
+ },
34070
+ {
34071
+ "kind": "field",
34072
+ "name": "_menuId",
34073
+ "privacy": "private",
34074
+ "readonly": true,
34075
+ "default": "`cb-operator-menu-${Math.random().toString(36).slice(2, 9)}`",
34076
+ "description": "Id linking the operator pill to its menu.",
34077
+ "inheritedFrom": {
34078
+ "name": "CbGroupBase",
34079
+ "module": "src/condition-builder/cb-group-base.ts"
34080
+ }
34081
+ },
34082
+ {
34083
+ "kind": "field",
34084
+ "name": "_resizeObserver",
34085
+ "privacy": "private",
34086
+ "readonly": true,
34087
+ "default": "new ResizeObserver(() => this._layoutConnector(), )",
34088
+ "description": "Re-measures the bracket when any item changes size.",
34089
+ "inheritedFrom": {
34090
+ "name": "CbGroupBase",
34091
+ "module": "src/condition-builder/cb-group-base.ts"
34092
+ }
34093
+ },
34094
+ {
34095
+ "kind": "field",
34096
+ "name": "_dropIndex",
34097
+ "type": {
34098
+ "text": "number"
34099
+ },
34100
+ "privacy": "private",
34101
+ "default": "-1",
34102
+ "description": "Index the dragged rule would be inserted at, or -1.",
34103
+ "inheritedFrom": {
34104
+ "name": "CbGroupBase",
34105
+ "module": "src/condition-builder/cb-group-base.ts"
34106
+ }
34107
+ },
34108
+ {
34109
+ "kind": "field",
34110
+ "name": "items",
34111
+ "type": {
34112
+ "text": "HTMLElement[]"
34113
+ },
34114
+ "description": "The rules and groups in this group, in order.",
34115
+ "readonly": true,
34116
+ "inheritedFrom": {
34117
+ "name": "CbGroupBase",
34118
+ "module": "src/condition-builder/cb-group-base.ts"
34119
+ }
34120
+ },
34121
+ {
34122
+ "kind": "method",
34123
+ "name": "moveRule",
34124
+ "return": {
34125
+ "type": {
34126
+ "text": "boolean"
34127
+ }
34128
+ },
34129
+ "parameters": [
34130
+ {
34131
+ "name": "rule",
34132
+ "type": {
34133
+ "text": "CbRule"
34134
+ }
34135
+ },
34136
+ {
34137
+ "name": "index",
34138
+ "type": {
34139
+ "text": "number"
34140
+ }
34141
+ }
34142
+ ],
34143
+ "description": "Moves `rule` into this group at `index` (counted without the rule itself).\nFires a cancelable `rule-move` event first. Returns whether it moved.",
34144
+ "inheritedFrom": {
34145
+ "name": "CbGroupBase",
34146
+ "module": "src/condition-builder/cb-group-base.ts"
34147
+ }
34148
+ },
34149
+ {
34150
+ "kind": "method",
34151
+ "name": "_onSlotChange",
34152
+ "privacy": "private",
34153
+ "inheritedFrom": {
34154
+ "name": "CbGroupBase",
34155
+ "module": "src/condition-builder/cb-group-base.ts"
34156
+ }
34157
+ },
34158
+ {
34159
+ "kind": "method",
34160
+ "name": "_layoutConnector",
34161
+ "privacy": "private",
34162
+ "description": "Spans the bracket from the first to the last item's first row.",
34163
+ "inheritedFrom": {
34164
+ "name": "CbGroupBase",
34165
+ "module": "src/condition-builder/cb-group-base.ts"
34166
+ }
34167
+ },
34168
+ {
34169
+ "kind": "method",
34170
+ "name": "_onPillClick",
34171
+ "privacy": "private",
34172
+ "parameters": [
34173
+ {
34174
+ "name": "event",
34175
+ "type": {
34176
+ "text": "MouseEvent"
34177
+ }
34178
+ }
34179
+ ],
34180
+ "inheritedFrom": {
34181
+ "name": "CbGroupBase",
34182
+ "module": "src/condition-builder/cb-group-base.ts"
34183
+ }
34184
+ },
34185
+ {
34186
+ "kind": "method",
34187
+ "name": "_onMenuActivate",
34188
+ "privacy": "private",
34189
+ "parameters": [
34190
+ {
34191
+ "name": "event",
34192
+ "type": {
34193
+ "text": "CustomEvent<{ item: { value: string } }>"
34194
+ }
34195
+ }
34196
+ ],
34197
+ "inheritedFrom": {
34198
+ "name": "CbGroupBase",
34199
+ "module": "src/condition-builder/cb-group-base.ts"
34200
+ }
34201
+ },
34202
+ {
34203
+ "kind": "field",
34204
+ "name": "_clearDropIndicator",
34205
+ "privacy": "private",
34206
+ "readonly": true,
34207
+ "inheritedFrom": {
34208
+ "name": "CbGroupBase",
34209
+ "module": "src/condition-builder/cb-group-base.ts"
34210
+ }
34211
+ },
34212
+ {
34213
+ "kind": "method",
34214
+ "name": "_onDragOver",
34215
+ "privacy": "private",
34216
+ "parameters": [
34217
+ {
34218
+ "name": "event",
34219
+ "type": {
34220
+ "text": "DragEvent"
34221
+ }
34222
+ }
34223
+ ],
34224
+ "inheritedFrom": {
34225
+ "name": "CbGroupBase",
34226
+ "module": "src/condition-builder/cb-group-base.ts"
34227
+ }
34228
+ },
34229
+ {
34230
+ "kind": "method",
34231
+ "name": "_onDragLeave",
34232
+ "privacy": "private",
34233
+ "parameters": [
34234
+ {
34235
+ "name": "event",
34236
+ "type": {
34237
+ "text": "DragEvent"
34238
+ }
34239
+ }
34240
+ ],
34241
+ "inheritedFrom": {
34242
+ "name": "CbGroupBase",
34243
+ "module": "src/condition-builder/cb-group-base.ts"
34244
+ }
34245
+ },
34246
+ {
34247
+ "kind": "method",
34248
+ "name": "_onDrop",
34249
+ "privacy": "private",
34250
+ "parameters": [
34251
+ {
34252
+ "name": "event",
34253
+ "type": {
34254
+ "text": "DragEvent"
34255
+ }
34256
+ }
34257
+ ],
34258
+ "inheritedFrom": {
34259
+ "name": "CbGroupBase",
34260
+ "module": "src/condition-builder/cb-group-base.ts"
34261
+ }
34262
+ },
34263
+ {
34264
+ "kind": "method",
34265
+ "name": "_renderConnector",
34266
+ "privacy": "private",
34267
+ "inheritedFrom": {
34268
+ "name": "CbGroupBase",
34269
+ "module": "src/condition-builder/cb-group-base.ts"
34270
+ }
34271
+ },
34272
+ {
34273
+ "kind": "method",
34274
+ "name": "_renderOperatorMenu",
34275
+ "privacy": "private",
34276
+ "inheritedFrom": {
34277
+ "name": "CbGroupBase",
34278
+ "module": "src/condition-builder/cb-group-base.ts"
34279
+ }
34280
+ }
34281
+ ],
34282
+ "events": [
34283
+ {
34284
+ "name": "type",
34285
+ "type": {
34286
+ "text": "CustomEvent"
34287
+ }
34288
+ },
34289
+ {
34290
+ "name": "operator-change",
34291
+ "type": {
34292
+ "text": "CustomEvent"
34293
+ },
34294
+ "description": "Dispatched when the user picks a different operator, on this or a nested group.",
34295
+ "inheritedFrom": {
34296
+ "name": "CbGroupBase",
34297
+ "module": "src/condition-builder/cb-group-base.ts"
34298
+ }
34299
+ },
34300
+ {
34301
+ "type": {
34302
+ "text": "CustomEvent<{rule: CbRule, from: HTMLElement | null, to: HTMLElement, index: number}>"
34303
+ },
34304
+ "description": "Dispatched before a rule is moved. Cancelable: unless prevented, the target group moves the rule.",
34305
+ "name": "rule-move"
34306
+ },
34307
+ {
34308
+ "type": {
34309
+ "text": "CustomEvent<{rule: CbRule, group: HTMLElement | null}>"
34310
+ },
34311
+ "description": "Dispatched when a rule's remove button is clicked. Cancelable: unless prevented, the rule removes itself.",
34312
+ "name": "rule-remove"
34313
+ },
34314
+ {
34315
+ "type": {
34316
+ "text": "CustomEvent<{group: HTMLElement}>"
34317
+ },
34318
+ "description": "Dispatched when \"Add rule\" (or a nested group's \"Add condition\") is clicked.",
34319
+ "name": "add-rule"
34320
+ },
34321
+ {
34322
+ "type": {
34323
+ "text": "CustomEvent<{group: HTMLElement}>"
34324
+ },
34325
+ "description": "Dispatched when \"Add inner group\" is clicked.",
34326
+ "name": "add-group"
34327
+ }
34328
+ ],
34329
+ "superclass": {
34330
+ "name": "CbGroupBase",
34331
+ "module": "/src/condition-builder/cb-group-base.js"
34332
+ },
34333
+ "tagName": "wc-condition-builder",
34334
+ "customElement": true,
34335
+ "summary": "A query builder for composing filter conditions from rules and nested groups joined by And/Or.",
34336
+ "rawTag": {
34337
+ "name": "condition-builder",
34338
+ "description": ""
34339
+ },
34340
+ "attributes": [
34341
+ {
34342
+ "name": "operator",
34343
+ "type": {
34344
+ "text": "CbOperator"
34345
+ },
34346
+ "default": "'and'",
34347
+ "description": "The logical operator joining the rules and groups in this group.",
34348
+ "fieldName": "operator",
34349
+ "expandedType": {
34350
+ "text": "'and' | 'or'"
34351
+ },
34352
+ "inheritedFrom": {
34353
+ "name": "CbGroupBase",
34354
+ "module": "src/condition-builder/cb-group-base.ts"
34355
+ }
34356
+ }
34357
+ ]
34358
+ }
34359
+ ],
34360
+ "exports": [
34361
+ {
34362
+ "kind": "js",
34363
+ "name": "ConditionBuilder",
34364
+ "declaration": {
34365
+ "name": "ConditionBuilder",
34366
+ "module": "src/condition-builder/condition-builder.ts"
34367
+ }
34368
+ }
34369
+ ]
34370
+ },
34371
+ {
34372
+ "kind": "javascript-module",
34373
+ "path": "src/condition-builder/cb-group.ts",
34374
+ "declarations": [
34375
+ {
34376
+ "kind": "class",
34377
+ "description": "",
34378
+ "name": "CbGroup",
34379
+ "slots": [
34380
+ {
34381
+ "description": "Rules (`wc-cb-rule`) and nested groups.",
34382
+ "name": ""
34383
+ },
34384
+ {
34385
+ "description": "Replaces the default \"Add condition\" link.",
34386
+ "name": "actions"
34387
+ }
34388
+ ],
34389
+ "members": [
34390
+ {
34391
+ "kind": "method",
34392
+ "name": "_onAddRuleClick",
34393
+ "privacy": "private"
34394
+ },
34395
+ {
34396
+ "kind": "method",
34397
+ "name": "renderFooter",
34398
+ "privacy": "protected",
34399
+ "return": {
34400
+ "type": {
34401
+ "text": "TemplateResult | typeof nothing"
34402
+ }
34403
+ },
34404
+ "description": "Content placed after the items; each group type renders its own actions.",
34405
+ "inheritedFrom": {
34406
+ "name": "CbGroupBase",
34407
+ "module": "src/condition-builder/cb-group-base.ts"
34408
+ }
34409
+ },
34410
+ {
34411
+ "kind": "method",
34412
+ "name": "_rowCenter",
34413
+ "privacy": "private",
34414
+ "static": true,
34415
+ "return": {
34416
+ "type": {
34417
+ "text": "number"
34418
+ }
34419
+ },
34420
+ "parameters": [
34421
+ {
34422
+ "name": "item",
34423
+ "type": {
34424
+ "text": "Element"
34425
+ }
34426
+ }
34427
+ ],
34428
+ "description": "Viewport Y of the middle of an item's first row, where the bracket meets it.",
34429
+ "inheritedFrom": {
34430
+ "name": "CbGroupBase",
34431
+ "module": "src/condition-builder/cb-group-base.ts"
34432
+ }
34433
+ },
34434
+ {
34435
+ "kind": "field",
34436
+ "name": "operator",
34437
+ "type": {
34438
+ "text": "CbOperator"
34439
+ },
34440
+ "default": "'and'",
34441
+ "description": "The logical operator joining the rules and groups in this group.",
34442
+ "attribute": "operator",
34443
+ "reflects": true,
34444
+ "expandedType": {
34445
+ "text": "'and' | 'or'"
34446
+ },
34447
+ "inheritedFrom": {
34448
+ "name": "CbGroupBase",
34449
+ "module": "src/condition-builder/cb-group-base.ts"
34450
+ }
34451
+ },
34452
+ {
34453
+ "kind": "field",
34454
+ "name": "_itemCount",
34455
+ "type": {
34456
+ "text": "number"
34457
+ },
34458
+ "privacy": "private",
34459
+ "default": "0",
34460
+ "description": "Number of rules and groups in the default slot.",
34461
+ "inheritedFrom": {
34462
+ "name": "CbGroupBase",
34463
+ "module": "src/condition-builder/cb-group-base.ts"
34464
+ }
34465
+ },
34466
+ {
34467
+ "kind": "field",
34468
+ "name": "_dropIndicatorTop",
34469
+ "type": {
34470
+ "text": "number | null"
34471
+ },
34472
+ "privacy": "private",
34473
+ "default": "null",
34474
+ "description": "Y of the drop indicator inside `.items`, or `null` when nothing is dragged over.",
34475
+ "inheritedFrom": {
34476
+ "name": "CbGroupBase",
34477
+ "module": "src/condition-builder/cb-group-base.ts"
34478
+ }
34479
+ },
34480
+ {
34481
+ "kind": "field",
34482
+ "name": "_menuOpen",
34483
+ "type": {
34484
+ "text": "boolean"
34485
+ },
34486
+ "privacy": "private",
34487
+ "default": "false",
34488
+ "description": "Whether the operator menu is open.",
34489
+ "inheritedFrom": {
34490
+ "name": "CbGroupBase",
34491
+ "module": "src/condition-builder/cb-group-base.ts"
34492
+ }
34493
+ },
34494
+ {
34495
+ "kind": "field",
34496
+ "name": "_itemsEl",
34497
+ "type": {
34498
+ "text": "HTMLElement | undefined"
34499
+ },
34500
+ "privacy": "private",
34501
+ "readonly": true,
34502
+ "inheritedFrom": {
34503
+ "name": "CbGroupBase",
34504
+ "module": "src/condition-builder/cb-group-base.ts"
34505
+ }
34506
+ },
34507
+ {
34508
+ "kind": "field",
34509
+ "name": "_connectorEl",
34510
+ "type": {
34511
+ "text": "HTMLElement | undefined"
34512
+ },
34513
+ "privacy": "private",
34514
+ "readonly": true,
34515
+ "inheritedFrom": {
34516
+ "name": "CbGroupBase",
34517
+ "module": "src/condition-builder/cb-group-base.ts"
34518
+ }
34519
+ },
34520
+ {
34521
+ "kind": "field",
34522
+ "name": "_pillEl",
34523
+ "type": {
34524
+ "text": "HTMLElement | undefined"
34525
+ },
34526
+ "privacy": "private",
34527
+ "readonly": true,
34528
+ "inheritedFrom": {
34529
+ "name": "CbGroupBase",
34530
+ "module": "src/condition-builder/cb-group-base.ts"
34531
+ }
34532
+ },
34533
+ {
34534
+ "kind": "field",
34535
+ "name": "_menuEl",
34536
+ "type": {
34537
+ "text": "MenuElement | undefined"
34538
+ },
34539
+ "privacy": "private",
34540
+ "readonly": true,
34541
+ "inheritedFrom": {
34542
+ "name": "CbGroupBase",
34543
+ "module": "src/condition-builder/cb-group-base.ts"
34544
+ }
34545
+ },
34546
+ {
34547
+ "kind": "field",
34548
+ "name": "_menuId",
34549
+ "privacy": "private",
34550
+ "readonly": true,
34551
+ "default": "`cb-operator-menu-${Math.random().toString(36).slice(2, 9)}`",
34552
+ "description": "Id linking the operator pill to its menu.",
34553
+ "inheritedFrom": {
34554
+ "name": "CbGroupBase",
34555
+ "module": "src/condition-builder/cb-group-base.ts"
34556
+ }
34557
+ },
34558
+ {
34559
+ "kind": "field",
34560
+ "name": "_resizeObserver",
34561
+ "privacy": "private",
34562
+ "readonly": true,
34563
+ "default": "new ResizeObserver(() => this._layoutConnector(), )",
34564
+ "description": "Re-measures the bracket when any item changes size.",
34565
+ "inheritedFrom": {
34566
+ "name": "CbGroupBase",
34567
+ "module": "src/condition-builder/cb-group-base.ts"
34568
+ }
34569
+ },
34570
+ {
34571
+ "kind": "field",
34572
+ "name": "_dropIndex",
34573
+ "type": {
34574
+ "text": "number"
34575
+ },
34576
+ "privacy": "private",
34577
+ "default": "-1",
34578
+ "description": "Index the dragged rule would be inserted at, or -1.",
34579
+ "inheritedFrom": {
34580
+ "name": "CbGroupBase",
34581
+ "module": "src/condition-builder/cb-group-base.ts"
34582
+ }
34583
+ },
34584
+ {
34585
+ "kind": "field",
34586
+ "name": "items",
34587
+ "type": {
34588
+ "text": "HTMLElement[]"
34589
+ },
34590
+ "description": "The rules and groups in this group, in order.",
34591
+ "readonly": true,
34592
+ "inheritedFrom": {
34593
+ "name": "CbGroupBase",
34594
+ "module": "src/condition-builder/cb-group-base.ts"
34595
+ }
34596
+ },
34597
+ {
34598
+ "kind": "method",
34599
+ "name": "moveRule",
34600
+ "return": {
34601
+ "type": {
34602
+ "text": "boolean"
34603
+ }
33431
34604
  },
33432
- "description": "The logical operator shown between predicates ('and' or 'or').",
33433
- "attribute": "condition-operator",
33434
- "reflects": true
34605
+ "parameters": [
34606
+ {
34607
+ "name": "rule",
34608
+ "type": {
34609
+ "text": "CbRule"
34610
+ }
34611
+ },
34612
+ {
34613
+ "name": "index",
34614
+ "type": {
34615
+ "text": "number"
34616
+ }
34617
+ }
34618
+ ],
34619
+ "description": "Moves `rule` into this group at `index` (counted without the rule itself).\nFires a cancelable `rule-move` event first. Returns whether it moved.",
34620
+ "inheritedFrom": {
34621
+ "name": "CbGroupBase",
34622
+ "module": "src/condition-builder/cb-group-base.ts"
34623
+ }
33435
34624
  },
33436
34625
  {
33437
- "kind": "field",
33438
- "name": "vertical",
33439
- "type": {
33440
- "text": "boolean"
33441
- },
33442
- "default": "false",
33443
- "description": "Whether to render the predicate in vertical layout.",
33444
- "attribute": "vertical",
33445
- "reflects": true
34626
+ "kind": "method",
34627
+ "name": "_onSlotChange",
34628
+ "privacy": "private",
34629
+ "inheritedFrom": {
34630
+ "name": "CbGroupBase",
34631
+ "module": "src/condition-builder/cb-group-base.ts"
34632
+ }
33446
34633
  },
33447
34634
  {
33448
34635
  "kind": "method",
33449
- "name": "__adjustSlotEndPadding",
33450
- "privacy": "private"
34636
+ "name": "_layoutConnector",
34637
+ "privacy": "private",
34638
+ "description": "Spans the bracket from the first to the last item's first row.",
34639
+ "inheritedFrom": {
34640
+ "name": "CbGroupBase",
34641
+ "module": "src/condition-builder/cb-group-base.ts"
34642
+ }
33451
34643
  },
33452
34644
  {
33453
34645
  "kind": "method",
33454
- "name": "__renderHorizontalOperator",
33455
- "privacy": "private"
34646
+ "name": "_onPillClick",
34647
+ "privacy": "private",
34648
+ "parameters": [
34649
+ {
34650
+ "name": "event",
34651
+ "type": {
34652
+ "text": "MouseEvent"
34653
+ }
34654
+ }
34655
+ ],
34656
+ "inheritedFrom": {
34657
+ "name": "CbGroupBase",
34658
+ "module": "src/condition-builder/cb-group-base.ts"
34659
+ }
33456
34660
  },
33457
34661
  {
33458
34662
  "kind": "method",
33459
- "name": "__renderVerticalOperator",
33460
- "privacy": "private"
33461
- }
33462
- ],
33463
- "attributes": [
33464
- {
33465
- "name": "condition-operator",
33466
- "type": {
33467
- "text": "'and' | 'or' | undefined"
33468
- },
33469
- "description": "The logical operator shown between predicates ('and' or 'or').",
33470
- "fieldName": "conditionOperator"
34663
+ "name": "_onMenuActivate",
34664
+ "privacy": "private",
34665
+ "parameters": [
34666
+ {
34667
+ "name": "event",
34668
+ "type": {
34669
+ "text": "CustomEvent<{ item: { value: string } }>"
34670
+ }
34671
+ }
34672
+ ],
34673
+ "inheritedFrom": {
34674
+ "name": "CbGroupBase",
34675
+ "module": "src/condition-builder/cb-group-base.ts"
34676
+ }
33471
34677
  },
33472
- {
33473
- "name": "vertical",
33474
- "type": {
33475
- "text": "boolean"
33476
- },
33477
- "default": "false",
33478
- "description": "Whether to render the predicate in vertical layout.",
33479
- "fieldName": "vertical"
33480
- }
33481
- ],
33482
- "superclass": {
33483
- "name": "LitElement",
33484
- "package": "lit"
33485
- },
33486
- "tagName": "wc-cb-predicate",
33487
- "customElement": true,
33488
- "summary": "A predicate container in a condition builder that can display conditions in horizontal or vertical layout with an optional logical operator divider.",
33489
- "rawTag": {
33490
- "name": "cb-predicate",
33491
- "description": ""
33492
- }
33493
- }
33494
- ],
33495
- "exports": [
33496
- {
33497
- "kind": "js",
33498
- "name": "CbPredicate",
33499
- "declaration": {
33500
- "name": "CbPredicate",
33501
- "module": "src/condition-builder/cb-predicate.ts"
33502
- }
33503
- }
33504
- ]
33505
- },
33506
- {
33507
- "kind": "javascript-module",
33508
- "path": "src/condition-builder/cb-compound-expression.ts",
33509
- "declarations": [
33510
- {
33511
- "kind": "class",
33512
- "description": "",
33513
- "name": "CbCompoundExpression",
33514
- "members": [
33515
34678
  {
33516
34679
  "kind": "field",
33517
- "name": "conditionOperator",
33518
- "type": {
33519
- "text": "'and' | 'or' | undefined"
33520
- },
33521
- "description": "The logical operator joining conditions in this group ('and' or 'or').",
33522
- "attribute": "condition-operator",
33523
- "reflects": true
34680
+ "name": "_clearDropIndicator",
34681
+ "privacy": "private",
34682
+ "readonly": true,
34683
+ "inheritedFrom": {
34684
+ "name": "CbGroupBase",
34685
+ "module": "src/condition-builder/cb-group-base.ts"
34686
+ }
33524
34687
  },
33525
34688
  {
33526
- "kind": "field",
33527
- "name": "fieldName",
33528
- "type": {
33529
- "text": "string"
33530
- },
33531
- "default": "''",
33532
- "description": "The field name for the compound expression.",
33533
- "attribute": "field-name"
34689
+ "kind": "method",
34690
+ "name": "_onDragOver",
34691
+ "privacy": "private",
34692
+ "parameters": [
34693
+ {
34694
+ "name": "event",
34695
+ "type": {
34696
+ "text": "DragEvent"
34697
+ }
34698
+ }
34699
+ ],
34700
+ "inheritedFrom": {
34701
+ "name": "CbGroupBase",
34702
+ "module": "src/condition-builder/cb-group-base.ts"
34703
+ }
33534
34704
  },
33535
34705
  {
33536
- "kind": "field",
33537
- "name": "fieldLabel",
33538
- "type": {
33539
- "text": "string"
33540
- },
33541
- "default": "''",
33542
- "description": "The display label for the field.",
33543
- "attribute": "field-label"
34706
+ "kind": "method",
34707
+ "name": "_onDragLeave",
34708
+ "privacy": "private",
34709
+ "parameters": [
34710
+ {
34711
+ "name": "event",
34712
+ "type": {
34713
+ "text": "DragEvent"
34714
+ }
34715
+ }
34716
+ ],
34717
+ "inheritedFrom": {
34718
+ "name": "CbGroupBase",
34719
+ "module": "src/condition-builder/cb-group-base.ts"
34720
+ }
33544
34721
  },
33545
34722
  {
33546
34723
  "kind": "method",
33547
- "name": "__adjustSlotEndPadding",
33548
- "privacy": "private"
34724
+ "name": "_onDrop",
34725
+ "privacy": "private",
34726
+ "parameters": [
34727
+ {
34728
+ "name": "event",
34729
+ "type": {
34730
+ "text": "DragEvent"
34731
+ }
34732
+ }
34733
+ ],
34734
+ "inheritedFrom": {
34735
+ "name": "CbGroupBase",
34736
+ "module": "src/condition-builder/cb-group-base.ts"
34737
+ }
33549
34738
  },
33550
34739
  {
33551
34740
  "kind": "method",
33552
- "name": "__renderOperatorDivider",
33553
- "privacy": "private"
34741
+ "name": "_renderConnector",
34742
+ "privacy": "private",
34743
+ "inheritedFrom": {
34744
+ "name": "CbGroupBase",
34745
+ "module": "src/condition-builder/cb-group-base.ts"
34746
+ }
34747
+ },
34748
+ {
34749
+ "kind": "method",
34750
+ "name": "_renderOperatorMenu",
34751
+ "privacy": "private",
34752
+ "inheritedFrom": {
34753
+ "name": "CbGroupBase",
34754
+ "module": "src/condition-builder/cb-group-base.ts"
34755
+ }
33554
34756
  }
33555
34757
  ],
33556
- "attributes": [
34758
+ "events": [
33557
34759
  {
33558
- "name": "condition-operator",
34760
+ "name": "add-rule",
33559
34761
  "type": {
33560
- "text": "'and' | 'or' | undefined"
34762
+ "text": "CustomEvent<{group: HTMLElement}>"
33561
34763
  },
33562
- "description": "The logical operator joining conditions in this group ('and' or 'or').",
33563
- "fieldName": "conditionOperator"
34764
+ "description": "Dispatched when the default \"Add condition\" link is clicked."
33564
34765
  },
33565
34766
  {
33566
- "name": "field-name",
34767
+ "name": "operator-change",
33567
34768
  "type": {
33568
- "text": "string"
34769
+ "text": "CustomEvent"
33569
34770
  },
33570
- "default": "''",
33571
- "description": "The field name for the compound expression.",
33572
- "fieldName": "fieldName"
34771
+ "description": "Dispatched when the user picks a different operator.",
34772
+ "inheritedFrom": {
34773
+ "name": "CbGroupBase",
34774
+ "module": "src/condition-builder/cb-group-base.ts"
34775
+ }
33573
34776
  },
33574
34777
  {
33575
- "name": "field-label",
33576
34778
  "type": {
33577
- "text": "string"
34779
+ "text": "CustomEvent<{rule: CbRule, from: HTMLElement | null, to: HTMLElement, index: number}>"
33578
34780
  },
33579
- "default": "''",
33580
- "description": "The display label for the field.",
33581
- "fieldName": "fieldLabel"
34781
+ "description": "Dispatched before a rule is moved into this group. Cancelable: unless prevented, the group moves the rule.",
34782
+ "name": "rule-move"
33582
34783
  }
33583
34784
  ],
33584
34785
  "superclass": {
33585
- "name": "LitElement",
33586
- "package": "lit"
34786
+ "name": "CbGroupBase",
34787
+ "module": "/src/condition-builder/cb-group-base.js"
33587
34788
  },
33588
- "tagName": "wc-cb-compound-expression",
34789
+ "tagName": "wc-cb-group",
33589
34790
  "customElement": true,
33590
- "summary": "A compound expression group in a condition builder that displays a field label, an optional condition operator divider, and slots for child expressions.",
34791
+ "summary": "A bordered, nested group of rules in a condition builder, joined by its own And/Or operator.",
33591
34792
  "rawTag": {
33592
- "name": "cb-compound-expression",
34793
+ "name": "cb-group",
33593
34794
  "description": ""
33594
- }
33595
- }
33596
- ],
33597
- "exports": [
33598
- {
33599
- "kind": "js",
33600
- "name": "CbCompoundExpression",
33601
- "declaration": {
33602
- "name": "CbCompoundExpression",
33603
- "module": "src/condition-builder/cb-compound-expression.ts"
33604
- }
33605
- }
33606
- ]
33607
- },
33608
- {
33609
- "kind": "javascript-module",
33610
- "path": "src/condition-builder/cb-expression.ts",
33611
- "declarations": [
33612
- {
33613
- "kind": "class",
33614
- "description": "",
33615
- "name": "CbExpression",
33616
- "members": [
33617
- {
33618
- "kind": "field",
33619
- "name": "operators",
33620
- "type": {
33621
- "text": "{ label: string; value: string; icon?: string }[]"
33622
- },
33623
- "default": "[]",
33624
- "description": "The list of operator options to display in the operator select.\nEach item should have at least `label` and `value` properties.",
33625
- "attribute": "operators"
33626
- },
33627
- {
33628
- "kind": "field",
33629
- "name": "operatorValue",
33630
- "type": {
33631
- "text": "string"
33632
- },
33633
- "default": "''",
33634
- "description": "The currently selected operator value.",
33635
- "attribute": "operator-value"
33636
- }
33637
- ],
34795
+ },
33638
34796
  "attributes": [
33639
34797
  {
33640
- "name": "operators",
34798
+ "name": "operator",
33641
34799
  "type": {
33642
- "text": "{ label: string; value: string; icon?: string }[]"
34800
+ "text": "CbOperator"
33643
34801
  },
33644
- "default": "[]",
33645
- "description": "The list of operator options to display in the operator select.\nEach item should have at least `label` and `value` properties.",
33646
- "fieldName": "operators"
33647
- },
33648
- {
33649
- "name": "operator-value",
33650
- "type": {
33651
- "text": "string"
34802
+ "default": "'and'",
34803
+ "description": "The logical operator joining the rules and groups in this group.",
34804
+ "fieldName": "operator",
34805
+ "expandedType": {
34806
+ "text": "'and' | 'or'"
33652
34807
  },
33653
- "default": "''",
33654
- "description": "The currently selected operator value.",
33655
- "fieldName": "operatorValue"
34808
+ "inheritedFrom": {
34809
+ "name": "CbGroupBase",
34810
+ "module": "src/condition-builder/cb-group-base.ts"
34811
+ }
33656
34812
  }
33657
- ],
33658
- "superclass": {
33659
- "name": "LitElement",
33660
- "package": "lit"
33661
- },
33662
- "tagName": "wc-cb-expression",
33663
- "customElement": true,
33664
- "summary": "An expression row within a condition builder, containing an operator select and a slot for value inputs.",
33665
- "rawTag": {
33666
- "name": "cb-expression",
33667
- "description": ""
33668
- }
34813
+ ]
33669
34814
  }
33670
34815
  ],
33671
34816
  "exports": [
33672
34817
  {
33673
34818
  "kind": "js",
33674
- "name": "CbExpression",
34819
+ "name": "CbGroup",
33675
34820
  "declaration": {
33676
- "name": "CbExpression",
33677
- "module": "src/condition-builder/cb-expression.ts"
34821
+ "name": "CbGroup",
34822
+ "module": "src/condition-builder/cb-group.ts"
33678
34823
  }
33679
34824
  }
33680
34825
  ]
@@ -33687,6 +34832,16 @@
33687
34832
  "kind": "class",
33688
34833
  "description": "",
33689
34834
  "name": "CbDivider",
34835
+ "cssProperties": [
34836
+ {
34837
+ "description": "Color of the divider line.",
34838
+ "name": "--cb-divider-line-color"
34839
+ },
34840
+ {
34841
+ "description": "Length of the connecting arms drawn by `connect-start` and `connect-end`.",
34842
+ "name": "--cb-divider-arm-length"
34843
+ }
34844
+ ],
33690
34845
  "members": [
33691
34846
  {
33692
34847
  "kind": "field",
@@ -33757,7 +34912,7 @@
33757
34912
  },
33758
34913
  "tagName": "wc-cb-divider",
33759
34914
  "customElement": true,
33760
- "summary": "A divider line used within a condition builder to visually connect expressions with operator tags.",
34915
+ "summary": "A divider line used within a condition builder to visually connect rules with an operator.",
33761
34916
  "rawTag": {
33762
34917
  "name": "cb-divider",
33763
34918
  "description": ""
@@ -33790,34 +34945,50 @@
33790
34945
  },
33791
34946
  {
33792
34947
  "kind": "js",
33793
- "name": "CbPredicate",
34948
+ "name": "CbGroup",
33794
34949
  "declaration": {
33795
- "name": "CbPredicate",
33796
- "module": "./cb-predicate.js"
34950
+ "name": "CbGroup",
34951
+ "module": "./cb-group.js"
33797
34952
  }
33798
34953
  },
33799
34954
  {
33800
34955
  "kind": "js",
33801
- "name": "CbCompoundExpression",
34956
+ "name": "CbRule",
33802
34957
  "declaration": {
33803
- "name": "CbCompoundExpression",
33804
- "module": "./cb-compound-expression.js"
34958
+ "name": "CbRule",
34959
+ "module": "./cb-rule.js"
33805
34960
  }
33806
34961
  },
33807
34962
  {
33808
34963
  "kind": "js",
33809
- "name": "CbExpression",
34964
+ "name": "CbDivider",
33810
34965
  "declaration": {
33811
- "name": "CbExpression",
33812
- "module": "./cb-expression.js"
34966
+ "name": "CbDivider",
34967
+ "module": "./cb-divider.js"
33813
34968
  }
33814
34969
  },
33815
34970
  {
33816
34971
  "kind": "js",
33817
- "name": "CbDivider",
34972
+ "name": "CbOperator",
33818
34973
  "declaration": {
33819
- "name": "CbDivider",
33820
- "module": "./cb-divider.js"
34974
+ "name": "CbOperator",
34975
+ "module": "./cb-types.js"
34976
+ }
34977
+ },
34978
+ {
34979
+ "kind": "js",
34980
+ "name": "CbRuleMoveDetail",
34981
+ "declaration": {
34982
+ "name": "CbRuleMoveDetail",
34983
+ "module": "./cb-types.js"
34984
+ }
34985
+ },
34986
+ {
34987
+ "kind": "js",
34988
+ "name": "CbRuleRemoveDetail",
34989
+ "declaration": {
34990
+ "name": "CbRuleRemoveDetail",
34991
+ "module": "./cb-types.js"
33821
34992
  }
33822
34993
  }
33823
34994
  ]
@@ -34669,33 +35840,49 @@
34669
35840
  },
34670
35841
  {
34671
35842
  "kind": "js",
34672
- "name": "CbPredicate",
35843
+ "name": "CbGroup",
34673
35844
  "declaration": {
34674
- "name": "CbPredicate",
35845
+ "name": "CbGroup",
34675
35846
  "module": "./condition-builder/index.js"
34676
35847
  }
34677
35848
  },
34678
35849
  {
34679
35850
  "kind": "js",
34680
- "name": "CbCompoundExpression",
35851
+ "name": "CbRule",
34681
35852
  "declaration": {
34682
- "name": "CbCompoundExpression",
35853
+ "name": "CbRule",
34683
35854
  "module": "./condition-builder/index.js"
34684
35855
  }
34685
35856
  },
34686
35857
  {
34687
35858
  "kind": "js",
34688
- "name": "CbExpression",
35859
+ "name": "CbDivider",
34689
35860
  "declaration": {
34690
- "name": "CbExpression",
35861
+ "name": "CbDivider",
34691
35862
  "module": "./condition-builder/index.js"
34692
35863
  }
34693
35864
  },
34694
35865
  {
34695
35866
  "kind": "js",
34696
- "name": "CbDivider",
35867
+ "name": "CbOperator",
34697
35868
  "declaration": {
34698
- "name": "CbDivider",
35869
+ "name": "CbOperator",
35870
+ "module": "./condition-builder/index.js"
35871
+ }
35872
+ },
35873
+ {
35874
+ "kind": "js",
35875
+ "name": "CbRuleMoveDetail",
35876
+ "declaration": {
35877
+ "name": "CbRuleMoveDetail",
35878
+ "module": "./condition-builder/index.js"
35879
+ }
35880
+ },
35881
+ {
35882
+ "kind": "js",
35883
+ "name": "CbRuleRemoveDetail",
35884
+ "declaration": {
35885
+ "name": "CbRuleRemoveDetail",
34699
35886
  "module": "./condition-builder/index.js"
34700
35887
  }
34701
35888
  }