@mintplayer/web-components 3.0.0 → 3.2.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/a11y/index.mjs +1 -1
- package/a11y/src/focus-restore-controller.d.ts +18 -0
- package/a11y/src/host-aria.d.ts +2 -2
- package/a11y/src/index.d.ts +5 -8
- package/a11y/src/roving-focus.d.ts +5 -28
- package/accordion/index.mjs +58 -109
- package/accordion/src/components/mp-accordion.d.ts +13 -25
- package/badge/src/styles/badge.styles.d.ts +2 -0
- package/calendar/index.mjs +104 -1
- package/calendar/src/generated/calendar.view.generated.d.ts +8 -0
- package/calendar/src/generated/index.d.ts +1 -0
- package/calendar/src/generated/mp-calendar.generated.d.ts +70 -0
- package/calendar/src/index.d.ts +2 -1
- package/card/index.mjs +14 -51
- package/card/src/index.d.ts +2 -3
- package/card/src/mp-card.element.d.ts +15 -29
- package/carousel/index.mjs +169 -434
- package/carousel/src/generated/carousel-item.view.generated.d.ts +10 -0
- package/carousel/src/generated/carousel.view.generated.d.ts +10 -0
- package/carousel/src/generated/index.d.ts +2 -0
- package/carousel/src/generated/mp-carousel-item.generated.d.ts +20 -0
- package/carousel/src/generated/mp-carousel.generated.d.ts +110 -0
- package/carousel/src/index.d.ts +2 -3
- package/charts/hierarchy/index.mjs +252 -871
- package/charts/hierarchy/src/generated/hierarchy-chart.view.generated.d.ts +8 -0
- package/charts/hierarchy/src/generated/index.d.ts +1 -0
- package/charts/hierarchy/src/generated/mp-hierarchy-chart.generated.d.ts +254 -0
- package/charts/hierarchy/src/index.d.ts +2 -2
- package/charts/sparkline/index.mjs +30 -44
- package/charts/sparkline/src/components/mp-sparkline.d.ts +0 -1
- package/charts/trend/index.mjs +128 -320
- package/charts/trend/src/generated/index.d.ts +1 -0
- package/charts/trend/src/generated/mp-trend-chart.generated.d.ts +109 -0
- package/charts/trend/src/generated/trend-chart.view.generated.d.ts +8 -0
- package/charts/trend/src/index.d.ts +2 -2
- package/checkbox/index.mjs +276 -1
- package/chunks/a11y-CXIVMaQ_.mjs +287 -0
- package/chunks/datatable-Ce-UT16z.mjs +442 -0
- package/chunks/datetime-picker-BT6lb4qw.mjs +203 -0
- package/chunks/radio-fSMWIPFk.mjs +150 -0
- package/chunks/splitter-EuJmtwjW.mjs +120 -0
- package/chunks/{toggle-button-H1Ty5nnF.mjs → toggle-button-DWLu9iCm.mjs} +53 -77
- package/chunks/treeview-BFyPrpxn.mjs +118 -0
- package/code-snippet/index.mjs +117 -484
- package/code-snippet/src/generated/code-snippet.view.generated.d.ts +8 -0
- package/code-snippet/src/generated/index.d.ts +1 -0
- package/code-snippet/src/generated/mp-code-snippet.generated.d.ts +104 -0
- package/code-snippet/src/index.d.ts +2 -3
- package/custom-elements.json +16248 -59467
- package/datatable/index.mjs +1 -1
- package/datatable/src/generated/datatable.view.generated.d.ts +43 -0
- package/datatable/src/generated/index.d.ts +1 -0
- package/datatable/src/generated/mp-datatable.generated.d.ts +271 -0
- package/datatable/src/index.d.ts +3 -8
- package/datepicker/index.mjs +119 -141
- package/datepicker/src/generated/datepicker.view.generated.d.ts +8 -0
- package/datepicker/src/generated/index.d.ts +1 -0
- package/datepicker/src/generated/mp-datepicker.generated.d.ts +131 -0
- package/datepicker/src/index.d.ts +3 -1
- package/datetime-picker/index.mjs +1 -1
- package/datetime-picker/src/generated/datetime-picker.view.generated.d.ts +8 -0
- package/datetime-picker/src/generated/index.d.ts +1 -0
- package/datetime-picker/src/generated/mp-datetime-picker.generated.d.ts +158 -0
- package/datetime-picker/src/index.d.ts +2 -1
- package/dock/index.mjs +137 -1906
- package/dock/src/generated/dock-manager.view.generated.d.ts +15 -0
- package/dock/src/generated/dock-node.view.generated.d.ts +8 -0
- package/dock/src/generated/index.d.ts +1 -0
- package/dock/src/generated/mp-dock-manager.generated.d.ts +46 -0
- package/dock/src/index.d.ts +3 -2
- package/dropdown-menu/index.mjs +31 -147
- package/dropdown-menu/src/components/mp-dropdown-menu.d.ts +35 -46
- package/dropdown-menu/src/index.d.ts +1 -2
- package/file-manager/index.mjs +188 -903
- package/file-manager/src/generated/file-manager.view.generated.d.ts +8 -0
- package/file-manager/src/generated/index.d.ts +1 -0
- package/file-manager/src/generated/mp-file-manager.generated.d.ts +125 -0
- package/file-manager/src/index.d.ts +3 -5
- package/input-group/index.mjs +39 -1
- package/input-group/src/index.d.ts +1 -1
- package/input-group/src/mp-input-group.d.ts +29 -0
- package/machine/index.mjs +219 -9
- package/machine/src/content-query.d.ts +21 -0
- package/machine/src/core-controller.d.ts +27 -0
- package/machine/src/host-props.d.ts +87 -0
- package/machine/src/index.d.ts +4 -0
- package/machine/src/props-directive.d.ts +1 -1
- package/machine/src/teleport-directive.d.ts +20 -0
- package/multi-range/index.mjs +73 -230
- package/multi-range/src/generated/index.d.ts +1 -0
- package/multi-range/src/generated/mp-multi-range.generated.d.ts +102 -0
- package/multi-range/src/generated/multi-range.view.generated.d.ts +8 -0
- package/multi-range/src/index.d.ts +2 -2
- package/navbar/index.mjs +249 -236
- package/navbar/src/generated/index.d.ts +4 -0
- package/navbar/src/generated/mp-navbar-dropdown.generated.d.ts +44 -0
- package/navbar/src/generated/mp-navbar-item.generated.d.ts +40 -0
- package/navbar/src/generated/mp-navbar-nav.generated.d.ts +31 -0
- package/navbar/src/generated/mp-navbar.generated.d.ts +81 -0
- package/navbar/src/generated/navbar-dropdown.view.generated.d.ts +14 -0
- package/navbar/src/generated/navbar-item.view.generated.d.ts +10 -0
- package/navbar/src/generated/navbar-nav.view.generated.d.ts +10 -0
- package/navbar/src/generated/navbar.view.generated.d.ts +13 -0
- package/navbar/src/index.d.ts +2 -3
- package/otp-input/index.mjs +96 -236
- package/otp-input/src/generated/index.d.ts +1 -0
- package/otp-input/src/generated/mp-otp-input.generated.d.ts +113 -0
- package/otp-input/src/generated/otp-input.view.generated.d.ts +8 -0
- package/otp-input/src/index.d.ts +2 -4
- package/package.json +6 -37
- package/pagination/index.mjs +149 -1
- package/pagination/src/components/mp-pagination.d.ts +7 -45
- package/phone-input/index.mjs +151 -408
- package/phone-input/src/generated/index.d.ts +1 -0
- package/phone-input/src/generated/mp-phone-input.generated.d.ts +155 -0
- package/phone-input/src/generated/phone-input.view.generated.d.ts +8 -0
- package/phone-input/src/index.d.ts +2 -1
- package/query-builder/index.mjs +232 -1705
- package/query-builder/src/generated/index.d.ts +1 -0
- package/query-builder/src/generated/mp-query-builder.generated.d.ts +111 -0
- package/query-builder/src/generated/query-builder-item.view.generated.d.ts +16 -0
- package/query-builder/src/generated/query-builder.view.generated.d.ts +15 -0
- package/query-builder/src/index.d.ts +3 -27
- package/radio/index.mjs +1 -1
- package/radio/src/components/mp-radio.d.ts +38 -76
- package/radio-group/index.mjs +36 -99
- package/radio-group/src/components/mp-radio-group.d.ts +19 -32
- package/ribbon/index.mjs +1423 -2664
- package/ribbon/src/generated/index.d.ts +18 -0
- package/ribbon/src/generated/mp-quick-access-toolbar.generated.d.ts +31 -0
- package/ribbon/src/generated/mp-ribbon-button.generated.d.ts +83 -0
- package/ribbon/src/generated/mp-ribbon-checkbox.generated.d.ts +85 -0
- package/ribbon/src/generated/mp-ribbon-color-picker.generated.d.ts +85 -0
- package/ribbon/src/generated/mp-ribbon-combobox.generated.d.ts +89 -0
- package/ribbon/src/generated/mp-ribbon-contextual-tab-set.generated.d.ts +49 -0
- package/ribbon/src/generated/mp-ribbon-dropdown-button.generated.d.ts +88 -0
- package/ribbon/src/generated/mp-ribbon-gallery-item.generated.d.ts +63 -0
- package/ribbon/src/generated/mp-ribbon-gallery.generated.d.ts +91 -0
- package/ribbon/src/generated/mp-ribbon-group-button.generated.d.ts +90 -0
- package/ribbon/src/generated/mp-ribbon-group.generated.d.ts +85 -0
- package/ribbon/src/generated/mp-ribbon-menu-item.generated.d.ts +71 -0
- package/ribbon/src/generated/mp-ribbon-menu-separator.generated.d.ts +13 -0
- package/ribbon/src/generated/mp-ribbon-split-button.generated.d.ts +88 -0
- package/ribbon/src/generated/mp-ribbon-tab.generated.d.ts +61 -0
- package/ribbon/src/generated/mp-ribbon-template-item.generated.d.ts +30 -0
- package/ribbon/src/generated/mp-ribbon-toggle-button.generated.d.ts +91 -0
- package/ribbon/src/generated/mp-ribbon.generated.d.ts +98 -0
- package/ribbon/src/generated/quick-access-toolbar.view.generated.d.ts +10 -0
- package/ribbon/src/generated/ribbon-button.view.generated.d.ts +10 -0
- package/ribbon/src/generated/ribbon-check-box.view.generated.d.ts +8 -0
- package/ribbon/src/generated/ribbon-color-picker.view.generated.d.ts +8 -0
- package/ribbon/src/generated/ribbon-combo-box.view.generated.d.ts +9 -0
- package/ribbon/src/generated/ribbon-contextual-tab-set.view.generated.d.ts +10 -0
- package/ribbon/src/generated/ribbon-dropdown-button.view.generated.d.ts +11 -0
- package/ribbon/src/generated/ribbon-gallery-item.view.generated.d.ts +10 -0
- package/ribbon/src/generated/ribbon-gallery.view.generated.d.ts +11 -0
- package/ribbon/src/generated/ribbon-group-button.view.generated.d.ts +9 -0
- package/ribbon/src/generated/ribbon-group.view.generated.d.ts +10 -0
- package/ribbon/src/generated/ribbon-menu-item.view.generated.d.ts +10 -0
- package/ribbon/src/generated/ribbon-menu-separator.view.generated.d.ts +8 -0
- package/ribbon/src/generated/ribbon-split-button.view.generated.d.ts +11 -0
- package/ribbon/src/generated/ribbon-tab.view.generated.d.ts +10 -0
- package/ribbon/src/generated/ribbon-template-item.view.generated.d.ts +10 -0
- package/ribbon/src/generated/ribbon-toggle-button.view.generated.d.ts +10 -0
- package/ribbon/src/generated/ribbon.view.generated.d.ts +11 -0
- package/ribbon/src/index.d.ts +3 -10
- package/scheduler/index.mjs +489 -3605
- package/scheduler/src/generated/index.d.ts +1 -0
- package/scheduler/src/generated/mp-scheduler.generated.d.ts +128 -0
- package/scheduler/src/generated/sched-editor.view.generated.d.ts +8 -0
- package/scheduler/src/generated/sched-month.view.generated.d.ts +8 -0
- package/scheduler/src/generated/sched-popover-event.view.generated.d.ts +8 -0
- package/scheduler/src/generated/sched-popover.view.generated.d.ts +8 -0
- package/scheduler/src/generated/sched-row-panel.view.generated.d.ts +8 -0
- package/scheduler/src/generated/sched-time-grid.view.generated.d.ts +8 -0
- package/scheduler/src/generated/sched-timeline.view.generated.d.ts +8 -0
- package/scheduler/src/generated/sched-year.view.generated.d.ts +8 -0
- package/scheduler/src/generated/scheduler.view.generated.d.ts +8 -0
- package/scheduler/src/index.d.ts +4 -6
- package/select/index.mjs +165 -1
- package/select/src/generated/index.d.ts +1 -0
- package/select/src/generated/mp-select.generated.d.ts +130 -0
- package/select/src/generated/select.view.generated.d.ts +16 -0
- package/select/src/index.d.ts +2 -2
- package/shell/index.mjs +90 -100
- package/shell/src/components/mp-shell.d.ts +47 -38
- package/shell/src/index.d.ts +1 -2
- package/signature-pad/index.mjs +80 -171
- package/signature-pad/src/generated/index.d.ts +1 -0
- package/signature-pad/src/generated/mp-signature-pad.generated.d.ts +107 -0
- package/signature-pad/src/generated/signature-pad.view.generated.d.ts +8 -0
- package/signature-pad/src/index.d.ts +2 -2
- package/splitter/index.mjs +1 -1
- package/splitter/src/generated/index.d.ts +2 -0
- package/splitter/src/generated/mp-splitter-panel.generated.d.ts +20 -0
- package/splitter/src/generated/mp-splitter.generated.d.ts +62 -0
- package/splitter/src/generated/splitter-panel.view.generated.d.ts +10 -0
- package/splitter/src/generated/splitter.view.generated.d.ts +10 -0
- package/splitter/src/index.d.ts +2 -11
- package/tab-control/index.mjs +202 -1
- package/theming/color-mode.css +7 -6
- package/theming/index.mjs +36 -231
- package/theming/src/generated/index.d.ts +1 -0
- package/theming/src/generated/mp-theme-toggle.generated.d.ts +26 -0
- package/theming/src/generated/theme-toggle.view.generated.d.ts +8 -0
- package/theming/src/index.d.ts +2 -5
- package/timeline/index.mjs +282 -498
- package/timeline/src/generated/index.d.ts +2 -0
- package/timeline/src/generated/mp-timeline-item.generated.d.ts +105 -0
- package/timeline/src/generated/mp-timeline.generated.d.ts +123 -0
- package/timeline/src/generated/timeline-item.view.generated.d.ts +14 -0
- package/timeline/src/generated/timeline.view.generated.d.ts +58 -0
- package/timeline/src/index.d.ts +3 -5
- package/timepicker/index.mjs +202 -1
- package/timepicker/src/generated/index.d.ts +2 -0
- package/timepicker/src/generated/mp-time-list.generated.d.ts +69 -0
- package/timepicker/src/generated/mp-timepicker.generated.d.ts +123 -0
- package/timepicker/src/generated/time-list.view.generated.d.ts +8 -0
- package/timepicker/src/generated/timepicker.view.generated.d.ts +8 -0
- package/timepicker/src/index.d.ts +2 -2
- package/toggle-button/index.mjs +1 -1
- package/toggle-button/src/components/mp-toggle-button.d.ts +28 -33
- package/tree-select/index.mjs +266 -535
- package/tree-select/src/generated/index.d.ts +1 -0
- package/tree-select/src/generated/mp-tree-select.generated.d.ts +158 -0
- package/tree-select/src/generated/tree-select.view.generated.d.ts +36 -0
- package/tree-select/src/index.d.ts +3 -6
- package/treeview/index.mjs +1 -1
- package/treeview/src/generated/index.d.ts +1 -0
- package/treeview/src/generated/mp-treeview.generated.d.ts +82 -0
- package/treeview/src/generated/treeview.view.generated.d.ts +18 -0
- package/treeview/src/index.d.ts +2 -4
- package/typeahead/index.mjs +37 -29
- package/typeahead/src/components/mp-typeahead.d.ts +1 -0
- package/a11y/src/dismiss-stack.d.ts +0 -25
- package/a11y/src/focus-restore.d.ts +0 -116
- package/a11y/src/focus-trap.d.ts +0 -69
- package/a11y/src/inert-regions.d.ts +0 -52
- package/calendar/src/mp-calendar.element.d.ts +0 -124
- package/calendar/src/mp-calendar.element.template.d.ts +0 -2
- package/card/src/card-classes.d.ts +0 -33
- package/card/src/types/card-header-nav-style.d.ts +0 -1
- package/card/src/types/card-image-position.d.ts +0 -1
- package/carousel/src/components/index.d.ts +0 -1
- package/carousel/src/components/mp-carousel.d.ts +0 -58
- package/carousel/src/styles/carousel.styles.d.ts +0 -2
- package/carousel/src/styles/index.d.ts +0 -1
- package/carousel/src/types/carousel.d.ts +0 -10
- package/carousel/src/types/index.d.ts +0 -1
- package/charts/core/index.d.ts +0 -1
- package/charts/core/index.mjs +0 -503
- package/charts/core/src/arc.d.ts +0 -27
- package/charts/core/src/attributes.d.ts +0 -18
- package/charts/core/src/color.d.ts +0 -30
- package/charts/core/src/hierarchy-layout.d.ts +0 -68
- package/charts/core/src/index.d.ts +0 -8
- package/charts/core/src/label-fit.d.ts +0 -31
- package/charts/core/src/scale.d.ts +0 -21
- package/charts/core/src/types.d.ts +0 -52
- package/charts/core/src/view-window.d.ts +0 -46
- package/charts/hierarchy/src/components/index.d.ts +0 -1
- package/charts/hierarchy/src/components/mp-hierarchy-chart.d.ts +0 -320
- package/charts/hierarchy/src/styles/hierarchy-chart.styles.d.ts +0 -2
- package/charts/hierarchy/src/styles/index.d.ts +0 -1
- package/charts/trend/src/components/index.d.ts +0 -1
- package/charts/trend/src/components/mp-trend-chart.d.ts +0 -104
- package/charts/trend/src/styles/index.d.ts +0 -1
- package/charts/trend/src/styles/trend-chart.styles.d.ts +0 -2
- package/chunks/a11y-C6aX-lsZ.mjs +0 -532
- package/chunks/ac-aJXc45zA.mjs +0 -4
- package/chunks/ad-BTMXfwNh.mjs +0 -4
- package/chunks/ae-BrzD6osX.mjs +0 -4
- package/chunks/af-3UZ2_zTj.mjs +0 -4
- package/chunks/ag-KRBsuK2a.mjs +0 -4
- package/chunks/ai-BswLJAYs.mjs +0 -4
- package/chunks/al-wkJnSVxF.mjs +0 -4
- package/chunks/all-flags.generated-DtfbMnSZ.mjs +0 -249
- package/chunks/am-CVqI42UW.mjs +0 -4
- package/chunks/ao-85WVAZW6.mjs +0 -4
- package/chunks/ar-DJGfKADQ.mjs +0 -4
- package/chunks/as-BA11KqFF.mjs +0 -4
- package/chunks/at-BWbwtZ8t.mjs +0 -4
- package/chunks/au-gcOCUxgy.mjs +0 -4
- package/chunks/aw-cquGJK0_.mjs +0 -4
- package/chunks/ax-CqFz-_7-.mjs +0 -4
- package/chunks/az-CtGxDo7C.mjs +0 -4
- package/chunks/ba-Du5giA_b.mjs +0 -4
- package/chunks/bb-Bv08A_ob.mjs +0 -4
- package/chunks/bd-DNB5oj3n.mjs +0 -4
- package/chunks/be-CRVNdrRc.mjs +0 -4
- package/chunks/bf-CkLDaLFq.mjs +0 -4
- package/chunks/bg-5J0EZyQA.mjs +0 -4
- package/chunks/bh-Dm3fVyBc.mjs +0 -4
- package/chunks/bi-BpldTGS9.mjs +0 -4
- package/chunks/bj-Bn2B1hkk.mjs +0 -4
- package/chunks/bl-Dozbp4JI.mjs +0 -4
- package/chunks/bm-DMwDEJDn.mjs +0 -4
- package/chunks/bn-38iFiYIW.mjs +0 -4
- package/chunks/bo-C7Z0bS7Y.mjs +0 -4
- package/chunks/bq-Bp_dK3bp.mjs +0 -4
- package/chunks/br-C1y3qYTo.mjs +0 -4
- package/chunks/bs-DvapNTm6.mjs +0 -4
- package/chunks/bt-4BBK2CzL.mjs +0 -4
- package/chunks/bw-gFoFnfsO.mjs +0 -4
- package/chunks/by-BcXeEIqn.mjs +0 -4
- package/chunks/bz-DiNvPmet.mjs +0 -4
- package/chunks/ca-B6_-P3Ki.mjs +0 -4
- package/chunks/calendar-BufRj_ob.mjs +0 -270
- package/chunks/cc-1.generated-Bz6a4Z5J.mjs +0 -575
- package/chunks/cc-20.generated-B2Zbp_CG.mjs +0 -56
- package/chunks/cc-211.generated-ChWU4ZnK.mjs +0 -27
- package/chunks/cc-212.generated-rW7bueR8.mjs +0 -77
- package/chunks/cc-213.generated-Dk100iVd.mjs +0 -52
- package/chunks/cc-216.generated-Da9XXIxn.mjs +0 -37
- package/chunks/cc-218.generated-B9dPA_jz.mjs +0 -27
- package/chunks/cc-220.generated-BD583LXg.mjs +0 -26
- package/chunks/cc-221.generated-FnrRCGhQ.mjs +0 -41
- package/chunks/cc-222.generated-RIcsN1By.mjs +0 -30
- package/chunks/cc-223.generated-BJYOhmxL.mjs +0 -30
- package/chunks/cc-224.generated-ZVRf4s4P.mjs +0 -40
- package/chunks/cc-225.generated-B37F4h_L.mjs +0 -30
- package/chunks/cc-226.generated-DX6w8SIQ.mjs +0 -26
- package/chunks/cc-227.generated-DWvIJCqw.mjs +0 -35
- package/chunks/cc-228.generated-CYnF-A2j.mjs +0 -26
- package/chunks/cc-229.generated-BHENEfHM.mjs +0 -40
- package/chunks/cc-230.generated-CCkgyUCO.mjs +0 -53
- package/chunks/cc-231.generated-Cy_W19Ec.mjs +0 -50
- package/chunks/cc-232.generated-bZc5ux9j.mjs +0 -27
- package/chunks/cc-233.generated-DtiURqLW.mjs +0 -36
- package/chunks/cc-234.generated-ISth71Yl.mjs +0 -67
- package/chunks/cc-235.generated-PAizMnHl.mjs +0 -27
- package/chunks/cc-236.generated-ZPS5oQTo.mjs +0 -31
- package/chunks/cc-237.generated-fOpKOXN1.mjs +0 -34
- package/chunks/cc-238.generated-DLsZAArj.mjs +0 -36
- package/chunks/cc-239.generated-Dq7UEEQw.mjs +0 -26
- package/chunks/cc-240.generated-B5rtjDFe.mjs +0 -35
- package/chunks/cc-241.generated-C2tPOfsp.mjs +0 -40
- package/chunks/cc-242.generated-12ELhWHE.mjs +0 -35
- package/chunks/cc-243.generated-Co_QscFq.mjs +0 -64
- package/chunks/cc-244.generated-CHVaQJzk.mjs +0 -26
- package/chunks/cc-245.generated-Dlfots5d.mjs +0 -40
- package/chunks/cc-246.generated-ml5FnCdW.mjs +0 -26
- package/chunks/cc-247.generated-D8iUb2b4.mjs +0 -30
- package/chunks/cc-248.generated-ByNbG_tW.mjs +0 -37
- package/chunks/cc-249.generated-B1uFXVYg.mjs +0 -27
- package/chunks/cc-250.generated-Db4-CYfI.mjs +0 -44
- package/chunks/cc-251.generated-Dk9Nsbz4.mjs +0 -27
- package/chunks/cc-252.generated-DzLVy7Wj.mjs +0 -62
- package/chunks/cc-253.generated-BAAxb4Dd.mjs +0 -26
- package/chunks/cc-254.generated-CQb3622R.mjs +0 -55
- package/chunks/cc-255.generated-CkU7A9vn.mjs +0 -57
- package/chunks/cc-256.generated-CPuR1ls2.mjs +0 -46
- package/chunks/cc-257.generated-Bop3IKkH.mjs +0 -26
- package/chunks/cc-258.generated-CrhWzLYO.mjs +0 -34
- package/chunks/cc-260.generated-CM31-F_r.mjs +0 -42
- package/chunks/cc-261.generated-Cc1Yk2ga.mjs +0 -37
- package/chunks/cc-262.generated-iNq4Bsyg.mjs +0 -64
- package/chunks/cc-263.generated-BNSZQW1U.mjs +0 -100
- package/chunks/cc-264.generated-BYq3HF_4.mjs +0 -57
- package/chunks/cc-265.generated-55Al2n2g.mjs +0 -32
- package/chunks/cc-266.generated-CC24vRZU.mjs +0 -30
- package/chunks/cc-267.generated-Cy1cO0r8.mjs +0 -62
- package/chunks/cc-268.generated-CuFPqOA0.mjs +0 -40
- package/chunks/cc-269.generated-CCOchMHW.mjs +0 -31
- package/chunks/cc-27.generated-CgwGi0oo.mjs +0 -77
- package/chunks/cc-290.generated-WRbX8Uzp.mjs +0 -48
- package/chunks/cc-291.generated-CHqtf344.mjs +0 -27
- package/chunks/cc-297.generated-BNaG__hC.mjs +0 -36
- package/chunks/cc-298.generated-BXnC-JHy.mjs +0 -36
- package/chunks/cc-299.generated-B9EtLFYo.mjs +0 -36
- package/chunks/cc-30.generated-JiXqSdPm.mjs +0 -58
- package/chunks/cc-31.generated-T-PhKf6W.mjs +0 -91
- package/chunks/cc-32.generated-3jhsIH05.mjs +0 -58
- package/chunks/cc-33.generated-CKpraBu-.mjs +0 -43
- package/chunks/cc-34.generated-4ZOoUv3E.mjs +0 -41
- package/chunks/cc-350.generated-BZeZIKv3.mjs +0 -26
- package/chunks/cc-351.generated-Ca4DVFZ8.mjs +0 -41
- package/chunks/cc-352.generated-C5JanZQk.mjs +0 -96
- package/chunks/cc-353.generated-BgLwqLra.mjs +0 -98
- package/chunks/cc-354.generated-BgTnQRlC.mjs +0 -41
- package/chunks/cc-355.generated-DGYepZoL.mjs +0 -69
- package/chunks/cc-356.generated-BsVo-WVa.mjs +0 -36
- package/chunks/cc-357.generated-b5F9kBHS.mjs +0 -37
- package/chunks/cc-358.generated-sIEQmG3a.mjs +0 -136
- package/chunks/cc-359.generated-Djbt0V64.mjs +0 -92
- package/chunks/cc-36.generated-GYQWm_pU.mjs +0 -51
- package/chunks/cc-370.generated-CRvXymMq.mjs +0 -62
- package/chunks/cc-371.generated-BR2fz2JU.mjs +0 -37
- package/chunks/cc-372.generated-DNvOnI-D.mjs +0 -53
- package/chunks/cc-373.generated-CIFhOyHu.mjs +0 -52
- package/chunks/cc-374.generated-C3JO10F2.mjs +0 -58
- package/chunks/cc-375.generated-CdSXpaA5.mjs +0 -77
- package/chunks/cc-376.generated-JuZXGLxH.mjs +0 -47
- package/chunks/cc-377.generated-D6OxfwEg.mjs +0 -44
- package/chunks/cc-378.generated-1P6hL48M.mjs +0 -40
- package/chunks/cc-380.generated-DgzzIFUj.mjs +0 -58
- package/chunks/cc-381.generated-D_ItFJFw.mjs +0 -65
- package/chunks/cc-382.generated-DuYOeAO_.mjs +0 -37
- package/chunks/cc-383.generated-R6R6iExY.mjs +0 -58
- package/chunks/cc-385.generated-CsDeMCh1.mjs +0 -77
- package/chunks/cc-386.generated-CprplXRX.mjs +0 -67
- package/chunks/cc-387.generated-7j6TIOUR.mjs +0 -52
- package/chunks/cc-389.generated-BoKyJU1O.mjs +0 -52
- package/chunks/cc-39.generated-CD2WXEy7.mjs +0 -144
- package/chunks/cc-40.generated-BXVz6ZEf.mjs +0 -60
- package/chunks/cc-41.generated-Blq73F9R.mjs +0 -52
- package/chunks/cc-420.generated-CGBM0u2Z.mjs +0 -59
- package/chunks/cc-421.generated-TZXTbujK.mjs +0 -68
- package/chunks/cc-423.generated-0jWk7aQw.mjs +0 -51
- package/chunks/cc-43.generated-CWC77-QL.mjs +0 -124
- package/chunks/cc-44.generated-BjNEEm72.mjs +0 -185
- package/chunks/cc-45.generated-D2fAEViK.mjs +0 -31
- package/chunks/cc-46.generated-Cc7ziKiQ.mjs +0 -151
- package/chunks/cc-47.generated-BfsXOmTn.mjs +0 -68
- package/chunks/cc-48.generated-qLLhGlDM.mjs +0 -80
- package/chunks/cc-49.generated-V5s3zaiK.mjs +0 -207
- package/chunks/cc-500.generated-BthGq2Lz.mjs +0 -22
- package/chunks/cc-501.generated-D3OEBYfs.mjs +0 -34
- package/chunks/cc-502.generated-DuGMlanj.mjs +0 -35
- package/chunks/cc-503.generated-D6WQdJRe.mjs +0 -47
- package/chunks/cc-504.generated-CnaVgqYu.mjs +0 -30
- package/chunks/cc-505.generated-BymEBjCD.mjs +0 -30
- package/chunks/cc-506.generated-DECPXw0C.mjs +0 -40
- package/chunks/cc-507.generated-B3GcK3L_.mjs +0 -48
- package/chunks/cc-508.generated-Dyuwoas9.mjs +0 -45
- package/chunks/cc-509.generated-CFrvVAgw.mjs +0 -36
- package/chunks/cc-51.generated-Chb_sPYg.mjs +0 -59
- package/chunks/cc-52.generated-ByiHdoYn.mjs +0 -42
- package/chunks/cc-53.generated-DJSsiaD5.mjs +0 -63
- package/chunks/cc-54.generated-CHWQhBUJ.mjs +0 -99
- package/chunks/cc-55.generated-B1A8n_Eu.mjs +0 -62
- package/chunks/cc-56.generated-BIagT3im.mjs +0 -86
- package/chunks/cc-57.generated-BI-iKXi5.mjs +0 -56
- package/chunks/cc-58.generated-ChHB0yFM.mjs +0 -35
- package/chunks/cc-590.generated-eh5bgg8N.mjs +0 -96
- package/chunks/cc-591.generated-DtljIXWS.mjs +0 -48
- package/chunks/cc-592.generated-BFJXRJtp.mjs +0 -36
- package/chunks/cc-593.generated-BnzrDC9X.mjs +0 -57
- package/chunks/cc-594.generated-GeVqoxTf.mjs +0 -42
- package/chunks/cc-595.generated-Cb147_Es.mjs +0 -99
- package/chunks/cc-596.generated-Awrujeyi.mjs +0 -42
- package/chunks/cc-597.generated-x82tPU7m.mjs +0 -48
- package/chunks/cc-598.generated-C0CFFA9e.mjs +0 -90
- package/chunks/cc-599.generated-CBNiFVLG.mjs +0 -57
- package/chunks/cc-60.generated-BsEWXQGR.mjs +0 -72
- package/chunks/cc-61.generated-D1GBs6cI.mjs +0 -165
- package/chunks/cc-62.generated-wMxDe6Yk.mjs +0 -121
- package/chunks/cc-63.generated-CdGxow0i.mjs +0 -90
- package/chunks/cc-64.generated-RnYaXyOf.mjs +0 -88
- package/chunks/cc-65.generated-DLu3ZfUr.mjs +0 -57
- package/chunks/cc-66.generated-Bak_QXSf.mjs +0 -55
- package/chunks/cc-670.generated-C99GtcUk.mjs +0 -36
- package/chunks/cc-672.generated-CSfxhA5g.mjs +0 -30
- package/chunks/cc-673.generated-CBepp8Kp.mjs +0 -36
- package/chunks/cc-674.generated-CUruGGLX.mjs +0 -26
- package/chunks/cc-675.generated-CJAYoKiM.mjs +0 -41
- package/chunks/cc-676.generated-D0aVoKBX.mjs +0 -48
- package/chunks/cc-677.generated-CboriHtH.mjs +0 -36
- package/chunks/cc-678.generated-tV4dzsm1.mjs +0 -36
- package/chunks/cc-679.generated-r1SqDRTw.mjs +0 -35
- package/chunks/cc-680.generated-CUJSNlon.mjs +0 -26
- package/chunks/cc-681.generated-CqZqTSzv.mjs +0 -40
- package/chunks/cc-682.generated-DsTDPJJe.mjs +0 -26
- package/chunks/cc-683.generated-C46F0xza.mjs +0 -26
- package/chunks/cc-685.generated-3mzM0WBI.mjs +0 -47
- package/chunks/cc-686.generated-B7jAfSaz.mjs +0 -32
- package/chunks/cc-687.generated-DUkxCl-t.mjs +0 -31
- package/chunks/cc-688.generated-Bwg6wtz6.mjs +0 -42
- package/chunks/cc-689.generated-DIjPyQbi.mjs +0 -52
- package/chunks/cc-690.generated-BkBOgCj0.mjs +0 -27
- package/chunks/cc-691.generated-CRgqR_eS.mjs +0 -26
- package/chunks/cc-692.generated-xoIqpcZG.mjs +0 -36
- package/chunks/cc-7.generated-CVaWdxzG.mjs +0 -99
- package/chunks/cc-81.generated-BsK5UKLx.mjs +0 -100
- package/chunks/cc-82.generated-BcgfVP49.mjs +0 -96
- package/chunks/cc-84.generated-C_NDe2op.mjs +0 -81
- package/chunks/cc-850.generated-5uPEB20Q.mjs +0 -41
- package/chunks/cc-852.generated-Cmcj41zv.mjs +0 -66
- package/chunks/cc-853.generated-5Q5aYzYP.mjs +0 -34
- package/chunks/cc-855.generated-CyoP_AvI.mjs +0 -40
- package/chunks/cc-856.generated-UaGUxAVX.mjs +0 -45
- package/chunks/cc-86.generated-C76vQ-PG.mjs +0 -131
- package/chunks/cc-880.generated-DTQZvOwQ.mjs +0 -63
- package/chunks/cc-886.generated-BlEIkmSb.mjs +0 -89
- package/chunks/cc-90.generated-B6QJof50.mjs +0 -70
- package/chunks/cc-91.generated-BFtdPEFf.mjs +0 -120
- package/chunks/cc-92.generated-Dmc8JLXg.mjs +0 -84
- package/chunks/cc-93.generated-zx8cBy1Z.mjs +0 -27
- package/chunks/cc-94.generated-Blu9IgSY.mjs +0 -40
- package/chunks/cc-95.generated-DCr59wbp.mjs +0 -103
- package/chunks/cc-960.generated-D1_nf00O.mjs +0 -39
- package/chunks/cc-961.generated-DxRflmbQ.mjs +0 -42
- package/chunks/cc-962.generated-DxZQb06J.mjs +0 -58
- package/chunks/cc-963.generated-uiT34jBy.mjs +0 -34
- package/chunks/cc-964.generated-BOKCnQHJ.mjs +0 -45
- package/chunks/cc-965.generated-CxNoEz0A.mjs +0 -34
- package/chunks/cc-966.generated-DhI8Ntyw.mjs +0 -56
- package/chunks/cc-967.generated-ContxwI-.mjs +0 -36
- package/chunks/cc-968.generated-v531jzFw.mjs +0 -47
- package/chunks/cc-970.generated-ChNVoJlm.mjs +0 -55
- package/chunks/cc-971.generated-xlS_839v.mjs +0 -65
- package/chunks/cc-972.generated-C5zT9loz.mjs +0 -87
- package/chunks/cc-973.generated-GoMZ3x5A.mjs +0 -37
- package/chunks/cc-974.generated-CHoLGfhR.mjs +0 -48
- package/chunks/cc-975.generated-BILSPn9k.mjs +0 -30
- package/chunks/cc-976.generated-4w3Zjm18.mjs +0 -66
- package/chunks/cc-977.generated-QcknaTKZ.mjs +0 -48
- package/chunks/cc-98.generated-C8ajgwoF.mjs +0 -65
- package/chunks/cc-992.generated-DUtoyFJd.mjs +0 -44
- package/chunks/cc-993.generated-DA_HUZYq.mjs +0 -42
- package/chunks/cc-994.generated-Bs9TDYzb.mjs +0 -50
- package/chunks/cc-995.generated-DeCplFKG.mjs +0 -56
- package/chunks/cc-996.generated-DIoF8HI4.mjs +0 -45
- package/chunks/cc-998.generated-mB6cuCsE.mjs +0 -26
- package/chunks/cc-C0VrlA3_.mjs +0 -4
- package/chunks/cd-TfcK0f07.mjs +0 -4
- package/chunks/cf-Cr0ikDYa.mjs +0 -4
- package/chunks/cg-BeLZ5g5O.mjs +0 -4
- package/chunks/ch-cyq7xzGy.mjs +0 -4
- package/chunks/checkbox-EnxkCGiC.mjs +0 -271
- package/chunks/ci-D2pSb2Ih.mjs +0 -4
- package/chunks/ck-htfFHGea.mjs +0 -4
- package/chunks/cl-CoYa3Pmk.mjs +0 -4
- package/chunks/cm-D6uug-DA.mjs +0 -4
- package/chunks/cn-D48FvmT7.mjs +0 -4
- package/chunks/co-Dww2Azv_.mjs +0 -4
- package/chunks/color-mode-warning-BWDrpfmR.mjs +0 -11
- package/chunks/cr-T0UM2nAQ.mjs +0 -4
- package/chunks/cu-CvSN3Q4W.mjs +0 -4
- package/chunks/cv-CselBvqy.mjs +0 -4
- package/chunks/cw-DBlAOQBG.mjs +0 -4
- package/chunks/cx-CT3aGae9.mjs +0 -4
- package/chunks/cy-BgOT9gkN.mjs +0 -4
- package/chunks/cz-pyOSY6aP.mjs +0 -4
- package/chunks/datatable-CrK1ZNq-.mjs +0 -1788
- package/chunks/datetime-picker-BtroFVZZ.mjs +0 -373
- package/chunks/de-KGaNXoZN.mjs +0 -4
- package/chunks/decorate-_3lQte5d.mjs +0 -9
- package/chunks/dj-erTpydIV.mjs +0 -4
- package/chunks/dk-D1JuLNfO.mjs +0 -4
- package/chunks/dm-DCecBFF5.mjs +0 -4
- package/chunks/do-DSLfzWkU.mjs +0 -4
- package/chunks/dz-Ce9xahTz.mjs +0 -4
- package/chunks/ec-Bi76lWx3.mjs +0 -4
- package/chunks/ee-bSjXh051.mjs +0 -4
- package/chunks/eg-r6ELPNF6.mjs +0 -4
- package/chunks/eh-B9fkMRyx.mjs +0 -4
- package/chunks/er-udHBJByJ.mjs +0 -4
- package/chunks/es-Bu9WWdeR.mjs +0 -4
- package/chunks/et-CXZPC0sf.mjs +0 -4
- package/chunks/fi-dNG3mnm4.mjs +0 -4
- package/chunks/fj-DRC_-qUY.mjs +0 -4
- package/chunks/fk-J-PwBKbI.mjs +0 -4
- package/chunks/flags-BklZdqf-.mjs +0 -268
- package/chunks/fm-DdlXjhk_.mjs +0 -4
- package/chunks/fo-BF6Oan5b.mjs +0 -4
- package/chunks/form-check.styles-WIzQ8Lr8.mjs +0 -5
- package/chunks/form-control.styles-xkboF3PM.mjs +0 -5
- package/chunks/fr-m5fDKirC.mjs +0 -4
- package/chunks/ga-B4EBbkUA.mjs +0 -4
- package/chunks/gb-7vN41y_W.mjs +0 -4
- package/chunks/gd-oYxJTsCo.mjs +0 -4
- package/chunks/ge-DjFzwM58.mjs +0 -4
- package/chunks/gf-QpbaNTLf.mjs +0 -4
- package/chunks/gg-DD5U9436.mjs +0 -4
- package/chunks/gh-DwVF19eS.mjs +0 -4
- package/chunks/gi-UFWuuzET.mjs +0 -4
- package/chunks/gl-D6QboaPF.mjs +0 -4
- package/chunks/gm-DBMaPUVF.mjs +0 -4
- package/chunks/gn-CgBEf8H_.mjs +0 -4
- package/chunks/gp-CzgFkpC6.mjs +0 -4
- package/chunks/gq-Bnsg80y2.mjs +0 -4
- package/chunks/gr-BZRM9aE0.mjs +0 -4
- package/chunks/gt-BUUDyd82.mjs +0 -4
- package/chunks/gu-TRJAAUWQ.mjs +0 -4
- package/chunks/gw-D9LrzBrV.mjs +0 -4
- package/chunks/gy-DH746QP0.mjs +0 -4
- package/chunks/hk-JPHzGR1f.mjs +0 -4
- package/chunks/hn-tQE5mLlb.mjs +0 -4
- package/chunks/hr-BdLlK8MT.mjs +0 -4
- package/chunks/ht-efkMBTm5.mjs +0 -4
- package/chunks/hu-BQqGjm3B.mjs +0 -4
- package/chunks/id-DaJrUhdH.mjs +0 -4
- package/chunks/ie-BNbUpzRG.mjs +0 -4
- package/chunks/il-Cg79KHAv.mjs +0 -4
- package/chunks/im-Djx9n3WT.mjs +0 -4
- package/chunks/in-B43LtLH-.mjs +0 -4
- package/chunks/input-group-CjmHKUSw.mjs +0 -48
- package/chunks/invalid-feedback.styles-BAfKyqM0.mjs +0 -5
- package/chunks/io-BnYRzBj3.mjs +0 -4
- package/chunks/iq-DUn1QbRL.mjs +0 -4
- package/chunks/ir-DlyfLEkf.mjs +0 -4
- package/chunks/is-DQ_bn71q.mjs +0 -4
- package/chunks/it-BfPMagQk.mjs +0 -4
- package/chunks/je-BLm9fJmW.mjs +0 -4
- package/chunks/jm-CxLVl0Ry.mjs +0 -4
- package/chunks/jo-Cfupva0T.mjs +0 -4
- package/chunks/jp-iR_5eVnk.mjs +0 -4
- package/chunks/ke-QUXFhgYU.mjs +0 -4
- package/chunks/kg-C0ssUmgN.mjs +0 -4
- package/chunks/kh-9A3QNvDB.mjs +0 -4
- package/chunks/ki-bFdICXHj.mjs +0 -4
- package/chunks/km-CYuiTVlZ.mjs +0 -4
- package/chunks/kn-fqURi7WO.mjs +0 -4
- package/chunks/kp-B9J1sdkG.mjs +0 -4
- package/chunks/kr-hrrgo3DJ.mjs +0 -4
- package/chunks/kw-CsK5t1uI.mjs +0 -4
- package/chunks/ky-CIIoXV1x.mjs +0 -4
- package/chunks/kz-Q6lWH-Lp.mjs +0 -4
- package/chunks/la-BqrIQzV5.mjs +0 -4
- package/chunks/lb-f1wH5q4z.mjs +0 -4
- package/chunks/lc-DiPjKtKA.mjs +0 -4
- package/chunks/li-CC9A-Eoo.mjs +0 -4
- package/chunks/lk-DBBVyq9z.mjs +0 -4
- package/chunks/lr-CYmj0qzD.mjs +0 -4
- package/chunks/ls-5eFpOHA5.mjs +0 -4
- package/chunks/lt-DuXsTfKz.mjs +0 -4
- package/chunks/lu-l81BU1X-.mjs +0 -4
- package/chunks/lv-pBWGmb6y.mjs +0 -4
- package/chunks/ly-rQGukqgk.mjs +0 -4
- package/chunks/ma-D3s8fhJY.mjs +0 -4
- package/chunks/mc-C2UgSKD0.mjs +0 -4
- package/chunks/md-Bn-lDZyQ.mjs +0 -4
- package/chunks/me-CTM23YkQ.mjs +0 -4
- package/chunks/metadata-loaders.generated-BOHjz7Pm.mjs +0 -250
- package/chunks/mf-Dw6W2U1G.mjs +0 -4
- package/chunks/mg-BvSTuxdV.mjs +0 -4
- package/chunks/mh-DlNbre6t.mjs +0 -4
- package/chunks/mk-CMQgOxwU.mjs +0 -4
- package/chunks/ml-Dr5P0Yo_.mjs +0 -4
- package/chunks/mm-C6vWhwqu.mjs +0 -4
- package/chunks/mn-D3Xmr6k_.mjs +0 -4
- package/chunks/mo-BieTAs8C.mjs +0 -4
- package/chunks/mp-CkOXp1Ru.mjs +0 -4
- package/chunks/mq-Cjhq-UJo.mjs +0 -4
- package/chunks/mr-Dnfbj6zJ.mjs +0 -4
- package/chunks/ms-CTQctbcy.mjs +0 -4
- package/chunks/mt-CU4E0kx5.mjs +0 -4
- package/chunks/mu-D-VsOyS8.mjs +0 -4
- package/chunks/mv-BLAL7NFA.mjs +0 -4
- package/chunks/mw-v7uw9vtP.mjs +0 -4
- package/chunks/mx-eDyMiM1l.mjs +0 -4
- package/chunks/my-DZwL-5pY.mjs +0 -4
- package/chunks/mz-CUtVhMFS.mjs +0 -4
- package/chunks/na-BY29xZvs.mjs +0 -4
- package/chunks/nc-DeEXGMmA.mjs +0 -4
- package/chunks/ne-CLxU921A.mjs +0 -4
- package/chunks/nf-D_JOkQkl.mjs +0 -4
- package/chunks/ng-CR5xUr0F.mjs +0 -4
- package/chunks/ni-C15mTV4Y.mjs +0 -4
- package/chunks/nl-CLg7nWke.mjs +0 -4
- package/chunks/no-D56_k2KF.mjs +0 -4
- package/chunks/np-BAP7jy8o.mjs +0 -4
- package/chunks/nr-VKzWyaNU.mjs +0 -4
- package/chunks/nu-D3XZHNZP.mjs +0 -4
- package/chunks/nz-BdvILa2x.mjs +0 -4
- package/chunks/om-BuPCo8qp.mjs +0 -4
- package/chunks/overlay-kT0nfzL-.mjs +0 -275
- package/chunks/pa-CyYPeQbr.mjs +0 -4
- package/chunks/pagination-DgDp3v3u.mjs +0 -184
- package/chunks/pe-B-P9yq9y.mjs +0 -4
- package/chunks/pf-BEygN2Xk.mjs +0 -4
- package/chunks/pg-BbFUBN-z.mjs +0 -4
- package/chunks/ph-BwijTsiw.mjs +0 -4
- package/chunks/pk-DyS4XqKp.mjs +0 -4
- package/chunks/pl-Bs4VwV81.mjs +0 -4
- package/chunks/pm-DLEa5i47.mjs +0 -4
- package/chunks/pr-BWsOEP9w.mjs +0 -4
- package/chunks/ps-B_qECKr4.mjs +0 -4
- package/chunks/pt-C2_djybD.mjs +0 -4
- package/chunks/pw-D_NY3JPr.mjs +0 -4
- package/chunks/py-CndItMw9.mjs +0 -4
- package/chunks/qa-CD1uNFb9.mjs +0 -4
- package/chunks/radio-BO6g4B91.mjs +0 -260
- package/chunks/re-BW_tVnq3.mjs +0 -4
- package/chunks/ro-1-zfxYpt.mjs +0 -4
- package/chunks/rs-BoYWG9vg.mjs +0 -4
- package/chunks/ru-CYVEtP_y.mjs +0 -4
- package/chunks/rw-Bg3jblyd.mjs +0 -4
- package/chunks/sa-B69Q0suF.mjs +0 -4
- package/chunks/sb-BsEiWQfb.mjs +0 -4
- package/chunks/sc-DbArtz_B.mjs +0 -4
- package/chunks/scheduler-core-CoFpfrl5.mjs +0 -867
- package/chunks/sd-BBHgjmhj.mjs +0 -4
- package/chunks/se-BIv2B636.mjs +0 -4
- package/chunks/select-R-96AksV.mjs +0 -295
- package/chunks/sg-C5hxvYqk.mjs +0 -4
- package/chunks/sh-HM3W4hDH.mjs +0 -4
- package/chunks/si-DP1aBcfC.mjs +0 -4
- package/chunks/sj-BW7y-uq5.mjs +0 -4
- package/chunks/sk-i105Khwu.mjs +0 -4
- package/chunks/sl-Di2GF_yv.mjs +0 -4
- package/chunks/sm-CBa0TK4H.mjs +0 -4
- package/chunks/sn-DUHpXra8.mjs +0 -4
- package/chunks/so-BNbpnsu-.mjs +0 -4
- package/chunks/splitter-ByLyrd5H.mjs +0 -436
- package/chunks/sr-ao-a5_9y.mjs +0 -4
- package/chunks/ss-DcnzauNo.mjs +0 -4
- package/chunks/st-UM_GVNxZ.mjs +0 -4
- package/chunks/sv-DGf1zbvG.mjs +0 -4
- package/chunks/swiper-core-kwEab-Zw.mjs +0 -145
- package/chunks/sx-BswzV8CI.mjs +0 -4
- package/chunks/sy-9m1S8Kc1.mjs +0 -4
- package/chunks/sz-D85TIkXG.mjs +0 -4
- package/chunks/tab-control-CW53taeE.mjs +0 -202
- package/chunks/tc-C7PcDjFx.mjs +0 -4
- package/chunks/td-BPQVoqMT.mjs +0 -4
- package/chunks/tg-BrHdehFU.mjs +0 -4
- package/chunks/th-Dy_pGi_n.mjs +0 -4
- package/chunks/timeline-core-B9Lu8Qq4.mjs +0 -15
- package/chunks/timepicker-LaSAPnxw.mjs +0 -326
- package/chunks/tj-DMpkq8L_.mjs +0 -4
- package/chunks/tk-BnQPtoCZ.mjs +0 -4
- package/chunks/tl-ogyf_25A.mjs +0 -4
- package/chunks/tm-ftTOaKfg.mjs +0 -4
- package/chunks/tn-DH-O9SRy.mjs +0 -4
- package/chunks/to-CDqWnE6l.mjs +0 -4
- package/chunks/tr-CRzwaC_7.mjs +0 -4
- package/chunks/treeview-BuznGbcj.mjs +0 -302
- package/chunks/tt-CddKczAn.mjs +0 -4
- package/chunks/tv-b-Y36_Oq.mjs +0 -4
- package/chunks/tw-BbdD_Tku.mjs +0 -4
- package/chunks/tz-Det_pKDO.mjs +0 -4
- package/chunks/ua-CdODx9f1.mjs +0 -4
- package/chunks/ug-CTIJi1Jn.mjs +0 -4
- package/chunks/us-Dsgn127D.mjs +0 -4
- package/chunks/uy-CtFb0Nfv.mjs +0 -4
- package/chunks/uz-CqlGrq2Q.mjs +0 -4
- package/chunks/va-C-PHbkgG.mjs +0 -4
- package/chunks/vc-CtVMqDKl.mjs +0 -4
- package/chunks/ve-CBHWNLnB.mjs +0 -4
- package/chunks/vg-BN0gTtPV.mjs +0 -4
- package/chunks/vi-D91NT7D5.mjs +0 -4
- package/chunks/vn-Dz72HCr4.mjs +0 -4
- package/chunks/vu-Cmk5qbSr.mjs +0 -4
- package/chunks/wf-DAPtyg32.mjs +0 -4
- package/chunks/ws-es9JGzNi.mjs +0 -4
- package/chunks/xk-st-Xu64D.mjs +0 -4
- package/chunks/ye-Dmo8XEYa.mjs +0 -4
- package/chunks/yt-CNEu1wkH.mjs +0 -4
- package/chunks/za-CiZ4NsPE.mjs +0 -4
- package/chunks/zm-DqQAAfzp.mjs +0 -4
- package/chunks/zw-BIGE1hob.mjs +0 -4
- package/code-snippet/src/core/highlighter.d.ts +0 -39
- package/code-snippet/src/core/split-lines.d.ts +0 -44
- package/code-snippet/src/hljs-loaders.generated.d.ts +0 -14
- package/code-snippet/src/mp-code-snippet.element.d.ts +0 -223
- package/code-snippet/src/styles/code-snippet.styles.d.ts +0 -2
- package/code-snippet/src/styles/index.d.ts +0 -1
- package/code-snippet/src/types/code-line-annotation.d.ts +0 -29
- package/code-snippet/src/types/index.d.ts +0 -1
- package/datatable/src/components/column-resize.d.ts +0 -33
- package/datatable/src/components/index.d.ts +0 -2
- package/datatable/src/components/mp-datatable.d.ts +0 -972
- package/datatable/src/sort/compute-next-sort.d.ts +0 -18
- package/datatable/src/sort/index.d.ts +0 -3
- package/datatable/src/sort/sort-rows.d.ts +0 -6
- package/datatable/src/styles/datatable.light.styles.d.ts +0 -2
- package/datatable/src/styles/index.d.ts +0 -1
- package/datatable/src/types/column-def.d.ts +0 -114
- package/datatable/src/types/filter.d.ts +0 -138
- package/datatable/src/types/index.d.ts +0 -5
- package/datatable/src/types/labels.d.ts +0 -116
- package/datatable/src/types/tree.d.ts +0 -59
- package/datepicker/src/mp-datepicker.element.d.ts +0 -124
- package/datepicker/src/mp-datepicker.element.template.d.ts +0 -2
- package/datetime-picker/src/mp-datetime-picker.element.d.ts +0 -243
- package/datetime-picker/src/mp-datetime-picker.element.template.d.ts +0 -2
- package/dock/src/components/index.d.ts +0 -1
- package/dock/src/components/mint-dock-manager.element.d.ts +0 -370
- package/dock/src/components/mint-dock-manager.element.template.d.ts +0 -2
- package/dock/src/core/geometry.d.ts +0 -36
- package/dock/src/core/index.d.ts +0 -6
- package/dock/src/core/intersection-sizing.d.ts +0 -83
- package/dock/src/core/layout-tree.d.ts +0 -105
- package/dock/src/core/resize.d.ts +0 -143
- package/dock/src/core/sizes.d.ts +0 -31
- package/dock/src/core/types.d.ts +0 -58
- package/dock/src/types/dock-layout.d.ts +0 -65
- package/dock/src/types/index.d.ts +0 -1
- package/dropdown-menu/src/components/mp-dropdown-element.d.ts +0 -19
- package/dropdown-menu/src/styles/dropdown-menu.styles.d.ts +0 -2
- package/dropdown-menu/src/styles/index.d.ts +0 -1
- package/dropdown-menu/src/types/dropdown.d.ts +0 -20
- package/dropdown-menu/src/types/index.d.ts +0 -1
- package/file-manager/src/components/index.d.ts +0 -2
- package/file-manager/src/components/mp-file-manager.d.ts +0 -345
- package/file-manager/src/styles/file-manager.styles.d.ts +0 -2
- package/file-manager/src/styles/index.d.ts +0 -1
- package/file-manager/src/types/file-system-node.d.ts +0 -24
- package/file-manager/src/types/index.d.ts +0 -3
- package/file-manager/src/types/messages.d.ts +0 -52
- package/flags/README.md +0 -64
- package/flags/index.d.ts +0 -1
- package/flags/index.mjs +0 -1
- package/flags/src/all-flags.d.ts +0 -32
- package/flags/src/all-flags.generated.d.ts +0 -6
- package/flags/src/flag-loaders.generated.d.ts +0 -7
- package/flags/src/index.d.ts +0 -3
- package/flags/src/load-flag.d.ts +0 -13
- package/input-group/src/components/mp-input-group.d.ts +0 -61
- package/input-group/src/styles/index.d.ts +0 -1
- package/input-group/src/styles/input-group.styles.d.ts +0 -2
- package/multi-range/src/mint-multi-range.element.d.ts +0 -125
- package/multi-range/src/mint-multi-range.element.template.d.ts +0 -2
- package/multi-range/src/pointer-geometry.d.ts +0 -31
- package/multi-range/src/types/multi-range-orientation.d.ts +0 -1
- package/navbar/src/components/index.d.ts +0 -4
- package/navbar/src/components/mp-navbar-brand.d.ts +0 -13
- package/navbar/src/components/mp-navbar-dropdown.d.ts +0 -35
- package/navbar/src/components/mp-navbar-element.d.ts +0 -9
- package/navbar/src/components/mp-navbar-item.d.ts +0 -16
- package/navbar/src/components/mp-navbar.d.ts +0 -69
- package/navbar/src/styles/index.d.ts +0 -4
- package/navbar/src/styles/navbar-brand.styles.d.ts +0 -2
- package/navbar/src/styles/navbar-dropdown.styles.d.ts +0 -2
- package/navbar/src/styles/navbar-item.styles.d.ts +0 -2
- package/navbar/src/styles/navbar.styles.d.ts +0 -2
- package/navbar/src/types/index.d.ts +0 -1
- package/navbar/src/types/navbar.d.ts +0 -7
- package/otp-input/src/mint-otp-input.element.d.ts +0 -162
- package/otp-input/src/mint-otp-input.element.template.d.ts +0 -2
- package/otp-input/src/types/otp-input-case.d.ts +0 -1
- package/otp-input/src/types/otp-input-size.d.ts +0 -1
- package/otp-input/src/types/otp-input-type.d.ts +0 -1
- package/overlay/index.d.ts +0 -1
- package/overlay/index.mjs +0 -1
- package/overlay/src/index.d.ts +0 -4
- package/overlay/src/overlay-controller.d.ts +0 -291
- package/overlay/src/overlay-portal.d.ts +0 -53
- package/overlay/src/placement.d.ts +0 -48
- package/phone-core/README.md +0 -57
- package/phone-core/index.d.ts +0 -1
- package/phone-core/index.mjs +0 -120
- package/phone-core/src/countries.d.ts +0 -57
- package/phone-core/src/dial-code.d.ts +0 -30
- package/phone-core/src/index.d.ts +0 -4
- package/phone-core/src/metadata/cc-1.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-20.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-211.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-212.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-213.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-216.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-218.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-220.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-221.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-222.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-223.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-224.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-225.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-226.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-227.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-228.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-229.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-230.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-231.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-232.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-233.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-234.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-235.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-236.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-237.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-238.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-239.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-240.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-241.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-242.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-243.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-244.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-245.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-246.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-247.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-248.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-249.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-250.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-251.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-252.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-253.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-254.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-255.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-256.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-257.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-258.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-260.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-261.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-262.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-263.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-264.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-265.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-266.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-267.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-268.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-269.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-27.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-290.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-291.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-297.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-298.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-299.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-30.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-31.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-32.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-33.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-34.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-350.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-351.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-352.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-353.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-354.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-355.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-356.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-357.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-358.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-359.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-36.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-370.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-371.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-372.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-373.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-374.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-375.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-376.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-377.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-378.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-380.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-381.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-382.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-383.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-385.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-386.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-387.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-389.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-39.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-40.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-41.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-420.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-421.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-423.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-43.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-44.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-45.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-46.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-47.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-48.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-49.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-500.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-501.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-502.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-503.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-504.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-505.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-506.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-507.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-508.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-509.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-51.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-52.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-53.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-54.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-55.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-56.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-57.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-58.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-590.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-591.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-592.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-593.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-594.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-595.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-596.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-597.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-598.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-599.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-60.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-61.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-62.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-63.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-64.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-65.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-66.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-670.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-672.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-673.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-674.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-675.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-676.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-677.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-678.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-679.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-680.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-681.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-682.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-683.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-685.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-686.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-687.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-688.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-689.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-690.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-691.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-692.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-7.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-81.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-82.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-84.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-850.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-852.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-853.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-855.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-856.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-86.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-880.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-886.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-90.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-91.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-92.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-93.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-94.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-95.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-960.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-961.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-962.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-963.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-964.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-965.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-966.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-967.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-968.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-970.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-971.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-972.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-973.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-974.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-975.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-976.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-977.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-98.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-992.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-993.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-994.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-995.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-996.generated.d.ts +0 -3
- package/phone-core/src/metadata/cc-998.generated.d.ts +0 -3
- package/phone-core/src/metadata-loaders.generated.d.ts +0 -15
- package/phone-core/src/validation.d.ts +0 -55
- package/phone-input/src/components/caret.d.ts +0 -25
- package/phone-input/src/components/mp-phone-input.d.ts +0 -158
- package/phone-input/src/components/stack.d.ts +0 -8
- package/phone-input/src/styles/index.d.ts +0 -1
- package/phone-input/src/styles/phone-input.styles.d.ts +0 -2
- package/query-builder/src/context.d.ts +0 -14
- package/query-builder/src/dnd/drag-controller.d.ts +0 -73
- package/query-builder/src/model/default-tree.d.ts +0 -7
- package/query-builder/src/model/editor.d.ts +0 -15
- package/query-builder/src/model/errors.d.ts +0 -6
- package/query-builder/src/model/expression.d.ts +0 -22
- package/query-builder/src/model/field-def.d.ts +0 -17
- package/query-builder/src/model/messages.d.ts +0 -26
- package/query-builder/src/model/operator-overrides.d.ts +0 -21
- package/query-builder/src/model/operators.d.ts +0 -8
- package/query-builder/src/model/saved-query.d.ts +0 -6
- package/query-builder/src/model/sort.d.ts +0 -9
- package/query-builder/src/model/tree-ops.d.ts +0 -56
- package/query-builder/src/mp-query-builder.element.d.ts +0 -162
- package/query-builder/src/mp-query-builder.light.styles.d.ts +0 -2
- package/query-builder/src/mp-query-condition.element.d.ts +0 -45
- package/query-builder/src/mp-query-condition.light.styles.d.ts +0 -2
- package/query-builder/src/mp-query-group.element.d.ts +0 -52
- package/query-builder/src/mp-query-group.light.styles.d.ts +0 -2
- package/query-builder/src/mp-query-subquery.element.d.ts +0 -37
- package/query-builder/src/mp-query-subquery.light.styles.d.ts +0 -2
- package/query-builder/src/preview/render-expression.d.ts +0 -23
- package/query-builder/src/value-editors/builtin-editors.d.ts +0 -6
- package/query-builder/src/visitor/visit-tree.d.ts +0 -29
- package/query-builder/src/visitor/visitor-types.d.ts +0 -15
- package/ribbon/src/core/band-text-color.d.ts +0 -10
- package/ribbon/src/core/key-tip-allocator.d.ts +0 -10
- package/ribbon/src/core/plan-reduce-steps.d.ts +0 -62
- package/ribbon/src/items/index.d.ts +0 -15
- package/ribbon/src/items/mp-ribbon-button.element.d.ts +0 -10
- package/ribbon/src/items/mp-ribbon-checkbox.element.d.ts +0 -11
- package/ribbon/src/items/mp-ribbon-color-picker.element.d.ts +0 -12
- package/ribbon/src/items/mp-ribbon-combobox.element.d.ts +0 -19
- package/ribbon/src/items/mp-ribbon-dropdown-button.element.d.ts +0 -16
- package/ribbon/src/items/mp-ribbon-gallery-item.element.d.ts +0 -15
- package/ribbon/src/items/mp-ribbon-gallery.element.d.ts +0 -11
- package/ribbon/src/items/mp-ribbon-group-button.element.d.ts +0 -18
- package/ribbon/src/items/mp-ribbon-item-base.d.ts +0 -68
- package/ribbon/src/items/mp-ribbon-menu-item.element.d.ts +0 -13
- package/ribbon/src/items/mp-ribbon-menu-separator.element.d.ts +0 -6
- package/ribbon/src/items/mp-ribbon-split-button.element.d.ts +0 -23
- package/ribbon/src/items/mp-ribbon-template-item.element.d.ts +0 -12
- package/ribbon/src/items/mp-ribbon-toggle-button.element.d.ts +0 -12
- package/ribbon/src/mp-quick-access-toolbar.element.d.ts +0 -46
- package/ribbon/src/mp-ribbon-contextual-tab-set.element.d.ts +0 -18
- package/ribbon/src/mp-ribbon-group.element.d.ts +0 -59
- package/ribbon/src/mp-ribbon-tab.element.d.ts +0 -72
- package/ribbon/src/mp-ribbon.element.d.ts +0 -200
- package/ribbon/src/types/ribbon.types.d.ts +0 -4
- package/scheduler/src/components/mp-scheduler.d.ts +0 -877
- package/scheduler/src/drag/drag-manager.d.ts +0 -82
- package/scheduler/src/drag/drag-preview.d.ts +0 -42
- package/scheduler/src/drag/drag-state-machine.d.ts +0 -102
- package/scheduler/src/drag/drag-types.d.ts +0 -104
- package/scheduler/src/drag/index.d.ts +0 -4
- package/scheduler/src/events/index.d.ts +0 -1
- package/scheduler/src/events/scheduler-event-emitter.d.ts +0 -68
- package/scheduler/src/input/index.d.ts +0 -2
- package/scheduler/src/input/input-handler.d.ts +0 -139
- package/scheduler/src/input/pointer-event.d.ts +0 -39
- package/scheduler/src/state/scheduler-state.d.ts +0 -241
- package/scheduler/src/styles/scheduler.styles.d.ts +0 -2
- package/scheduler/src/utils/geometry.d.ts +0 -39
- package/scheduler/src/views/base-view.d.ts +0 -182
- package/scheduler/src/views/day-view.d.ts +0 -31
- package/scheduler/src/views/index.d.ts +0 -6
- package/scheduler/src/views/month-view.d.ts +0 -27
- package/scheduler/src/views/timeline-view.d.ts +0 -191
- package/scheduler/src/views/week-view.d.ts +0 -34
- package/scheduler/src/views/year-view.d.ts +0 -34
- package/scheduler-core/index.d.ts +0 -1
- package/scheduler-core/index.mjs +0 -1
- package/scheduler-core/src/index.d.ts +0 -3
- package/scheduler-core/src/models/drag-state.d.ts +0 -43
- package/scheduler-core/src/models/event.d.ts +0 -115
- package/scheduler-core/src/models/events.d.ts +0 -94
- package/scheduler-core/src/models/index.d.ts +0 -9
- package/scheduler-core/src/models/messages.d.ts +0 -192
- package/scheduler-core/src/models/options.d.ts +0 -165
- package/scheduler-core/src/models/permissions.d.ts +0 -114
- package/scheduler-core/src/models/resource.d.ts +0 -58
- package/scheduler-core/src/models/time-slot.d.ts +0 -46
- package/scheduler-core/src/models/types.d.ts +0 -20
- package/scheduler-core/src/services/date.service.d.ts +0 -194
- package/scheduler-core/src/services/index.d.ts +0 -4
- package/scheduler-core/src/services/position.service.d.ts +0 -35
- package/scheduler-core/src/services/resource.service.d.ts +0 -85
- package/scheduler-core/src/services/timeline.service.d.ts +0 -94
- package/scheduler-core/src/utils/color.d.ts +0 -65
- package/scheduler-core/src/utils/dom.d.ts +0 -54
- package/scheduler-core/src/utils/id.d.ts +0 -16
- package/scheduler-core/src/utils/index.d.ts +0 -3
- package/select/src/components/index.d.ts +0 -2
- package/select/src/components/mp-select.d.ts +0 -178
- package/select/src/styles/index.d.ts +0 -1
- package/select/src/styles/select.styles.d.ts +0 -2
- package/shell/src/styles/index.d.ts +0 -1
- package/shell/src/types/index.d.ts +0 -1
- package/shell/src/types/shell-state.d.ts +0 -8
- package/signature-pad/src/canvas-point.d.ts +0 -26
- package/signature-pad/src/mp-signature-pad.element.d.ts +0 -137
- package/signature-pad/src/mp-signature-pad.element.template.d.ts +0 -2
- package/signature-pad/src/types/signature.d.ts +0 -12
- package/splitter/src/components/index.d.ts +0 -2
- package/splitter/src/components/mp-splitter.d.ts +0 -132
- package/splitter/src/input/index.d.ts +0 -4
- package/splitter/src/input/input-handler.d.ts +0 -36
- package/splitter/src/input/pointer-event.d.ts +0 -9
- package/splitter/src/managers/index.d.ts +0 -3
- package/splitter/src/managers/rescale-panel-sizes.d.ts +0 -14
- package/splitter/src/managers/resize-manager.d.ts +0 -13
- package/splitter/src/state/index.d.ts +0 -2
- package/splitter/src/state/splitter-state.d.ts +0 -33
- package/splitter/src/styles/index.d.ts +0 -1
- package/splitter/src/styles/splitter.styles.d.ts +0 -2
- package/splitter/src/types/direction.d.ts +0 -1
- package/splitter/src/types/index.d.ts +0 -5
- package/splitter/src/types/panel-info.d.ts +0 -6
- package/splitter/src/types/point.d.ts +0 -4
- package/splitter/src/types/resize-operation.d.ts +0 -13
- package/swiper-core/index.d.ts +0 -1
- package/swiper-core/index.mjs +0 -1
- package/swiper-core/src/index-machine.d.ts +0 -59
- package/swiper-core/src/index.d.ts +0 -4
- package/swiper-core/src/keymap.d.ts +0 -2
- package/swiper-core/src/models/index.d.ts +0 -1
- package/swiper-core/src/models/types.d.ts +0 -99
- package/swiper-core/src/pointer-arbiter.d.ts +0 -45
- package/theming/src/components/mp-theme-toggle.d.ts +0 -71
- package/theming/src/cookie.d.ts +0 -31
- package/theming/src/preboot.d.ts +0 -1
- package/theming/src/resolve.d.ts +0 -36
- package/theming/src/store.d.ts +0 -27
- package/theming/src/styles/theme-toggle.styles.d.ts +0 -2
- package/theming/src/testing/fake-broadcast-channel.d.ts +0 -35
- package/theming/src/toggle-modes.d.ts +0 -23
- package/timeline/src/components/index.d.ts +0 -2
- package/timeline/src/components/mp-timeline-item.d.ts +0 -63
- package/timeline/src/components/mp-timeline.d.ts +0 -134
- package/timeline/src/styles/index.d.ts +0 -2
- package/timeline/src/styles/timeline-item.styles.d.ts +0 -2
- package/timeline/src/styles/timeline.styles.d.ts +0 -2
- package/timeline-core/index.d.ts +0 -1
- package/timeline-core/index.mjs +0 -1
- package/timeline-core/src/index.d.ts +0 -2
- package/timeline-core/src/models/context.d.ts +0 -39
- package/timeline-core/src/models/index.d.ts +0 -2
- package/timeline-core/src/models/timeline-item.d.ts +0 -44
- package/timeline-core/src/resolve-sides.d.ts +0 -12
- package/timepicker/src/mp-time-list.element.d.ts +0 -148
- package/timepicker/src/mp-time-list.element.template.d.ts +0 -2
- package/timepicker/src/mp-timepicker.element.d.ts +0 -124
- package/timepicker/src/mp-timepicker.element.template.d.ts +0 -2
- package/tree-select/src/components/index.d.ts +0 -2
- package/tree-select/src/components/mp-tree-select.d.ts +0 -170
- package/tree-select/src/providers/in-memory-provider.d.ts +0 -29
- package/tree-select/src/styles/index.d.ts +0 -1
- package/tree-select/src/styles/tree-select.light.styles.d.ts +0 -2
- package/tree-select/src/types/index.d.ts +0 -1
- package/tree-select/src/types/tree-select.d.ts +0 -51
- package/treeview/src/components/index.d.ts +0 -2
- package/treeview/src/components/mp-treeview.d.ts +0 -124
- package/treeview/src/styles/index.d.ts +0 -1
- package/treeview/src/styles/treeview.light.styles.d.ts +0 -2
- package/treeview/src/types/index.d.ts +0 -1
- package/treeview/src/types/tree-node.d.ts +0 -14
package/query-builder/index.mjs
CHANGED
|
@@ -1,1752 +1,279 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"between",
|
|
30
|
-
"not-between",
|
|
31
|
-
"is-null",
|
|
32
|
-
"is-not-null",
|
|
33
|
-
"in",
|
|
34
|
-
"not-in"
|
|
35
|
-
],
|
|
36
|
-
integer: [
|
|
37
|
-
"equals",
|
|
38
|
-
"not-equals",
|
|
39
|
-
"lt",
|
|
40
|
-
"lte",
|
|
41
|
-
"gt",
|
|
42
|
-
"gte",
|
|
43
|
-
"between",
|
|
44
|
-
"not-between",
|
|
45
|
-
"is-null",
|
|
46
|
-
"is-not-null",
|
|
47
|
-
"in",
|
|
48
|
-
"not-in"
|
|
49
|
-
],
|
|
50
|
-
date: [
|
|
51
|
-
"equals",
|
|
52
|
-
"not-equals",
|
|
53
|
-
"lt",
|
|
54
|
-
"lte",
|
|
55
|
-
"gt",
|
|
56
|
-
"gte",
|
|
57
|
-
"between",
|
|
58
|
-
"not-between",
|
|
59
|
-
"is-null",
|
|
60
|
-
"is-not-null",
|
|
61
|
-
"today",
|
|
62
|
-
"yesterday",
|
|
63
|
-
"this-week",
|
|
64
|
-
"last-week",
|
|
65
|
-
"next-week",
|
|
66
|
-
"this-month",
|
|
67
|
-
"last-month",
|
|
68
|
-
"next-month",
|
|
69
|
-
"this-year",
|
|
70
|
-
"last-year",
|
|
71
|
-
"next-year",
|
|
72
|
-
"last-n-days",
|
|
73
|
-
"next-n-days",
|
|
74
|
-
"year-to-date"
|
|
75
|
-
],
|
|
76
|
-
datetime: [
|
|
77
|
-
"equals",
|
|
78
|
-
"not-equals",
|
|
79
|
-
"lt",
|
|
80
|
-
"lte",
|
|
81
|
-
"gt",
|
|
82
|
-
"gte",
|
|
83
|
-
"between",
|
|
84
|
-
"not-between",
|
|
85
|
-
"is-null",
|
|
86
|
-
"is-not-null",
|
|
87
|
-
"today",
|
|
88
|
-
"yesterday",
|
|
89
|
-
"this-week",
|
|
90
|
-
"last-week",
|
|
91
|
-
"next-week",
|
|
92
|
-
"this-month",
|
|
93
|
-
"last-month",
|
|
94
|
-
"next-month",
|
|
95
|
-
"this-year",
|
|
96
|
-
"last-year",
|
|
97
|
-
"next-year",
|
|
98
|
-
"last-n-days",
|
|
99
|
-
"next-n-days",
|
|
100
|
-
"year-to-date"
|
|
101
|
-
],
|
|
102
|
-
boolean: [
|
|
103
|
-
"is-true",
|
|
104
|
-
"is-false",
|
|
105
|
-
"is-null",
|
|
106
|
-
"is-not-null"
|
|
107
|
-
],
|
|
108
|
-
enum: [
|
|
109
|
-
"equals",
|
|
110
|
-
"not-equals",
|
|
111
|
-
"in",
|
|
112
|
-
"not-in",
|
|
113
|
-
"is-null",
|
|
114
|
-
"is-not-null"
|
|
115
|
-
],
|
|
116
|
-
relation: ["in", "not-in"],
|
|
117
|
-
array: [
|
|
118
|
-
"any-of",
|
|
119
|
-
"all-of",
|
|
120
|
-
"none-of",
|
|
121
|
-
"is-empty",
|
|
122
|
-
"is-not-empty"
|
|
123
|
-
]
|
|
124
|
-
}, ee = /* @__PURE__ */ new Set([
|
|
125
|
-
"is-null",
|
|
126
|
-
"is-not-null",
|
|
127
|
-
"is-true",
|
|
128
|
-
"is-false",
|
|
129
|
-
"is-empty",
|
|
130
|
-
"is-not-empty",
|
|
131
|
-
"today",
|
|
132
|
-
"yesterday",
|
|
133
|
-
"this-week",
|
|
134
|
-
"last-week",
|
|
135
|
-
"next-week",
|
|
136
|
-
"this-month",
|
|
137
|
-
"last-month",
|
|
138
|
-
"next-month",
|
|
139
|
-
"this-year",
|
|
140
|
-
"last-year",
|
|
141
|
-
"next-year",
|
|
142
|
-
"year-to-date"
|
|
143
|
-
]), te = /* @__PURE__ */ new Set(["between", "not-between"]), ne = /* @__PURE__ */ new Set([
|
|
144
|
-
"in",
|
|
145
|
-
"not-in",
|
|
146
|
-
"any-of",
|
|
147
|
-
"all-of",
|
|
148
|
-
"none-of"
|
|
149
|
-
]), re = /* @__PURE__ */ new Set(["last-n-days", "next-n-days"]);
|
|
150
|
-
function p(e) {
|
|
151
|
-
return ee.has(e) ? "null" : te.has(e) ? "tuple" : ne.has(e) ? "array" : re.has(e) ? "n-input" : "scalar";
|
|
152
|
-
}
|
|
153
|
-
function m(e) {
|
|
154
|
-
switch (p(e)) {
|
|
155
|
-
case "null": return null;
|
|
156
|
-
case "tuple": return [null, null];
|
|
157
|
-
case "array": return [];
|
|
158
|
-
case "n-input": return { n: 1 };
|
|
159
|
-
case "scalar": return null;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
function h(e, t = f) {
|
|
163
|
-
return t[e] ?? [];
|
|
164
|
-
}
|
|
165
|
-
//#endregion
|
|
166
|
-
//#region libs/mintplayer-web-components/query-builder/src/model/operator-overrides.ts
|
|
167
|
-
function ie(e, t, n = f) {
|
|
168
|
-
let r = {
|
|
169
|
-
sanitized: {},
|
|
170
|
-
warnings: []
|
|
171
|
-
};
|
|
172
|
-
if (!t) return r;
|
|
173
|
-
let i = /* @__PURE__ */ new Map();
|
|
174
|
-
for (let t of e) for (let e of t.fields) i.has(e.name) || i.set(e.name, {
|
|
175
|
-
entity: t.name,
|
|
176
|
-
type: e.type
|
|
177
|
-
});
|
|
178
|
-
for (let [e, a] of Object.entries(t)) {
|
|
179
|
-
let t = a ?? [], o = i.get(e);
|
|
180
|
-
if (!o) {
|
|
181
|
-
r.warnings.push(`[operatorOverrides] Unknown field "${e}" — no entity in schema declares it. Override ignored.`);
|
|
182
|
-
continue;
|
|
183
|
-
}
|
|
184
|
-
let s = new Set(h(o.type, n)), c = [], l = [];
|
|
185
|
-
for (let e of t) s.has(e) ? c.push(e) : l.push(e);
|
|
186
|
-
l.length > 0 && r.warnings.push(`[operatorOverrides] Field "${e}" (${o.entity}.${e}, type=${o.type}) has operator(s) [${l.join(", ")}] not in the catalog for that type. Stripping.`), c.length === 0 && t.length > 0 && r.warnings.push(`[operatorOverrides] Field "${e}" has no valid operators after intersection — empty operator dropdown.`), r.sanitized[e] = c;
|
|
187
|
-
}
|
|
188
|
-
return r;
|
|
189
|
-
}
|
|
190
|
-
//#endregion
|
|
191
|
-
//#region libs/mintplayer-web-components/query-builder/src/model/default-tree.ts
|
|
192
|
-
function ae() {
|
|
193
|
-
if (typeof crypto < "u" && typeof crypto.randomUUID == "function") return crypto.randomUUID();
|
|
194
|
-
let e = typeof crypto < "u" && typeof crypto.getRandomValues == "function" ? crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16)) : Uint8Array.from({ length: 16 }, () => Math.floor(Math.random() * 256));
|
|
195
|
-
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
|
|
196
|
-
let t = Array.from(e, (e) => e.toString(16).padStart(2, "0"));
|
|
197
|
-
return `${t.slice(0, 4).join("")}-${t.slice(4, 6).join("")}-${t.slice(6, 8).join("")}-${t.slice(8, 10).join("")}-${t.slice(10, 16).join("")}`;
|
|
198
|
-
}
|
|
199
|
-
function g() {
|
|
200
|
-
return ae();
|
|
201
|
-
}
|
|
202
|
-
function _(e = "and") {
|
|
203
|
-
return {
|
|
204
|
-
kind: "group",
|
|
205
|
-
id: g(),
|
|
206
|
-
logic: e,
|
|
207
|
-
children: []
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
function oe(e) {
|
|
211
|
-
let t = e.fields.find((e) => e.type !== "relation") ?? e.fields[0];
|
|
212
|
-
if (!t) return {
|
|
213
|
-
kind: "condition",
|
|
214
|
-
id: g(),
|
|
215
|
-
field: "",
|
|
216
|
-
operator: "equals",
|
|
217
|
-
value: null
|
|
218
|
-
};
|
|
219
|
-
let n = h(t.type)[0] ?? "equals";
|
|
220
|
-
return {
|
|
221
|
-
kind: "condition",
|
|
222
|
-
id: g(),
|
|
223
|
-
field: t.name,
|
|
224
|
-
operator: n,
|
|
225
|
-
value: m(n)
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
function v(e) {
|
|
229
|
-
let t = e.fields.find((e) => e.type === "relation" && e.targetEntity);
|
|
230
|
-
return t ? {
|
|
231
|
-
kind: "subquery",
|
|
232
|
-
id: g(),
|
|
233
|
-
field: t.name,
|
|
234
|
-
operator: "in",
|
|
235
|
-
subQuery: _("and")
|
|
236
|
-
} : null;
|
|
237
|
-
}
|
|
238
|
-
function y(e) {
|
|
239
|
-
switch (e.kind) {
|
|
240
|
-
case "group": return {
|
|
241
|
-
...e,
|
|
242
|
-
children: e.children.map((e) => y(e))
|
|
243
|
-
};
|
|
244
|
-
case "condition": return {
|
|
245
|
-
...e,
|
|
246
|
-
value: b(e.value)
|
|
247
|
-
};
|
|
248
|
-
case "subquery": return {
|
|
249
|
-
...e,
|
|
250
|
-
subQuery: y(e.subQuery)
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
function b(e) {
|
|
255
|
-
return e == null ? e : Array.isArray(e) ? e.map(b) : typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([e, t]) => [e, b(t)])) : e;
|
|
256
|
-
}
|
|
257
|
-
//#endregion
|
|
258
|
-
//#region libs/mintplayer-web-components/query-builder/src/model/tree-ops.ts
|
|
259
|
-
function x(e, t) {
|
|
260
|
-
let n = t(e);
|
|
261
|
-
if (n === null) return null;
|
|
262
|
-
if (n.kind === "group") {
|
|
263
|
-
let e = n.children.map((e) => x(e, t)).filter((e) => e !== null);
|
|
264
|
-
return {
|
|
265
|
-
...n,
|
|
266
|
-
children: e
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
if (n.kind === "subquery") {
|
|
270
|
-
let e = x(n.subQuery, t);
|
|
271
|
-
return e !== null && e.kind === "group" ? {
|
|
272
|
-
...n,
|
|
273
|
-
subQuery: e
|
|
274
|
-
} : {
|
|
275
|
-
...n,
|
|
276
|
-
subQuery: _("and")
|
|
277
|
-
};
|
|
278
|
-
}
|
|
279
|
-
return n;
|
|
280
|
-
}
|
|
281
|
-
function S(e, t) {
|
|
282
|
-
return x(e, t);
|
|
283
|
-
}
|
|
284
|
-
function C(e, t) {
|
|
285
|
-
return e.id === t ? e : e.kind === "group" ? se(e.children, (e) => C(e, t)) : e.kind === "subquery" ? C(e.subQuery, t) : null;
|
|
286
|
-
}
|
|
287
|
-
function se(e, t) {
|
|
288
|
-
return e.reduce((e, n) => e ?? t(n), null);
|
|
289
|
-
}
|
|
290
|
-
function w(e, t) {
|
|
291
|
-
if (e.kind === "group") {
|
|
292
|
-
let n = e.children.findIndex((e) => e.id === t);
|
|
293
|
-
return n >= 0 ? {
|
|
294
|
-
parent: e,
|
|
295
|
-
index: n
|
|
296
|
-
} : se(e.children, (e) => w(e, t));
|
|
297
|
-
}
|
|
298
|
-
return e.kind === "subquery" ? w(e.subQuery, t) : null;
|
|
299
|
-
}
|
|
300
|
-
function T(e) {
|
|
301
|
-
let t = (e) => e.kind === "group" ? [e.id, ...e.children.flatMap(t)] : e.kind === "subquery" ? [e.id, ...t(e.subQuery)] : [e.id];
|
|
302
|
-
return new Set(t(e));
|
|
303
|
-
}
|
|
304
|
-
function E(e, t, n) {
|
|
305
|
-
return S(e, (e) => e.kind === "group" && e.id === t ? {
|
|
306
|
-
...e,
|
|
307
|
-
children: [...e.children, n]
|
|
308
|
-
} : e);
|
|
309
|
-
}
|
|
310
|
-
function ce(e, t, n) {
|
|
311
|
-
return E(e, t, oe(n));
|
|
312
|
-
}
|
|
313
|
-
function D(e, t, n = "and") {
|
|
314
|
-
return E(e, t, _(n));
|
|
315
|
-
}
|
|
316
|
-
function O(e, t, n) {
|
|
317
|
-
let r = v(n);
|
|
318
|
-
return r ? E(e, t, r) : e;
|
|
319
|
-
}
|
|
320
|
-
function k(e, t) {
|
|
321
|
-
return x(e, (e) => e.id === t ? null : e) ?? e;
|
|
322
|
-
}
|
|
323
|
-
function A(e, t, n) {
|
|
324
|
-
return S(e, (e) => e.kind === "group" && e.id === t ? {
|
|
325
|
-
...e,
|
|
326
|
-
logic: n
|
|
327
|
-
} : e);
|
|
328
|
-
}
|
|
329
|
-
function j(e, t, n) {
|
|
330
|
-
return S(e, (e) => {
|
|
331
|
-
if ((e.kind === "condition" || e.kind === "subquery") && e.id === t) {
|
|
332
|
-
if (e.kind === "subquery") {
|
|
333
|
-
let t = { ...e };
|
|
334
|
-
return n.field !== void 0 && (t.field = n.field), n.operator !== void 0 && (n.operator === "in" || n.operator === "not-in") && (t.operator = n.operator), t;
|
|
335
|
-
}
|
|
336
|
-
let t = { ...e };
|
|
337
|
-
return n.field !== void 0 && (t.field = n.field), n.operator !== void 0 && (t.operator = n.operator), n.value !== void 0 && (t.value = n.value), t;
|
|
338
|
-
}
|
|
339
|
-
return e;
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
function le(e, t, n) {
|
|
343
|
-
return S(e, (e) => e.kind === "condition" && e.id === t ? ue(e, n) : e);
|
|
344
|
-
}
|
|
345
|
-
function ue(e, t) {
|
|
346
|
-
let n = h(t.type);
|
|
347
|
-
if (n.includes(e.operator)) return {
|
|
348
|
-
...e,
|
|
349
|
-
field: t.name
|
|
350
|
-
};
|
|
351
|
-
let r = n[0] ?? "equals";
|
|
352
|
-
return {
|
|
353
|
-
...e,
|
|
354
|
-
field: t.name,
|
|
355
|
-
operator: r,
|
|
356
|
-
value: m(r)
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
function de(e, t, n) {
|
|
360
|
-
return S(e, (e) => {
|
|
361
|
-
if (e.kind === "condition" && e.id === t) {
|
|
362
|
-
let t = p(e.operator) === p(n) ? e.value : m(n);
|
|
363
|
-
return {
|
|
364
|
-
...e,
|
|
365
|
-
operator: n,
|
|
366
|
-
value: t
|
|
367
|
-
};
|
|
368
|
-
}
|
|
369
|
-
return e;
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
function M(e, t, n, r, i) {
|
|
373
|
-
if (t === n) return e;
|
|
374
|
-
let a = C(e, t);
|
|
375
|
-
if (!a) return e;
|
|
376
|
-
let o = C(e, n);
|
|
377
|
-
if (!o || o.kind !== "group" || T(a).has(n)) return e;
|
|
378
|
-
let s = i ? fe(a, i) : a;
|
|
379
|
-
return S(k(e, t), (e) => {
|
|
380
|
-
if (e.kind === "group" && e.id === n) {
|
|
381
|
-
let t = [...e.children], n = Math.max(0, Math.min(r, t.length));
|
|
382
|
-
return t.splice(n, 0, s), {
|
|
383
|
-
...e,
|
|
384
|
-
children: t
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
return e;
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
function fe(e, t) {
|
|
391
|
-
let n = t.fields.find((e) => e.type !== "relation");
|
|
392
|
-
if (e.kind === "condition") {
|
|
393
|
-
let r = t.fields.find((t) => t.name === e.field);
|
|
394
|
-
if (r && r.type !== "relation") return ue(e, r);
|
|
395
|
-
if (!n) return e;
|
|
396
|
-
let i = h(n.type)[0] ?? "equals";
|
|
397
|
-
return {
|
|
398
|
-
...e,
|
|
399
|
-
field: n.name,
|
|
400
|
-
operator: i,
|
|
401
|
-
value: m(i)
|
|
402
|
-
};
|
|
403
|
-
}
|
|
404
|
-
return e.kind === "group" ? {
|
|
405
|
-
...e,
|
|
406
|
-
children: e.children.map((e) => fe(e, t))
|
|
407
|
-
} : e;
|
|
408
|
-
}
|
|
409
|
-
//#endregion
|
|
410
|
-
//#region libs/mintplayer-web-components/query-builder/src/model/errors.ts
|
|
411
|
-
var N = class extends Error {
|
|
412
|
-
constructor(e, t) {
|
|
413
|
-
super(`Query tree depth ${e} exceeds maxDepth ${t}.`), this.depth = e, this.maxDepth = t, this.name = "MaxDepthExceededError";
|
|
414
|
-
}
|
|
415
|
-
}, P = {
|
|
416
|
-
addCondition: "Add condition",
|
|
417
|
-
addGroup: "Add group",
|
|
418
|
-
addSubquery: "Add sub-query",
|
|
419
|
-
removeRow: "Remove",
|
|
420
|
-
removeGroup: "Remove group",
|
|
421
|
-
logicAnd: "AND",
|
|
422
|
-
logicOr: "OR",
|
|
423
|
-
saveCurrentAs: "Save current as…",
|
|
424
|
-
loadQuery: "Load",
|
|
425
|
-
deleteQuery: "Delete",
|
|
426
|
-
treeTooDeep: "Tree too deep",
|
|
427
|
-
dropHerePlaceholder: "Drop here",
|
|
428
|
-
emptyGroup: "(empty group)",
|
|
429
|
-
savedQueryName: "Name for saved query",
|
|
430
|
-
entity: "Entity",
|
|
431
|
-
columns: "Columns",
|
|
432
|
-
sortBy: "Sort by",
|
|
433
|
-
reorderHint: "Drag or use Alt+Up/Down to reorder",
|
|
434
|
-
field: "Field",
|
|
435
|
-
operator: "Operator",
|
|
436
|
-
groupLogic: "Group logic",
|
|
437
|
-
operators: {
|
|
438
|
-
equals: "=",
|
|
439
|
-
"not-equals": "≠",
|
|
440
|
-
contains: "contains",
|
|
441
|
-
"does-not-contain": "does not contain",
|
|
442
|
-
"starts-with": "starts with",
|
|
443
|
-
"ends-with": "ends with",
|
|
444
|
-
lt: "<",
|
|
445
|
-
lte: "≤",
|
|
446
|
-
gt: ">",
|
|
447
|
-
gte: "≥",
|
|
448
|
-
between: "between",
|
|
449
|
-
"not-between": "not between",
|
|
450
|
-
in: "in",
|
|
451
|
-
"not-in": "not in",
|
|
452
|
-
"is-null": "is null",
|
|
453
|
-
"is-not-null": "is not null",
|
|
454
|
-
"is-true": "is true",
|
|
455
|
-
"is-false": "is false",
|
|
456
|
-
today: "is today",
|
|
457
|
-
yesterday: "is yesterday",
|
|
458
|
-
"this-week": "is this week",
|
|
459
|
-
"last-week": "is last week",
|
|
460
|
-
"next-week": "is next week",
|
|
461
|
-
"this-month": "is this month",
|
|
462
|
-
"last-month": "is last month",
|
|
463
|
-
"next-month": "is next month",
|
|
464
|
-
"this-year": "is this year",
|
|
465
|
-
"last-year": "is last year",
|
|
466
|
-
"next-year": "is next year",
|
|
467
|
-
"last-n-days": "is in the last N days",
|
|
468
|
-
"next-n-days": "is in the next N days",
|
|
469
|
-
"year-to-date": "is year-to-date",
|
|
470
|
-
"any-of": "any of",
|
|
471
|
-
"all-of": "all of",
|
|
472
|
-
"none-of": "none of",
|
|
473
|
-
"is-empty": "is empty",
|
|
474
|
-
"is-not-empty": "is not empty"
|
|
475
|
-
}
|
|
476
|
-
}, pe = 32;
|
|
477
|
-
function me(e, t, n, r = {}) {
|
|
478
|
-
let i = r.maxDepth ?? pe;
|
|
479
|
-
return F(e, t, {
|
|
480
|
-
schema: n.schema,
|
|
481
|
-
currentEntity: n.rootEntity,
|
|
482
|
-
depth: 0
|
|
483
|
-
}, i);
|
|
484
|
-
}
|
|
485
|
-
function F(e, t, n, r) {
|
|
486
|
-
if (n.depth > r) throw new N(n.depth, r);
|
|
487
|
-
switch (e.kind) {
|
|
488
|
-
case "condition": return t.condition(e, n);
|
|
489
|
-
case "group": {
|
|
490
|
-
let i = {
|
|
491
|
-
...n,
|
|
492
|
-
depth: n.depth + 1
|
|
493
|
-
}, a = e.children.map((e) => F(e, t, i, r));
|
|
494
|
-
return t.group(e, a, n);
|
|
495
|
-
}
|
|
496
|
-
case "subquery": {
|
|
497
|
-
let i = n.schema.find((e) => e.name === n.currentEntity);
|
|
498
|
-
if (!i) throw Error(`visitTree: schema has no entity "${n.currentEntity}".`);
|
|
499
|
-
let a = i.fields.find((t) => t.name === e.field);
|
|
500
|
-
if (!a) throw Error(`visitTree: entity "${n.currentEntity}" has no field "${e.field}".`);
|
|
501
|
-
if (a.type !== "relation" || !a.targetEntity) throw Error(`visitTree: field "${e.field}" is not a relation.`);
|
|
502
|
-
let o = a.targetEntity;
|
|
503
|
-
if (!n.schema.some((e) => e.name === o)) throw Error(`visitTree: relation target "${o}" missing from schema.`);
|
|
504
|
-
let s = {
|
|
505
|
-
...n,
|
|
506
|
-
currentEntity: o,
|
|
507
|
-
depth: n.depth + 1
|
|
508
|
-
};
|
|
509
|
-
return t.subquery(e, n, () => F(e.subQuery, t, s, r));
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
//#endregion
|
|
514
|
-
//#region libs/mintplayer-web-components/query-builder/src/preview/render-expression.ts
|
|
515
|
-
var he = 32;
|
|
516
|
-
function I(e, t, n = {}) {
|
|
517
|
-
let r = ge(n.messages), i = n.maxDepth ?? he;
|
|
518
|
-
return L(e, t, n.rootEntity ?? t[0]?.name ?? "", r, 0, i);
|
|
519
|
-
}
|
|
520
|
-
function ge(e) {
|
|
521
|
-
return {
|
|
522
|
-
...P,
|
|
523
|
-
...e ?? {},
|
|
524
|
-
operators: {
|
|
525
|
-
...P.operators,
|
|
526
|
-
...e?.operators ?? {}
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
|
-
}
|
|
530
|
-
function L(e, t, n, r, i, a) {
|
|
531
|
-
if (i > a) throw new N(i, a);
|
|
532
|
-
switch (e.kind) {
|
|
533
|
-
case "group": return _e(e, t, n, r, i, a);
|
|
534
|
-
case "condition": return ve(e, t, n, r);
|
|
535
|
-
case "subquery": return ye(e, t, n, r, i, a);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
function _e(e, t, n, r, i, a) {
|
|
539
|
-
if (e.children.length === 0) return e.logic === "and" ? "TRUE" : "FALSE";
|
|
540
|
-
let o = e.logic === "and" ? ` ${r.logicAnd} ` : ` ${r.logicOr} `;
|
|
541
|
-
return `(${e.children.map((e) => L(e, t, n, r, i + 1, a)).join(o)})`;
|
|
542
|
-
}
|
|
543
|
-
function ve(e, t, n, r) {
|
|
544
|
-
let i = z(t, n, e.field)?.label ?? e.field, a = r.operators[e.operator] ?? e.operator, o = be(e.operator, e.value);
|
|
545
|
-
return o === "" ? `${i} ${a}` : `${i} ${a} ${o}`;
|
|
546
|
-
}
|
|
547
|
-
function ye(e, t, n, r, i, a) {
|
|
548
|
-
let o = z(t, n, e.field), s = o?.label ?? e.field, c = r.operators[e.operator] ?? e.operator, l = o?.targetEntity ?? "";
|
|
549
|
-
return `${s} ${c} ${L(e.subQuery, t, l, r, i + 1, a)}`;
|
|
550
|
-
}
|
|
551
|
-
function be(e, t) {
|
|
552
|
-
let n = p(e);
|
|
553
|
-
if (n === "null") return "";
|
|
554
|
-
if (n === "tuple" && Array.isArray(t) || n === "array" && Array.isArray(t)) return `[${t.map(R).join(", ")}]`;
|
|
555
|
-
if (n === "n-input" && typeof t == "object" && t) {
|
|
556
|
-
let e = t.n;
|
|
557
|
-
return typeof e == "number" ? String(e) : JSON.stringify(t);
|
|
558
|
-
}
|
|
559
|
-
return R(t);
|
|
560
|
-
}
|
|
561
|
-
function R(e) {
|
|
562
|
-
return e == null ? "?" : typeof e == "string" ? `"${e}"` : e instanceof Date ? e.toISOString() : String(e);
|
|
563
|
-
}
|
|
564
|
-
function z(e, t, n) {
|
|
565
|
-
return e.find((e) => e.name === t)?.fields.find((e) => e.name === n);
|
|
566
|
-
}
|
|
567
|
-
//#endregion
|
|
568
|
-
//#region libs/mintplayer-web-components/query-builder/src/mp-query-builder.light.styles.ts
|
|
569
|
-
var B = o(".form-control[data-mps=query-builder] {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: var(--bs-body-color);\n appearance: none;\n background-color: var(--bs-body-bg);\n background-clip: padding-box;\n border: var(--bs-border-width) solid var(--bs-border-color);\n border-radius: var(--bs-border-radius);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n@media (prefers-reduced-motion: reduce) {\n .form-control[data-mps=query-builder] {\n transition: none;\n }\n}\n.form-control[type=file][data-mps=query-builder] {\n overflow: hidden;\n}\n.form-control[type=file]:not(:disabled):not([readonly])[data-mps=query-builder] {\n cursor: pointer;\n}\n.form-control:focus[data-mps=query-builder] {\n color: var(--bs-body-color);\n background-color: var(--bs-body-bg);\n border-color: rgb(52.5490196078%, 71.568627451%, 99.6078431373%);\n outline: 0;\n box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);\n}\n.form-control[data-mps=query-builder]::-webkit-date-and-time-value {\n min-width: 85px;\n height: 1.5em;\n margin: 0;\n}\n.form-control[data-mps=query-builder]::-webkit-datetime-edit {\n display: block;\n padding: 0;\n}\n.form-control[data-mps=query-builder]::placeholder {\n color: var(--bs-secondary-color);\n opacity: 1;\n}\n.form-control:disabled[data-mps=query-builder] {\n background-color: var(--bs-secondary-bg);\n opacity: 1;\n}\n.form-control[data-mps=query-builder]::file-selector-button {\n padding: 0.375rem 0.75rem;\n margin: -0.375rem -0.75rem;\n margin-inline-end: 0.75rem;\n color: var(--bs-body-color);\n background-color: var(--bs-tertiary-bg);\n pointer-events: none;\n border-color: inherit;\n border-style: solid;\n border-width: 0;\n border-inline-end-width: var(--bs-border-width);\n border-radius: 0;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n@media (prefers-reduced-motion: reduce) {\n .form-control[data-mps=query-builder]::file-selector-button {\n transition: none;\n }\n}\n.form-control:hover:not(:disabled):not([readonly])[data-mps=query-builder]::file-selector-button {\n background-color: var(--bs-secondary-bg);\n}\n\n.form-control-plaintext[data-mps=query-builder] {\n display: block;\n width: 100%;\n padding: 0.375rem 0;\n margin-bottom: 0;\n line-height: 1.5;\n color: var(--bs-body-color);\n background-color: transparent;\n border: solid transparent;\n border-width: var(--bs-border-width) 0;\n}\n.form-control-plaintext:focus[data-mps=query-builder] {\n outline: 0;\n}\n.form-control-plaintext.form-control-sm[data-mps=query-builder], .form-control-plaintext.form-control-lg[data-mps=query-builder] {\n padding-right: 0;\n padding-left: 0;\n}\n\n.form-control-sm[data-mps=query-builder] {\n min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n border-radius: var(--bs-border-radius-sm);\n}\n.form-control-sm[data-mps=query-builder]::file-selector-button {\n padding: 0.25rem 0.5rem;\n margin: -0.25rem -0.5rem;\n margin-inline-end: 0.5rem;\n}\n\n.form-control-lg[data-mps=query-builder] {\n min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));\n padding: 0.5rem 1rem;\n font-size: 1.25rem;\n border-radius: var(--bs-border-radius-lg);\n}\n.form-control-lg[data-mps=query-builder]::file-selector-button {\n padding: 0.5rem 1rem;\n margin: -0.5rem -1rem;\n margin-inline-end: 1rem;\n}\n\ntextarea.form-control[data-mps=query-builder] {\n min-height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));\n}\ntextarea.form-control-sm[data-mps=query-builder] {\n min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));\n}\ntextarea.form-control-lg[data-mps=query-builder] {\n min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));\n}\n\n.form-control-color[data-mps=query-builder] {\n width: 3rem;\n height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));\n padding: 0.375rem;\n}\n.form-control-color:not(:disabled):not([readonly])[data-mps=query-builder] {\n cursor: pointer;\n}\n.form-control-color[data-mps=query-builder]::-moz-color-swatch {\n border: 0 !important;\n border-radius: var(--bs-border-radius);\n}\n.form-control-color[data-mps=query-builder]::-webkit-color-swatch {\n border: 0 !important;\n border-radius: var(--bs-border-radius);\n}\n.form-control-color.form-control-sm[data-mps=query-builder] {\n height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));\n}\n.form-control-color.form-control-lg[data-mps=query-builder] {\n height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));\n}\n\nmp-query-builder {\n display: block;\n font-family: var(--bs-body-font-family, system-ui);\n font-size: var(--bs-body-font-size, 1rem);\n color: var(--bs-body-color, currentColor);\n}\n\n.qb-root[data-mps=query-builder] {\n border: 1px solid var(--bs-border-color, #dee2e6);\n border-radius: var(--bs-border-radius, 0.375rem);\n padding: 0.5rem;\n background: var(--bs-body-bg, transparent);\n}\n\n.qb-toolbar[data-mps=query-builder] {\n display: flex;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n margin-bottom: 0.5rem;\n padding: 0.5rem;\n background: var(--bs-tertiary-bg, #f8f9fa);\n border: 1px solid var(--bs-border-color, #dee2e6);\n border-radius: var(--bs-border-radius-sm, 0.25rem);\n}\n\n.qb-toolbar-label[data-mps=query-builder] {\n display: inline-flex;\n align-items: center;\n gap: 0.375rem;\n font-size: 0.875rem;\n font-weight: 500;\n margin: 0;\n}\n\n.qb-entity-picker[data-mps=query-builder] {\n width: auto;\n min-width: 8rem;\n}\n\n.qb-toolbar-section[data-mps=query-builder] {\n display: inline-flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n align-items: center;\n}\n\n.qb-field-checkbox[data-mps=query-builder] {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n font-size: 0.875rem;\n font-weight: 400;\n margin: 0;\n cursor: pointer;\n}\n.qb-field-checkbox[data-mps=query-builder] input[type=checkbox][data-mps=query-builder] {\n margin: 0;\n}\n\n.qb-sort-row[data-mps=query-builder] {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n font-size: 0.875rem;\n}\n.qb-sort-row[data-mps=query-builder] .qb-sort-field[data-mps=query-builder],\n.qb-sort-row[data-mps=query-builder] .qb-sort-direction[data-mps=query-builder] {\n width: auto;\n}\n.qb-sort-row[data-mps=query-builder] .qb-sort-field[data-mps=query-builder] {\n min-width: 6rem;\n}\n.qb-sort-row[data-mps=query-builder] .qb-sort-direction[data-mps=query-builder] {\n min-width: 4.5rem;\n}\n.qb-sort-row[data-mps=query-builder] .qb-sort-remove[data-mps=query-builder] {\n padding: 0 0.375rem;\n line-height: 1;\n color: var(--bs-danger, #dc3545);\n}\n\n.qb-sort-add[data-mps=query-builder] {\n --bs-btn-color: var(--bs-secondary-color);\n}\n\n.qb-too-deep[data-mps=query-builder] {\n padding: 0.5rem;\n color: var(--bs-warning-text-emphasis, #997404);\n background: var(--bs-warning-bg-subtle, #fff3cd);\n border: 1px solid var(--bs-warning-border-subtle, #ffe69c);\n border-radius: var(--bs-border-radius, 0.375rem);\n font-style: italic;\n}\n\n.qb-saved[data-mps=query-builder] {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n align-items: center;\n margin-bottom: 0.5rem;\n padding: 0.5rem;\n background: var(--bs-tertiary-bg, #f8f9fa);\n border: 1px solid var(--bs-border-color, #dee2e6);\n border-radius: var(--bs-border-radius-sm, 0.25rem);\n}\n\n.qb-saved-list[data-mps=query-builder] {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.qb-saved-row[data-mps=query-builder] {\n display: inline-flex;\n align-items: center;\n gap: 0.125rem;\n}\n\n.qb-saved-new[data-mps=query-builder] {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n margin-left: auto;\n}\n\n.qb-saved-empty[data-mps=query-builder] {\n color: var(--bs-secondary-color, #6c757d);\n font-style: italic;\n font-size: 0.875rem;\n}\n\n.qb-preview[data-mps=query-builder] {\n margin: 0 0 0.5rem;\n padding: 0.5rem;\n background: var(--bs-secondary-bg, #f8f9fa);\n border: 1px solid var(--bs-border-color, #dee2e6);\n border-radius: var(--bs-border-radius-sm, 0.25rem);\n font-family: var(--bs-font-monospace, monospace);\n font-size: 0.8125rem;\n color: var(--bs-body-color, currentColor);\n white-space: pre-wrap;\n word-break: break-word;\n}"), V = o(".form-control[data-mps=query-condition] {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: var(--bs-body-color);\n appearance: none;\n background-color: var(--bs-body-bg);\n background-clip: padding-box;\n border: var(--bs-border-width) solid var(--bs-border-color);\n border-radius: var(--bs-border-radius);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n@media (prefers-reduced-motion: reduce) {\n .form-control[data-mps=query-condition] {\n transition: none;\n }\n}\n.form-control[type=file][data-mps=query-condition] {\n overflow: hidden;\n}\n.form-control[type=file]:not(:disabled):not([readonly])[data-mps=query-condition] {\n cursor: pointer;\n}\n.form-control:focus[data-mps=query-condition] {\n color: var(--bs-body-color);\n background-color: var(--bs-body-bg);\n border-color: rgb(52.5490196078%, 71.568627451%, 99.6078431373%);\n outline: 0;\n box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);\n}\n.form-control[data-mps=query-condition]::-webkit-date-and-time-value {\n min-width: 85px;\n height: 1.5em;\n margin: 0;\n}\n.form-control[data-mps=query-condition]::-webkit-datetime-edit {\n display: block;\n padding: 0;\n}\n.form-control[data-mps=query-condition]::placeholder {\n color: var(--bs-secondary-color);\n opacity: 1;\n}\n.form-control:disabled[data-mps=query-condition] {\n background-color: var(--bs-secondary-bg);\n opacity: 1;\n}\n.form-control[data-mps=query-condition]::file-selector-button {\n padding: 0.375rem 0.75rem;\n margin: -0.375rem -0.75rem;\n margin-inline-end: 0.75rem;\n color: var(--bs-body-color);\n background-color: var(--bs-tertiary-bg);\n pointer-events: none;\n border-color: inherit;\n border-style: solid;\n border-width: 0;\n border-inline-end-width: var(--bs-border-width);\n border-radius: 0;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n@media (prefers-reduced-motion: reduce) {\n .form-control[data-mps=query-condition]::file-selector-button {\n transition: none;\n }\n}\n.form-control:hover:not(:disabled):not([readonly])[data-mps=query-condition]::file-selector-button {\n background-color: var(--bs-secondary-bg);\n}\n\n.form-control-plaintext[data-mps=query-condition] {\n display: block;\n width: 100%;\n padding: 0.375rem 0;\n margin-bottom: 0;\n line-height: 1.5;\n color: var(--bs-body-color);\n background-color: transparent;\n border: solid transparent;\n border-width: var(--bs-border-width) 0;\n}\n.form-control-plaintext:focus[data-mps=query-condition] {\n outline: 0;\n}\n.form-control-plaintext.form-control-sm[data-mps=query-condition], .form-control-plaintext.form-control-lg[data-mps=query-condition] {\n padding-right: 0;\n padding-left: 0;\n}\n\n.form-control-sm[data-mps=query-condition] {\n min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n border-radius: var(--bs-border-radius-sm);\n}\n.form-control-sm[data-mps=query-condition]::file-selector-button {\n padding: 0.25rem 0.5rem;\n margin: -0.25rem -0.5rem;\n margin-inline-end: 0.5rem;\n}\n\n.form-control-lg[data-mps=query-condition] {\n min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));\n padding: 0.5rem 1rem;\n font-size: 1.25rem;\n border-radius: var(--bs-border-radius-lg);\n}\n.form-control-lg[data-mps=query-condition]::file-selector-button {\n padding: 0.5rem 1rem;\n margin: -0.5rem -1rem;\n margin-inline-end: 1rem;\n}\n\ntextarea.form-control[data-mps=query-condition] {\n min-height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));\n}\ntextarea.form-control-sm[data-mps=query-condition] {\n min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));\n}\ntextarea.form-control-lg[data-mps=query-condition] {\n min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));\n}\n\n.form-control-color[data-mps=query-condition] {\n width: 3rem;\n height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));\n padding: 0.375rem;\n}\n.form-control-color:not(:disabled):not([readonly])[data-mps=query-condition] {\n cursor: pointer;\n}\n.form-control-color[data-mps=query-condition]::-moz-color-swatch {\n border: 0 !important;\n border-radius: var(--bs-border-radius);\n}\n.form-control-color[data-mps=query-condition]::-webkit-color-swatch {\n border: 0 !important;\n border-radius: var(--bs-border-radius);\n}\n.form-control-color.form-control-sm[data-mps=query-condition] {\n height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));\n}\n.form-control-color.form-control-lg[data-mps=query-condition] {\n height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));\n}\n\n.form-select[data-mps=query-condition] {\n --bs-form-select-bg-img: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\");\n display: block;\n width: 100%;\n padding: 0.375rem 2.25rem 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: var(--bs-body-color);\n appearance: none;\n background-color: var(--bs-body-bg);\n background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);\n background-repeat: no-repeat;\n background-position: right 0.75rem center;\n background-size: 16px 12px;\n border: var(--bs-border-width) solid var(--bs-border-color);\n border-radius: var(--bs-border-radius);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n@media (prefers-reduced-motion: reduce) {\n .form-select[data-mps=query-condition] {\n transition: none;\n }\n}\n.form-select:focus[data-mps=query-condition] {\n border-color: rgb(52.5490196078%, 71.568627451%, 99.6078431373%);\n outline: 0;\n box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);\n}\n.form-select[multiple][data-mps=query-condition], .form-select[size]:not([size=\"1\"])[data-mps=query-condition] {\n padding-right: 0.75rem;\n background-image: none;\n}\n.form-select:disabled[data-mps=query-condition] {\n background-color: var(--bs-secondary-bg);\n}\n.form-select:-moz-focusring[data-mps=query-condition] {\n color: transparent;\n text-shadow: 0 0 0 var(--bs-body-color);\n}\n\n.form-select-sm[data-mps=query-condition] {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n padding-left: 0.5rem;\n font-size: 0.875rem;\n border-radius: var(--bs-border-radius-sm);\n}\n\n.form-select-lg[data-mps=query-condition] {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n padding-left: 1rem;\n font-size: 1.25rem;\n border-radius: var(--bs-border-radius-lg);\n}\n\n@container style(--mp-color-mode: dark) {\n .form-select[data-mps=query-condition] {\n --bs-form-select-bg-img: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\");\n }\n}\n@media (forced-colors: active) {\n .form-select[data-mps=query-condition] {\n appearance: auto;\n background-image: none;\n }\n}\nmp-query-condition {\n display: block;\n}\n\n.qb-condition[data-mps=query-condition] {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.25rem 0;\n font-size: 0.875rem;\n flex-wrap: wrap;\n}\n\n.qb-field-select[data-mps=query-condition],\n.qb-operator-select[data-mps=query-condition] {\n display: inline-block;\n width: auto;\n min-width: 8rem;\n}\n\n.qb-remove[data-mps=query-condition] {\n flex: 0 0 auto;\n margin-left: auto;\n padding: 0 0.5rem;\n line-height: 1;\n font-size: 1rem;\n color: var(--bs-danger, #dc3545);\n}\n\n.qb-drag-handle[data-mps=query-condition] {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1rem;\n height: 1.25rem;\n padding: 0;\n background: transparent;\n border: 0;\n color: var(--bs-secondary-color, #6c757d);\n cursor: grab;\n font-size: 1rem;\n line-height: 1;\n touch-action: none;\n}\n\n.qb-drag-handle:active[data-mps=query-condition] {\n cursor: grabbing;\n}\n\n.qb-drag-handle:disabled[data-mps=query-condition] {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.qb-field[data-mps=query-condition] {\n font-weight: 600;\n color: var(--bs-body-color, currentColor);\n}\n\n.qb-operator[data-mps=query-condition] {\n color: var(--bs-secondary-color, #6c757d);\n}\n\n.qb-value[data-mps=query-condition] {\n color: var(--bs-primary-text-emphasis, #084298);\n}\n\n.qb-value-list[data-mps=query-condition] {\n display: inline-flex;\n gap: 0.25rem;\n}\n\n.qb-value-pill[data-mps=query-condition] {\n display: inline-block;\n padding: 0 0.375rem;\n background: var(--bs-info-bg-subtle, #cff4fc);\n color: var(--bs-info-text-emphasis, #055160);\n border-radius: var(--bs-border-radius-sm, 0.25rem);\n}\n\n.qb-missing[data-mps=query-condition] {\n color: var(--bs-danger-text-emphasis, #842029);\n font-style: italic;\n}\n\n.qb-editor-input[data-mps=query-condition] {\n display: inline-block;\n width: auto;\n min-width: 6rem;\n vertical-align: middle;\n}\n\n.qb-editor-n-input[data-mps=query-condition] {\n min-width: 4rem;\n max-width: 6rem;\n}\n\n.qb-editor-select[data-mps=query-condition],\n.qb-editor-multiselect[data-mps=query-condition] {\n display: inline-block;\n width: auto;\n min-width: 8rem;\n vertical-align: middle;\n}\n\n.qb-editor-tuple[data-mps=query-condition] {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.qb-editor-tuple-sep[data-mps=query-condition] {\n color: var(--bs-secondary-color, #6c757d);\n font-size: 0.875rem;\n}\n\n.qb-editor-chip-input[data-mps=query-condition] {\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.25rem;\n padding: 0.125rem;\n border: 1px solid var(--bs-border-color, #dee2e6);\n border-radius: var(--bs-border-radius-sm, 0.25rem);\n background: var(--bs-body-bg, transparent);\n min-height: 1.75rem;\n}\n\n.qb-editor-chip[data-mps=query-condition] {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n padding: 0 0.375rem;\n background: var(--bs-info-bg-subtle, #cff4fc);\n color: var(--bs-info-text-emphasis, #055160);\n border-radius: var(--bs-border-radius-sm, 0.25rem);\n font-size: 0.75rem;\n}\n\n.qb-editor-chip-remove[data-mps=query-condition] {\n background: transparent;\n border: 0;\n padding: 0 0.125rem;\n color: inherit;\n cursor: pointer;\n line-height: 1;\n font-size: 0.875rem;\n}\n\n.qb-editor-chip-remove:disabled[data-mps=query-condition] {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.qb-editor-chip-add[data-mps=query-condition] {\n display: inline-block;\n width: auto;\n border: 0;\n padding: 0 0.25rem;\n font-size: 0.875rem;\n background: transparent;\n min-width: 4rem;\n}\n\n.qb-editor-chip-add:focus[data-mps=query-condition] {\n outline: none;\n box-shadow: none;\n}"), H = o("mp-query-group {\n display: block;\n margin: 0.25rem 0;\n}\n\n.qb-group[data-mps=query-group] {\n border-left: 3px solid var(--bs-border-color, #dee2e6);\n padding-left: 0.5rem;\n}\n\n.qb-group-header[data-mps=query-group] {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n font-size: 0.875rem;\n margin-bottom: 0.25rem;\n flex-wrap: wrap;\n}\n\n.qb-group-actions[data-mps=query-group] {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n margin-left: auto;\n}\n\n.qb-logic-btn[data-mps=query-group] {\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n padding: 0.125rem 0.5rem;\n}\n\n.qb-remove-group[data-mps=query-group] {\n padding: 0 0.5rem;\n line-height: 1;\n font-size: 1rem;\n color: var(--bs-danger, #dc3545);\n}\n\n.qb-children[data-mps=query-group] {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\n.qb-empty[data-mps=query-group] {\n color: var(--bs-secondary-color, #6c757d);\n font-style: italic;\n font-size: 0.875rem;\n padding: 0.25rem 0;\n}\n\n.qb-drop-slot[data-mps=query-group] {\n display: block;\n height: 0.25rem;\n margin: 0.0625rem 0;\n border-radius: 2px;\n background: transparent;\n transition: background 0.1s ease-in-out, height 0.1s ease-in-out;\n}\n\n.qb-drop-slot:hover[data-mps=query-group] {\n background: var(--bs-primary, #0d6efd);\n height: 0.375rem;\n}\n\n.qb-drop-slot-placeholder[data-mps=query-group] {\n height: 2rem;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--bs-secondary-color, #6c757d);\n font-style: italic;\n border: 2px dashed var(--bs-border-color, #dee2e6);\n background: var(--bs-tertiary-bg, #f8f9fa);\n}\n\n@media (prefers-reduced-motion: reduce) {\n [data-mps=query-group] {\n transition-duration: 0.01ms !important;\n }\n}"), U = o("mp-query-subquery {\n display: block;\n margin: 0.25rem 0;\n}\n\n.qb-subquery[data-mps=query-subquery] {\n border: 1px dashed var(--bs-border-color, #dee2e6);\n border-radius: var(--bs-border-radius, 0.375rem);\n padding: 0.5rem;\n background: var(--bs-tertiary-bg, #f8f9fa);\n}\n\n.qb-subquery-header[data-mps=query-subquery] {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n font-size: 0.875rem;\n margin-bottom: 0.5rem;\n}\n\n.qb-subquery-field[data-mps=query-subquery] {\n font-weight: 600;\n}\n\n.qb-subquery-operator[data-mps=query-subquery] {\n color: var(--bs-secondary-color, #6c757d);\n text-transform: lowercase;\n}\n\n.qb-subquery-target[data-mps=query-subquery] {\n font-style: italic;\n color: var(--bs-secondary-color, #6c757d);\n}"), xe = 99999, Se = class {
|
|
570
|
-
constructor() {
|
|
571
|
-
this._source = null, this._ghost = null, this._lastTarget = null, this._offsetX = 0, this._offsetY = 0;
|
|
572
|
-
}
|
|
573
|
-
isActive() {
|
|
574
|
-
return this._source !== null;
|
|
575
|
-
}
|
|
576
|
-
source() {
|
|
577
|
-
return this._source;
|
|
578
|
-
}
|
|
579
|
-
currentTarget() {
|
|
580
|
-
return this._lastTarget;
|
|
581
|
-
}
|
|
582
|
-
start(e, t) {
|
|
583
|
-
if (typeof document > "u") return;
|
|
584
|
-
this._source = e;
|
|
585
|
-
let n = e.rowElement.getBoundingClientRect();
|
|
586
|
-
this._offsetX = t.clientX - n.left, this._offsetY = t.clientY - n.top;
|
|
587
|
-
let r = e.rowElement.cloneNode(!0);
|
|
588
|
-
r.style.position = "fixed", r.style.top = `${n.top}px`, r.style.left = `${n.left}px`, r.style.width = `${n.width}px`, r.style.pointerEvents = "none", r.style.zIndex = String(xe), r.style.opacity = "0.85", r.classList.add("qb-drag-ghost"), document.body.appendChild(r), this._ghost = r;
|
|
589
|
-
}
|
|
590
|
-
move(e) {
|
|
591
|
-
if (!this._source || !this._ghost) return;
|
|
592
|
-
this._ghost.style.top = `${e.clientY - this._offsetY}px`, this._ghost.style.left = `${e.clientX - this._offsetX}px`;
|
|
593
|
-
let t = this.resolveDropTarget(e.clientX, e.clientY);
|
|
594
|
-
this._lastTarget = t;
|
|
595
|
-
}
|
|
596
|
-
end(e) {
|
|
597
|
-
let t = this._lastTarget;
|
|
598
|
-
return this.cleanup(), t;
|
|
599
|
-
}
|
|
600
|
-
cancel() {
|
|
601
|
-
this.cleanup();
|
|
602
|
-
}
|
|
603
|
-
cleanup() {
|
|
604
|
-
this._ghost && typeof document < "u" && this._ghost.remove(), this._ghost = null, this._source = null, this._lastTarget = null, this._offsetX = 0, this._offsetY = 0;
|
|
605
|
-
}
|
|
606
|
-
elementsAt(e, t) {
|
|
607
|
-
return Ce(document.elementsFromPoint(e, t), e, t);
|
|
608
|
-
}
|
|
609
|
-
resolveDropTarget(e, t) {
|
|
610
|
-
let n = this._source;
|
|
611
|
-
if (!n) return null;
|
|
612
|
-
let r = this.elementsAt(e, t).map((e) => e.closest("[data-drop-slot]")).map((e) => e && {
|
|
613
|
-
parentId: e.dataset.parentId,
|
|
614
|
-
index: e.dataset.index,
|
|
615
|
-
qbRoot: e.dataset.qbRoot
|
|
616
|
-
}).find((e) => !!e && !!e.parentId && !!e.index && !!e.qbRoot && !n.descendantIds.has(e.parentId));
|
|
617
|
-
return r ? {
|
|
618
|
-
parentId: r.parentId,
|
|
619
|
-
index: Number(r.index),
|
|
620
|
-
qbRoot: r.qbRoot
|
|
621
|
-
} : null;
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
|
-
function Ce(e, t, n) {
|
|
625
|
-
let r = [...new Set(e.map((e) => e.shadowRoot).filter((e) => !!e))].map((e) => e.elementFromPoint(t, n)).filter((e) => !!e);
|
|
626
|
-
return [...e, ...r];
|
|
627
|
-
}
|
|
628
|
-
//#endregion
|
|
629
|
-
//#region libs/mintplayer-web-components/query-builder/src/context.ts
|
|
630
|
-
var W = d(Symbol("mp-query-builder.editorRegistry")), G = d(Symbol("mp-query-builder.disabled")), K = d(Symbol("mp-query-builder.messages")), q = d(Symbol("mp-query-builder.maxDepth")), we = "query-condition";
|
|
631
|
-
function Te(e) {
|
|
632
|
-
return (t) => {
|
|
633
|
-
let r = e(t);
|
|
634
|
-
return n(r.element, we), r;
|
|
635
|
-
};
|
|
636
|
-
}
|
|
637
|
-
function J(e, t, n, r, i = {}) {
|
|
638
|
-
let a = document.createElement("input");
|
|
639
|
-
a.type = e, a.className = "form-control form-control-sm qb-editor-input", a.value = t, r && (a.disabled = !0);
|
|
640
|
-
for (let [e, t] of Object.entries(i)) t !== void 0 && a.setAttribute(e, t);
|
|
641
|
-
let o = () => n(a.value);
|
|
642
|
-
return a.addEventListener("input", o), a.addEventListener("change", o), a;
|
|
643
|
-
}
|
|
644
|
-
function Ee(e, t) {
|
|
645
|
-
return e == null ? "" : t === "date" && e instanceof Date ? e.toISOString().slice(0, 10) : t === "datetime" && e instanceof Date ? e.toISOString().slice(0, 16) : typeof e == "string" && (t === "date" || t === "datetime") ? t === "date" ? e.slice(0, 10) : e.slice(0, 16) : String(e);
|
|
646
|
-
}
|
|
647
|
-
function De(e, t) {
|
|
648
|
-
if (e === "") return null;
|
|
649
|
-
switch (t) {
|
|
650
|
-
case "number": return Number(e);
|
|
651
|
-
case "integer": return Number.parseInt(e, 10);
|
|
652
|
-
case "date":
|
|
653
|
-
case "datetime": return e;
|
|
654
|
-
default: return e;
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
function Y(e) {
|
|
658
|
-
return (t) => {
|
|
659
|
-
let n = e === "string" ? "text" : e === "date" ? "date" : e === "datetime" ? "datetime-local" : "number", r = {};
|
|
660
|
-
e === "integer" && (r.step = "1"), e === "number" && (r.step = "any");
|
|
661
|
-
let i = J(n, Ee(t.value, e), (n) => t.onChange(De(n, e)), t.disabled, r);
|
|
662
|
-
return i.setAttribute("aria-label", t.field.label), { element: i };
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
function Oe(e) {
|
|
666
|
-
return (t) => {
|
|
667
|
-
let n = document.createElement("span");
|
|
668
|
-
n.className = "qb-editor-tuple";
|
|
669
|
-
let r = Array.isArray(t.value) ? [t.value[0] ?? null, t.value[1] ?? null] : [null, null], [i, a] = r, o = (n, i) => {
|
|
670
|
-
r = r.map((t, r) => r === n ? De(i, e) : t), t.onChange(r);
|
|
671
|
-
}, s = (t) => Ee(t, e), c = e === "date" ? "date" : e === "datetime" ? "datetime-local" : "number", l = {};
|
|
672
|
-
e === "integer" && (l.step = "1"), e === "number" && (l.step = "any");
|
|
673
|
-
let u = J(c, s(i), (e) => o(0, e), t.disabled, l), d = J(c, s(a), (e) => o(1, e), t.disabled, l);
|
|
674
|
-
u.setAttribute("aria-label", `${t.field.label} (from)`), d.setAttribute("aria-label", `${t.field.label} (to)`);
|
|
675
|
-
let f = document.createElement("span");
|
|
676
|
-
return f.textContent = " … ", f.className = "qb-editor-tuple-sep", n.append(u, f, d), { element: n };
|
|
677
|
-
};
|
|
678
|
-
}
|
|
679
|
-
function ke() {
|
|
680
|
-
return (e) => {
|
|
681
|
-
let t = J("number", typeof e.value == "object" && e.value !== null ? String(e.value.n ?? 1) : "1", (t) => {
|
|
682
|
-
let n = Math.max(1, Number.parseInt(t, 10) || 1);
|
|
683
|
-
e.onChange({ n });
|
|
684
|
-
}, e.disabled, {
|
|
685
|
-
min: "1",
|
|
686
|
-
step: "1"
|
|
687
|
-
});
|
|
688
|
-
return t.classList.add("qb-editor-n-input"), t.setAttribute("aria-label", `${e.field.label} — number of days`), { element: t };
|
|
689
|
-
};
|
|
690
|
-
}
|
|
691
|
-
function Ae(e) {
|
|
692
|
-
return (t) => {
|
|
693
|
-
let n = document.createElement("select");
|
|
694
|
-
n.className = "form-select form-select-sm qb-editor-select", n.setAttribute("aria-label", t.field.label), t.disabled && (n.disabled = !0);
|
|
695
|
-
let r = document.createElement("option");
|
|
696
|
-
r.value = "", r.textContent = "—", n.appendChild(r);
|
|
697
|
-
for (let r of e) {
|
|
698
|
-
let e = document.createElement("option");
|
|
699
|
-
e.value = String(r.value), e.textContent = r.label, t.value === r.value && (e.selected = !0), n.appendChild(e);
|
|
700
|
-
}
|
|
701
|
-
return n.addEventListener("change", () => {
|
|
702
|
-
if (n.value === "") {
|
|
703
|
-
t.onChange(null);
|
|
704
|
-
return;
|
|
705
|
-
}
|
|
706
|
-
let r = e.find((e) => String(e.value) === n.value);
|
|
707
|
-
t.onChange(r?.value ?? n.value);
|
|
708
|
-
}), { element: n };
|
|
709
|
-
};
|
|
710
|
-
}
|
|
711
|
-
function je(e) {
|
|
712
|
-
return (t) => {
|
|
713
|
-
let n = document.createElement("select");
|
|
714
|
-
n.className = "form-select form-select-sm qb-editor-multiselect", n.multiple = !0, n.setAttribute("aria-label", t.field.label), t.disabled && (n.disabled = !0);
|
|
715
|
-
let r = Array.isArray(t.value) ? t.value : [];
|
|
716
|
-
for (let t of e) {
|
|
717
|
-
let e = document.createElement("option");
|
|
718
|
-
e.value = String(t.value), e.textContent = t.label, r.includes(t.value) && (e.selected = !0), n.appendChild(e);
|
|
719
|
-
}
|
|
720
|
-
return n.addEventListener("change", () => {
|
|
721
|
-
let r = Array.from(n.selectedOptions).map((t) => e.find((e) => String(e.value) === t.value)?.value ?? t.value);
|
|
722
|
-
t.onChange(r);
|
|
723
|
-
}), { element: n };
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
function Me(e) {
|
|
727
|
-
return (t) => {
|
|
728
|
-
let r = document.createElement("span");
|
|
729
|
-
r.className = "qb-editor-chip-input";
|
|
730
|
-
let i = Array.isArray(t.value) ? [...t.value] : [], a = document.createElement("input");
|
|
731
|
-
a.type = "text", a.className = "form-control form-control-sm qb-editor-chip-add", a.placeholder = "+ add", a.size = 8, a.setAttribute("aria-label", `${t.field.label} — add value`), t.disabled && (a.disabled = !0);
|
|
732
|
-
let o = (e) => {
|
|
733
|
-
i = e, c(), t.onChange(e);
|
|
734
|
-
}, s = (e, r) => {
|
|
735
|
-
let a = document.createElement("span");
|
|
736
|
-
a.className = "qb-editor-chip", a.textContent = String(e);
|
|
737
|
-
let s = document.createElement("button");
|
|
738
|
-
return s.type = "button", s.className = "qb-editor-chip-remove", s.setAttribute("aria-label", `Remove ${String(e)}`), s.textContent = "×", t.disabled && (s.disabled = !0), s.addEventListener("click", () => o(i.filter((e, t) => t !== r))), a.appendChild(s), n(a, we), a;
|
|
739
|
-
}, c = () => {
|
|
740
|
-
let e = document.createRange();
|
|
741
|
-
e.selectNodeContents(r), e.setEndBefore(a), e.deleteContents(), a.before(...i.map(s));
|
|
742
|
-
};
|
|
743
|
-
return r.appendChild(a), a.addEventListener("keydown", (t) => {
|
|
744
|
-
if (t.key === "Enter" && a.value.trim() !== "") {
|
|
745
|
-
t.preventDefault();
|
|
746
|
-
let n = e(a.value.trim());
|
|
747
|
-
a.value = "", o([...i, n]);
|
|
748
|
-
}
|
|
749
|
-
}), c(), {
|
|
750
|
-
element: r,
|
|
751
|
-
dispose: () => {}
|
|
752
|
-
};
|
|
753
|
-
};
|
|
754
|
-
}
|
|
755
|
-
function Ne(e, t) {
|
|
756
|
-
let n = Pe(e, t);
|
|
757
|
-
return n ? Te(n) : null;
|
|
758
|
-
}
|
|
759
|
-
function Pe(e, t) {
|
|
760
|
-
let n = p(t);
|
|
761
|
-
if (n === "null") return null;
|
|
762
|
-
if (n === "n-input") return ke();
|
|
763
|
-
if (n === "tuple") {
|
|
764
|
-
let t = e.type;
|
|
765
|
-
return Oe(t === "number" || t === "integer" || t === "date" || t === "datetime" ? t : "number");
|
|
766
|
-
}
|
|
767
|
-
return n === "array" ? e.options && e.options.length > 0 ? je(e.options) : e.type === "number" || e.type === "integer" ? Me((t) => e.type === "integer" ? Number.parseInt(t, 10) : Number(t)) : Me((e) => e) : e.type === "enum" && e.options && e.options.length > 0 ? Ae(e.options) : e.type === "string" ? Y("string") : e.type === "number" ? Y("number") : e.type === "integer" ? Y("integer") : e.type === "date" ? Y("date") : e.type === "datetime" ? Y("datetime") : null;
|
|
768
|
-
}
|
|
769
|
-
//#endregion
|
|
770
|
-
//#region libs/mintplayer-web-components/query-builder/src/mp-query-condition.element.ts
|
|
771
|
-
var X = t("query-condition"), Fe = class extends i {
|
|
772
|
-
constructor(...e) {
|
|
773
|
-
super(...e), this.node = null, this.schema = [], this.currentEntity = "", this._messagesConsumer = new l(this, {
|
|
774
|
-
context: K,
|
|
775
|
-
subscribe: !0
|
|
776
|
-
}), this._disabledConsumer = new l(this, {
|
|
777
|
-
context: G,
|
|
778
|
-
subscribe: !0
|
|
779
|
-
}), this._registryConsumer = new l(this, {
|
|
780
|
-
context: W,
|
|
781
|
-
subscribe: !0
|
|
782
|
-
}), this._editorMount = s(), this._currentHandle = null, this._editorKey = "", this._registryTokens = /* @__PURE__ */ new WeakMap(), this._nextRegistryToken = 1, this._onFieldChange = (e) => {
|
|
783
|
-
let t = e.target, n = this.node;
|
|
784
|
-
n && this.dispatchEvent(new CustomEvent("condition-field-change", {
|
|
785
|
-
detail: {
|
|
786
|
-
id: n.id,
|
|
787
|
-
field: t.value
|
|
788
|
-
},
|
|
789
|
-
bubbles: !0,
|
|
790
|
-
composed: !0
|
|
791
|
-
}));
|
|
792
|
-
}, this._onOperatorChange = (e) => {
|
|
793
|
-
let t = e.target, n = this.node;
|
|
794
|
-
n && this.dispatchEvent(new CustomEvent("condition-operator-change", {
|
|
795
|
-
detail: {
|
|
796
|
-
id: n.id,
|
|
797
|
-
operator: t.value
|
|
798
|
-
},
|
|
799
|
-
bubbles: !0,
|
|
800
|
-
composed: !0
|
|
801
|
-
}));
|
|
802
|
-
}, this._onRemove = () => {
|
|
803
|
-
let e = this.node;
|
|
804
|
-
e && this.dispatchEvent(new CustomEvent("node-remove", {
|
|
805
|
-
detail: { id: e.id },
|
|
806
|
-
bubbles: !0,
|
|
807
|
-
composed: !0
|
|
808
|
-
}));
|
|
809
|
-
}, this._onRowKeyDown = (e) => {
|
|
810
|
-
if (!e.altKey || e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
|
|
811
|
-
let t = this.node;
|
|
812
|
-
if (!t || this.isDisabled()) return;
|
|
813
|
-
let n = this.renderRoot?.querySelector(".qb-condition"), r = e.composedPath()[0], i = r instanceof HTMLElement && r.classList.contains("qb-drag-handle");
|
|
814
|
-
(r === n || i) && (e.preventDefault(), this.dispatchEvent(new CustomEvent("qb-keyboard-move", {
|
|
815
|
-
detail: {
|
|
816
|
-
id: t.id,
|
|
817
|
-
direction: e.key === "ArrowUp" ? "up" : "down"
|
|
818
|
-
},
|
|
819
|
-
bubbles: !0,
|
|
820
|
-
composed: !0
|
|
821
|
-
})));
|
|
822
|
-
}, this._onDragPointerDown = (e) => {
|
|
823
|
-
if (this.isDisabled()) return;
|
|
824
|
-
let t = this.node;
|
|
825
|
-
if (!t) return;
|
|
826
|
-
let n = this.renderRoot?.querySelector(".qb-condition");
|
|
827
|
-
n && this.dispatchEvent(new CustomEvent("qb-drag-start", {
|
|
828
|
-
detail: {
|
|
829
|
-
id: t.id,
|
|
830
|
-
pointerId: e.pointerId,
|
|
831
|
-
clientX: e.clientX,
|
|
832
|
-
clientY: e.clientY,
|
|
833
|
-
rowElement: n
|
|
834
|
-
},
|
|
835
|
-
bubbles: !0,
|
|
836
|
-
composed: !0
|
|
837
|
-
}));
|
|
838
|
-
};
|
|
839
|
-
}
|
|
840
|
-
createRenderRoot() {
|
|
841
|
-
return this;
|
|
842
|
-
}
|
|
843
|
-
static {
|
|
844
|
-
this.properties = {
|
|
845
|
-
node: { attribute: !1 },
|
|
846
|
-
schema: { attribute: !1 },
|
|
847
|
-
currentEntity: { attribute: !1 }
|
|
848
|
-
};
|
|
849
|
-
}
|
|
850
|
-
_registryIdentityToken(e) {
|
|
851
|
-
if (!e) return 0;
|
|
852
|
-
let t = this._registryTokens.get(e);
|
|
853
|
-
if (t !== void 0) return t;
|
|
854
|
-
let n = this._nextRegistryToken++;
|
|
855
|
-
return this._registryTokens.set(e, n), n;
|
|
856
|
-
}
|
|
857
|
-
connectedCallback() {
|
|
858
|
-
super.connectedCallback(), r();
|
|
859
|
-
}
|
|
860
|
-
disconnectedCallback() {
|
|
861
|
-
super.disconnectedCallback(), this._disposeEditor();
|
|
862
|
-
}
|
|
863
|
-
_disposeEditor() {
|
|
864
|
-
let e = this._currentHandle;
|
|
865
|
-
if (e) {
|
|
866
|
-
try {
|
|
867
|
-
e.dispose?.();
|
|
868
|
-
} catch {}
|
|
869
|
-
e.element.remove(), this._currentHandle = null;
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
resolveField(e) {
|
|
873
|
-
return this.schema.find((e) => e.name === this.currentEntity)?.fields.find((t) => t.name === e);
|
|
874
|
-
}
|
|
875
|
-
messages() {
|
|
876
|
-
let e = this._messagesConsumer.value ?? {};
|
|
877
|
-
return {
|
|
878
|
-
...P,
|
|
879
|
-
...e,
|
|
880
|
-
operators: {
|
|
881
|
-
...P.operators,
|
|
882
|
-
...e.operators ?? {}
|
|
883
|
-
}
|
|
884
|
-
};
|
|
885
|
-
}
|
|
886
|
-
isDisabled() {
|
|
887
|
-
return this._disabledConsumer.value ?? !1;
|
|
888
|
-
}
|
|
889
|
-
updated(e) {
|
|
890
|
-
this._refreshEditor();
|
|
891
|
-
}
|
|
892
|
-
_refreshEditor() {
|
|
893
|
-
let e = this._editorMount.value, t = this.node;
|
|
894
|
-
if (!e || !t) {
|
|
895
|
-
this._disposeEditor();
|
|
896
|
-
return;
|
|
897
|
-
}
|
|
898
|
-
let n = this.resolveField(t.field);
|
|
899
|
-
if (!n) {
|
|
900
|
-
this._disposeEditor();
|
|
901
|
-
return;
|
|
902
|
-
}
|
|
903
|
-
let r = this.isDisabled(), i = this._registryConsumer.value, a = i?.[n.name], o = a ? `r${this._registryIdentityToken(i)}` : "b", s = `${n.name}|${t.operator}|${r ? "1" : "0"}|${o}`;
|
|
904
|
-
if (this._currentHandle && s === this._editorKey) return;
|
|
905
|
-
this._disposeEditor();
|
|
906
|
-
let c = a ?? Ne(n, t.operator);
|
|
907
|
-
if (!c) return;
|
|
908
|
-
let l = c({
|
|
909
|
-
field: n,
|
|
910
|
-
operator: t.operator,
|
|
911
|
-
value: t.value,
|
|
912
|
-
disabled: r,
|
|
913
|
-
onChange: (e) => {
|
|
914
|
-
this.dispatchEvent(new CustomEvent("condition-value-change", {
|
|
915
|
-
detail: {
|
|
916
|
-
id: t.id,
|
|
917
|
-
value: e
|
|
918
|
-
},
|
|
919
|
-
bubbles: !0,
|
|
920
|
-
composed: !0
|
|
921
|
-
}));
|
|
922
|
-
}
|
|
923
|
-
});
|
|
924
|
-
e.appendChild(l.element), this._currentHandle = l, this._editorKey = s;
|
|
925
|
-
}
|
|
926
|
-
_availableFields() {
|
|
927
|
-
return this.schema.find((e) => e.name === this.currentEntity)?.fields.filter((e) => e.type !== "relation") ?? [];
|
|
928
|
-
}
|
|
929
|
-
_availableOperators(e) {
|
|
930
|
-
return e ? h(e.type) : [];
|
|
931
|
-
}
|
|
932
|
-
render() {
|
|
933
|
-
let e = this.node;
|
|
934
|
-
if (!e) return a;
|
|
935
|
-
let t = this.resolveField(e.field), n = this.messages(), r = p(e.operator), i = this.isDisabled(), o = this._availableFields(), s = this._availableOperators(t);
|
|
936
|
-
return X`
|
|
937
|
-
<div
|
|
938
|
-
class="qb-condition"
|
|
939
|
-
tabindex="0"
|
|
940
|
-
role="group"
|
|
941
|
-
aria-label=${`${t?.label ?? e.field} ${n.operators[e.operator] ?? e.operator}`}
|
|
942
|
-
data-row-id=${e.id}
|
|
943
|
-
@keydown=${this._onRowKeyDown}
|
|
944
|
-
>
|
|
945
|
-
<button
|
|
946
|
-
type="button"
|
|
947
|
-
class="qb-drag-handle"
|
|
948
|
-
?disabled=${i}
|
|
949
|
-
aria-label=${n.reorderHint}
|
|
950
|
-
title=${n.reorderHint}
|
|
951
|
-
@pointerdown=${this._onDragPointerDown}
|
|
952
|
-
>⋮</button>
|
|
953
|
-
<mp-select
|
|
954
|
-
class="qb-field-select"
|
|
955
|
-
size="sm"
|
|
956
|
-
.value=${e.field}
|
|
957
|
-
?disabled=${i}
|
|
958
|
-
@change=${this._onFieldChange}
|
|
959
|
-
aria-label=${n.field}
|
|
960
|
-
>
|
|
961
|
-
${o.map((e) => X`<option value=${e.name}>${e.label}</option>`)}
|
|
962
|
-
${t ? a : X`<option value=${e.field}>(${e.field})</option>`}
|
|
963
|
-
</mp-select>
|
|
964
|
-
<mp-select
|
|
965
|
-
class="qb-operator-select"
|
|
966
|
-
size="sm"
|
|
967
|
-
.value=${e.operator}
|
|
968
|
-
?disabled=${i || !t}
|
|
969
|
-
@change=${this._onOperatorChange}
|
|
970
|
-
aria-label=${n.operator}
|
|
971
|
-
>
|
|
972
|
-
${s.map((e) => X`
|
|
973
|
-
<option value=${e}>${n.operators[e] ?? e}</option>
|
|
974
|
-
`)}
|
|
975
|
-
${s.includes(e.operator) ? a : X`<option value=${e.operator}>${e.operator}</option>`}
|
|
976
|
-
</mp-select>
|
|
977
|
-
${r === "null" ? a : X`<span class="qb-value" ${c(this._editorMount)}></span>`}
|
|
978
|
-
<button
|
|
979
|
-
type="button"
|
|
980
|
-
class="btn btn-sm btn-link qb-remove"
|
|
981
|
-
?disabled=${i}
|
|
982
|
-
@click=${this._onRemove}
|
|
983
|
-
aria-label=${n.removeRow}
|
|
984
|
-
title=${n.removeRow}
|
|
985
|
-
>×</button>
|
|
986
|
-
</div>
|
|
987
|
-
`;
|
|
988
|
-
}
|
|
989
|
-
};
|
|
990
|
-
e("query-condition", V), typeof customElements < "u" && !customElements.get("mp-query-condition") && customElements.define("mp-query-condition", Fe);
|
|
991
|
-
//#endregion
|
|
992
|
-
//#region libs/mintplayer-web-components/query-builder/src/mp-query-subquery.element.ts
|
|
993
|
-
var Z = t("query-subquery"), Ie = class extends i {
|
|
994
|
-
constructor(...e) {
|
|
995
|
-
super(...e), this.node = null, this.schema = [], this.currentEntity = "", this.depth = 0, this.qbRoot = "", this.isDragging = !1, this._messagesConsumer = new l(this, {
|
|
996
|
-
context: K,
|
|
997
|
-
subscribe: !0
|
|
998
|
-
}), this._onHeaderKeyDown = (e) => {
|
|
999
|
-
if (!e.altKey || e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
|
|
1000
|
-
let t = this.node;
|
|
1001
|
-
if (!t) return;
|
|
1002
|
-
let n = this.renderRoot?.querySelector(".qb-subquery-header");
|
|
1003
|
-
e.composedPath()[0] === n && (e.preventDefault(), this.dispatchEvent(new CustomEvent("qb-keyboard-move", {
|
|
1004
|
-
detail: {
|
|
1005
|
-
id: t.id,
|
|
1006
|
-
direction: e.key === "ArrowUp" ? "up" : "down"
|
|
1007
|
-
},
|
|
1008
|
-
bubbles: !0,
|
|
1009
|
-
composed: !0
|
|
1010
|
-
})));
|
|
1011
|
-
};
|
|
1012
|
-
}
|
|
1013
|
-
createRenderRoot() {
|
|
1014
|
-
return this;
|
|
1015
|
-
}
|
|
1016
|
-
static {
|
|
1017
|
-
this.properties = {
|
|
1018
|
-
node: { attribute: !1 },
|
|
1019
|
-
schema: { attribute: !1 },
|
|
1020
|
-
currentEntity: { attribute: !1 },
|
|
1021
|
-
depth: { attribute: !1 },
|
|
1022
|
-
qbRoot: { attribute: !1 },
|
|
1023
|
-
isDragging: { attribute: !1 }
|
|
1024
|
-
};
|
|
1025
|
-
}
|
|
1026
|
-
resolveField(e) {
|
|
1027
|
-
return this.schema.find((e) => e.name === this.currentEntity)?.fields.find((t) => t.name === e);
|
|
1028
|
-
}
|
|
1029
|
-
messages() {
|
|
1030
|
-
let e = this._messagesConsumer.value ?? {};
|
|
1031
|
-
return {
|
|
1032
|
-
...P,
|
|
1033
|
-
...e,
|
|
1034
|
-
operators: {
|
|
1035
|
-
...P.operators,
|
|
1036
|
-
...e.operators ?? {}
|
|
1037
|
-
}
|
|
1038
|
-
};
|
|
1039
|
-
}
|
|
1040
|
-
render() {
|
|
1041
|
-
let e = this.node;
|
|
1042
|
-
if (!e) return a;
|
|
1043
|
-
let t = this.resolveField(e.field), n = this.messages(), r = t?.label ?? e.field, i = n.operators[e.operator] ?? e.operator, o = t?.targetEntity ?? "";
|
|
1044
|
-
return Z`
|
|
1045
|
-
<div class="qb-subquery" data-row-id=${e.id}>
|
|
1046
|
-
<div
|
|
1047
|
-
class="qb-subquery-header"
|
|
1048
|
-
tabindex="0"
|
|
1049
|
-
role="group"
|
|
1050
|
-
aria-label=${`${r} ${i}${o ? ` ${o}` : ""}`}
|
|
1051
|
-
@keydown=${this._onHeaderKeyDown}
|
|
1052
|
-
>
|
|
1053
|
-
<span class="qb-subquery-field">${r}</span>
|
|
1054
|
-
<span class="qb-subquery-operator">${i}</span>
|
|
1055
|
-
${o ? Z`<span class="qb-subquery-target">(${o})</span>` : a}
|
|
1
|
+
import { CoreController as e, LightChildren as t, booleanAttribute as n, numberAttribute as r, props as i, stringAttribute as a } from "../machine/index.mjs";
|
|
2
|
+
import { LitElement as o, html as s, nothing as c } from "lit";
|
|
3
|
+
import { installLightStyles as l } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { repeat as u } from "lit/directives/repeat.js";
|
|
5
|
+
import { DEFAULT_MESSAGES as d, DEFAULT_OPERATOR_CATALOG as f, MaxDepthExceededError as p, addChild as m, addEmptyConditionTo as h, addEmptyGroupTo as g, addEmptySubqueryTo as _, changeConditionField as v, changeConditionOperator as y, cloneTree as b, collectDescendantIds as x, defaultValueFor as S, emptyCondition as C, emptyGroup as w, emptySubquery as T, findNodeById as E, mapTree as D, moveNode as O, newId as k, operatorsForType as A, queryBuilderCore as j, queryBuilderScopedStyles as M, removeNode as N, renderExpression as P, setGroupLogic as F, updateCondition as I, validateOperatorOverrides as L, valueShapeFor as R, visitTree as z } from "@mintplayer/ui-core/query-builder";
|
|
6
|
+
//#region libs/mintplayer-web-components/query-builder/src/generated/query-builder-item.view.generated.ts
|
|
7
|
+
function B(e, t) {
|
|
8
|
+
return typeof e == "function" ? e(t) : e;
|
|
9
|
+
}
|
|
10
|
+
function V({ node: e, view: t, slots: n = {} }) {
|
|
11
|
+
return s`
|
|
12
|
+
<li data-mps="query-builder" ${i(e.item)}>
|
|
13
|
+
${e.kind === "group" ? s`
|
|
14
|
+
<div data-mps="query-builder" ${i(e.group.header)}>
|
|
15
|
+
<span data-mps="query-builder" ${i(e.group.logic)}>
|
|
16
|
+
<button data-mps="query-builder" ${i(e.group.and)}>${t.text.logicAnd}</button>
|
|
17
|
+
<button data-mps="query-builder" ${i(e.group.or)}>${t.text.logicOr}</button>
|
|
18
|
+
</span>
|
|
19
|
+
<span data-mps="query-builder" ${i(e.group.actions)}>
|
|
20
|
+
<button data-mps="query-builder" ${i(e.group.addCondition)}>+ ${t.text.addCondition}</button>
|
|
21
|
+
<button data-mps="query-builder" ${i(e.group.addGroup)}>+ ${t.text.addGroup}</button>
|
|
22
|
+
${e.group.canAddSubquery ? s`
|
|
23
|
+
<button data-mps="query-builder" ${i(e.group.addSubquery)}>+ ${t.text.addSubquery}</button>
|
|
24
|
+
` : c}
|
|
25
|
+
${e.group.removable ? s`
|
|
26
|
+
<button data-mps="query-builder" ${i(e.group.remove)}>×</button>
|
|
27
|
+
` : c}
|
|
28
|
+
</span>
|
|
1056
29
|
</div>
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
.
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
}
|
|
1068
|
-
|
|
30
|
+
` : e.kind === "condition" ? s`
|
|
31
|
+
<div data-mps="query-builder" ${i(e.condition.box)}>
|
|
32
|
+
<button data-mps="query-builder" ${i(e.condition.handle)}>⋮</button>
|
|
33
|
+
<select data-mps="query-builder" ${i(e.condition.field)}>
|
|
34
|
+
${u(e.condition.fields, (e) => e.key, (e) => s`
|
|
35
|
+
<option data-mps="query-builder" ${i(e.bag)}>${e.label}</option>
|
|
36
|
+
`)}
|
|
37
|
+
</select>
|
|
38
|
+
<select data-mps="query-builder" ${i(e.condition.operator)}>
|
|
39
|
+
${u(e.condition.operators, (e) => e.key, (e) => s`
|
|
40
|
+
<option data-mps="query-builder" ${i(e.bag)}>${e.label}</option>
|
|
41
|
+
`)}
|
|
42
|
+
</select>
|
|
43
|
+
${e.condition.hasEditor ? s`
|
|
44
|
+
<span data-mps="query-builder" ${i(e.condition.editor.wrap)}>
|
|
45
|
+
${e.condition.editor.custom ? s`
|
|
46
|
+
${n.editor === void 0 ? c : B(n.editor, { ctx: e.condition.editor.ctx })}
|
|
47
|
+
` : e.condition.editor.isSelect ? s`
|
|
48
|
+
<select data-mps="query-builder" ${i(e.condition.editor.select)}>
|
|
49
|
+
${u(e.condition.editor.options, (e) => e.key, (e) => s`
|
|
50
|
+
<option data-mps="query-builder" ${i(e.bag)}>${e.label}</option>
|
|
51
|
+
`)}
|
|
52
|
+
</select>
|
|
53
|
+
` : e.condition.editor.isChips ? s`
|
|
54
|
+
<span data-mps="query-builder" ${i(e.condition.editor.chipBox)}>
|
|
55
|
+
${u(e.condition.editor.chips, (e) => e.key, (e) => s`
|
|
56
|
+
<span data-mps="query-builder" ${i(e.bag)}>
|
|
57
|
+
${e.label}
|
|
58
|
+
<button data-mps="query-builder" ${i(e.remove)}>×</button>
|
|
59
|
+
</span>
|
|
60
|
+
`)}
|
|
61
|
+
<input data-mps="query-builder" ${i(e.condition.editor.chipAdd)}>
|
|
62
|
+
</span>
|
|
63
|
+
` : s`
|
|
64
|
+
<span data-mps="query-builder" ${i(e.condition.editor.inputBox)}>
|
|
65
|
+
${u(e.condition.editor.inputs, (e) => e.key, (t) => s`
|
|
66
|
+
${t.sep ? s`
|
|
67
|
+
<span data-mps="query-builder" ${i(e.condition.editor.sep)}>…</span>
|
|
68
|
+
` : c}
|
|
69
|
+
<input data-mps="query-builder" ${i(t.bag)}>
|
|
70
|
+
`)}
|
|
71
|
+
</span>
|
|
72
|
+
`}
|
|
73
|
+
</span>
|
|
74
|
+
` : c}
|
|
75
|
+
<button data-mps="query-builder" ${i(e.condition.remove)}>×</button>
|
|
76
|
+
</div>
|
|
77
|
+
` : e.kind === "subquery" ? s`
|
|
78
|
+
<div data-mps="query-builder" ${i(e.subquery.header)}>
|
|
79
|
+
<span data-mps="query-builder" ${i(t.subqueryField)}>${e.subquery.fieldLabel}</span>
|
|
80
|
+
<span data-mps="query-builder" ${i(t.subqueryOperator)}>${e.subquery.operatorLabel}</span>
|
|
81
|
+
${e.subquery.target ? s`
|
|
82
|
+
<span data-mps="query-builder" ${i(t.subqueryTarget)}>(${e.subquery.target})</span>
|
|
83
|
+
` : c}
|
|
84
|
+
<button data-mps="query-builder" ${i(e.subquery.remove)}>×</button>
|
|
85
|
+
</div>
|
|
86
|
+
` : s`
|
|
87
|
+
<div data-mps="query-builder" ${i(e.note)}>${e.text}</div>
|
|
88
|
+
`}
|
|
89
|
+
${e.children.length ? s`
|
|
90
|
+
<ul data-mps="query-builder" ${i(e.list)}>
|
|
91
|
+
${u(e.children, (e) => e.key, (e) => s`
|
|
92
|
+
${V({
|
|
93
|
+
node: e,
|
|
94
|
+
view: t,
|
|
95
|
+
slots: n
|
|
96
|
+
})}
|
|
97
|
+
`)}
|
|
98
|
+
</ul>
|
|
99
|
+
` : c}
|
|
100
|
+
</li>
|
|
101
|
+
`;
|
|
102
|
+
}
|
|
1069
103
|
//#endregion
|
|
1070
|
-
//#region libs/mintplayer-web-components/query-builder/src/
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
};
|
|
1094
|
-
}
|
|
1095
|
-
createRenderRoot() {
|
|
1096
|
-
return this;
|
|
1097
|
-
}
|
|
1098
|
-
static {
|
|
1099
|
-
this.properties = {
|
|
1100
|
-
node: { attribute: !1 },
|
|
1101
|
-
schema: { attribute: !1 },
|
|
1102
|
-
currentEntity: { attribute: !1 },
|
|
1103
|
-
depth: { attribute: !1 },
|
|
1104
|
-
isRoot: { attribute: !1 },
|
|
1105
|
-
qbRoot: { attribute: !1 },
|
|
1106
|
-
isDragging: { attribute: !1 }
|
|
1107
|
-
};
|
|
1108
|
-
}
|
|
1109
|
-
isDisabled() {
|
|
1110
|
-
return this._disabledConsumer.value ?? !1;
|
|
1111
|
-
}
|
|
1112
|
-
_hasRelation() {
|
|
1113
|
-
return (this.schema.find((e) => e.name === this.currentEntity)?.fields ?? []).some((e) => e.type === "relation" && !!e.targetEntity);
|
|
1114
|
-
}
|
|
1115
|
-
_emit(e, t) {
|
|
1116
|
-
this.dispatchEvent(new CustomEvent(e, {
|
|
1117
|
-
detail: t,
|
|
1118
|
-
bubbles: !0,
|
|
1119
|
-
composed: !0
|
|
1120
|
-
}));
|
|
1121
|
-
}
|
|
1122
|
-
messages() {
|
|
1123
|
-
let e = this._messagesConsumer.value ?? {};
|
|
1124
|
-
return {
|
|
1125
|
-
...P,
|
|
1126
|
-
...e,
|
|
1127
|
-
operators: {
|
|
1128
|
-
...P.operators,
|
|
1129
|
-
...e.operators ?? {}
|
|
1130
|
-
}
|
|
1131
|
-
};
|
|
1132
|
-
}
|
|
1133
|
-
renderChild(e) {
|
|
1134
|
-
switch (e.kind) {
|
|
1135
|
-
case "group": return Q`<mp-query-group
|
|
1136
|
-
.node=${e}
|
|
1137
|
-
.schema=${this.schema}
|
|
1138
|
-
.currentEntity=${this.currentEntity}
|
|
1139
|
-
.depth=${this.depth + 1}
|
|
1140
|
-
.qbRoot=${this.qbRoot}
|
|
1141
|
-
.isDragging=${this.isDragging}
|
|
1142
|
-
></mp-query-group>`;
|
|
1143
|
-
case "condition": return Q`<mp-query-condition
|
|
1144
|
-
.node=${e}
|
|
1145
|
-
.schema=${this.schema}
|
|
1146
|
-
.currentEntity=${this.currentEntity}
|
|
1147
|
-
></mp-query-condition>`;
|
|
1148
|
-
case "subquery": return Q`<mp-query-subquery
|
|
1149
|
-
.node=${e}
|
|
1150
|
-
.schema=${this.schema}
|
|
1151
|
-
.currentEntity=${this.currentEntity}
|
|
1152
|
-
.depth=${this.depth + 1}
|
|
1153
|
-
.qbRoot=${this.qbRoot}
|
|
1154
|
-
.isDragging=${this.isDragging}
|
|
1155
|
-
></mp-query-subquery>`;
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
renderDropSlot(e) {
|
|
1159
|
-
return !this.isDragging || !this.node ? a : Q`<div
|
|
1160
|
-
class="qb-drop-slot"
|
|
1161
|
-
data-drop-slot
|
|
1162
|
-
data-parent-id=${this.node.id}
|
|
1163
|
-
data-index=${String(e)}
|
|
1164
|
-
data-qb-root=${this.qbRoot}
|
|
1165
|
-
aria-hidden="true"
|
|
1166
|
-
></div>`;
|
|
1167
|
-
}
|
|
1168
|
-
_renderChildrenWithSlots(e) {
|
|
1169
|
-
let t = [];
|
|
1170
|
-
this.isDragging && t.push(this.renderDropSlot(0));
|
|
1171
|
-
for (let n = 0; n < e.length; n++) t.push(this.renderChild(e[n])), this.isDragging && t.push(this.renderDropSlot(n + 1));
|
|
1172
|
-
return t;
|
|
1173
|
-
}
|
|
1174
|
-
_dropPlaceholder() {
|
|
1175
|
-
return Q`<div
|
|
1176
|
-
class="qb-drop-slot qb-drop-slot-placeholder"
|
|
1177
|
-
data-drop-slot
|
|
1178
|
-
data-parent-id=${this.node?.id ?? ""}
|
|
1179
|
-
data-index="0"
|
|
1180
|
-
data-qb-root=${this.qbRoot}
|
|
1181
|
-
aria-hidden="true"
|
|
1182
|
-
>Drop here</div>`;
|
|
1183
|
-
}
|
|
1184
|
-
render() {
|
|
1185
|
-
let e = this.node;
|
|
1186
|
-
if (!e) return a;
|
|
1187
|
-
let t = this.messages(), n = this.isDisabled(), r = this._hasRelation();
|
|
1188
|
-
return Q`
|
|
1189
|
-
<div
|
|
1190
|
-
class="qb-group"
|
|
1191
|
-
data-row-id=${e.id}
|
|
1192
|
-
role="group"
|
|
1193
|
-
aria-label=${`${e.logic === "and" ? "AND" : "OR"} group${this.depth > 0 ? `, level ${this.depth + 1}` : ""}`}
|
|
1194
|
-
>
|
|
1195
|
-
<div class="qb-group-header">
|
|
1196
|
-
<span class="qb-logic-toggle btn-group btn-group-sm" role="group" aria-label=${t.groupLogic}>
|
|
1197
|
-
<button
|
|
1198
|
-
type="button"
|
|
1199
|
-
class="btn ${e.logic === "and" ? "btn-primary" : "btn-outline-primary"} qb-logic-btn"
|
|
1200
|
-
?disabled=${n}
|
|
1201
|
-
@click=${() => this._onLogicChange("and")}
|
|
1202
|
-
aria-pressed=${e.logic === "and"}
|
|
1203
|
-
>${t.logicAnd}</button>
|
|
1204
|
-
<button
|
|
1205
|
-
type="button"
|
|
1206
|
-
class="btn ${e.logic === "or" ? "btn-primary" : "btn-outline-primary"} qb-logic-btn"
|
|
1207
|
-
?disabled=${n}
|
|
1208
|
-
@click=${() => this._onLogicChange("or")}
|
|
1209
|
-
aria-pressed=${e.logic === "or"}
|
|
1210
|
-
>${t.logicOr}</button>
|
|
104
|
+
//#region libs/mintplayer-web-components/query-builder/src/generated/query-builder.view.generated.ts
|
|
105
|
+
function H({ view: e, slots: t = {} }) {
|
|
106
|
+
return s`
|
|
107
|
+
${e.toolbar ? s`
|
|
108
|
+
<div data-mps="query-builder" ${i(e.toolbarBox)}>
|
|
109
|
+
<label data-mps="query-builder" ${i(e.toolbarLabel)}>
|
|
110
|
+
${e.text.entity}
|
|
111
|
+
:
|
|
112
|
+
<select data-mps="query-builder" ${i(e.entity)}>
|
|
113
|
+
${u(e.entities, (e) => e.key, (e) => s`
|
|
114
|
+
<option data-mps="query-builder" ${i(e.bag)}>${e.label}</option>
|
|
115
|
+
`)}
|
|
116
|
+
</select>
|
|
117
|
+
</label>
|
|
118
|
+
${e.projection ? s`
|
|
119
|
+
<span data-mps="query-builder" ${i(e.projectionBox)}>
|
|
120
|
+
<span data-mps="query-builder" ${i(e.toolbarLabel)}>${e.text.columns}:</span>
|
|
121
|
+
${u(e.projections, (e) => e.key, (e) => s`
|
|
122
|
+
<label data-mps="query-builder" ${i(e.box)}>
|
|
123
|
+
<input data-mps="query-builder" ${i(e.input)}>
|
|
124
|
+
${e.label}
|
|
125
|
+
</label>
|
|
126
|
+
`)}
|
|
1211
127
|
</span>
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
${
|
|
1232
|
-
type="button"
|
|
1233
|
-
class="btn btn-sm btn-link qb-remove-group"
|
|
1234
|
-
?disabled=${n}
|
|
1235
|
-
@click=${this._onRemove}
|
|
1236
|
-
aria-label=${t.removeGroup}
|
|
1237
|
-
title=${t.removeGroup}
|
|
1238
|
-
>×</button>`}
|
|
128
|
+
` : c}
|
|
129
|
+
${e.projection ? s`
|
|
130
|
+
<span data-mps="query-builder" ${i(e.sortBox)}>
|
|
131
|
+
<span data-mps="query-builder" ${i(e.toolbarLabel)}>${e.text.sortBy}:</span>
|
|
132
|
+
${u(e.sorts, (e) => e.key, (e) => s`
|
|
133
|
+
<span data-mps="query-builder" ${i(e.box)}>
|
|
134
|
+
<select data-mps="query-builder" ${i(e.field)}>
|
|
135
|
+
${u(e.fields, (e) => e.key, (e) => s`
|
|
136
|
+
<option data-mps="query-builder" ${i(e.bag)}>${e.label}</option>
|
|
137
|
+
`)}
|
|
138
|
+
</select>
|
|
139
|
+
<select data-mps="query-builder" ${i(e.direction)}>
|
|
140
|
+
${u(e.directions, (e) => e.key, (e) => s`
|
|
141
|
+
<option data-mps="query-builder" ${i(e.bag)}>${e.label}</option>
|
|
142
|
+
`)}
|
|
143
|
+
</select>
|
|
144
|
+
<button data-mps="query-builder" ${i(e.remove)}>×</button>
|
|
145
|
+
</span>
|
|
146
|
+
`)}
|
|
147
|
+
<button data-mps="query-builder" ${i(e.sortAdd)}>+ ${e.text.addSort}</button>
|
|
1239
148
|
</span>
|
|
149
|
+
` : c}
|
|
150
|
+
</div>
|
|
151
|
+
` : c}
|
|
152
|
+
${e.saved ? s`
|
|
153
|
+
<div data-mps="query-builder" ${i(e.savedBox)}>
|
|
154
|
+
<div data-mps="query-builder" ${i(e.savedList)}>
|
|
155
|
+
${e.savedQueries.length === 0 ? s`
|
|
156
|
+
<span data-mps="query-builder" ${i(e.savedEmpty)}>${e.text.noSavedQueries}</span>
|
|
157
|
+
` : c}
|
|
158
|
+
${u(e.savedQueries, (e) => e.key, (t) => s`
|
|
159
|
+
<span data-mps="query-builder" ${i(t.box)}>
|
|
160
|
+
<button data-mps="query-builder" ${i(t.load)}>${t.loadText}</button>
|
|
161
|
+
<button data-mps="query-builder" ${i(t.remove)}>${e.text.deleteQuery}</button>
|
|
162
|
+
</span>
|
|
163
|
+
`)}
|
|
1240
164
|
</div>
|
|
1241
|
-
<
|
|
1242
|
-
|
|
1243
|
-
|
|
165
|
+
<span data-mps="query-builder" ${i(e.savedNew)}>
|
|
166
|
+
<input data-mps="query-builder" ${i(e.savedName)}>
|
|
167
|
+
<button data-mps="query-builder" ${i(e.savedSave)}>💾 ${e.text.saveCurrentAs}</button>
|
|
168
|
+
</span>
|
|
1244
169
|
</div>
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
}
|
|
1248
|
-
|
|
170
|
+
` : c}
|
|
171
|
+
${e.preview ? s`
|
|
172
|
+
<pre data-mps="query-builder" ${i(e.previewBox)}>${e.previewText}</pre>
|
|
173
|
+
` : c}
|
|
174
|
+
<ul data-mps="query-builder" ${i(e.list)}>
|
|
175
|
+
${V({
|
|
176
|
+
node: e.tree,
|
|
177
|
+
view: e,
|
|
178
|
+
slots: t
|
|
179
|
+
})}
|
|
180
|
+
</ul>
|
|
181
|
+
`;
|
|
182
|
+
}
|
|
1249
183
|
//#endregion
|
|
1250
|
-
//#region libs/mintplayer-web-components/query-builder/src/mp-query-builder.
|
|
1251
|
-
var
|
|
1252
|
-
constructor(...e) {
|
|
1253
|
-
super(...e), this.query = null, this.schema = [], this.rootEntity = "", this.multiEntityPickerEnabled = !1, this.selectedFields = [], this.sortBy = [], this.disabled = !1, this.editorRegistry = void 0, this.messages = void 0, this.maxDepth = ze, this.showPreview = !1, this.showSavedQueries = !1, this.savedQueries = [], this._saveDraftName = "", this.depth = 0, this.dragActive = !1, this._qbRootId = `qb-${Math.random().toString(36).slice(2, 10)}`, this._isDragging = !1, this._drag = new Se(), this._pointerMoveHandler = null, this._pointerUpHandler = null, this._pointerCancelHandler = null, this._registryConsumer = new l(this, {
|
|
1254
|
-
context: W,
|
|
1255
|
-
subscribe: !0
|
|
1256
|
-
}), this._registryProvider = new u(this, {
|
|
1257
|
-
context: W,
|
|
1258
|
-
initialValue: void 0
|
|
1259
|
-
}), this._disabledConsumer = new l(this, {
|
|
1260
|
-
context: G,
|
|
1261
|
-
subscribe: !0
|
|
1262
|
-
}), this._disabledProvider = new u(this, {
|
|
1263
|
-
context: G,
|
|
1264
|
-
initialValue: void 0
|
|
1265
|
-
}), this._messagesConsumer = new l(this, {
|
|
1266
|
-
context: K,
|
|
1267
|
-
subscribe: !0
|
|
1268
|
-
}), this._messagesProvider = new u(this, {
|
|
1269
|
-
context: K,
|
|
1270
|
-
initialValue: void 0
|
|
1271
|
-
}), this._maxDepthConsumer = new l(this, {
|
|
1272
|
-
context: q,
|
|
1273
|
-
subscribe: !0
|
|
1274
|
-
}), this._maxDepthProvider = new u(this, {
|
|
1275
|
-
context: q,
|
|
1276
|
-
initialValue: void 0
|
|
1277
|
-
}), this._lastMessagesOwn = void 0, this._lastMessagesConsumed = void 0, this._lastEffMessages = void 0, this._onConditionFieldChange = (e) => {
|
|
1278
|
-
if (!this._handlesEvents()) return;
|
|
1279
|
-
e.stopPropagation();
|
|
1280
|
-
let { id: t, field: n } = e.detail, r = this.query;
|
|
1281
|
-
if (!r) return;
|
|
1282
|
-
let i = this._resolveEntityForNode(t)?.fields.find((e) => e.name === n);
|
|
1283
|
-
i && this._mutate(le(r, t, i));
|
|
1284
|
-
}, this._onConditionOperatorChange = (e) => {
|
|
1285
|
-
if (!this._handlesEvents()) return;
|
|
1286
|
-
e.stopPropagation();
|
|
1287
|
-
let { id: t, operator: n } = e.detail, r = this.query;
|
|
1288
|
-
r && this._mutate(de(r, t, n));
|
|
1289
|
-
}, this._onConditionValueChange = (e) => {
|
|
1290
|
-
if (!this._handlesEvents()) return;
|
|
1291
|
-
e.stopPropagation();
|
|
1292
|
-
let { id: t, value: n } = e.detail, r = this.query;
|
|
1293
|
-
r && this._mutate(j(r, t, { value: n }));
|
|
1294
|
-
}, this._onGroupLogicChange = (e) => {
|
|
1295
|
-
if (!this._handlesEvents()) return;
|
|
1296
|
-
e.stopPropagation();
|
|
1297
|
-
let { id: t, logic: n } = e.detail, r = this.query;
|
|
1298
|
-
r && this._mutate(A(r, t, n));
|
|
1299
|
-
}, this._onAddCondition = (e) => {
|
|
1300
|
-
if (!this._handlesEvents()) return;
|
|
1301
|
-
e.stopPropagation();
|
|
1302
|
-
let { groupId: t } = e.detail, n = this.query;
|
|
1303
|
-
if (!n) return;
|
|
1304
|
-
let r = this._resolveEntityForNode(t);
|
|
1305
|
-
r && this._mutate(ce(n, t, r));
|
|
1306
|
-
}, this._onAddGroup = (e) => {
|
|
1307
|
-
if (!this._handlesEvents()) return;
|
|
1308
|
-
e.stopPropagation();
|
|
1309
|
-
let { groupId: t } = e.detail, n = this.query;
|
|
1310
|
-
n && this._mutate(D(n, t, "and"));
|
|
1311
|
-
}, this._onAddSubquery = (e) => {
|
|
1312
|
-
if (!this._handlesEvents()) return;
|
|
1313
|
-
e.stopPropagation();
|
|
1314
|
-
let { groupId: t } = e.detail, n = this.query;
|
|
1315
|
-
if (!n) return;
|
|
1316
|
-
let r = this._resolveEntityForNode(t);
|
|
1317
|
-
r && this._mutate(O(n, t, r));
|
|
1318
|
-
}, this._onNodeRemove = (e) => {
|
|
1319
|
-
if (!this._handlesEvents()) return;
|
|
1320
|
-
e.stopPropagation();
|
|
1321
|
-
let { id: t } = e.detail, n = this.query;
|
|
1322
|
-
if (!n || n.id === t) return;
|
|
1323
|
-
let r = w(n, t);
|
|
1324
|
-
this._pendingRefocusId = r?.parent.id ?? n.id, this._mutate(k(n, t));
|
|
1325
|
-
}, this._pendingRefocusId = null, this._onKeyboardMove = (e) => {
|
|
1326
|
-
if (!this._handlesEvents()) return;
|
|
1327
|
-
e.stopPropagation();
|
|
1328
|
-
let { id: t, direction: n } = e.detail, r = this.query;
|
|
1329
|
-
if (!r) return;
|
|
1330
|
-
let i = w(r, t);
|
|
1331
|
-
if (!i) return;
|
|
1332
|
-
let a = n === "up" ? i.index - 1 : i.index + 1;
|
|
1333
|
-
a < 0 || a >= i.parent.children.length || (this._pendingRefocusId = t, this._mutate(M(r, t, i.parent.id, a)));
|
|
1334
|
-
}, this._onDragStart = (e) => {
|
|
1335
|
-
if (!this._handlesEvents()) return;
|
|
1336
|
-
e.stopPropagation();
|
|
1337
|
-
let t = e.detail, n = this.query;
|
|
1338
|
-
if (!n) return;
|
|
1339
|
-
let r = C(n, t.id);
|
|
1340
|
-
if (!r) return;
|
|
1341
|
-
let i = T(r);
|
|
1342
|
-
this._drag.start({
|
|
1343
|
-
id: t.id,
|
|
1344
|
-
descendantIds: i,
|
|
1345
|
-
qbRoot: this._qbRootId,
|
|
1346
|
-
rowElement: t.rowElement
|
|
1347
|
-
}, new PointerEvent("pointerdown", {
|
|
1348
|
-
pointerId: t.pointerId,
|
|
1349
|
-
clientX: t.clientX,
|
|
1350
|
-
clientY: t.clientY
|
|
1351
|
-
})), this._isDragging = !0, typeof window < "u" && (this._pointerMoveHandler = (e) => this._drag.move(e), this._pointerUpHandler = (e) => this._finishDrag(e), this._pointerCancelHandler = () => this._cancelDrag(), window.addEventListener("pointermove", this._pointerMoveHandler), window.addEventListener("pointerup", this._pointerUpHandler), window.addEventListener("pointercancel", this._pointerCancelHandler));
|
|
1352
|
-
}, this._onSaveDraftInput = (e) => {
|
|
1353
|
-
this._saveDraftName = e.target.value;
|
|
1354
|
-
}, this._onSaveQuery = () => {
|
|
1355
|
-
let e = this._saveDraftName.trim();
|
|
1356
|
-
if (!e) return;
|
|
1357
|
-
let t = this.query;
|
|
1358
|
-
t && (this.dispatchEvent(new CustomEvent("save-query", {
|
|
1359
|
-
detail: {
|
|
1360
|
-
name: e,
|
|
1361
|
-
tree: t
|
|
1362
|
-
},
|
|
1363
|
-
bubbles: !1
|
|
1364
|
-
})), this._saveDraftName = "");
|
|
1365
|
-
}, this._onLoadQuery = (e) => {
|
|
1366
|
-
this.dispatchEvent(new CustomEvent("load-query", {
|
|
1367
|
-
detail: { name: e },
|
|
1368
|
-
bubbles: !1
|
|
1369
|
-
}));
|
|
1370
|
-
}, this._onDeleteQuery = (e) => {
|
|
1371
|
-
this.dispatchEvent(new CustomEvent("delete-query", {
|
|
1372
|
-
detail: { name: e },
|
|
1373
|
-
bubbles: !1
|
|
1374
|
-
}));
|
|
1375
|
-
}, this._onRootEntityChange = (e) => {
|
|
1376
|
-
let t = e.target.value;
|
|
1377
|
-
t !== this.rootEntity && (this.rootEntity = t, this.dispatchEvent(new CustomEvent("root-entity-change", {
|
|
1378
|
-
detail: { rootEntity: t },
|
|
1379
|
-
bubbles: !1,
|
|
1380
|
-
composed: !1
|
|
1381
|
-
})));
|
|
1382
|
-
};
|
|
1383
|
-
}
|
|
1384
|
-
createRenderRoot() {
|
|
1385
|
-
return this;
|
|
1386
|
-
}
|
|
184
|
+
//#region libs/mintplayer-web-components/query-builder/src/generated/mp-query-builder.generated.ts
|
|
185
|
+
var U = class extends o {
|
|
1387
186
|
static {
|
|
1388
187
|
this.properties = {
|
|
1389
188
|
query: { attribute: !1 },
|
|
1390
189
|
schema: { attribute: !1 },
|
|
1391
190
|
rootEntity: {
|
|
1392
|
-
attribute: "root-entity",
|
|
1393
191
|
type: String,
|
|
1394
|
-
|
|
192
|
+
converter: a(""),
|
|
193
|
+
attribute: "root-entity"
|
|
1395
194
|
},
|
|
1396
195
|
multiEntityPickerEnabled: {
|
|
1397
|
-
attribute: "multi-entity-picker-enabled",
|
|
1398
196
|
type: Boolean,
|
|
197
|
+
converter: n(!1),
|
|
198
|
+
attribute: "multi-entity-picker-enabled",
|
|
1399
199
|
reflect: !0
|
|
1400
200
|
},
|
|
1401
201
|
selectedFields: { attribute: !1 },
|
|
1402
202
|
sortBy: { attribute: !1 },
|
|
1403
203
|
disabled: {
|
|
1404
|
-
attribute: "disabled",
|
|
1405
204
|
type: Boolean,
|
|
205
|
+
converter: n(!1),
|
|
1406
206
|
reflect: !0
|
|
1407
207
|
},
|
|
1408
|
-
editorRegistry: { attribute: !1 },
|
|
1409
208
|
messages: { attribute: !1 },
|
|
1410
209
|
maxDepth: {
|
|
1411
|
-
attribute: "max-depth",
|
|
1412
210
|
type: Number,
|
|
1413
|
-
|
|
211
|
+
converter: r(32),
|
|
212
|
+
attribute: "max-depth"
|
|
1414
213
|
},
|
|
1415
214
|
showPreview: {
|
|
1416
|
-
attribute: "show-preview",
|
|
1417
215
|
type: Boolean,
|
|
216
|
+
converter: n(!1),
|
|
217
|
+
attribute: "show-preview",
|
|
1418
218
|
reflect: !0
|
|
1419
219
|
},
|
|
1420
220
|
showSavedQueries: {
|
|
1421
|
-
attribute: "show-saved-queries",
|
|
1422
221
|
type: Boolean,
|
|
222
|
+
converter: n(!1),
|
|
223
|
+
attribute: "show-saved-queries",
|
|
1423
224
|
reflect: !0
|
|
1424
225
|
},
|
|
1425
226
|
savedQueries: { attribute: !1 },
|
|
1426
|
-
|
|
1427
|
-
dragActive: { attribute: !1 },
|
|
1428
|
-
_isDragging: { state: !0 },
|
|
1429
|
-
_saveDraftName: { state: !0 }
|
|
227
|
+
editorRenderer: { attribute: !1 }
|
|
1430
228
|
};
|
|
1431
229
|
}
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
return this.schema.find((e) => e.name === this.rootEntity) ?? null;
|
|
1463
|
-
}
|
|
1464
|
-
_resolveEntityForNode(e) {
|
|
1465
|
-
let t = this._entitySchemaForCurrentRoot();
|
|
1466
|
-
if (!t) return null;
|
|
1467
|
-
let n = this.query;
|
|
1468
|
-
if (!n) return t;
|
|
1469
|
-
let r = { entity: t }, i = (t, n) => {
|
|
1470
|
-
if (t.id === e) return r.entity = n, !0;
|
|
1471
|
-
if (t.kind === "group") {
|
|
1472
|
-
for (let e of t.children) if (i(e, n)) return !0;
|
|
1473
|
-
} else if (t.kind === "subquery") {
|
|
1474
|
-
let e = n.fields.find((e) => e.name === t.field), r = e?.targetEntity ? this.schema.find((t) => t.name === e.targetEntity) ?? n : n;
|
|
1475
|
-
if (i(t.subQuery, r)) return !0;
|
|
1476
|
-
}
|
|
1477
|
-
return !1;
|
|
1478
|
-
};
|
|
1479
|
-
return i(n, t), r.entity;
|
|
1480
|
-
}
|
|
1481
|
-
_mutate(e) {
|
|
1482
|
-
this.query = e, this.dispatchEvent(new CustomEvent("query-change", {
|
|
1483
|
-
detail: { tree: e },
|
|
1484
|
-
bubbles: !1,
|
|
1485
|
-
composed: !1
|
|
1486
|
-
}));
|
|
1487
|
-
}
|
|
1488
|
-
_handlesEvents() {
|
|
1489
|
-
return this.depth === 0;
|
|
1490
|
-
}
|
|
1491
|
-
_finishDrag(e) {
|
|
1492
|
-
let t = this._drag.source(), n = this._drag.end(e);
|
|
1493
|
-
this._teardownDragListeners(), this._isDragging = !1, n && t && this._applyDrop(t, n);
|
|
1494
|
-
}
|
|
1495
|
-
_cancelDrag() {
|
|
1496
|
-
this._drag.cancel(), this._teardownDragListeners(), this._isDragging = !1;
|
|
1497
|
-
}
|
|
1498
|
-
_teardownDragListeners() {
|
|
1499
|
-
typeof window < "u" && (this._pointerMoveHandler && window.removeEventListener("pointermove", this._pointerMoveHandler), this._pointerUpHandler && window.removeEventListener("pointerup", this._pointerUpHandler), this._pointerCancelHandler && window.removeEventListener("pointercancel", this._pointerCancelHandler), this._pointerMoveHandler = null, this._pointerUpHandler = null, this._pointerCancelHandler = null);
|
|
1500
|
-
}
|
|
1501
|
-
_applyDrop(e, t) {
|
|
1502
|
-
let n = this.query;
|
|
1503
|
-
if (!n) return;
|
|
1504
|
-
let r = t.qbRoot === e.qbRoot ? void 0 : this._resolveEntityForNode(t.parentId) ?? void 0, i = M(n, e.id, t.parentId, t.index, r);
|
|
1505
|
-
this._mutate(i);
|
|
1506
|
-
}
|
|
1507
|
-
disconnectedCallback() {
|
|
1508
|
-
super.disconnectedCallback(), this._teardownDragListeners(), this._drag.cancel();
|
|
1509
|
-
}
|
|
1510
|
-
_renderSavedPicker(e) {
|
|
1511
|
-
return $`
|
|
1512
|
-
<div class="qb-saved">
|
|
1513
|
-
<div class="qb-saved-list">
|
|
1514
|
-
${this.savedQueries.length === 0 ? $`<span class="qb-saved-empty">No saved queries</span>` : this.savedQueries.map((t) => $`
|
|
1515
|
-
<span class="qb-saved-row" data-name=${t.name}>
|
|
1516
|
-
<button
|
|
1517
|
-
type="button"
|
|
1518
|
-
class="btn btn-sm btn-outline-primary qb-saved-load"
|
|
1519
|
-
@click=${() => this._onLoadQuery(t.name)}
|
|
1520
|
-
>${e.loadQuery}: ${t.name}</button>
|
|
1521
|
-
<button
|
|
1522
|
-
type="button"
|
|
1523
|
-
class="btn btn-sm btn-outline-danger qb-saved-delete"
|
|
1524
|
-
aria-label=${`Delete ${t.name}`}
|
|
1525
|
-
@click=${() => this._onDeleteQuery(t.name)}
|
|
1526
|
-
>${e.deleteQuery}</button>
|
|
1527
|
-
</span>
|
|
1528
|
-
`)}
|
|
1529
|
-
</div>
|
|
1530
|
-
<span class="qb-saved-new">
|
|
1531
|
-
<input
|
|
1532
|
-
type="text"
|
|
1533
|
-
class="form-control form-control-sm qb-saved-name"
|
|
1534
|
-
placeholder=${e.saveCurrentAs}
|
|
1535
|
-
.value=${this._saveDraftName}
|
|
1536
|
-
@input=${this._onSaveDraftInput}
|
|
1537
|
-
aria-label=${e.savedQueryName}
|
|
1538
|
-
/>
|
|
1539
|
-
<button
|
|
1540
|
-
type="button"
|
|
1541
|
-
class="btn btn-sm btn-primary qb-saved-save"
|
|
1542
|
-
?disabled=${this._saveDraftName.trim() === ""}
|
|
1543
|
-
@click=${this._onSaveQuery}
|
|
1544
|
-
>💾 ${e.saveCurrentAs}</button>
|
|
1545
|
-
</span>
|
|
1546
|
-
</div>
|
|
1547
|
-
`;
|
|
1548
|
-
}
|
|
1549
|
-
_renderToolbar() {
|
|
1550
|
-
if (this.depth !== 0 || !this.multiEntityPickerEnabled || this.schema.length < 2) return a;
|
|
1551
|
-
let e = this.schema.find((e) => e.name === this.rootEntity)?.fields.filter((e) => e.type !== "relation") ?? [], t = this._messages();
|
|
1552
|
-
return $`
|
|
1553
|
-
<div class="qb-toolbar">
|
|
1554
|
-
<label class="qb-toolbar-label">
|
|
1555
|
-
Entity:
|
|
1556
|
-
<mp-select
|
|
1557
|
-
class="qb-entity-picker"
|
|
1558
|
-
size="sm"
|
|
1559
|
-
.value=${this.rootEntity}
|
|
1560
|
-
?disabled=${this.disabled}
|
|
1561
|
-
@change=${this._onRootEntityChange}
|
|
1562
|
-
aria-label=${t.entity}
|
|
1563
|
-
>
|
|
1564
|
-
${this.schema.map((e) => $`<option value=${e.name}>${e.label}</option>`)}
|
|
1565
|
-
</mp-select>
|
|
1566
|
-
</label>
|
|
1567
|
-
${e.length > 0 ? $`
|
|
1568
|
-
<span class="qb-toolbar-section qb-field-projection" role="group" aria-label=${t.columns}>
|
|
1569
|
-
<span class="qb-toolbar-label">${t.columns}:</span>
|
|
1570
|
-
${e.map((e) => $`
|
|
1571
|
-
<mp-checkbox
|
|
1572
|
-
class="qb-field-checkbox"
|
|
1573
|
-
value=${e.name}
|
|
1574
|
-
?checked=${this.selectedFields.includes(e.name)}
|
|
1575
|
-
?disabled=${this.disabled}
|
|
1576
|
-
@change=${(t) => this._onFieldProjectionToggle(e.name, t)}
|
|
1577
|
-
aria-label=${e.label}
|
|
1578
|
-
>${e.label}</mp-checkbox>
|
|
1579
|
-
`)}
|
|
1580
|
-
</span>
|
|
1581
|
-
` : a}
|
|
1582
|
-
${e.length > 0 ? this._renderSortBy(e) : a}
|
|
1583
|
-
</div>
|
|
1584
|
-
`;
|
|
1585
|
-
}
|
|
1586
|
-
_renderSortBy(e) {
|
|
1587
|
-
let t = this._messages();
|
|
1588
|
-
return $`
|
|
1589
|
-
<span class="qb-toolbar-section qb-sort-by" role="group" aria-label=${t.sortBy}>
|
|
1590
|
-
<span class="qb-toolbar-label">${t.sortBy}:</span>
|
|
1591
|
-
${this.sortBy.map((t, n) => $`
|
|
1592
|
-
<span class="qb-sort-row">
|
|
1593
|
-
<mp-select
|
|
1594
|
-
class="qb-sort-field"
|
|
1595
|
-
size="sm"
|
|
1596
|
-
.value=${t.field}
|
|
1597
|
-
?disabled=${this.disabled}
|
|
1598
|
-
@change=${(e) => this._onSortFieldChange(n, e)}
|
|
1599
|
-
aria-label=${`Sort ${n + 1} field`}
|
|
1600
|
-
>
|
|
1601
|
-
${e.map((e) => $`<option value=${e.name}>${e.label}</option>`)}
|
|
1602
|
-
${e.some((e) => e.name === t.field) ? a : $`
|
|
1603
|
-
<option value=${t.field}>(${t.field})</option>
|
|
1604
|
-
`}
|
|
1605
|
-
</mp-select>
|
|
1606
|
-
<mp-select
|
|
1607
|
-
class="qb-sort-direction"
|
|
1608
|
-
size="sm"
|
|
1609
|
-
.value=${t.direction}
|
|
1610
|
-
?disabled=${this.disabled}
|
|
1611
|
-
@change=${(e) => this._onSortDirectionChange(n, e)}
|
|
1612
|
-
aria-label=${`Sort ${n + 1} direction`}
|
|
1613
|
-
>
|
|
1614
|
-
<option value="asc">Asc</option>
|
|
1615
|
-
<option value="desc">Desc</option>
|
|
1616
|
-
</mp-select>
|
|
1617
|
-
<button
|
|
1618
|
-
type="button"
|
|
1619
|
-
class="btn btn-sm btn-link qb-sort-remove"
|
|
1620
|
-
?disabled=${this.disabled}
|
|
1621
|
-
@click=${() => this._onSortRemove(n)}
|
|
1622
|
-
aria-label=${`Remove sort ${n + 1}`}
|
|
1623
|
-
title="Remove this sort"
|
|
1624
|
-
>×</button>
|
|
1625
|
-
</span>
|
|
1626
|
-
`)}
|
|
1627
|
-
<button
|
|
1628
|
-
type="button"
|
|
1629
|
-
class="btn btn-sm btn-outline-secondary qb-sort-add"
|
|
1630
|
-
?disabled=${this.disabled || e.length === 0}
|
|
1631
|
-
@click=${() => this._onSortAdd(e)}
|
|
1632
|
-
>+ Add sort</button>
|
|
1633
|
-
</span>
|
|
1634
|
-
`;
|
|
1635
|
-
}
|
|
1636
|
-
_emitSortBy(e) {
|
|
1637
|
-
this.sortBy = e, this.dispatchEvent(new CustomEvent("sort-by-change", {
|
|
1638
|
-
detail: { sortBy: e },
|
|
1639
|
-
bubbles: !1,
|
|
1640
|
-
composed: !1
|
|
1641
|
-
}));
|
|
1642
|
-
}
|
|
1643
|
-
_onSortFieldChange(e, t) {
|
|
1644
|
-
let n = t.target.value, r = this.sortBy.map((t, r) => r === e ? {
|
|
1645
|
-
...t,
|
|
1646
|
-
field: n
|
|
1647
|
-
} : t);
|
|
1648
|
-
this._emitSortBy(r);
|
|
1649
|
-
}
|
|
1650
|
-
_onSortDirectionChange(e, t) {
|
|
1651
|
-
let n = t.target.value, r = this.sortBy.map((t, r) => r === e ? {
|
|
1652
|
-
...t,
|
|
1653
|
-
direction: n
|
|
1654
|
-
} : t);
|
|
1655
|
-
this._emitSortBy(r);
|
|
1656
|
-
}
|
|
1657
|
-
_onSortRemove(e) {
|
|
1658
|
-
let t = this.sortBy.filter((t, n) => n !== e);
|
|
1659
|
-
this._emitSortBy(t);
|
|
230
|
+
#e = new t(this);
|
|
231
|
+
#t = new e(this, j, {
|
|
232
|
+
idPrefix: "mp-query-builder",
|
|
233
|
+
inputs: () => ({
|
|
234
|
+
query: this.query,
|
|
235
|
+
schema: this.schema,
|
|
236
|
+
rootEntity: this.rootEntity,
|
|
237
|
+
multiEntityPickerEnabled: this.multiEntityPickerEnabled,
|
|
238
|
+
selectedFields: this.selectedFields,
|
|
239
|
+
sortBy: this.sortBy,
|
|
240
|
+
disabled: this.disabled,
|
|
241
|
+
messages: this.messages,
|
|
242
|
+
maxDepth: this.maxDepth,
|
|
243
|
+
showPreview: this.showPreview,
|
|
244
|
+
showSavedQueries: this.showSavedQueries,
|
|
245
|
+
savedQueries: this.savedQueries
|
|
246
|
+
}),
|
|
247
|
+
hostBag: (e) => ({
|
|
248
|
+
...e.view.root,
|
|
249
|
+
"data-mps": "query-builder"
|
|
250
|
+
}),
|
|
251
|
+
models: [
|
|
252
|
+
"query",
|
|
253
|
+
"rootEntity",
|
|
254
|
+
"selectedFields",
|
|
255
|
+
"sortBy"
|
|
256
|
+
]
|
|
257
|
+
});
|
|
258
|
+
constructor() {
|
|
259
|
+
super(), this.query = null, this.schema = [], this.rootEntity = "", this.multiEntityPickerEnabled = !1, this.selectedFields = [], this.sortBy = [], this.disabled = !1, this.maxDepth = 32, this.showPreview = !1, this.showSavedQueries = !1, this.savedQueries = [];
|
|
1660
260
|
}
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
if (!t) return;
|
|
1664
|
-
let n = new Set(this.sortBy.map((e) => e.field)), r = e.find((e) => !n.has(e.name)) ?? t;
|
|
1665
|
-
this._emitSortBy([...this.sortBy, {
|
|
1666
|
-
field: r.name,
|
|
1667
|
-
direction: "asc"
|
|
1668
|
-
}]);
|
|
261
|
+
createRenderRoot() {
|
|
262
|
+
return this;
|
|
1669
263
|
}
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
n ? r.add(e) : r.delete(e);
|
|
1673
|
-
let i = Array.from(r);
|
|
1674
|
-
this.selectedFields = i, this.dispatchEvent(new CustomEvent("selected-fields-change", {
|
|
1675
|
-
detail: { selectedFields: i },
|
|
1676
|
-
bubbles: !1,
|
|
1677
|
-
composed: !1
|
|
1678
|
-
}));
|
|
264
|
+
willUpdate() {
|
|
265
|
+
this.#e.capture();
|
|
1679
266
|
}
|
|
1680
267
|
render() {
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
data-qb-root=${this._qbRootId}
|
|
1687
|
-
@condition-field-change=${this._onConditionFieldChange}
|
|
1688
|
-
@condition-operator-change=${this._onConditionOperatorChange}
|
|
1689
|
-
@condition-value-change=${this._onConditionValueChange}
|
|
1690
|
-
@group-logic-change=${this._onGroupLogicChange}
|
|
1691
|
-
@add-condition=${this._onAddCondition}
|
|
1692
|
-
@add-group=${this._onAddGroup}
|
|
1693
|
-
@add-subquery=${this._onAddSubquery}
|
|
1694
|
-
@node-remove=${this._onNodeRemove}
|
|
1695
|
-
@qb-drag-start=${this._onDragStart}
|
|
1696
|
-
@qb-keyboard-move=${this._onKeyboardMove}
|
|
1697
|
-
>
|
|
1698
|
-
${this._renderToolbar()}
|
|
1699
|
-
${this.showSavedQueries && this.depth === 0 ? this._renderSavedPicker(this._messages()) : a}
|
|
1700
|
-
${this.showPreview && this.depth === 0 ? $`<pre class="qb-preview">${this._renderPreview(e)}</pre>` : a}
|
|
1701
|
-
${this.renderTreeRoot(e)}
|
|
1702
|
-
</div>
|
|
1703
|
-
` : a;
|
|
1704
|
-
}
|
|
1705
|
-
_messages() {
|
|
1706
|
-
let e = this._messagesConsumer.value ?? {};
|
|
1707
|
-
return {
|
|
1708
|
-
...P,
|
|
1709
|
-
...e,
|
|
1710
|
-
...this.messages ?? {},
|
|
1711
|
-
operators: {
|
|
1712
|
-
...P.operators,
|
|
1713
|
-
...e.operators ?? {},
|
|
1714
|
-
...this.messages?.operators ?? {}
|
|
268
|
+
return H({
|
|
269
|
+
...this.#t.props(),
|
|
270
|
+
slots: {
|
|
271
|
+
...this.#e.slots,
|
|
272
|
+
...this.editorRenderer ? { editor: this.editorRenderer } : {}
|
|
1715
273
|
}
|
|
1716
|
-
};
|
|
1717
|
-
}
|
|
1718
|
-
_renderPreview(e) {
|
|
1719
|
-
try {
|
|
1720
|
-
let t = {
|
|
1721
|
-
...this._messagesConsumer.value ?? {},
|
|
1722
|
-
...this.messages ?? {}
|
|
1723
|
-
};
|
|
1724
|
-
return I(e, this.schema, {
|
|
1725
|
-
messages: t,
|
|
1726
|
-
rootEntity: this.rootEntity,
|
|
1727
|
-
maxDepth: this.effectiveMaxDepth()
|
|
1728
|
-
});
|
|
1729
|
-
} catch (e) {
|
|
1730
|
-
return e instanceof Error ? e.message : String(e);
|
|
1731
|
-
}
|
|
1732
|
-
}
|
|
1733
|
-
renderTreeRoot(e) {
|
|
1734
|
-
return $`<mp-query-group
|
|
1735
|
-
.node=${e.kind === "group" ? e : {
|
|
1736
|
-
kind: "group",
|
|
1737
|
-
id: "synthetic-root",
|
|
1738
|
-
logic: "and",
|
|
1739
|
-
children: [e]
|
|
1740
|
-
}}
|
|
1741
|
-
.schema=${this.schema}
|
|
1742
|
-
.currentEntity=${this.rootEntity}
|
|
1743
|
-
.depth=${this.depth}
|
|
1744
|
-
.isRoot=${!0}
|
|
1745
|
-
.qbRoot=${this._qbRootId}
|
|
1746
|
-
.isDragging=${this._isDragging || this.dragActive}
|
|
1747
|
-
></mp-query-group>`;
|
|
274
|
+
});
|
|
1748
275
|
}
|
|
1749
276
|
};
|
|
1750
|
-
|
|
277
|
+
typeof document < "u" && document.head && l("query-builder", M), customElements.get("mp-query-builder") || customElements.define("mp-query-builder", U);
|
|
1751
278
|
//#endregion
|
|
1752
|
-
export {
|
|
279
|
+
export { d as DEFAULT_MESSAGES, f as DEFAULT_OPERATOR_CATALOG, p as MaxDepthExceededError, U as MpQueryBuilder, m as addChild, h as addEmptyConditionTo, g as addEmptyGroupTo, _ as addEmptySubqueryTo, v as changeConditionField, y as changeConditionOperator, b as cloneTree, x as collectDescendantIds, S as defaultValueFor, C as emptyCondition, w as emptyGroup, T as emptySubquery, E as findNodeById, D as mapTree, O as moveNode, k as newId, A as operatorsForType, N as removeNode, P as renderExpression, F as setGroupLogic, I as updateCondition, L as validateOperatorOverrides, R as valueShapeFor, z as visitTree };
|