@accelint/design-toolkit 9.3.0 → 9.4.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/catalog-info.yaml +1 -1
- package/dist/components/accordion/context.d.ts +6 -0
- package/dist/components/accordion/context.js +6 -0
- package/dist/components/accordion/context.js.map +1 -1
- package/dist/components/accordion/group.d.ts +37 -2
- package/dist/components/accordion/group.js +34 -0
- package/dist/components/accordion/group.js.map +1 -1
- package/dist/components/accordion/header.d.ts +27 -2
- package/dist/components/accordion/header.js +25 -1
- package/dist/components/accordion/header.js.map +1 -1
- package/dist/components/accordion/index.d.ts +18 -4
- package/dist/components/accordion/index.js +16 -2
- package/dist/components/accordion/index.js.map +1 -1
- package/dist/components/accordion/panel.d.ts +29 -2
- package/dist/components/accordion/panel.js +26 -0
- package/dist/components/accordion/panel.js.map +1 -1
- package/dist/components/accordion/trigger.d.ts +25 -2
- package/dist/components/accordion/trigger.js +23 -1
- package/dist/components/accordion/trigger.js.map +1 -1
- package/dist/components/accordion/types.d.ts +33 -0
- package/dist/components/action-bar/index.d.ts +29 -8
- package/dist/components/action-bar/index.js +27 -6
- package/dist/components/action-bar/index.js.map +1 -1
- package/dist/components/action-bar/types.d.ts +7 -0
- package/dist/components/avatar/context.d.ts +22 -4
- package/dist/components/avatar/context.js +18 -0
- package/dist/components/avatar/context.js.map +1 -1
- package/dist/components/avatar/index.d.ts +22 -15
- package/dist/components/avatar/index.js +21 -14
- package/dist/components/avatar/index.js.map +1 -1
- package/dist/components/avatar/types.d.ts +13 -0
- package/dist/components/badge/context.d.ts +20 -2
- package/dist/components/badge/context.js +18 -0
- package/dist/components/badge/context.js.map +1 -1
- package/dist/components/badge/index.d.ts +28 -14
- package/dist/components/badge/index.js +28 -14
- package/dist/components/badge/index.js.map +1 -1
- package/dist/components/badge/types.d.ts +9 -0
- package/dist/components/breadcrumbs/index.d.ts +8 -0
- package/dist/components/breadcrumbs/index.js +7 -0
- package/dist/components/breadcrumbs/index.js.map +1 -1
- package/dist/components/breadcrumbs/item.d.ts +23 -0
- package/dist/components/breadcrumbs/item.js +23 -1
- package/dist/components/breadcrumbs/item.js.map +1 -1
- package/dist/components/breadcrumbs/types.d.ts +17 -0
- package/dist/components/button/context.d.ts +62 -8
- package/dist/components/button/context.js +54 -0
- package/dist/components/button/context.js.map +1 -1
- package/dist/components/button/index.d.ts +21 -2
- package/dist/components/button/index.js +19 -0
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/button/link.d.ts +20 -0
- package/dist/components/button/link.js +20 -0
- package/dist/components/button/link.js.map +1 -1
- package/dist/components/button/toggle.d.ts +23 -2
- package/dist/components/button/toggle.js +22 -1
- package/dist/components/button/toggle.js.map +1 -1
- package/dist/components/button/types.d.ts +26 -0
- package/dist/components/checkbox/context.d.ts +9 -3
- package/dist/components/checkbox/context.js +6 -0
- package/dist/components/checkbox/context.js.map +1 -1
- package/dist/components/checkbox/group.d.ts +31 -2
- package/dist/components/checkbox/group.js +28 -0
- package/dist/components/checkbox/group.js.map +1 -1
- package/dist/components/checkbox/index.d.ts +19 -2
- package/dist/components/checkbox/index.js +19 -1
- package/dist/components/checkbox/index.js.map +1 -1
- package/dist/components/checkbox/types.d.ts +19 -0
- package/dist/components/chip/context.d.ts +22 -4
- package/dist/components/chip/context.js +18 -0
- package/dist/components/chip/context.js.map +1 -1
- package/dist/components/chip/deletable.d.ts +38 -2
- package/dist/components/chip/deletable.js +36 -1
- package/dist/components/chip/deletable.js.map +1 -1
- package/dist/components/chip/index.d.ts +24 -2
- package/dist/components/chip/index.js +22 -0
- package/dist/components/chip/index.js.map +1 -1
- package/dist/components/chip/list.d.ts +47 -2
- package/dist/components/chip/list.js +45 -0
- package/dist/components/chip/list.js.map +1 -1
- package/dist/components/chip/selectable.d.ts +32 -0
- package/dist/components/chip/selectable.js +31 -0
- package/dist/components/chip/selectable.js.map +1 -1
- package/dist/components/chip/types.d.ts +27 -0
- package/dist/components/classification-badge/context.d.ts +18 -2
- package/dist/components/classification-badge/context.js +16 -0
- package/dist/components/classification-badge/context.js.map +1 -1
- package/dist/components/classification-badge/index.d.ts +26 -8
- package/dist/components/classification-badge/index.js +25 -8
- package/dist/components/classification-badge/index.js.map +1 -1
- package/dist/components/classification-badge/types.d.ts +4 -0
- package/dist/components/classification-banner/context.d.ts +20 -4
- package/dist/components/classification-banner/context.js +16 -0
- package/dist/components/classification-banner/context.js.map +1 -1
- package/dist/components/classification-banner/index.d.ts +12 -2
- package/dist/components/classification-banner/index.js +9 -0
- package/dist/components/classification-banner/index.js.map +1 -1
- package/dist/components/classification-banner/types.d.ts +4 -0
- package/dist/components/clock/index.d.ts +12 -2
- package/dist/components/clock/index.js +10 -0
- package/dist/components/clock/index.js.map +1 -1
- package/dist/components/clock/types.d.ts +4 -0
- package/dist/components/color-picker/index.d.ts +12 -10
- package/dist/components/color-picker/index.js +10 -8
- package/dist/components/color-picker/index.js.map +1 -1
- package/dist/components/color-picker/types.d.ts +8 -0
- package/dist/components/combobox-field/context.d.ts +20 -4
- package/dist/components/combobox-field/context.js +16 -0
- package/dist/components/combobox-field/context.js.map +1 -1
- package/dist/components/combobox-field/index.d.ts +15 -2
- package/dist/components/combobox-field/index.js +13 -1
- package/dist/components/combobox-field/index.js.map +1 -1
- package/dist/components/combobox-field/types.d.ts +19 -0
- package/dist/components/coordinate-field/context.d.ts +15 -6
- package/dist/components/coordinate-field/context.js +9 -0
- package/dist/components/coordinate-field/context.js.map +1 -1
- package/dist/components/coordinate-field/coordinate-utils.d.ts +8 -0
- package/dist/components/coordinate-field/coordinate-utils.js +8 -0
- package/dist/components/coordinate-field/coordinate-utils.js.map +1 -1
- package/dist/components/coordinate-field/index.d.ts +29 -2
- package/dist/components/coordinate-field/index.js +29 -3
- package/dist/components/coordinate-field/index.js.map +1 -1
- package/dist/components/coordinate-field/segment.d.ts +27 -2
- package/dist/components/coordinate-field/segment.js +25 -0
- package/dist/components/coordinate-field/segment.js.map +1 -1
- package/dist/components/coordinate-field/styles.module.css +5 -1
- package/dist/components/date-field/index.d.ts +27 -2
- package/dist/components/date-field/index.js +25 -0
- package/dist/components/date-field/index.js.map +1 -1
- package/dist/components/date-field/types.d.ts +19 -3
- package/dist/components/deferred-collection/index.d.ts +10 -2
- package/dist/components/deferred-collection/index.js +8 -0
- package/dist/components/deferred-collection/index.js.map +1 -1
- package/dist/components/deferred-collection/types.d.ts +6 -3
- package/dist/components/details-list/context.d.ts +25 -4
- package/dist/components/details-list/context.js +21 -0
- package/dist/components/details-list/context.js.map +1 -1
- package/dist/components/details-list/index.d.ts +9 -2
- package/dist/components/details-list/index.js +7 -0
- package/dist/components/details-list/index.js.map +1 -1
- package/dist/components/details-list/label.d.ts +18 -2
- package/dist/components/details-list/label.js +16 -0
- package/dist/components/details-list/label.js.map +1 -1
- package/dist/components/details-list/types.d.ts +14 -0
- package/dist/components/details-list/value.d.ts +20 -2
- package/dist/components/details-list/value.js +17 -0
- package/dist/components/details-list/value.js.map +1 -1
- package/dist/components/dialog/content.d.ts +23 -2
- package/dist/components/dialog/content.js +20 -0
- package/dist/components/dialog/content.js.map +1 -1
- package/dist/components/dialog/context.d.ts +5 -2
- package/dist/components/dialog/context.js +3 -0
- package/dist/components/dialog/context.js.map +1 -1
- package/dist/components/dialog/footer.d.ts +26 -2
- package/dist/components/dialog/footer.js +23 -0
- package/dist/components/dialog/footer.js.map +1 -1
- package/dist/components/dialog/index.d.ts +12 -2
- package/dist/components/dialog/index.js +10 -0
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/dialog/title.d.ts +21 -2
- package/dist/components/dialog/title.js +18 -0
- package/dist/components/dialog/title.js.map +1 -1
- package/dist/components/dialog/trigger.d.ts +18 -0
- package/dist/components/dialog/trigger.js +17 -0
- package/dist/components/dialog/trigger.js.map +1 -1
- package/dist/components/dialog/types.d.ts +12 -0
- package/dist/components/divider/context.d.ts +24 -4
- package/dist/components/divider/context.js +20 -0
- package/dist/components/divider/context.js.map +1 -1
- package/dist/components/divider/index.d.ts +13 -2
- package/dist/components/divider/index.js +10 -0
- package/dist/components/divider/index.js.map +1 -1
- package/dist/components/divider/types.d.ts +4 -4
- package/dist/components/drawer/back.d.ts +21 -2
- package/dist/components/drawer/back.js +19 -1
- package/dist/components/drawer/back.js.map +1 -1
- package/dist/components/drawer/close.d.ts +25 -2
- package/dist/components/drawer/close.js +28 -3
- package/dist/components/drawer/close.js.map +1 -1
- package/dist/components/drawer/content.d.ts +22 -2
- package/dist/components/drawer/content.js +19 -0
- package/dist/components/drawer/content.js.map +1 -1
- package/dist/components/drawer/context.d.ts +46 -4
- package/dist/components/drawer/context.js +45 -2
- package/dist/components/drawer/context.js.map +1 -1
- package/dist/components/drawer/events.d.ts +2 -0
- package/dist/components/drawer/events.js +2 -0
- package/dist/components/drawer/events.js.map +1 -1
- package/dist/components/drawer/footer.d.ts +24 -2
- package/dist/components/drawer/footer.js +21 -0
- package/dist/components/drawer/footer.js.map +1 -1
- package/dist/components/drawer/header-title.d.ts +22 -4
- package/dist/components/drawer/header-title.js +19 -2
- package/dist/components/drawer/header-title.js.map +1 -1
- package/dist/components/drawer/header.d.ts +34 -2
- package/dist/components/drawer/header.js +42 -2
- package/dist/components/drawer/header.js.map +1 -1
- package/dist/components/drawer/index.d.ts +14 -2
- package/dist/components/drawer/index.js +16 -0
- package/dist/components/drawer/index.js.map +1 -1
- package/dist/components/drawer/layout-main.d.ts +23 -2
- package/dist/components/drawer/layout-main.js +20 -0
- package/dist/components/drawer/layout-main.js.map +1 -1
- package/dist/components/drawer/layout.d.ts +25 -2
- package/dist/components/drawer/layout.js +22 -0
- package/dist/components/drawer/layout.js.map +1 -1
- package/dist/components/drawer/menu-item.d.ts +25 -2
- package/dist/components/drawer/menu-item.js +22 -0
- package/dist/components/drawer/menu-item.js.map +1 -1
- package/dist/components/drawer/menu.d.ts +22 -2
- package/dist/components/drawer/menu.js +19 -0
- package/dist/components/drawer/menu.js.map +1 -1
- package/dist/components/drawer/panel.d.ts +21 -2
- package/dist/components/drawer/panel.js +18 -0
- package/dist/components/drawer/panel.js.map +1 -1
- package/dist/components/drawer/trigger.d.ts +31 -2
- package/dist/components/drawer/trigger.js +29 -1
- package/dist/components/drawer/trigger.js.map +1 -1
- package/dist/components/drawer/types.d.ts +149 -2
- package/dist/components/drawer/view.d.ts +25 -2
- package/dist/components/drawer/view.js +22 -0
- package/dist/components/drawer/view.js.map +1 -1
- package/dist/components/flashcard/index.d.ts +129 -27
- package/dist/components/flashcard/index.js +120 -18
- package/dist/components/flashcard/index.js.map +1 -1
- package/dist/components/flashcard/styles.module.css +1 -1
- package/dist/components/flashcard/types.d.ts +12 -0
- package/dist/components/hero/context.d.ts +5 -2
- package/dist/components/hero/context.js +3 -0
- package/dist/components/hero/context.js.map +1 -1
- package/dist/components/hero/index.d.ts +9 -2
- package/dist/components/hero/index.js +7 -0
- package/dist/components/hero/index.js.map +1 -1
- package/dist/components/hero/subtitle.d.ts +17 -2
- package/dist/components/hero/subtitle.js +15 -0
- package/dist/components/hero/subtitle.js.map +1 -1
- package/dist/components/hero/title.d.ts +15 -2
- package/dist/components/hero/title.js +13 -0
- package/dist/components/hero/title.js.map +1 -1
- package/dist/components/hero/types.d.ts +9 -0
- package/dist/components/hotkey/context.d.ts +24 -4
- package/dist/components/hotkey/context.js +20 -0
- package/dist/components/hotkey/context.js.map +1 -1
- package/dist/components/hotkey/index.d.ts +17 -2
- package/dist/components/hotkey/index.js +15 -0
- package/dist/components/hotkey/index.js.map +1 -1
- package/dist/components/hotkey/set.d.ts +21 -2
- package/dist/components/hotkey/set.js +18 -0
- package/dist/components/hotkey/set.js.map +1 -1
- package/dist/components/hotkey/types.d.ts +4 -0
- package/dist/components/icon/context.d.ts +24 -4
- package/dist/components/icon/context.js +20 -0
- package/dist/components/icon/context.js.map +1 -1
- package/dist/components/icon/index.d.ts +15 -2
- package/dist/components/icon/index.js +13 -0
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/icon/types.d.ts +4 -0
- package/dist/components/input/context.d.ts +4 -0
- package/dist/components/input/context.js +4 -0
- package/dist/components/input/context.js.map +1 -1
- package/dist/components/input/index.d.ts +17 -2
- package/dist/components/input/index.js +16 -1
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/types.d.ts +16 -0
- package/dist/components/kanban/card-body.d.ts +10 -2
- package/dist/components/kanban/card-body.js +8 -0
- package/dist/components/kanban/card-body.js.map +1 -1
- package/dist/components/kanban/card-header-actions.d.ts +10 -2
- package/dist/components/kanban/card-header-actions.js +8 -0
- package/dist/components/kanban/card-header-actions.js.map +1 -1
- package/dist/components/kanban/card-header-title.d.ts +10 -2
- package/dist/components/kanban/card-header-title.js +8 -0
- package/dist/components/kanban/card-header-title.js.map +1 -1
- package/dist/components/kanban/card-header.d.ts +12 -2
- package/dist/components/kanban/card-header.js +10 -0
- package/dist/components/kanban/card-header.js.map +1 -1
- package/dist/components/kanban/card.d.ts +26 -2
- package/dist/components/kanban/card.js +23 -0
- package/dist/components/kanban/card.js.map +1 -1
- package/dist/components/kanban/column-actions.d.ts +10 -2
- package/dist/components/kanban/column-actions.js +9 -1
- package/dist/components/kanban/column-actions.js.map +1 -1
- package/dist/components/kanban/column-container.d.ts +10 -2
- package/dist/components/kanban/column-container.js +8 -0
- package/dist/components/kanban/column-container.js.map +1 -1
- package/dist/components/kanban/column-content.d.ts +13 -2
- package/dist/components/kanban/column-content.js +11 -0
- package/dist/components/kanban/column-content.js.map +1 -1
- package/dist/components/kanban/column-header-actions.d.ts +13 -2
- package/dist/components/kanban/column-header-actions.js +11 -0
- package/dist/components/kanban/column-header-actions.js.map +1 -1
- package/dist/components/kanban/column-header-drag-handle.d.ts +7 -2
- package/dist/components/kanban/column-header-drag-handle.js +6 -1
- package/dist/components/kanban/column-header-drag-handle.js.map +1 -1
- package/dist/components/kanban/column-header-title.d.ts +10 -2
- package/dist/components/kanban/column-header-title.js +8 -0
- package/dist/components/kanban/column-header-title.js.map +1 -1
- package/dist/components/kanban/column-header.d.ts +12 -2
- package/dist/components/kanban/column-header.js +10 -0
- package/dist/components/kanban/column-header.js.map +1 -1
- package/dist/components/kanban/column.d.ts +22 -2
- package/dist/components/kanban/column.js +19 -0
- package/dist/components/kanban/column.js.map +1 -1
- package/dist/components/kanban/context.d.ts +49 -2
- package/dist/components/kanban/context.js +30 -0
- package/dist/components/kanban/context.js.map +1 -1
- package/dist/components/kanban/header-actions.d.ts +10 -2
- package/dist/components/kanban/header-actions.js +8 -0
- package/dist/components/kanban/header-actions.js.map +1 -1
- package/dist/components/kanban/header-search.d.ts +9 -2
- package/dist/components/kanban/header-search.js +7 -0
- package/dist/components/kanban/header-search.js.map +1 -1
- package/dist/components/kanban/header-title.d.ts +10 -2
- package/dist/components/kanban/header-title.js +8 -0
- package/dist/components/kanban/header-title.js.map +1 -1
- package/dist/components/kanban/header.d.ts +12 -2
- package/dist/components/kanban/header.js +10 -0
- package/dist/components/kanban/header.js.map +1 -1
- package/dist/components/kanban/kanban.d.ts +33 -4
- package/dist/components/kanban/kanban.js +29 -0
- package/dist/components/kanban/kanban.js.map +1 -1
- package/dist/components/kanban/types.d.ts +51 -0
- package/dist/components/label/context.d.ts +25 -4
- package/dist/components/label/context.js +21 -0
- package/dist/components/label/context.js.map +1 -1
- package/dist/components/label/index.d.ts +16 -2
- package/dist/components/label/index.js +14 -0
- package/dist/components/label/index.js.map +1 -1
- package/dist/components/label/types.d.ts +5 -0
- package/dist/components/lines/index.d.ts +10 -0
- package/dist/components/lines/index.js +9 -0
- package/dist/components/lines/index.js.map +1 -1
- package/dist/components/lines/types.d.ts +6 -0
- package/dist/components/link/context.d.ts +21 -2
- package/dist/components/link/context.js +18 -0
- package/dist/components/link/context.js.map +1 -1
- package/dist/components/link/index.d.ts +12 -2
- package/dist/components/link/index.js +9 -0
- package/dist/components/link/index.js.map +1 -1
- package/dist/components/link/types.d.ts +5 -0
- package/dist/components/list/context.d.ts +11 -2
- package/dist/components/list/context.js +9 -0
- package/dist/components/list/context.js.map +1 -1
- package/dist/components/list/index.d.ts +11 -2
- package/dist/components/list/index.js +9 -0
- package/dist/components/list/index.js.map +1 -1
- package/dist/components/list/item-content.d.ts +9 -2
- package/dist/components/list/item-content.js +6 -0
- package/dist/components/list/item-content.js.map +1 -1
- package/dist/components/list/item-description.d.ts +9 -2
- package/dist/components/list/item-description.js +7 -0
- package/dist/components/list/item-description.js.map +1 -1
- package/dist/components/list/item-title.d.ts +9 -2
- package/dist/components/list/item-title.js +7 -0
- package/dist/components/list/item-title.js.map +1 -1
- package/dist/components/list/item.d.ts +10 -2
- package/dist/components/list/item.js +8 -0
- package/dist/components/list/item.js.map +1 -1
- package/dist/components/list/types.d.ts +22 -0
- package/dist/components/menu/context.d.ts +6 -2
- package/dist/components/menu/context.js +4 -0
- package/dist/components/menu/context.js.map +1 -1
- package/dist/components/menu/index.d.ts +24 -3
- package/dist/components/menu/index.js +22 -1
- package/dist/components/menu/index.js.map +1 -1
- package/dist/components/menu/item-description.d.ts +17 -2
- package/dist/components/menu/item-description.js +15 -0
- package/dist/components/menu/item-description.js.map +1 -1
- package/dist/components/menu/item-label.d.ts +17 -2
- package/dist/components/menu/item-label.js +15 -0
- package/dist/components/menu/item-label.js.map +1 -1
- package/dist/components/menu/item.d.ts +23 -2
- package/dist/components/menu/item.js +21 -1
- package/dist/components/menu/item.js.map +1 -1
- package/dist/components/menu/section.d.ts +23 -2
- package/dist/components/menu/section.js +20 -0
- package/dist/components/menu/section.js.map +1 -1
- package/dist/components/menu/separator.d.ts +16 -2
- package/dist/components/menu/separator.js +14 -0
- package/dist/components/menu/separator.js.map +1 -1
- package/dist/components/menu/submenu.d.ts +18 -2
- package/dist/components/menu/submenu.js +16 -0
- package/dist/components/menu/submenu.js.map +1 -1
- package/dist/components/menu/trigger.d.ts +15 -0
- package/dist/components/menu/trigger.js +15 -0
- package/dist/components/menu/trigger.js.map +1 -1
- package/dist/components/menu/types.d.ts +25 -0
- package/dist/components/notice/events.d.ts +9 -0
- package/dist/components/notice/events.js +9 -0
- package/dist/components/notice/events.js.map +1 -1
- package/dist/components/notice/index.d.ts +34 -2
- package/dist/components/notice/index.js +32 -1
- package/dist/components/notice/index.js.map +1 -1
- package/dist/components/notice/list.d.ts +31 -2
- package/dist/components/notice/list.js +28 -0
- package/dist/components/notice/list.js.map +1 -1
- package/dist/components/notice/notice-icon.d.ts +22 -2
- package/dist/components/notice/notice-icon.js +23 -1
- package/dist/components/notice/notice-icon.js.map +1 -1
- package/dist/components/notice/types.d.ts +60 -0
- package/dist/components/notice/utils.d.ts +8 -0
- package/dist/components/notice/utils.js +8 -0
- package/dist/components/notice/utils.js.map +1 -1
- package/dist/components/options/context.d.ts +1 -0
- package/dist/components/options/context.js +1 -0
- package/dist/components/options/context.js.map +1 -1
- package/dist/components/options/index.d.ts +15 -2
- package/dist/components/options/index.js +13 -0
- package/dist/components/options/index.js.map +1 -1
- package/dist/components/options/item-content.d.ts +22 -2
- package/dist/components/options/item-content.js +19 -0
- package/dist/components/options/item-content.js.map +1 -1
- package/dist/components/options/item-description.d.ts +14 -2
- package/dist/components/options/item-description.js +12 -0
- package/dist/components/options/item-description.js.map +1 -1
- package/dist/components/options/item-label.d.ts +14 -2
- package/dist/components/options/item-label.js +12 -0
- package/dist/components/options/item-label.js.map +1 -1
- package/dist/components/options/item.d.ts +24 -2
- package/dist/components/options/item.js +21 -0
- package/dist/components/options/item.js.map +1 -1
- package/dist/components/options/section.d.ts +21 -2
- package/dist/components/options/section.js +18 -0
- package/dist/components/options/section.js.map +1 -1
- package/dist/components/options/types.d.ts +24 -0
- package/dist/components/pagination/context.d.ts +3 -2
- package/dist/components/pagination/context.js +1 -0
- package/dist/components/pagination/context.js.map +1 -1
- package/dist/components/pagination/index.d.ts +18 -11
- package/dist/components/pagination/index.js +15 -9
- package/dist/components/pagination/index.js.map +1 -1
- package/dist/components/pagination/next.d.ts +17 -2
- package/dist/components/pagination/next.js +15 -0
- package/dist/components/pagination/next.js.map +1 -1
- package/dist/components/pagination/pages.d.ts +21 -2
- package/dist/components/pagination/pages.js +18 -0
- package/dist/components/pagination/pages.js.map +1 -1
- package/dist/components/pagination/prev.d.ts +17 -2
- package/dist/components/pagination/prev.js +16 -1
- package/dist/components/pagination/prev.js.map +1 -1
- package/dist/components/pagination/types.d.ts +32 -0
- package/dist/components/pagination/utils.d.ts +35 -0
- package/dist/components/pagination/utils.js +35 -0
- package/dist/components/pagination/utils.js.map +1 -1
- package/dist/components/popover/content.d.ts +20 -2
- package/dist/components/popover/content.js +17 -0
- package/dist/components/popover/content.js.map +1 -1
- package/dist/components/popover/footer.d.ts +22 -2
- package/dist/components/popover/footer.js +19 -0
- package/dist/components/popover/footer.js.map +1 -1
- package/dist/components/popover/index.d.ts +9 -2
- package/dist/components/popover/index.js +8 -1
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/popover/styles.module.css +6 -0
- package/dist/components/popover/title.d.ts +17 -2
- package/dist/components/popover/title.js +15 -0
- package/dist/components/popover/title.js.map +1 -1
- package/dist/components/popover/trigger.d.ts +24 -2
- package/dist/components/popover/trigger.js +21 -0
- package/dist/components/popover/trigger.js.map +1 -1
- package/dist/components/popover/types.d.ts +10 -0
- package/dist/components/query-builder/action-element.d.ts +20 -2
- package/dist/components/query-builder/action-element.js +17 -0
- package/dist/components/query-builder/action-element.js.map +1 -1
- package/dist/components/query-builder/actions.d.ts +37 -4
- package/dist/components/query-builder/actions.js +36 -1
- package/dist/components/query-builder/actions.js.map +1 -1
- package/dist/components/query-builder/combinator-selector.d.ts +10 -2
- package/dist/components/query-builder/combinator-selector.js +8 -0
- package/dist/components/query-builder/combinator-selector.js.map +1 -1
- package/dist/components/query-builder/constants.d.ts +1 -0
- package/dist/components/query-builder/constants.js +1 -0
- package/dist/components/query-builder/constants.js.map +1 -1
- package/dist/components/query-builder/index.d.ts +11 -2
- package/dist/components/query-builder/index.js +9 -0
- package/dist/components/query-builder/index.js.map +1 -1
- package/dist/components/query-builder/rule-group.d.ts +52 -4
- package/dist/components/query-builder/rule-group.js +47 -0
- package/dist/components/query-builder/rule-group.js.map +1 -1
- package/dist/components/query-builder/rule.d.ts +20 -2
- package/dist/components/query-builder/rule.js +18 -0
- package/dist/components/query-builder/rule.js.map +1 -1
- package/dist/components/query-builder/types.d.ts +9 -0
- package/dist/components/query-builder/utils.d.ts +15 -0
- package/dist/components/query-builder/utils.js +15 -0
- package/dist/components/query-builder/utils.js.map +1 -1
- package/dist/components/query-builder/value-editor.d.ts +23 -2
- package/dist/components/query-builder/value-editor.js +20 -0
- package/dist/components/query-builder/value-editor.js.map +1 -1
- package/dist/components/query-builder/value-selector.d.ts +23 -2
- package/dist/components/query-builder/value-selector.js +20 -0
- package/dist/components/query-builder/value-selector.js.map +1 -1
- package/dist/components/radio/context.d.ts +2 -2
- package/dist/components/radio/group.d.ts +19 -2
- package/dist/components/radio/group.js +16 -0
- package/dist/components/radio/group.js.map +1 -1
- package/dist/components/radio/index.d.ts +13 -26
- package/dist/components/radio/index.js +11 -24
- package/dist/components/radio/index.js.map +1 -1
- package/dist/components/radio/types.d.ts +16 -0
- package/dist/components/search-field/context.d.ts +7 -4
- package/dist/components/search-field/context.js +3 -0
- package/dist/components/search-field/context.js.map +1 -1
- package/dist/components/search-field/index.d.ts +15 -24
- package/dist/components/search-field/index.js +16 -23
- package/dist/components/search-field/index.js.map +1 -1
- package/dist/components/search-field/types.d.ts +13 -0
- package/dist/components/select-field/context.d.ts +11 -4
- package/dist/components/select-field/context.js +7 -0
- package/dist/components/select-field/context.js.map +1 -1
- package/dist/components/select-field/index.d.ts +19 -39
- package/dist/components/select-field/index.js +18 -38
- package/dist/components/select-field/index.js.map +1 -1
- package/dist/components/select-field/styles.module.css +8 -0
- package/dist/components/select-field/types.d.ts +18 -0
- package/dist/components/sidenav/avatar.d.ts +19 -2
- package/dist/components/sidenav/avatar.js +16 -0
- package/dist/components/sidenav/avatar.js.map +1 -1
- package/dist/components/sidenav/content.d.ts +23 -2
- package/dist/components/sidenav/content.js +20 -0
- package/dist/components/sidenav/content.js.map +1 -1
- package/dist/components/sidenav/context.d.ts +3 -2
- package/dist/components/sidenav/context.js +1 -0
- package/dist/components/sidenav/context.js.map +1 -1
- package/dist/components/sidenav/events.d.ts +2 -0
- package/dist/components/sidenav/events.js +2 -0
- package/dist/components/sidenav/events.js.map +1 -1
- package/dist/components/sidenav/footer.d.ts +16 -2
- package/dist/components/sidenav/footer.js +13 -0
- package/dist/components/sidenav/footer.js.map +1 -1
- package/dist/components/sidenav/header.d.ts +20 -2
- package/dist/components/sidenav/header.js +18 -1
- package/dist/components/sidenav/header.js.map +1 -1
- package/dist/components/sidenav/index.d.ts +11 -2
- package/dist/components/sidenav/index.js +9 -0
- package/dist/components/sidenav/index.js.map +1 -1
- package/dist/components/sidenav/item.d.ts +17 -2
- package/dist/components/sidenav/item.js +14 -0
- package/dist/components/sidenav/item.js.map +1 -1
- package/dist/components/sidenav/link.d.ts +17 -2
- package/dist/components/sidenav/link.js +15 -1
- package/dist/components/sidenav/link.js.map +1 -1
- package/dist/components/sidenav/menu-item.d.ts +16 -2
- package/dist/components/sidenav/menu-item.js +13 -0
- package/dist/components/sidenav/menu-item.js.map +1 -1
- package/dist/components/sidenav/menu.d.ts +19 -2
- package/dist/components/sidenav/menu.js +17 -1
- package/dist/components/sidenav/menu.js.map +1 -1
- package/dist/components/sidenav/trigger.d.ts +17 -2
- package/dist/components/sidenav/trigger.js +14 -0
- package/dist/components/sidenav/trigger.js.map +1 -1
- package/dist/components/sidenav/types.d.ts +53 -0
- package/dist/components/skeleton/index.d.ts +12 -27
- package/dist/components/skeleton/index.js +10 -24
- package/dist/components/skeleton/index.js.map +1 -1
- package/dist/components/skeleton/types.d.ts +4 -0
- package/dist/components/slider/index.d.ts +30 -29
- package/dist/components/slider/index.js +28 -27
- package/dist/components/slider/index.js.map +1 -1
- package/dist/components/slider/types.d.ts +18 -0
- package/dist/components/switch/context.d.ts +16 -10
- package/dist/components/switch/context.js +13 -7
- package/dist/components/switch/context.js.map +1 -1
- package/dist/components/switch/index.d.ts +14 -31
- package/dist/components/switch/index.js +12 -29
- package/dist/components/switch/index.js.map +1 -1
- package/dist/components/switch/types.d.ts +5 -0
- package/dist/components/table/body.d.ts +21 -2
- package/dist/components/table/body.js +18 -0
- package/dist/components/table/body.js.map +1 -1
- package/dist/components/table/cell.d.ts +22 -2
- package/dist/components/table/cell.js +19 -0
- package/dist/components/table/cell.js.map +1 -1
- package/dist/components/table/constants/table.d.ts +6 -0
- package/dist/components/table/constants/table.js +4 -0
- package/dist/components/table/constants/table.js.map +1 -1
- package/dist/components/table/context.d.ts +3 -2
- package/dist/components/table/context.js +1 -0
- package/dist/components/table/context.js.map +1 -1
- package/dist/components/table/header-cell.d.ts +24 -2
- package/dist/components/table/header-cell.js +24 -1
- package/dist/components/table/header-cell.js.map +1 -1
- package/dist/components/table/header.d.ts +20 -0
- package/dist/components/table/header.js +19 -0
- package/dist/components/table/header.js.map +1 -1
- package/dist/components/table/index.d.ts +28 -6
- package/dist/components/table/index.js +27 -5
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/table/row.d.ts +26 -2
- package/dist/components/table/row.js +23 -0
- package/dist/components/table/row.js.map +1 -1
- package/dist/components/table/types.d.ts +3 -0
- package/dist/components/tabs/context.d.ts +20 -10
- package/dist/components/tabs/context.js +17 -7
- package/dist/components/tabs/context.js.map +1 -1
- package/dist/components/tabs/index.d.ts +17 -40
- package/dist/components/tabs/index.js +15 -38
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/components/tabs/list.d.ts +20 -4
- package/dist/components/tabs/list.js +17 -2
- package/dist/components/tabs/list.js.map +1 -1
- package/dist/components/tabs/panel.d.ts +21 -4
- package/dist/components/tabs/panel.js +18 -2
- package/dist/components/tabs/panel.js.map +1 -1
- package/dist/components/tabs/tab.d.ts +17 -4
- package/dist/components/tabs/tab.js +14 -2
- package/dist/components/tabs/tab.js.map +1 -1
- package/dist/components/tabs/types.d.ts +3 -0
- package/dist/components/text-area-field/context.d.ts +20 -10
- package/dist/components/text-area-field/context.js +17 -7
- package/dist/components/text-area-field/context.js.map +1 -1
- package/dist/components/text-area-field/index.d.ts +20 -15
- package/dist/components/text-area-field/index.js +18 -13
- package/dist/components/text-area-field/index.js.map +1 -1
- package/dist/components/text-area-field/styles.module.css +1 -1
- package/dist/components/text-area-field/types.d.ts +9 -0
- package/dist/components/text-field/context.d.ts +24 -4
- package/dist/components/text-field/context.js +20 -0
- package/dist/components/text-field/context.js.map +1 -1
- package/dist/components/text-field/index.d.ts +17 -82
- package/dist/components/text-field/index.js +15 -80
- package/dist/components/text-field/index.js.map +1 -1
- package/dist/components/text-field/types.d.ts +9 -0
- package/dist/components/time-field/index.d.ts +23 -5
- package/dist/components/time-field/index.js +21 -4
- package/dist/components/time-field/index.js.map +1 -1
- package/dist/components/time-field/types.d.ts +9 -0
- package/dist/components/tooltip/context.d.ts +3 -2
- package/dist/components/tooltip/context.js +1 -0
- package/dist/components/tooltip/context.js.map +1 -1
- package/dist/components/tooltip/index.d.ts +15 -30
- package/dist/components/tooltip/index.js +13 -28
- package/dist/components/tooltip/index.js.map +1 -1
- package/dist/components/tooltip/trigger.d.ts +22 -2
- package/dist/components/tooltip/trigger.js +19 -0
- package/dist/components/tooltip/trigger.js.map +1 -1
- package/dist/components/tooltip/types.d.ts +7 -0
- package/dist/components/tree/context.d.ts +5 -9
- package/dist/components/tree/context.js +2 -6
- package/dist/components/tree/context.js.map +1 -1
- package/dist/components/tree/index.d.ts +30 -8
- package/dist/components/tree/index.js +28 -6
- package/dist/components/tree/index.js.map +1 -1
- package/dist/components/tree/item-actions.d.ts +19 -4
- package/dist/components/tree/item-actions.js +16 -2
- package/dist/components/tree/item-actions.js.map +1 -1
- package/dist/components/tree/item-content.d.ts +18 -4
- package/dist/components/tree/item-content.js +20 -3
- package/dist/components/tree/item-content.js.map +1 -1
- package/dist/components/tree/item-description.d.ts +15 -4
- package/dist/components/tree/item-description.js +13 -2
- package/dist/components/tree/item-description.js.map +1 -1
- package/dist/components/tree/item-label.d.ts +15 -4
- package/dist/components/tree/item-label.js +13 -2
- package/dist/components/tree/item-label.js.map +1 -1
- package/dist/components/tree/item-prefix-icon.d.ts +15 -4
- package/dist/components/tree/item-prefix-icon.js +13 -2
- package/dist/components/tree/item-prefix-icon.js.map +1 -1
- package/dist/components/tree/item.d.ts +24 -4
- package/dist/components/tree/item.js +21 -2
- package/dist/components/tree/item.js.map +1 -1
- package/dist/components/tree/lines.d.ts +10 -2
- package/dist/components/tree/lines.js +8 -0
- package/dist/components/tree/lines.js.map +1 -1
- package/dist/components/tree/types.d.ts +26 -0
- package/dist/components/view-stack/context.d.ts +20 -9
- package/dist/components/view-stack/context.js +18 -7
- package/dist/components/view-stack/context.js.map +1 -1
- package/dist/components/view-stack/events.d.ts +2 -0
- package/dist/components/view-stack/events.js +2 -0
- package/dist/components/view-stack/events.js.map +1 -1
- package/dist/components/view-stack/index.d.ts +16 -24
- package/dist/components/view-stack/index.js +14 -22
- package/dist/components/view-stack/index.js.map +1 -1
- package/dist/components/view-stack/trigger.d.ts +26 -4
- package/dist/components/view-stack/trigger.js +23 -2
- package/dist/components/view-stack/trigger.js.map +1 -1
- package/dist/components/view-stack/types.d.ts +29 -0
- package/dist/components/view-stack/view.d.ts +22 -2
- package/dist/components/view-stack/view.js +19 -0
- package/dist/components/view-stack/view.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-copy.d.ts +44 -0
- package/dist/hooks/coordinate-field/use-coordinate-copy.js +35 -0
- package/dist/hooks/coordinate-field/use-coordinate-copy.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-field-state.d.ts +69 -0
- package/dist/hooks/coordinate-field/use-coordinate-field-state.js +50 -0
- package/dist/hooks/coordinate-field/use-coordinate-field-state.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-field.d.ts +61 -0
- package/dist/hooks/coordinate-field/use-coordinate-field.js +47 -0
- package/dist/hooks/coordinate-field/use-coordinate-field.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-focus.d.ts +51 -0
- package/dist/hooks/coordinate-field/use-coordinate-focus.js +39 -0
- package/dist/hooks/coordinate-field/use-coordinate-focus.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-paste.d.ts +63 -0
- package/dist/hooks/coordinate-field/use-coordinate-paste.js +51 -0
- package/dist/hooks/coordinate-field/use-coordinate-paste.js.map +1 -1
- package/dist/hooks/coordinate-field/use-timeout-cleanup.d.ts +32 -0
- package/dist/hooks/coordinate-field/use-timeout-cleanup.js +30 -0
- package/dist/hooks/coordinate-field/use-timeout-cleanup.js.map +1 -1
- package/dist/hooks/use-frame-delay/index.d.ts +5 -0
- package/dist/hooks/use-frame-delay/index.js +5 -0
- package/dist/hooks/use-frame-delay/index.js.map +1 -1
- package/dist/hooks/use-tree/actions/index.d.ts +4 -2
- package/dist/hooks/use-tree/actions/index.js +4 -2
- package/dist/hooks/use-tree/actions/index.js.map +1 -1
- package/dist/hooks/use-tree/state/index.d.ts +7 -0
- package/dist/hooks/use-tree/state/index.js +7 -0
- package/dist/hooks/use-tree/state/index.js.map +1 -1
- package/dist/hooks/use-tree/types.d.ts +22 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/lib/types.d.ts +17 -0
- package/dist/lib/utils.d.ts +15 -0
- package/dist/lib/utils.js +15 -0
- package/dist/lib/utils.js.map +1 -1
- package/dist/providers/portal.d.ts +11 -2
- package/dist/providers/portal.js +9 -0
- package/dist/providers/portal.js.map +1 -1
- package/dist/providers/theme-provider.d.ts +18 -2
- package/dist/providers/theme-provider.js +15 -0
- package/dist/providers/theme-provider.js.map +1 -1
- package/package.json +3 -3
|
@@ -14,12 +14,22 @@ import { ComponentPropsWithRef } from "react";
|
|
|
14
14
|
import { DialogProps, DialogTriggerProps, PopoverProps as PopoverProps$1 } from "react-aria-components";
|
|
15
15
|
|
|
16
16
|
//#region src/components/popover/types.d.ts
|
|
17
|
+
/**
|
|
18
|
+
* Props for the PopoverTrigger component.
|
|
19
|
+
*/
|
|
17
20
|
type PopoverTriggerProps = ComponentPropsWithRef<'div'> & DialogTriggerProps;
|
|
21
|
+
/**
|
|
22
|
+
* Props for the Popover component.
|
|
23
|
+
*/
|
|
18
24
|
type PopoverProps = Omit<PopoverProps$1, 'children' | 'className'> & Pick<DialogProps, 'children'> & {
|
|
25
|
+
/** CSS class names for popover elements. */
|
|
19
26
|
classNames?: {
|
|
27
|
+
/** Class name for the popover container. */
|
|
20
28
|
popover?: PopoverProps$1['className'];
|
|
29
|
+
/** Class name for the dialog content. */
|
|
21
30
|
dialog?: DialogProps['className'];
|
|
22
31
|
};
|
|
32
|
+
/** Additional props passed to the Dialog component. */
|
|
23
33
|
dialogProps?: Omit<DialogProps, 'children' | 'className'>;
|
|
24
34
|
};
|
|
25
35
|
//#endregion
|
|
@@ -11,16 +11,34 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime116 from "react/jsx-runtime";
|
|
15
15
|
import { ActionProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/action-element.d.ts
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* ActionElement - Base button component for rule and group actions
|
|
21
|
+
*
|
|
22
|
+
* Renders a text-labeled button with support for disabled state translations.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <ActionElement
|
|
27
|
+
* title="Add Rule"
|
|
28
|
+
* handleOnClick={() => console.log('clicked')}
|
|
29
|
+
* disabled={false}
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @param props - ActionProps from react-querybuilder.
|
|
34
|
+
* @returns The rendered ActionElement button.
|
|
35
|
+
*/
|
|
18
36
|
declare function ActionElement({
|
|
19
37
|
disabled,
|
|
20
38
|
disabledTranslation,
|
|
21
39
|
title: titleProp,
|
|
22
40
|
handleOnClick
|
|
23
|
-
}: ActionProps):
|
|
41
|
+
}: ActionProps): react_jsx_runtime116.JSX.Element;
|
|
24
42
|
//#endregion
|
|
25
43
|
export { ActionElement };
|
|
26
44
|
//# sourceMappingURL=action-element.d.ts.map
|
|
@@ -19,6 +19,23 @@ import { useMemo } from "react";
|
|
|
19
19
|
import { jsx } from "react/jsx-runtime";
|
|
20
20
|
|
|
21
21
|
//#region src/components/query-builder/action-element.tsx
|
|
22
|
+
/**
|
|
23
|
+
* ActionElement - Base button component for rule and group actions
|
|
24
|
+
*
|
|
25
|
+
* Renders a text-labeled button with support for disabled state translations.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* <ActionElement
|
|
30
|
+
* title="Add Rule"
|
|
31
|
+
* handleOnClick={() => console.log('clicked')}
|
|
32
|
+
* disabled={false}
|
|
33
|
+
* />
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @param props - ActionProps from react-querybuilder.
|
|
37
|
+
* @returns The rendered ActionElement button.
|
|
38
|
+
*/
|
|
22
39
|
function ActionElement({ disabled, disabledTranslation, title: titleProp, handleOnClick }) {
|
|
23
40
|
const title = useMemo(() => disabledTranslation?.title && disabled ? disabledTranslation.title : titleProp, [
|
|
24
41
|
disabledTranslation?.title,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-element.js","names":[],"sources":["../../../src/components/query-builder/action-element.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { useMemo } from 'react';\nimport { Button } from '../button';\nimport type { ActionProps } from 'react-querybuilder';\n\nexport function ActionElement({\n disabled,\n disabledTranslation,\n title: titleProp,\n handleOnClick,\n}: ActionProps) {\n const title = useMemo(\n () =>\n disabledTranslation?.title && disabled\n ? disabledTranslation.title\n : titleProp,\n [disabledTranslation?.title, disabled, titleProp],\n );\n\n return (\n <Button\n isDisabled={disabled && !disabledTranslation}\n onPress={() => handleOnClick()}\n size='small'\n variant='outline'\n >\n {title}\n </Button>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"action-element.js","names":[],"sources":["../../../src/components/query-builder/action-element.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { useMemo } from 'react';\nimport { Button } from '../button';\nimport type { ActionProps } from 'react-querybuilder';\n\n/**\n * ActionElement - Base button component for rule and group actions\n *\n * Renders a text-labeled button with support for disabled state translations.\n *\n * @example\n * ```tsx\n * <ActionElement\n * title=\"Add Rule\"\n * handleOnClick={() => console.log('clicked')}\n * disabled={false}\n * />\n * ```\n *\n * @param props - ActionProps from react-querybuilder.\n * @returns The rendered ActionElement button.\n */\nexport function ActionElement({\n disabled,\n disabledTranslation,\n title: titleProp,\n handleOnClick,\n}: ActionProps) {\n const title = useMemo(\n () =>\n disabledTranslation?.title && disabled\n ? disabledTranslation.title\n : titleProp,\n [disabledTranslation?.title, disabled, titleProp],\n );\n\n return (\n <Button\n isDisabled={disabled && !disabledTranslation}\n onPress={() => handleOnClick()}\n size='small'\n variant='outline'\n >\n {title}\n </Button>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAgB,cAAc,EAC5B,UACA,qBACA,OAAO,WACP,iBACc;CACd,MAAM,QAAQ,cAEV,qBAAqB,SAAS,WAC1B,oBAAoB,QACpB,WACN;EAAC,qBAAqB;EAAO;EAAU;EAAU,CAClD;AAED,QACE,oBAAC;EACC,YAAY,YAAY,CAAC;EACzB,eAAe,eAAe;EAC9B,MAAK;EACL,SAAQ;YAEP;GACM"}
|
|
@@ -11,25 +11,58 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime118 from "react/jsx-runtime";
|
|
15
15
|
import { ActionProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/actions.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* Delete button for removing rules or groups
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <RemoveRuleAction handleOnClick={() => console.log('remove')} />
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @param props - ActionProps from react-querybuilder.
|
|
27
|
+
* @returns The rendered RemoveRuleAction button.
|
|
28
|
+
*/
|
|
18
29
|
declare function RemoveRuleAction({
|
|
19
30
|
handleOnClick,
|
|
20
31
|
className,
|
|
21
32
|
...rest
|
|
22
|
-
}: ActionProps):
|
|
33
|
+
}: ActionProps): react_jsx_runtime118.JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* Lock/unlock toggle button for rules or groups
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* <LockAction handleOnClick={() => console.log('lock toggled')} />
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @param props - ActionProps from react-querybuilder.
|
|
43
|
+
* @returns The rendered LockAction button.
|
|
44
|
+
*/
|
|
23
45
|
declare function LockAction({
|
|
24
46
|
handleOnClick,
|
|
25
47
|
className,
|
|
26
48
|
...rest
|
|
27
|
-
}: ActionProps):
|
|
49
|
+
}: ActionProps): react_jsx_runtime118.JSX.Element;
|
|
50
|
+
/**
|
|
51
|
+
* Duplicate button for cloning rules or groups
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```tsx
|
|
55
|
+
* <CloneAction handleOnClick={() => console.log('clone')} />
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param props - ActionProps from react-querybuilder.
|
|
59
|
+
* @returns The rendered CloneAction button.
|
|
60
|
+
*/
|
|
28
61
|
declare function CloneAction({
|
|
29
62
|
handleOnClick,
|
|
30
63
|
className,
|
|
31
64
|
...rest
|
|
32
|
-
}: ActionProps):
|
|
65
|
+
}: ActionProps): react_jsx_runtime118.JSX.Element;
|
|
33
66
|
//#endregion
|
|
34
67
|
export { CloneAction, LockAction, RemoveRuleAction };
|
|
35
68
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -17,9 +17,22 @@ import { Icon } from "../icon/index.js";
|
|
|
17
17
|
import { Button } from "../button/index.js";
|
|
18
18
|
import "client-only";
|
|
19
19
|
import { jsx } from "react/jsx-runtime";
|
|
20
|
-
import
|
|
20
|
+
import Delete from "@accelint/icons/delete";
|
|
21
|
+
import Duplicate from "@accelint/icons/duplicate";
|
|
22
|
+
import LockFill from "@accelint/icons/lock-fill";
|
|
21
23
|
|
|
22
24
|
//#region src/components/query-builder/actions.tsx
|
|
25
|
+
/**
|
|
26
|
+
* Delete button for removing rules or groups
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* <RemoveRuleAction handleOnClick={() => console.log('remove')} />
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @param props - ActionProps from react-querybuilder.
|
|
34
|
+
* @returns The rendered RemoveRuleAction button.
|
|
35
|
+
*/
|
|
23
36
|
function RemoveRuleAction({ handleOnClick, className, ...rest }) {
|
|
24
37
|
return /* @__PURE__ */ jsx(Button, {
|
|
25
38
|
size: "small",
|
|
@@ -30,6 +43,17 @@ function RemoveRuleAction({ handleOnClick, className, ...rest }) {
|
|
|
30
43
|
children: /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(Delete, {}) })
|
|
31
44
|
});
|
|
32
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Lock/unlock toggle button for rules or groups
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```tsx
|
|
51
|
+
* <LockAction handleOnClick={() => console.log('lock toggled')} />
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param props - ActionProps from react-querybuilder.
|
|
55
|
+
* @returns The rendered LockAction button.
|
|
56
|
+
*/
|
|
33
57
|
function LockAction({ handleOnClick, className, ...rest }) {
|
|
34
58
|
return /* @__PURE__ */ jsx(Button, {
|
|
35
59
|
size: "small",
|
|
@@ -40,6 +64,17 @@ function LockAction({ handleOnClick, className, ...rest }) {
|
|
|
40
64
|
children: /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(LockFill, {}) })
|
|
41
65
|
});
|
|
42
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Duplicate button for cloning rules or groups
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```tsx
|
|
72
|
+
* <CloneAction handleOnClick={() => console.log('clone')} />
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param props - ActionProps from react-querybuilder.
|
|
76
|
+
* @returns The rendered CloneAction button.
|
|
77
|
+
*/
|
|
43
78
|
function CloneAction({ handleOnClick, className, ...rest }) {
|
|
44
79
|
return /* @__PURE__ */ jsx(Button, {
|
|
45
80
|
size: "small",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","names":[],"sources":["../../../src/components/query-builder/actions.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport
|
|
1
|
+
{"version":3,"file":"actions.js","names":[],"sources":["../../../src/components/query-builder/actions.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\n\nimport Delete from '@accelint/icons/delete';\nimport Duplicate from '@accelint/icons/duplicate';\nimport LockFill from '@accelint/icons/lock-fill';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport type { ActionProps } from 'react-querybuilder';\n\n/**\n * Delete button for removing rules or groups\n *\n * @example\n * ```tsx\n * <RemoveRuleAction handleOnClick={() => console.log('remove')} />\n * ```\n *\n * @param props - ActionProps from react-querybuilder.\n * @returns The rendered RemoveRuleAction button.\n */\nexport function RemoveRuleAction({\n handleOnClick,\n className,\n ...rest\n}: ActionProps) {\n return (\n <Button\n size='small'\n variant='icon'\n onPress={() => handleOnClick()}\n className={className}\n {...rest}\n >\n <Icon>\n <Delete />\n </Icon>\n </Button>\n );\n}\n\n/**\n * Lock/unlock toggle button for rules or groups\n *\n * @example\n * ```tsx\n * <LockAction handleOnClick={() => console.log('lock toggled')} />\n * ```\n *\n * @param props - ActionProps from react-querybuilder.\n * @returns The rendered LockAction button.\n */\nexport function LockAction({ handleOnClick, className, ...rest }: ActionProps) {\n return (\n <Button\n size='small'\n variant='icon'\n onPress={() => handleOnClick()}\n className={className}\n {...rest}\n >\n <Icon>\n <LockFill />\n </Icon>\n </Button>\n );\n}\n\n/**\n * Duplicate button for cloning rules or groups\n *\n * @example\n * ```tsx\n * <CloneAction handleOnClick={() => console.log('clone')} />\n * ```\n *\n * @param props - ActionProps from react-querybuilder.\n * @returns The rendered CloneAction button.\n */\nexport function CloneAction({\n handleOnClick,\n className,\n ...rest\n}: ActionProps) {\n return (\n <Button\n size='small'\n variant='icon'\n onPress={() => handleOnClick()}\n className={className}\n {...rest}\n >\n <Icon>\n <Duplicate />\n </Icon>\n </Button>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,SAAgB,iBAAiB,EAC/B,eACA,WACA,GAAG,QACW;AACd,QACE,oBAAC;EACC,MAAK;EACL,SAAQ;EACR,eAAe,eAAe;EACnB;EACX,GAAI;YAEJ,oBAAC,kBACC,oBAAC,WAAS,GACL;GACA;;;;;;;;;;;;;AAeb,SAAgB,WAAW,EAAE,eAAe,WAAW,GAAG,QAAqB;AAC7E,QACE,oBAAC;EACC,MAAK;EACL,SAAQ;EACR,eAAe,eAAe;EACnB;EACX,GAAI;YAEJ,oBAAC,kBACC,oBAAC,aAAW,GACP;GACA;;;;;;;;;;;;;AAeb,SAAgB,YAAY,EAC1B,eACA,WACA,GAAG,QACW;AACd,QACE,oBAAC;EACC,MAAK;EACL,SAAQ;EACR,eAAe,eAAe;EACnB;EACX,GAAI;YAEJ,oBAAC,kBACC,oBAAC,cAAY,GACR;GACA"}
|
|
@@ -11,15 +11,23 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime117 from "react/jsx-runtime";
|
|
15
15
|
import { CombinatorSelectorProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/combinator-selector.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* CombinatorSelector - AND/OR toggle for rule groups
|
|
20
|
+
*
|
|
21
|
+
* Renders a radio group with tooltips explaining each combinator's behavior.
|
|
22
|
+
*
|
|
23
|
+
* @param props - CombinatorSelectorProps from react-querybuilder.
|
|
24
|
+
* @returns The rendered CombinatorSelector component.
|
|
25
|
+
*/
|
|
18
26
|
declare function CombinatorSelector({
|
|
19
27
|
options,
|
|
20
28
|
value,
|
|
21
29
|
handleOnChange
|
|
22
|
-
}: CombinatorSelectorProps):
|
|
30
|
+
}: CombinatorSelectorProps): react_jsx_runtime117.JSX.Element;
|
|
23
31
|
//#endregion
|
|
24
32
|
export { CombinatorSelector };
|
|
25
33
|
//# sourceMappingURL=combinator-selector.d.ts.map
|
|
@@ -26,6 +26,14 @@ const operatorDescriptions = {
|
|
|
26
26
|
AND: "All rules below must be true for a match",
|
|
27
27
|
OR: "One of the rules below must be true for a match"
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* CombinatorSelector - AND/OR toggle for rule groups
|
|
31
|
+
*
|
|
32
|
+
* Renders a radio group with tooltips explaining each combinator's behavior.
|
|
33
|
+
*
|
|
34
|
+
* @param props - CombinatorSelectorProps from react-querybuilder.
|
|
35
|
+
* @returns The rendered CombinatorSelector component.
|
|
36
|
+
*/
|
|
29
37
|
function CombinatorSelector({ options, value, handleOnChange }) {
|
|
30
38
|
return /* @__PURE__ */ jsxs(RadioGroup, {
|
|
31
39
|
value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combinator-selector.js","names":["operatorDescriptions: Record<string, string>"],"sources":["../../../src/components/query-builder/combinator-selector.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { Label } from '../label';\nimport { Radio } from '../radio';\nimport { RadioGroup } from '../radio/group';\nimport { Tooltip } from '../tooltip';\nimport { TooltipTrigger } from '../tooltip/trigger';\nimport type { CombinatorSelectorProps } from 'react-querybuilder';\n\nconst operatorDescriptions: Record<string, string> = {\n AND: 'All rules below must be true for a match',\n OR: 'One of the rules below must be true for a match',\n};\n\nexport function CombinatorSelector({\n options,\n value,\n handleOnChange,\n}: CombinatorSelectorProps) {\n return (\n <RadioGroup\n value={value}\n onChange={handleOnChange}\n orientation='horizontal'\n style={{ flexWrap: 'nowrap' }}\n >\n <Label>Combinator</Label>\n {options.map((option) => (\n <Radio key={option.label} value={option.label}>\n <TooltipTrigger>\n <button type='button'>{option.label}</button>\n <Tooltip placement='top'>\n {operatorDescriptions[option.label]}\n </Tooltip>\n </TooltipTrigger>\n </Radio>\n ))}\n </RadioGroup>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,uBAA+C;CACnD,KAAK;CACL,IAAI;CACL
|
|
1
|
+
{"version":3,"file":"combinator-selector.js","names":["operatorDescriptions: Record<string, string>"],"sources":["../../../src/components/query-builder/combinator-selector.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { Label } from '../label';\nimport { Radio } from '../radio';\nimport { RadioGroup } from '../radio/group';\nimport { Tooltip } from '../tooltip';\nimport { TooltipTrigger } from '../tooltip/trigger';\nimport type { CombinatorSelectorProps } from 'react-querybuilder';\n\nconst operatorDescriptions: Record<string, string> = {\n AND: 'All rules below must be true for a match',\n OR: 'One of the rules below must be true for a match',\n};\n\n/**\n * CombinatorSelector - AND/OR toggle for rule groups\n *\n * Renders a radio group with tooltips explaining each combinator's behavior.\n *\n * @param props - CombinatorSelectorProps from react-querybuilder.\n * @returns The rendered CombinatorSelector component.\n */\nexport function CombinatorSelector({\n options,\n value,\n handleOnChange,\n}: CombinatorSelectorProps) {\n return (\n <RadioGroup\n value={value}\n onChange={handleOnChange}\n orientation='horizontal'\n style={{ flexWrap: 'nowrap' }}\n >\n <Label>Combinator</Label>\n {options.map((option) => (\n <Radio key={option.label} value={option.label}>\n <TooltipTrigger>\n <button type='button'>{option.label}</button>\n <Tooltip placement='top'>\n {operatorDescriptions[option.label]}\n </Tooltip>\n </TooltipTrigger>\n </Radio>\n ))}\n </RadioGroup>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,uBAA+C;CACnD,KAAK;CACL,IAAI;CACL;;;;;;;;;AAUD,SAAgB,mBAAmB,EACjC,SACA,OACA,kBAC0B;AAC1B,QACE,qBAAC;EACQ;EACP,UAAU;EACV,aAAY;EACZ,OAAO,EAAE,UAAU,UAAU;aAE7B,oBAAC,mBAAM,eAAkB,EACxB,QAAQ,KAAK,WACZ,oBAAC;GAAyB,OAAO,OAAO;aACtC,qBAAC,6BACC,oBAAC;IAAO,MAAK;cAAU,OAAO;KAAe,EAC7C,oBAAC;IAAQ,WAAU;cAChB,qBAAqB,OAAO;KACrB,IACK;KANP,OAAO,MAOX,CACR;GACS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":[],"sources":["../../../src/components/query-builder/constants.ts"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport const multiValueOperators = [\n 'between',\n 'notBetween',\n 'during',\n 'overlapped',\n 'overlaps',\n];\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../../../src/components/query-builder/constants.ts"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/** Operators that require multiple input values (e.g., between, during). */\nexport const multiValueOperators = [\n 'between',\n 'notBetween',\n 'during',\n 'overlapped',\n 'overlaps',\n];\n"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAa,sBAAsB;CACjC;CACA;CACA;CACA;CACA;CACD"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { QueryBuilderProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime121 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/index.d.ts
|
|
18
18
|
|
|
@@ -23,7 +23,15 @@ import * as react_jsx_runtime126 from "react/jsx-runtime";
|
|
|
23
23
|
* with support for multiple conditions, operators, and logical grouping. Enables
|
|
24
24
|
* users to build complex filters without writing SQL or code.
|
|
25
25
|
*
|
|
26
|
+
* @param props - {@link QueryBuilderProps}
|
|
27
|
+
* @param props.controlClassnames - Custom CSS class names for control elements.
|
|
28
|
+
* @param props.controlElements - Custom component overrides for controls.
|
|
29
|
+
* @param props.orientation - Layout orientation ('horizontal' or 'vertical').
|
|
30
|
+
* @param props.showRuleLines - Whether to show connecting lines between rules.
|
|
31
|
+
* @returns The rendered QueryBuilder component.
|
|
32
|
+
*
|
|
26
33
|
* @example
|
|
34
|
+
* ```tsx
|
|
27
35
|
* // Basic query builder
|
|
28
36
|
* <QueryBuilder
|
|
29
37
|
* fields={[
|
|
@@ -39,6 +47,7 @@ import * as react_jsx_runtime126 from "react/jsx-runtime";
|
|
|
39
47
|
* }}
|
|
40
48
|
* orientation="vertical"
|
|
41
49
|
* />
|
|
50
|
+
* ```
|
|
42
51
|
*/
|
|
43
52
|
declare function QueryBuilder({
|
|
44
53
|
controlClassnames,
|
|
@@ -46,7 +55,7 @@ declare function QueryBuilder({
|
|
|
46
55
|
orientation,
|
|
47
56
|
showRuleLines,
|
|
48
57
|
...rest
|
|
49
|
-
}: QueryBuilderProps):
|
|
58
|
+
}: QueryBuilderProps): react_jsx_runtime121.JSX.Element;
|
|
50
59
|
//#endregion
|
|
51
60
|
export { QueryBuilder };
|
|
52
61
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -35,7 +35,15 @@ import styles from "./styles.module.css";
|
|
|
35
35
|
* with support for multiple conditions, operators, and logical grouping. Enables
|
|
36
36
|
* users to build complex filters without writing SQL or code.
|
|
37
37
|
*
|
|
38
|
+
* @param props - {@link QueryBuilderProps}
|
|
39
|
+
* @param props.controlClassnames - Custom CSS class names for control elements.
|
|
40
|
+
* @param props.controlElements - Custom component overrides for controls.
|
|
41
|
+
* @param props.orientation - Layout orientation ('horizontal' or 'vertical').
|
|
42
|
+
* @param props.showRuleLines - Whether to show connecting lines between rules.
|
|
43
|
+
* @returns The rendered QueryBuilder component.
|
|
44
|
+
*
|
|
38
45
|
* @example
|
|
46
|
+
* ```tsx
|
|
39
47
|
* // Basic query builder
|
|
40
48
|
* <QueryBuilder
|
|
41
49
|
* fields={[
|
|
@@ -51,6 +59,7 @@ import styles from "./styles.module.css";
|
|
|
51
59
|
* }}
|
|
52
60
|
* orientation="vertical"
|
|
53
61
|
* />
|
|
62
|
+
* ```
|
|
54
63
|
*/
|
|
55
64
|
function QueryBuilder({ controlClassnames, controlElements, orientation = "horizontal", showRuleLines = true, ...rest }) {
|
|
56
65
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["RQBBuilder"],"sources":["../../../src/components/query-builder/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { createContext, useMemo } from 'react';\nimport { QueryBuilder as RQBBuilder } from 'react-querybuilder';\nimport { ActionElement } from './action-element';\nimport { CloneAction, LockAction, RemoveRuleAction } from './actions';\nimport { CombinatorSelector } from './combinator-selector';\nimport { Rule } from './rule';\nimport { RuleGroup } from './rule-group';\nimport styles from './styles.module.css';\nimport { ValueEditor } from './value-editor';\nimport { ValueSelector } from './value-selector';\nimport type { QueryBuilderContextType, QueryBuilderProps } from './types';\n\n/**\n * QueryBuilder - A visual interface for building complex database queries\n *\n * Provides an intuitive drag-and-drop interface for constructing database queries\n * with support for multiple conditions, operators, and logical grouping. Enables\n * users to build complex filters without writing SQL or code.\n *\n * @example\n * // Basic query builder\n * <QueryBuilder\n * fields={[\n * // { name, label, type, inputType, operators },\n * ]}\n * query={\n * // { combinator, rules }\n * }\n * onQueryChange={handleQueryChange}\n * controlElements={{\n * addRuleAction: CustomAddButton,\n * removeRuleAction: CustomRemoveButton\n * }}\n * orientation=\"vertical\"\n * />\n */\nexport function QueryBuilder({\n controlClassnames,\n controlElements,\n orientation = 'horizontal',\n showRuleLines = true,\n ...rest\n}: QueryBuilderProps) {\n /**\n * Represents the list of available controls that the component can use as a custom\n * component override.Passed in as a map of our custom defaults, but can be\n * overridden by using the controlElements prop\n */\n const mergedElements = useMemo(\n () => ({\n combinatorSelector: CombinatorSelector,\n cloneGroupAction: CloneAction,\n cloneRuleAction: CloneAction,\n removeRuleAction: RemoveRuleAction,\n lockGroupAction: LockAction,\n lockRuleAction: LockAction,\n ruleGroup: RuleGroup,\n rule: Rule,\n actionElement: ActionElement,\n valueSelector: ValueSelector,\n valueEditor: ValueEditor,\n ...controlElements,\n }),\n [controlElements],\n );\n\n /**\n * Represents the list of available classnames that the component will recognize.\n * Passed in as a map as all the default styling, but can be overridden by using the\n * controlClassnames prop\n */\n const mergedClassnames = useMemo(() => {\n return {\n queryBuilder: styles.queryBuilder,\n ruleGroup: clsx('group', styles.ruleGroup),\n header: styles.header,\n combinators: styles.combinators,\n fields: styles.fields,\n operators: '',\n value: styles.value,\n valueListItem: '',\n valueSource: '',\n cloneGroup: styles.cloneGroup,\n cloneRule: styles.cloneRule,\n lockGroup: styles.lockGroup,\n lockRule: styles.lockRule,\n disabled: '',\n valid: '',\n invalid: '',\n removeRule: '',\n addRule: '',\n addGroup: '',\n removeGroup: '',\n rule: clsx(styles.rule, styles[orientation]),\n body: clsx(\n 'group',\n styles.body,\n showRuleLines && styles.showRuleLines,\n !showRuleLines && styles.hideRuleLines,\n ),\n ...controlClassnames,\n };\n }, [controlClassnames, showRuleLines, orientation]);\n\n const QueryBuilderContext = createContext<QueryBuilderContextType>({\n orientation,\n showRuleLines,\n });\n\n return (\n <RQBBuilder\n showNotToggle={false}\n showShiftActions={false}\n enableDragAndDrop={false}\n controlClassnames={mergedClassnames}\n controlElements={mergedElements}\n context={QueryBuilderContext}\n listsAsArrays\n {...rest}\n />\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["RQBBuilder"],"sources":["../../../src/components/query-builder/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { createContext, useMemo } from 'react';\nimport { QueryBuilder as RQBBuilder } from 'react-querybuilder';\nimport { ActionElement } from './action-element';\nimport { CloneAction, LockAction, RemoveRuleAction } from './actions';\nimport { CombinatorSelector } from './combinator-selector';\nimport { Rule } from './rule';\nimport { RuleGroup } from './rule-group';\nimport styles from './styles.module.css';\nimport { ValueEditor } from './value-editor';\nimport { ValueSelector } from './value-selector';\nimport type { QueryBuilderContextType, QueryBuilderProps } from './types';\n\n/**\n * QueryBuilder - A visual interface for building complex database queries\n *\n * Provides an intuitive drag-and-drop interface for constructing database queries\n * with support for multiple conditions, operators, and logical grouping. Enables\n * users to build complex filters without writing SQL or code.\n *\n * @param props - {@link QueryBuilderProps}\n * @param props.controlClassnames - Custom CSS class names for control elements.\n * @param props.controlElements - Custom component overrides for controls.\n * @param props.orientation - Layout orientation ('horizontal' or 'vertical').\n * @param props.showRuleLines - Whether to show connecting lines between rules.\n * @returns The rendered QueryBuilder component.\n *\n * @example\n * ```tsx\n * // Basic query builder\n * <QueryBuilder\n * fields={[\n * // { name, label, type, inputType, operators },\n * ]}\n * query={\n * // { combinator, rules }\n * }\n * onQueryChange={handleQueryChange}\n * controlElements={{\n * addRuleAction: CustomAddButton,\n * removeRuleAction: CustomRemoveButton\n * }}\n * orientation=\"vertical\"\n * />\n * ```\n */\nexport function QueryBuilder({\n controlClassnames,\n controlElements,\n orientation = 'horizontal',\n showRuleLines = true,\n ...rest\n}: QueryBuilderProps) {\n /**\n * Represents the list of available controls that the component can use as a custom\n * component override.Passed in as a map of our custom defaults, but can be\n * overridden by using the controlElements prop\n */\n const mergedElements = useMemo(\n () => ({\n combinatorSelector: CombinatorSelector,\n cloneGroupAction: CloneAction,\n cloneRuleAction: CloneAction,\n removeRuleAction: RemoveRuleAction,\n lockGroupAction: LockAction,\n lockRuleAction: LockAction,\n ruleGroup: RuleGroup,\n rule: Rule,\n actionElement: ActionElement,\n valueSelector: ValueSelector,\n valueEditor: ValueEditor,\n ...controlElements,\n }),\n [controlElements],\n );\n\n /**\n * Represents the list of available classnames that the component will recognize.\n * Passed in as a map as all the default styling, but can be overridden by using the\n * controlClassnames prop\n */\n const mergedClassnames = useMemo(() => {\n return {\n queryBuilder: styles.queryBuilder,\n ruleGroup: clsx('group', styles.ruleGroup),\n header: styles.header,\n combinators: styles.combinators,\n fields: styles.fields,\n operators: '',\n value: styles.value,\n valueListItem: '',\n valueSource: '',\n cloneGroup: styles.cloneGroup,\n cloneRule: styles.cloneRule,\n lockGroup: styles.lockGroup,\n lockRule: styles.lockRule,\n disabled: '',\n valid: '',\n invalid: '',\n removeRule: '',\n addRule: '',\n addGroup: '',\n removeGroup: '',\n rule: clsx(styles.rule, styles[orientation]),\n body: clsx(\n 'group',\n styles.body,\n showRuleLines && styles.showRuleLines,\n !showRuleLines && styles.hideRuleLines,\n ),\n ...controlClassnames,\n };\n }, [controlClassnames, showRuleLines, orientation]);\n\n const QueryBuilderContext = createContext<QueryBuilderContextType>({\n orientation,\n showRuleLines,\n });\n\n return (\n <RQBBuilder\n showNotToggle={false}\n showShiftActions={false}\n enableDragAndDrop={false}\n controlClassnames={mergedClassnames}\n controlElements={mergedElements}\n context={QueryBuilderContext}\n listsAsArrays\n {...rest}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,SAAgB,aAAa,EAC3B,mBACA,iBACA,cAAc,cACd,gBAAgB,MAChB,GAAG,QACiB;;;;;;CAMpB,MAAM,iBAAiB,eACd;EACL,oBAAoB;EACpB,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,iBAAiB;EACjB,gBAAgB;EAChB,WAAW;EACX,MAAM;EACN,eAAe;EACf,eAAe;EACf,aAAa;EACb,GAAG;EACJ,GACD,CAAC,gBAAgB,CAClB;AA6CD,QACE,oBAACA;EACC,eAAe;EACf,kBAAkB;EAClB,mBAAmB;EACnB,mBA3CqB,cAAc;AACrC,UAAO;IACL,cAAc,OAAO;IACrB,WAAW,KAAK,SAAS,OAAO,UAAU;IAC1C,QAAQ,OAAO;IACf,aAAa,OAAO;IACpB,QAAQ,OAAO;IACf,WAAW;IACX,OAAO,OAAO;IACd,eAAe;IACf,aAAa;IACb,YAAY,OAAO;IACnB,WAAW,OAAO;IAClB,WAAW,OAAO;IAClB,UAAU,OAAO;IACjB,UAAU;IACV,OAAO;IACP,SAAS;IACT,YAAY;IACZ,SAAS;IACT,UAAU;IACV,aAAa;IACb,MAAM,KAAK,OAAO,MAAM,OAAO,aAAa;IAC5C,MAAM,KACJ,SACA,OAAO,MACP,iBAAiB,OAAO,eACxB,CAAC,iBAAiB,OAAO,cAC1B;IACD,GAAG;IACJ;KACA;GAAC;GAAmB;GAAe;GAAY,CAAC;EAa/C,iBAAiB;EACjB,SAZwB,cAAuC;GACjE;GACA;GACD,CAAC;EAUE;EACA,GAAI;GACJ"}
|
|
@@ -11,13 +11,61 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime122 from "react/jsx-runtime";
|
|
15
15
|
import { RuleGroupProps, useRuleGroup } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/rule-group.d.ts
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* RuleGroup - Container for organizing rules with a shared combinator
|
|
21
|
+
*
|
|
22
|
+
* Renders header with combinator selector and actions, body with rules, and footer with add actions.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <RuleGroup
|
|
27
|
+
* ruleGroup={{ combinator: 'and', rules: [] }}
|
|
28
|
+
* path={[]}
|
|
29
|
+
* schema={queryBuilderSchema}
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @param props - RuleGroupProps from react-querybuilder.
|
|
34
|
+
* @returns The rendered RuleGroup component.
|
|
35
|
+
*/
|
|
36
|
+
declare function RuleGroup(props: RuleGroupProps): react_jsx_runtime122.JSX.Element;
|
|
37
|
+
/**
|
|
38
|
+
* Header section with combinator selector and group actions (clone, lock, remove)
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <RuleGroupHeaderComponent
|
|
43
|
+
* {...ruleGroupProps}
|
|
44
|
+
* combinator="and"
|
|
45
|
+
* schema={queryBuilderSchema}
|
|
46
|
+
* />
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param ruleGroup - Combined RuleGroupProps and useRuleGroup return value.
|
|
50
|
+
* @returns The rendered header with combinator and action controls.
|
|
51
|
+
*/
|
|
52
|
+
declare function RuleGroupHeaderComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime122.JSX.Element;
|
|
53
|
+
/**
|
|
54
|
+
* Footer section with add rule and add group actions
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```tsx
|
|
58
|
+
* <RuleGroupFooterComponent
|
|
59
|
+
* {...ruleGroupProps}
|
|
60
|
+
* addRule={() => console.log('add rule')}
|
|
61
|
+
* addGroup={() => console.log('add group')}
|
|
62
|
+
* />
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param ruleGroup - Combined RuleGroupProps and useRuleGroup return value.
|
|
66
|
+
* @returns The rendered footer with add rule and add group buttons.
|
|
67
|
+
*/
|
|
68
|
+
declare function RuleGroupFooterComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime122.JSX.Element;
|
|
21
69
|
//#endregion
|
|
22
70
|
export { RuleGroup, RuleGroupFooterComponent, RuleGroupHeaderComponent };
|
|
23
71
|
//# sourceMappingURL=rule-group.d.ts.map
|
|
@@ -20,6 +20,23 @@ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
|
20
20
|
import { TestID, useRuleGroup, useStopEventPropagation } from "react-querybuilder";
|
|
21
21
|
|
|
22
22
|
//#region src/components/query-builder/rule-group.tsx
|
|
23
|
+
/**
|
|
24
|
+
* RuleGroup - Container for organizing rules with a shared combinator
|
|
25
|
+
*
|
|
26
|
+
* Renders header with combinator selector and actions, body with rules, and footer with add actions.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* <RuleGroup
|
|
31
|
+
* ruleGroup={{ combinator: 'and', rules: [] }}
|
|
32
|
+
* path={[]}
|
|
33
|
+
* schema={queryBuilderSchema}
|
|
34
|
+
* />
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @param props - RuleGroupProps from react-querybuilder.
|
|
38
|
+
* @returns The rendered RuleGroup component.
|
|
39
|
+
*/
|
|
23
40
|
function RuleGroup(props) {
|
|
24
41
|
const group = useRuleGroup(props);
|
|
25
42
|
const { schema: { controls: { ruleGroupBodyElements: RuleGroupBodyElements } } } = group;
|
|
@@ -62,6 +79,21 @@ function RuleGroup(props) {
|
|
|
62
79
|
]
|
|
63
80
|
});
|
|
64
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Header section with combinator selector and group actions (clone, lock, remove)
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```tsx
|
|
87
|
+
* <RuleGroupHeaderComponent
|
|
88
|
+
* {...ruleGroupProps}
|
|
89
|
+
* combinator="and"
|
|
90
|
+
* schema={queryBuilderSchema}
|
|
91
|
+
* />
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @param ruleGroup - Combined RuleGroupProps and useRuleGroup return value.
|
|
95
|
+
* @returns The rendered header with combinator and action controls.
|
|
96
|
+
*/
|
|
65
97
|
function RuleGroupHeaderComponent(ruleGroup) {
|
|
66
98
|
const shouldShowLock = ruleGroup.schema.showLockButtons;
|
|
67
99
|
const isNotRoot = ruleGroup.path.length > 0;
|
|
@@ -132,6 +164,21 @@ function RuleGroupHeaderComponent(ruleGroup) {
|
|
|
132
164
|
}, TestID.removeGroup) })
|
|
133
165
|
] });
|
|
134
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Footer section with add rule and add group actions
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```tsx
|
|
172
|
+
* <RuleGroupFooterComponent
|
|
173
|
+
* {...ruleGroupProps}
|
|
174
|
+
* addRule={() => console.log('add rule')}
|
|
175
|
+
* addGroup={() => console.log('add group')}
|
|
176
|
+
* />
|
|
177
|
+
* ```
|
|
178
|
+
*
|
|
179
|
+
* @param ruleGroup - Combined RuleGroupProps and useRuleGroup return value.
|
|
180
|
+
* @returns The rendered footer with add rule and add group buttons.
|
|
181
|
+
*/
|
|
135
182
|
function RuleGroupFooterComponent(ruleGroup) {
|
|
136
183
|
const { schema: { controls: { addGroupAction: AddGroupActionControlElement, addRuleAction: AddRuleActionControlElement } } } = ruleGroup;
|
|
137
184
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(AddRuleActionControlElement, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-group.js","names":[],"sources":["../../../src/components/query-builder/rule-group.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useMemo } from 'react';\nimport {\n type RuleGroupProps,\n TestID,\n useRuleGroup,\n useStopEventPropagation,\n} from 'react-querybuilder';\n\nexport function RuleGroup(props: RuleGroupProps) {\n const group = useRuleGroup(props);\n\n const {\n schema: {\n controls: { ruleGroupBodyElements: RuleGroupBodyElements },\n },\n } = group;\n\n const {\n schema: { classNames },\n } = props;\n\n const addRule = useStopEventPropagation(group.addRule);\n const addGroup = useStopEventPropagation(group.addGroup);\n const cloneGroup = useStopEventPropagation(group.cloneGroup);\n const toggleLockGroup = useStopEventPropagation(group.toggleLockGroup);\n const removeGroup = useStopEventPropagation(group.removeGroup);\n\n const elementProps = useMemo(\n () => ({\n ...group,\n addGroup,\n addRule,\n cloneGroup,\n removeGroup,\n toggleLockGroup,\n }),\n [addGroup, addRule, cloneGroup, group, removeGroup, toggleLockGroup],\n );\n\n return (\n <div className={clsx(classNames.ruleGroup)}>\n <div className={clsx(classNames.header)}>\n <RuleGroupHeaderComponent {...elementProps} />\n </div>\n <div className={clsx(classNames.body)}>\n <RuleGroupBodyElements {...elementProps} />\n </div>\n <div className={clsx(classNames.header)}>\n <RuleGroupFooterComponent {...elementProps} />\n </div>\n </div>\n );\n}\n\nexport function RuleGroupHeaderComponent(\n ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>,\n) {\n const shouldShowLock = ruleGroup.schema.showLockButtons;\n const isNotRoot = ruleGroup.path.length > 0;\n const shouldShowClone = ruleGroup.schema.showCloneButtons && isNotRoot;\n\n const {\n schema: {\n controls: {\n combinatorSelector: CombinatorSelectorControlElement,\n cloneGroupAction: CloneGroupActionControlElement,\n lockGroupAction: LockGroupActionControlElement,\n removeGroupAction: RemoveGroupActionControlElement,\n },\n },\n } = ruleGroup;\n\n return (\n <>\n <CombinatorSelectorControlElement\n key={TestID.combinators}\n testID={TestID.combinators}\n options={ruleGroup.schema.combinators}\n ruleGroup={ruleGroup.ruleGroup}\n value={ruleGroup.combinator}\n title={ruleGroup.translations.combinators.title}\n className={ruleGroup.classNames.combinators}\n handleOnChange={ruleGroup.onCombinatorChange}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n schema={ruleGroup.schema}\n />\n {shouldShowClone && (\n <div>\n <CloneGroupActionControlElement\n key={TestID.cloneGroup}\n testID={TestID.cloneGroup}\n label={ruleGroup.translations.cloneRuleGroup.label}\n title={ruleGroup.translations.cloneRuleGroup.title}\n className={ruleGroup.classNames.cloneGroup}\n handleOnClick={ruleGroup.cloneGroup}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n </div>\n )}\n {shouldShowLock && (\n <div>\n <LockGroupActionControlElement\n key={TestID.lockGroup}\n testID={TestID.lockGroup}\n label={ruleGroup.translations.lockGroup.label}\n title={ruleGroup.translations.lockGroup.title}\n className={ruleGroup.classNames.lockGroup}\n handleOnClick={ruleGroup.toggleLockGroup}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n disabledTranslation={\n ruleGroup.parentDisabled\n ? undefined\n : ruleGroup.translations.lockGroupDisabled\n }\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n </div>\n )}\n {isNotRoot && (\n <div>\n <RemoveGroupActionControlElement\n key={TestID.removeGroup}\n testID={TestID.removeGroup}\n label={ruleGroup.translations.removeGroup.label}\n title={ruleGroup.translations.removeGroup.title}\n className={ruleGroup.classNames.removeGroup}\n handleOnClick={ruleGroup.removeGroup}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n </div>\n )}\n </>\n );\n}\n\nexport function RuleGroupFooterComponent(\n ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>,\n) {\n const {\n schema: {\n controls: {\n addGroupAction: AddGroupActionControlElement,\n addRuleAction: AddRuleActionControlElement,\n },\n },\n } = ruleGroup;\n\n return (\n <>\n <AddRuleActionControlElement\n key={TestID.addRule}\n testID={TestID.addRule}\n label={ruleGroup.translations.addRule.label}\n title={ruleGroup.translations.addRule.title}\n className={ruleGroup.classNames.addRule}\n handleOnClick={ruleGroup.addRule}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n <AddGroupActionControlElement\n key={TestID.addGroup}\n testID={TestID.addGroup}\n label={ruleGroup.translations.addGroup.label}\n title={ruleGroup.translations.addGroup.title}\n className={ruleGroup.classNames.addGroup}\n handleOnClick={ruleGroup.addGroup}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n </>\n );\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"rule-group.js","names":[],"sources":["../../../src/components/query-builder/rule-group.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useMemo } from 'react';\nimport {\n type RuleGroupProps,\n TestID,\n useRuleGroup,\n useStopEventPropagation,\n} from 'react-querybuilder';\n\n/**\n * RuleGroup - Container for organizing rules with a shared combinator\n *\n * Renders header with combinator selector and actions, body with rules, and footer with add actions.\n *\n * @example\n * ```tsx\n * <RuleGroup\n * ruleGroup={{ combinator: 'and', rules: [] }}\n * path={[]}\n * schema={queryBuilderSchema}\n * />\n * ```\n *\n * @param props - RuleGroupProps from react-querybuilder.\n * @returns The rendered RuleGroup component.\n */\nexport function RuleGroup(props: RuleGroupProps) {\n const group = useRuleGroup(props);\n\n const {\n schema: {\n controls: { ruleGroupBodyElements: RuleGroupBodyElements },\n },\n } = group;\n\n const {\n schema: { classNames },\n } = props;\n\n const addRule = useStopEventPropagation(group.addRule);\n const addGroup = useStopEventPropagation(group.addGroup);\n const cloneGroup = useStopEventPropagation(group.cloneGroup);\n const toggleLockGroup = useStopEventPropagation(group.toggleLockGroup);\n const removeGroup = useStopEventPropagation(group.removeGroup);\n\n const elementProps = useMemo(\n () => ({\n ...group,\n addGroup,\n addRule,\n cloneGroup,\n removeGroup,\n toggleLockGroup,\n }),\n [addGroup, addRule, cloneGroup, group, removeGroup, toggleLockGroup],\n );\n\n return (\n <div className={clsx(classNames.ruleGroup)}>\n <div className={clsx(classNames.header)}>\n <RuleGroupHeaderComponent {...elementProps} />\n </div>\n <div className={clsx(classNames.body)}>\n <RuleGroupBodyElements {...elementProps} />\n </div>\n <div className={clsx(classNames.header)}>\n <RuleGroupFooterComponent {...elementProps} />\n </div>\n </div>\n );\n}\n\n/**\n * Header section with combinator selector and group actions (clone, lock, remove)\n *\n * @example\n * ```tsx\n * <RuleGroupHeaderComponent\n * {...ruleGroupProps}\n * combinator=\"and\"\n * schema={queryBuilderSchema}\n * />\n * ```\n *\n * @param ruleGroup - Combined RuleGroupProps and useRuleGroup return value.\n * @returns The rendered header with combinator and action controls.\n */\nexport function RuleGroupHeaderComponent(\n ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>,\n) {\n const shouldShowLock = ruleGroup.schema.showLockButtons;\n const isNotRoot = ruleGroup.path.length > 0;\n const shouldShowClone = ruleGroup.schema.showCloneButtons && isNotRoot;\n\n const {\n schema: {\n controls: {\n combinatorSelector: CombinatorSelectorControlElement,\n cloneGroupAction: CloneGroupActionControlElement,\n lockGroupAction: LockGroupActionControlElement,\n removeGroupAction: RemoveGroupActionControlElement,\n },\n },\n } = ruleGroup;\n\n return (\n <>\n <CombinatorSelectorControlElement\n key={TestID.combinators}\n testID={TestID.combinators}\n options={ruleGroup.schema.combinators}\n ruleGroup={ruleGroup.ruleGroup}\n value={ruleGroup.combinator}\n title={ruleGroup.translations.combinators.title}\n className={ruleGroup.classNames.combinators}\n handleOnChange={ruleGroup.onCombinatorChange}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n schema={ruleGroup.schema}\n />\n {shouldShowClone && (\n <div>\n <CloneGroupActionControlElement\n key={TestID.cloneGroup}\n testID={TestID.cloneGroup}\n label={ruleGroup.translations.cloneRuleGroup.label}\n title={ruleGroup.translations.cloneRuleGroup.title}\n className={ruleGroup.classNames.cloneGroup}\n handleOnClick={ruleGroup.cloneGroup}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n </div>\n )}\n {shouldShowLock && (\n <div>\n <LockGroupActionControlElement\n key={TestID.lockGroup}\n testID={TestID.lockGroup}\n label={ruleGroup.translations.lockGroup.label}\n title={ruleGroup.translations.lockGroup.title}\n className={ruleGroup.classNames.lockGroup}\n handleOnClick={ruleGroup.toggleLockGroup}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n disabledTranslation={\n ruleGroup.parentDisabled\n ? undefined\n : ruleGroup.translations.lockGroupDisabled\n }\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n </div>\n )}\n {isNotRoot && (\n <div>\n <RemoveGroupActionControlElement\n key={TestID.removeGroup}\n testID={TestID.removeGroup}\n label={ruleGroup.translations.removeGroup.label}\n title={ruleGroup.translations.removeGroup.title}\n className={ruleGroup.classNames.removeGroup}\n handleOnClick={ruleGroup.removeGroup}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n </div>\n )}\n </>\n );\n}\n\n/**\n * Footer section with add rule and add group actions\n *\n * @example\n * ```tsx\n * <RuleGroupFooterComponent\n * {...ruleGroupProps}\n * addRule={() => console.log('add rule')}\n * addGroup={() => console.log('add group')}\n * />\n * ```\n *\n * @param ruleGroup - Combined RuleGroupProps and useRuleGroup return value.\n * @returns The rendered footer with add rule and add group buttons.\n */\nexport function RuleGroupFooterComponent(\n ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>,\n) {\n const {\n schema: {\n controls: {\n addGroupAction: AddGroupActionControlElement,\n addRuleAction: AddRuleActionControlElement,\n },\n },\n } = ruleGroup;\n\n return (\n <>\n <AddRuleActionControlElement\n key={TestID.addRule}\n testID={TestID.addRule}\n label={ruleGroup.translations.addRule.label}\n title={ruleGroup.translations.addRule.title}\n className={ruleGroup.classNames.addRule}\n handleOnClick={ruleGroup.addRule}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n <AddGroupActionControlElement\n key={TestID.addGroup}\n testID={TestID.addGroup}\n label={ruleGroup.translations.addGroup.label}\n title={ruleGroup.translations.addGroup.title}\n className={ruleGroup.classNames.addGroup}\n handleOnClick={ruleGroup.addGroup}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n </>\n );\n}\n"],"mappings":"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"}
|
|
@@ -11,11 +11,29 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime125 from "react/jsx-runtime";
|
|
15
15
|
import { RuleProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/rule.d.ts
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Rule - Individual rule component with field, operator, and value
|
|
21
|
+
*
|
|
22
|
+
* Renders the field selector, operator selector, value editor, and action buttons.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <Rule
|
|
27
|
+
* rule={{ field: 'name', operator: 'equals', value: 'John' }}
|
|
28
|
+
* path={[0]}
|
|
29
|
+
* schema={queryBuilderSchema}
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @param props - RuleProps from react-querybuilder.
|
|
34
|
+
* @returns The rendered Rule component with all selectors and actions.
|
|
35
|
+
*/
|
|
36
|
+
declare function Rule(props: RuleProps): react_jsx_runtime125.JSX.Element;
|
|
19
37
|
//#endregion
|
|
20
38
|
export { Rule };
|
|
21
39
|
//# sourceMappingURL=rule.d.ts.map
|