@hermes-ui/angular 0.1.4
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/README.md +52 -0
- package/accordion/_accordion.clarity.scss +81 -0
- package/accordion/_properties.accordion.scss +45 -0
- package/accordion/_variables.accordion.scss +91 -0
- package/addons/a11y/README.md +157 -0
- package/addons/a11y/forms/required-field-legend.component.scss +17 -0
- package/addons/card-container/card/appfx-card.component.scss +137 -0
- package/addons/card-container/container/appfx-card-container.component.scss +17 -0
- package/addons/card-container/settings/appfx-card-container-settings.component.scss +62 -0
- package/addons/certificate-viewer/certificate-viewer/certificate-viewer.component.scss +69 -0
- package/addons/certificate-viewer/certificate-viewer-details/certificate-viewer-details.component.scss +49 -0
- package/addons/certificate-viewer/certificate-viewer-general/certificate-viewer-general.component.scss +38 -0
- package/addons/datagrid/README.md +289 -0
- package/addons/datagrid/addons/action-bar/datagrid-action-bar.component.scss +81 -0
- package/addons/datagrid/addons/column-toggle/datagrid-column-toggle.component.scss +99 -0
- package/addons/datagrid/addons/export/export-datagrid.component.scss +9 -0
- package/addons/datagrid/datagrid.component.scss +339 -0
- package/addons/datagrid-filters/README.md +223 -0
- package/addons/datagrid-filters/advanced-filters/date-time-filter.component.scss +10 -0
- package/addons/datagrid-filters/advanced-filters/enum-filter.component.scss +40 -0
- package/addons/datagrid-filters/advanced-filters/users-filter.component.scss +11 -0
- package/addons/datagrid-filters/common-styles.scss +98 -0
- package/addons/datagrid-filters/composite-filters.component.scss +26 -0
- package/addons/datagrid-filters/datagrid-filters.component.scss +22 -0
- package/addons/datagrid-filters/manage-filters/manage-filter.component.scss +42 -0
- package/addons/dialog/README.md +112 -0
- package/addons/dialog/multi-page-dialog.a11y.scss +203 -0
- package/addons/dialog/multi-page-dialog.component.scss +102 -0
- package/addons/dialog/toggle-component/toggle.component.scss +15 -0
- package/addons/drag-and-drop/README.md +48 -0
- package/addons/menu/menu.component.scss +120 -0
- package/addons/property-view/components/property-view-category.component.scss +38 -0
- package/addons/property-view/components/property-view-message.component.scss +48 -0
- package/addons/property-view/components/property-view-property.component.scss +122 -0
- package/addons/property-view/components/property-view-section.component.scss +59 -0
- package/addons/property-view/components/property-view.component.scss +23 -0
- package/addons/stepper/stepper.component.scss +53 -0
- package/addons/tabs/tab-links/tab-links.component.scss +61 -0
- package/addons/tabs/tabs.a11y.scss +26 -0
- package/addons/tabs/tabs.component.scss +95 -0
- package/addons/theme-builder/README.md +70 -0
- package/addons/theme-builder/theme-builder.component.scss +194 -0
- package/addons/translate/README.md +124 -0
- package/addons/var/debug/workflow-model-monitor.component.scss +50 -0
- package/addons/var/error/error.component.scss +38 -0
- package/addons/var/spinner/spinner.component.scss +33 -0
- package/addons/wizard/summary/summary.component.scss +22 -0
- package/addons/wizard/wizard.component.scss +251 -0
- package/button/_buttons.clarity.scss +388 -0
- package/button/_mixins.buttons.scss +241 -0
- package/button/_properties.buttons.scss +387 -0
- package/button/_properties.toggles.scss +35 -0
- package/button/_variables.buttons.scss +905 -0
- package/button/_variables.toggles.scss +41 -0
- package/button/button-group/_button-group.clarity.scss +202 -0
- package/collapsible-panel/_mixins.collapsible-panel.scss +189 -0
- package/collapsible-panel/_properties.collapsible-panel.scss +42 -0
- package/collapsible-panel/_variables.collapsible-panel.scss +40 -0
- package/data/_mixins.tables.scss +114 -0
- package/data/_properties.tables.scss +77 -0
- package/data/_tables.clarity.scss +120 -0
- package/data/_variables.tables.scss +42 -0
- package/data/datagrid/_datagrid.clarity.scss +1871 -0
- package/data/datagrid/_mixins.datagrid.scss +102 -0
- package/data/datagrid/_properties.datagrid.scss +98 -0
- package/data/datagrid/_variables.datagrid.scss +98 -0
- package/data/stack-view/_properties.stack-view.scss +50 -0
- package/data/stack-view/_stack-view.clarity.scss +267 -0
- package/data/stack-view/_variables.stack-view.scss +32 -0
- package/data/tree-view/_properties.tree-view.scss +41 -0
- package/data/tree-view/_tree-view.clarity.scss +281 -0
- package/data/tree-view/_variables.tree-view.scss +51 -0
- package/emphasis/alert/_alert.clarity.scss +467 -0
- package/emphasis/alert/_mixins.alert.scss +96 -0
- package/emphasis/alert/_properties.alert.scss +183 -0
- package/emphasis/alert/_variables.alert.scss +502 -0
- package/emphasis/badge/_badges.clarity.scss +61 -0
- package/emphasis/badge/_mixins.bades.scss +34 -0
- package/emphasis/badge/_properties.badges.scss +82 -0
- package/emphasis/badge/_variables.badges.scss +160 -0
- package/emphasis/label/_labels.clarity.scss +179 -0
- package/emphasis/label/_mixins.label.scss +77 -0
- package/emphasis/label/_properties.label.scss +105 -0
- package/emphasis/label/_variables.label.scss +181 -0
- package/fesm2022/hermes-ui-angular-accordion.mjs +355 -0
- package/fesm2022/hermes-ui-angular-accordion.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-a11y.mjs +544 -0
- package/fesm2022/hermes-ui-angular-addons-a11y.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-card-container.mjs +1082 -0
- package/fesm2022/hermes-ui-angular-addons-card-container.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-certificate-viewer.mjs +2520 -0
- package/fesm2022/hermes-ui-angular-addons-certificate-viewer.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-datagrid-filters.mjs +2818 -0
- package/fesm2022/hermes-ui-angular-addons-datagrid-filters.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-datagrid.mjs +3131 -0
- package/fesm2022/hermes-ui-angular-addons-datagrid.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-dialog.mjs +386 -0
- package/fesm2022/hermes-ui-angular-addons-dialog.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-drag-and-drop.mjs +78 -0
- package/fesm2022/hermes-ui-angular-addons-drag-and-drop.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-menu.mjs +559 -0
- package/fesm2022/hermes-ui-angular-addons-menu.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-property-view.mjs +1142 -0
- package/fesm2022/hermes-ui-angular-addons-property-view.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-stepper.mjs +716 -0
- package/fesm2022/hermes-ui-angular-addons-stepper.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-tabs.mjs +539 -0
- package/fesm2022/hermes-ui-angular-addons-tabs.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-testing.mjs +2010 -0
- package/fesm2022/hermes-ui-angular-addons-testing.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-theme-builder.mjs +922 -0
- package/fesm2022/hermes-ui-angular-addons-theme-builder.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-translate.mjs +295 -0
- package/fesm2022/hermes-ui-angular-addons-translate.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-var.mjs +2028 -0
- package/fesm2022/hermes-ui-angular-addons-var.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-wizard.mjs +610 -0
- package/fesm2022/hermes-ui-angular-addons-wizard.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-workflow-strings.mjs +121 -0
- package/fesm2022/hermes-ui-angular-addons-workflow-strings.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-addons-workflow.mjs +88 -0
- package/fesm2022/hermes-ui-angular-addons-workflow.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-button.mjs +719 -0
- package/fesm2022/hermes-ui-angular-button.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-collapsible-panel.mjs +201 -0
- package/fesm2022/hermes-ui-angular-collapsible-panel.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-data-datagrid.mjs +8045 -0
- package/fesm2022/hermes-ui-angular-data-datagrid.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-data-stack-view.mjs +442 -0
- package/fesm2022/hermes-ui-angular-data-stack-view.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-data-tree-view.mjs +1106 -0
- package/fesm2022/hermes-ui-angular-data-tree-view.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-data.mjs +40 -0
- package/fesm2022/hermes-ui-angular-data.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-emphasis-alert.mjs +624 -0
- package/fesm2022/hermes-ui-angular-emphasis-alert.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-emphasis-badge.mjs +69 -0
- package/fesm2022/hermes-ui-angular-emphasis-badge.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-emphasis-common.mjs +25 -0
- package/fesm2022/hermes-ui-angular-emphasis-common.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-emphasis-label.mjs +105 -0
- package/fesm2022/hermes-ui-angular-emphasis-label.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-emphasis.mjs +41 -0
- package/fesm2022/hermes-ui-angular-emphasis.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-checkbox.mjs +279 -0
- package/fesm2022/hermes-ui-angular-forms-checkbox.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-combobox.mjs +1775 -0
- package/fesm2022/hermes-ui-angular-forms-combobox.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-common.mjs +1251 -0
- package/fesm2022/hermes-ui-angular-forms-common.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-datalist.mjs +263 -0
- package/fesm2022/hermes-ui-angular-forms-datalist.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-datepicker.mjs +3274 -0
- package/fesm2022/hermes-ui-angular-forms-datepicker.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-file-input.mjs +826 -0
- package/fesm2022/hermes-ui-angular-forms-file-input.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-input.mjs +153 -0
- package/fesm2022/hermes-ui-angular-forms-input.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-native-select.mjs +153 -0
- package/fesm2022/hermes-ui-angular-forms-native-select.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-number-input.mjs +236 -0
- package/fesm2022/hermes-ui-angular-forms-number-input.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-password.mjs +233 -0
- package/fesm2022/hermes-ui-angular-forms-password.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-radio.mjs +224 -0
- package/fesm2022/hermes-ui-angular-forms-radio.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-range.mjs +186 -0
- package/fesm2022/hermes-ui-angular-forms-range.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-select.mjs +606 -0
- package/fesm2022/hermes-ui-angular-forms-select.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms-textarea.mjs +136 -0
- package/fesm2022/hermes-ui-angular-forms-textarea.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-forms.mjs +105 -0
- package/fesm2022/hermes-ui-angular-forms.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-icon.mjs +7413 -0
- package/fesm2022/hermes-ui-angular-icon.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-layout-breadcrumbs.mjs +120 -0
- package/fesm2022/hermes-ui-angular-layout-breadcrumbs.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-layout-main-container.mjs +100 -0
- package/fesm2022/hermes-ui-angular-layout-main-container.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-layout-nav.mjs +582 -0
- package/fesm2022/hermes-ui-angular-layout-nav.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-layout-tabs.mjs +807 -0
- package/fesm2022/hermes-ui-angular-layout-tabs.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-layout-vertical-nav.mjs +507 -0
- package/fesm2022/hermes-ui-angular-layout-vertical-nav.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-layout.mjs +44 -0
- package/fesm2022/hermes-ui-angular-layout.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-modal.mjs +619 -0
- package/fesm2022/hermes-ui-angular-modal.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-popover-common.mjs +1371 -0
- package/fesm2022/hermes-ui-angular-popover-common.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-popover-dropdown.mjs +492 -0
- package/fesm2022/hermes-ui-angular-popover-dropdown.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-popover-signpost.mjs +494 -0
- package/fesm2022/hermes-ui-angular-popover-signpost.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-popover-tooltip.mjs +293 -0
- package/fesm2022/hermes-ui-angular-popover-tooltip.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-popover.mjs +41 -0
- package/fesm2022/hermes-ui-angular-popover.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-progress-progress-bars.mjs +217 -0
- package/fesm2022/hermes-ui-angular-progress-progress-bars.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-progress-spinner.mjs +132 -0
- package/fesm2022/hermes-ui-angular-progress-spinner.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-stepper.mjs +694 -0
- package/fesm2022/hermes-ui-angular-stepper.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-timeline.mjs +316 -0
- package/fesm2022/hermes-ui-angular-timeline.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-toast.mjs +373 -0
- package/fesm2022/hermes-ui-angular-toast.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-utils-conditional.mjs +351 -0
- package/fesm2022/hermes-ui-angular-utils-conditional.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-utils-loading.mjs +107 -0
- package/fesm2022/hermes-ui-angular-utils-loading.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-utils.mjs +2086 -0
- package/fesm2022/hermes-ui-angular-utils.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular-wizard.mjs +3074 -0
- package/fesm2022/hermes-ui-angular-wizard.mjs.map +1 -0
- package/fesm2022/hermes-ui-angular.mjs +130 -0
- package/fesm2022/hermes-ui-angular.mjs.map +1 -0
- package/forms/combobox/_combobox.clarity.scss +330 -0
- package/forms/combobox/_properties.combobox.scss +46 -0
- package/forms/combobox/_variables.combobox.scss +32 -0
- package/forms/datepicker/_datepicker.clarity.scss +259 -0
- package/forms/datepicker/_mixins.datepicker.scss +89 -0
- package/forms/datepicker/_properties.datepicker.scss +46 -0
- package/forms/datepicker/_variables.datepicker.scss +74 -0
- package/forms/styles/_checkbox.clarity.scss +193 -0
- package/forms/styles/_containers.clarity.scss +230 -0
- package/forms/styles/_datalist.clarity.scss +47 -0
- package/forms/styles/_file-input.clarity.scss +134 -0
- package/forms/styles/_file.clarity.scss +52 -0
- package/forms/styles/_form.clarity.scss +87 -0
- package/forms/styles/_input-group.clarity.scss +126 -0
- package/forms/styles/_input.clarity.scss +83 -0
- package/forms/styles/_mixins.forms.scss +193 -0
- package/forms/styles/_native-select.clarity.scss +178 -0
- package/forms/styles/_number-input.clarity.scss +58 -0
- package/forms/styles/_password.clarity.scss +26 -0
- package/forms/styles/_properties.forms.scss +180 -0
- package/forms/styles/_radio.clarity.scss +120 -0
- package/forms/styles/_range.clarity.scss +124 -0
- package/forms/styles/_select.clarity.scss +158 -0
- package/forms/styles/_textarea.clarity.scss +71 -0
- package/forms/styles/_toggles.clarity.scss +209 -0
- package/forms/styles/_variables.forms.scss +156 -0
- package/hermes-ui.scss +7 -0
- package/icon/icon.component.scss +247 -0
- package/image/_icons.clarity.scss +101 -0
- package/image/_images.clarity.scss +42 -0
- package/image/_mixins.images.scss +11 -0
- package/layout/_card.clarity.scss +318 -0
- package/layout/_login.clarity.scss +240 -0
- package/layout/_properties.card.scss +39 -0
- package/layout/_properties.login.scss +32 -0
- package/layout/_variables.card.scss +24 -0
- package/layout/_variables.login.scss +22 -0
- package/layout/breadcrumbs/_breadcrumbs.clarity.scss +60 -0
- package/layout/breadcrumbs/_properties.breadcrumbs.scss +18 -0
- package/layout/breadcrumbs/_variables.breadcrumbs.scss +11 -0
- package/layout/grid/_grid.scss +23 -0
- package/layout/grid/grid/_grid.scss +39 -0
- package/layout/grid/mixins/_breakpoint.scss +83 -0
- package/layout/grid/mixins/_clearfix.scss +13 -0
- package/layout/grid/mixins/_grid-framework.scss +91 -0
- package/layout/grid/mixins/_grid.scss +39 -0
- package/layout/grid/utilities/_align.scss +30 -0
- package/layout/grid/utilities/_clearfix.scss +12 -0
- package/layout/grid/utilities/_display.scss +18 -0
- package/layout/grid/utilities/_flex.scss +222 -0
- package/layout/grid/utilities/_float.scss +26 -0
- package/layout/grid/utilities/_visibility.scss +60 -0
- package/layout/main-container/_layout.clarity.scss +87 -0
- package/layout/main-container/_properties.header.scss +55 -0
- package/layout/main-container/_variables.header.scss +32 -0
- package/layout/nav/_header.clarity.scss +40 -0
- package/layout/nav/_links.clarity.scss +84 -0
- package/layout/nav/_mixins.header.scss +332 -0
- package/layout/nav/_mixins.responsive-nav.scss +75 -0
- package/layout/nav/_nav.clarity.scss +100 -0
- package/layout/nav/_properties.nav.scss +27 -0
- package/layout/nav/_properties.responsive-nav.scss +23 -0
- package/layout/nav/_properties.subnav.scss +19 -0
- package/layout/nav/_responsive-nav.clarity.scss +490 -0
- package/layout/nav/_subnav.clarity.scss +48 -0
- package/layout/nav/_variables.nav.scss +13 -0
- package/layout/nav/_variables.responsive-nav.scss +28 -0
- package/layout/nav/_variables.subnav.scss +21 -0
- package/layout/tabs/_mixins.tabs.scss +41 -0
- package/layout/tabs/_properties.tabs.scss +25 -0
- package/layout/tabs/_tabs.clarity.scss +110 -0
- package/layout/tabs/_variables.tabs.scss +17 -0
- package/layout/vertical-nav/_mixins.vertical-nav.scss +52 -0
- package/layout/vertical-nav/_properties.vertical-nav.scss +73 -0
- package/layout/vertical-nav/_variables.vertical-nav.scss +52 -0
- package/layout/vertical-nav/_vertical-nav.clarity.scss +469 -0
- package/main.scss +14 -0
- package/modal/_modal.clarity.scss +379 -0
- package/modal/_properties.modal.scss +57 -0
- package/modal/_variables.modal.scss +41 -0
- package/package.json +325 -0
- package/popover/common/README.md +112 -0
- package/popover/common/_popover.clarity.scss +28 -0
- package/popover/dropdown/_dropdown.clarity.scss +326 -0
- package/popover/dropdown/_menu-mixins.clarity.scss +132 -0
- package/popover/dropdown/_properties.dropdown.scss +50 -0
- package/popover/dropdown/_variables.dropdown.scss +36 -0
- package/popover/signpost/_properties.signpost.scss +34 -0
- package/popover/signpost/_signposts.clarity.scss +414 -0
- package/popover/signpost/_variables.signpost.scss +21 -0
- package/popover/tooltip/_mixins.tooltip.scss +186 -0
- package/popover/tooltip/_properties.tooltip.scss +28 -0
- package/popover/tooltip/_tooltips.clarity.scss +122 -0
- package/popover/tooltip/_variables.tooltip.scss +20 -0
- package/progress/progress-bars/_progress-bars.clarity.scss +616 -0
- package/progress/progress-bars/_properties.progress-bars.scss +24 -0
- package/progress/progress-bars/_variables.progress-bars.scss +15 -0
- package/progress/progress-bars/utils/_mixins.clarity.scss +18 -0
- package/progress/spinner/_mixins.spinner.scss +30 -0
- package/progress/spinner/_properties.spinner.scss +37 -0
- package/progress/spinner/_spinner.clarity.scss +148 -0
- package/progress/spinner/_variables.spinner.scss +25 -0
- package/schematics/collection.json +14 -0
- package/stepper/_properties.stepper.scss +29 -0
- package/stepper/_stepper.clarity.scss +184 -0
- package/stepper/_variables.stepper.scss +13 -0
- package/styles/_a11y.scss +14 -0
- package/styles/_close.clarity.scss +60 -0
- package/styles/_components.clarity.scss +189 -0
- package/styles/_mixins.scss +460 -0
- package/styles/_normalize.scss +292 -0
- package/styles/_reboot.clarity.scss +374 -0
- package/styles/_variables.clarity.scss +139 -0
- package/styles/core/base/base.element.scss +97 -0
- package/styles/core/global.scss +12 -0
- package/styles/core/layout/_alignments.scss +18 -0
- package/styles/core/layout/_container.scss +29 -0
- package/styles/core/layout/_display.scss +58 -0
- package/styles/core/layout/_optimize.scss +60 -0
- package/styles/core/layout/_shadow-dom.scss +47 -0
- package/styles/core/layout/_spacing.scss +31 -0
- package/styles/core/layout/_type-grid.scss +66 -0
- package/styles/core/layout/_type-horizontal.scss +33 -0
- package/styles/core/layout/_type-vertical.scss +26 -0
- package/styles/core/layout/mixins/_mixins.alignment.scss +35 -0
- package/styles/core/layout/mixins/_mixins.display.scss +23 -0
- package/styles/core/layout/mixins/_mixins.grid.scss +105 -0
- package/styles/core/layout/mixins/_mixins.scss +106 -0
- package/styles/core/layout/mixins/_mixins.shadow-dom.scss +106 -0
- package/styles/core/layout/mixins/_mixins.type-horizontal.scss +113 -0
- package/styles/core/layout/mixins/_mixins.type-vertical.scss +108 -0
- package/styles/core/module.layout.scss +22 -0
- package/styles/core/module.reset.scss +48 -0
- package/styles/core/module.typography.scss +9 -0
- package/styles/core/theme.dark.scss +298 -0
- package/styles/core/theme.high-contrast.scss +42 -0
- package/styles/core/theme.low-motion.scss +20 -0
- package/styles/core/tokens/_alias-interaction.scss +74 -0
- package/styles/core/tokens/_alias-object-background.scss +29 -0
- package/styles/core/tokens/_alias-object-border.scss +21 -0
- package/styles/core/tokens/_alias-object-container.scss +20 -0
- package/styles/core/tokens/_alias-object-opacity.scss +15 -0
- package/styles/core/tokens/_alias-object-shadow.scss +17 -0
- package/styles/core/tokens/_alias-primary.scss +21 -0
- package/styles/core/tokens/_alias-status.scss +40 -0
- package/styles/core/tokens/_alias-typography.scss +107 -0
- package/styles/core/tokens/_alias-utility.scss +42 -0
- package/styles/core/tokens/_alias-viz-colors.scss +170 -0
- package/styles/core/tokens/_global-animation.scss +32 -0
- package/styles/core/tokens/_global-colors.scss +249 -0
- package/styles/core/tokens/_global-space.scss +52 -0
- package/styles/core/tokens/_internal-scale.scss +14 -0
- package/styles/core/tokens/_properties.tokens.scss +22 -0
- package/styles/core/tokens/_variables.tokens.scss +787 -0
- package/styles/core/typography/_legacy-typography.scss +328 -0
- package/styles/core/typography/_mixins.typography.scss +18 -0
- package/styles/core/typography/_typography.scss +328 -0
- package/styles/variables/_properties.density.scss +225 -0
- package/styles/variables/_properties.global.scss +51 -0
- package/styles/variables/_properties.layout.scss +21 -0
- package/styles/variables/_properties.scss +11 -0
- package/styles/variables/_properties.typography.scss +164 -0
- package/styles/variables/_variables.density.scss +116 -0
- package/styles/variables/_variables.global.scss +87 -0
- package/styles/variables/_variables.layout.scss +37 -0
- package/styles/variables/_variables.scss +11 -0
- package/styles/variables/_variables.typography.scss +156 -0
- package/timeline/_properties.timeline.scss +38 -0
- package/timeline/_timeline.clarity.scss +172 -0
- package/timeline/_variables.timeline.scss +29 -0
- package/toast/README.md +65 -0
- package/toast/_properties.toast.scss +56 -0
- package/toast/_toast.clarity.scss +190 -0
- package/toast/_variables.toast.scss +33 -0
- package/types/hermes-ui-angular-accordion.d.ts +101 -0
- package/types/hermes-ui-angular-accordion.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-a11y.d.ts +187 -0
- package/types/hermes-ui-angular-addons-a11y.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-card-container.d.ts +482 -0
- package/types/hermes-ui-angular-addons-card-container.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-certificate-viewer.d.ts +404 -0
- package/types/hermes-ui-angular-addons-certificate-viewer.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-datagrid-filters.d.ts +911 -0
- package/types/hermes-ui-angular-addons-datagrid-filters.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-datagrid.d.ts +1529 -0
- package/types/hermes-ui-angular-addons-datagrid.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-dialog.d.ts +233 -0
- package/types/hermes-ui-angular-addons-dialog.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-drag-and-drop.d.ts +35 -0
- package/types/hermes-ui-angular-addons-drag-and-drop.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-menu.d.ts +197 -0
- package/types/hermes-ui-angular-addons-menu.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-property-view.d.ts +387 -0
- package/types/hermes-ui-angular-addons-property-view.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-stepper.d.ts +298 -0
- package/types/hermes-ui-angular-addons-stepper.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-tabs.d.ts +173 -0
- package/types/hermes-ui-angular-addons-tabs.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-testing.d.ts +592 -0
- package/types/hermes-ui-angular-addons-testing.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-theme-builder.d.ts +200 -0
- package/types/hermes-ui-angular-addons-theme-builder.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-translate.d.ts +149 -0
- package/types/hermes-ui-angular-addons-translate.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-var.d.ts +923 -0
- package/types/hermes-ui-angular-addons-var.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-wizard.d.ts +241 -0
- package/types/hermes-ui-angular-addons-wizard.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-workflow-strings.d.ts +124 -0
- package/types/hermes-ui-angular-addons-workflow-strings.d.ts.map +1 -0
- package/types/hermes-ui-angular-addons-workflow.d.ts +15 -0
- package/types/hermes-ui-angular-addons-workflow.d.ts.map +1 -0
- package/types/hermes-ui-angular-button.d.ts +170 -0
- package/types/hermes-ui-angular-button.d.ts.map +1 -0
- package/types/hermes-ui-angular-collapsible-panel.d.ts +74 -0
- package/types/hermes-ui-angular-collapsible-panel.d.ts.map +1 -0
- package/types/hermes-ui-angular-data-datagrid.d.ts +1938 -0
- package/types/hermes-ui-angular-data-datagrid.d.ts.map +1 -0
- package/types/hermes-ui-angular-data-stack-view.d.ts +88 -0
- package/types/hermes-ui-angular-data-stack-view.d.ts.map +1 -0
- package/types/hermes-ui-angular-data-tree-view.d.ts +230 -0
- package/types/hermes-ui-angular-data-tree-view.d.ts.map +1 -0
- package/types/hermes-ui-angular-data.d.ts +16 -0
- package/types/hermes-ui-angular-data.d.ts.map +1 -0
- package/types/hermes-ui-angular-emphasis-alert.d.ts +176 -0
- package/types/hermes-ui-angular-emphasis-alert.d.ts.map +1 -0
- package/types/hermes-ui-angular-emphasis-badge.d.ts +26 -0
- package/types/hermes-ui-angular-emphasis-badge.d.ts.map +1 -0
- package/types/hermes-ui-angular-emphasis-common.d.ts +7 -0
- package/types/hermes-ui-angular-emphasis-common.d.ts.map +1 -0
- package/types/hermes-ui-angular-emphasis-label.d.ts +30 -0
- package/types/hermes-ui-angular-emphasis-label.d.ts.map +1 -0
- package/types/hermes-ui-angular-emphasis.d.ts +16 -0
- package/types/hermes-ui-angular-emphasis.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-checkbox.d.ts +73 -0
- package/types/hermes-ui-angular-forms-checkbox.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-combobox.d.ts +354 -0
- package/types/hermes-ui-angular-forms-combobox.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-common.d.ts +340 -0
- package/types/hermes-ui-angular-forms-common.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-datalist.d.ts +60 -0
- package/types/hermes-ui-angular-forms-datalist.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-datepicker.d.ts +987 -0
- package/types/hermes-ui-angular-forms-datepicker.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-file-input.d.ts +194 -0
- package/types/hermes-ui-angular-forms-file-input.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-input.d.ts +30 -0
- package/types/hermes-ui-angular-forms-input.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-native-select.d.ts +37 -0
- package/types/hermes-ui-angular-forms-native-select.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-number-input.d.ts +44 -0
- package/types/hermes-ui-angular-forms-number-input.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-password.d.ts +53 -0
- package/types/hermes-ui-angular-forms-password.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-radio.d.ts +50 -0
- package/types/hermes-ui-angular-forms-radio.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-range.d.ts +38 -0
- package/types/hermes-ui-angular-forms-range.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-select.d.ts +211 -0
- package/types/hermes-ui-angular-forms-select.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms-textarea.d.ts +30 -0
- package/types/hermes-ui-angular-forms-textarea.d.ts.map +1 -0
- package/types/hermes-ui-angular-forms.d.ts +39 -0
- package/types/hermes-ui-angular-forms.d.ts.map +1 -0
- package/types/hermes-ui-angular-icon.d.ts +1504 -0
- package/types/hermes-ui-angular-icon.d.ts.map +1 -0
- package/types/hermes-ui-angular-layout-breadcrumbs.d.ts +46 -0
- package/types/hermes-ui-angular-layout-breadcrumbs.d.ts.map +1 -0
- package/types/hermes-ui-angular-layout-main-container.d.ts +29 -0
- package/types/hermes-ui-angular-layout-main-container.d.ts.map +1 -0
- package/types/hermes-ui-angular-layout-nav.d.ts +143 -0
- package/types/hermes-ui-angular-layout-nav.d.ts.map +1 -0
- package/types/hermes-ui-angular-layout-tabs.d.ts +159 -0
- package/types/hermes-ui-angular-layout-tabs.d.ts.map +1 -0
- package/types/hermes-ui-angular-layout-vertical-nav.d.ts +129 -0
- package/types/hermes-ui-angular-layout-vertical-nav.d.ts.map +1 -0
- package/types/hermes-ui-angular-layout.d.ts +20 -0
- package/types/hermes-ui-angular-layout.d.ts.map +1 -0
- package/types/hermes-ui-angular-modal.d.ts +161 -0
- package/types/hermes-ui-angular-modal.d.ts.map +1 -0
- package/types/hermes-ui-angular-popover-common.d.ts +317 -0
- package/types/hermes-ui-angular-popover-common.d.ts.map +1 -0
- package/types/hermes-ui-angular-popover-dropdown.d.ts +124 -0
- package/types/hermes-ui-angular-popover-dropdown.d.ts.map +1 -0
- package/types/hermes-ui-angular-popover-signpost.d.ts +158 -0
- package/types/hermes-ui-angular-popover-signpost.d.ts.map +1 -0
- package/types/hermes-ui-angular-popover-tooltip.d.ts +84 -0
- package/types/hermes-ui-angular-popover-tooltip.d.ts.map +1 -0
- package/types/hermes-ui-angular-popover.d.ts +17 -0
- package/types/hermes-ui-angular-popover.d.ts.map +1 -0
- package/types/hermes-ui-angular-progress-progress-bars.d.ts +58 -0
- package/types/hermes-ui-angular-progress-progress-bars.d.ts.map +1 -0
- package/types/hermes-ui-angular-progress-spinner.d.ts +45 -0
- package/types/hermes-ui-angular-progress-spinner.d.ts.map +1 -0
- package/types/hermes-ui-angular-stepper.d.ts +180 -0
- package/types/hermes-ui-angular-stepper.d.ts.map +1 -0
- package/types/hermes-ui-angular-timeline.d.ts +87 -0
- package/types/hermes-ui-angular-timeline.d.ts.map +1 -0
- package/types/hermes-ui-angular-toast.d.ts +131 -0
- package/types/hermes-ui-angular-toast.d.ts.map +1 -0
- package/types/hermes-ui-angular-utils-conditional.d.ts +133 -0
- package/types/hermes-ui-angular-utils-conditional.d.ts.map +1 -0
- package/types/hermes-ui-angular-utils-loading.d.ts +39 -0
- package/types/hermes-ui-angular-utils-loading.d.ts.map +1 -0
- package/types/hermes-ui-angular-utils.d.ts +914 -0
- package/types/hermes-ui-angular-utils.d.ts.map +1 -0
- package/types/hermes-ui-angular-wizard.d.ts +1509 -0
- package/types/hermes-ui-angular-wizard.d.ts.map +1 -0
- package/types/hermes-ui-angular.d.ts +44 -0
- package/types/hermes-ui-angular.d.ts.map +1 -0
- package/typography/_code.scss +36 -0
- package/typography/_font-metropolis.scss +45 -0
- package/typography/_lists.scss +81 -0
- package/typography/_typography.scss +322 -0
- package/utils/animations/_animations.clarity.scss +44 -0
- package/utils/animations/_mixins.animations.scss +33 -0
- package/wizard/_properties.wizard.scss +54 -0
- package/wizard/_variables.wizard.scss +59 -0
- package/wizard/_wizard.clarity.scss +692 -0
|
@@ -0,0 +1,1529 @@
|
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { OnInit, OnChanges, AfterViewInit, OnDestroy, QueryList, ElementRef, EventEmitter, ChangeDetectorRef, SimpleChanges, Type, InjectionToken, Renderer2, TrackByFunction, TemplateRef, ViewContainerRef, PipeTransform, ModuleWithProviders } from '@angular/core';
|
|
5
|
+
import * as i13 from '@hermes-ui/angular/addons/a11y';
|
|
6
|
+
import { ElementResizeService, ZoomLevel, ZoomLevelService } from '@hermes-ui/angular/addons/a11y';
|
|
7
|
+
import { ListRange } from '@angular/cdk/collections';
|
|
8
|
+
import * as i5 from '@angular/cdk/drag-drop';
|
|
9
|
+
import { CdkDropList, CdkDrag } from '@angular/cdk/drag-drop';
|
|
10
|
+
import * as i14 from '@hermes-ui/angular/addons/datagrid-filters';
|
|
11
|
+
import { FilterablePropertyDefinition, FilterMode, PropertyFilter } from '@hermes-ui/angular/addons/datagrid-filters';
|
|
12
|
+
import { DragAndDropGroupService } from '@hermes-ui/angular/addons/drag-and-drop';
|
|
13
|
+
import * as i3 from '@hermes-ui/angular/data/datagrid';
|
|
14
|
+
import { HermesDatagridFilterInterface, HermesDatagridStringFilterInterface, HermesDatagridComparatorInterface, HermesDatagridSortOrder, SelectionType, HermesDatagridPagination, HermesDatagridVirtualScrollRangeInterface, HermesDatagridStateInterface, HermesDatagridFilter, HermesDatagrid } from '@hermes-ui/angular/data/datagrid';
|
|
15
|
+
import { HermesPopoverService } from '@hermes-ui/angular/popover/common';
|
|
16
|
+
import * as i17 from '@angular/cdk/overlay';
|
|
17
|
+
import { ConnectionPositionPair, CdkConnectedOverlay } from '@angular/cdk/overlay';
|
|
18
|
+
import * as i15 from '@angular/cdk/a11y';
|
|
19
|
+
import * as i18 from '@hermes-ui/angular/forms';
|
|
20
|
+
import * as i20 from '@hermes-ui/angular/popover/dropdown';
|
|
21
|
+
import * as i21 from '@hermes-ui/angular/icon';
|
|
22
|
+
import * as i22 from '@hermes-ui/angular/utils/loading';
|
|
23
|
+
import * as i4 from '@angular/common';
|
|
24
|
+
import * as i25 from '@angular/forms';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Expose most common datagrid actionbar layout styles.
|
|
28
|
+
*/
|
|
29
|
+
declare enum ActionBarLayout {
|
|
30
|
+
flatCompact = "btn btn-sm btn-link",
|
|
31
|
+
flat = "btn btn-link",
|
|
32
|
+
outlined = "btn btn-sm btn-secondary"
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Configuration for actions.
|
|
36
|
+
*/
|
|
37
|
+
interface ActionDefinition<T = string> {
|
|
38
|
+
id: string;
|
|
39
|
+
label: T;
|
|
40
|
+
ariaLabel?: string;
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
tooltip?: T;
|
|
43
|
+
/**
|
|
44
|
+
* Specify style class to be applied.
|
|
45
|
+
* @note Applicable only for ActionBar actions.
|
|
46
|
+
* Footer actions are with default style for footer actions - ('btn btn-sm column-toggle-action').
|
|
47
|
+
* Default style for ActionBar actions is flatCompact - ('btn btn-sm btn-link').
|
|
48
|
+
* {@see ActionBarLayout}
|
|
49
|
+
*/
|
|
50
|
+
class?: string;
|
|
51
|
+
/**
|
|
52
|
+
* True if the action button is visible above the grid, otherwise the button
|
|
53
|
+
* is placed within a dropdown.
|
|
54
|
+
* @note Applicable only for ActionBar actions.
|
|
55
|
+
*/
|
|
56
|
+
isVisible?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* When an action has children, it is displayed like a dropdown and
|
|
59
|
+
* the children are the dropdown items.
|
|
60
|
+
*/
|
|
61
|
+
children?: ActionDefinition[];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare class DatagridActionBarComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
65
|
+
#private;
|
|
66
|
+
private cdr;
|
|
67
|
+
private el;
|
|
68
|
+
private elementResizeService;
|
|
69
|
+
queryActionBtnElementList: QueryList<ElementRef<HTMLButtonElement>>;
|
|
70
|
+
actions: ActionDefinition[];
|
|
71
|
+
btnLayout: string;
|
|
72
|
+
dropdownOrientation: string;
|
|
73
|
+
invokeAction: EventEmitter<ActionDefinition>;
|
|
74
|
+
readonly actionsSubject: BehaviorSubject<ActionDefinition<string>[]>;
|
|
75
|
+
readonly actions$: rxjs.Observable<ActionDefinition<string>[]>;
|
|
76
|
+
isDropdownOpened: boolean;
|
|
77
|
+
private listOfWidths;
|
|
78
|
+
constructor(cdr: ChangeDetectorRef, el: ElementRef<HTMLElement>, elementResizeService: ElementResizeService);
|
|
79
|
+
ngOnInit(): void;
|
|
80
|
+
ngAfterViewInit(): void;
|
|
81
|
+
ngOnDestroy(): void;
|
|
82
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
83
|
+
getDropdownActions(): ActionDefinition[];
|
|
84
|
+
hasDropdownActions(): boolean;
|
|
85
|
+
onActionClick(action: ActionDefinition): void;
|
|
86
|
+
/**
|
|
87
|
+
* Derives the base root element size (REM) in pixels.
|
|
88
|
+
*/
|
|
89
|
+
deriveBaseRootElementSize(): number;
|
|
90
|
+
private isActionsIdsEqual;
|
|
91
|
+
private initActionsVisibility;
|
|
92
|
+
private restoreVisible;
|
|
93
|
+
private updateListOfWidths;
|
|
94
|
+
private updateLayout;
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridActionBarComponent, never>;
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatagridActionBarComponent, "appfx-datagrid-action-bar", never, { "actions": { "alias": "actions"; "required": false; }; "btnLayout": { "alias": "btnLayout"; "required": false; }; "dropdownOrientation": { "alias": "dropdownOrientation"; "required": false; }; }, { "invokeAction": "invokeAction"; }, never, never, false, never>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Defining the three export types, selected export option is passed to Datagrid Export Component
|
|
101
|
+
* @type {{ALL: string; SELECTED_ONLY: string; MATCHING_FILTERS: string}}
|
|
102
|
+
*/
|
|
103
|
+
declare enum ExportType {
|
|
104
|
+
ALL = "ALL",
|
|
105
|
+
SELECTED_ONLY = "SELECTED_ONLY",
|
|
106
|
+
MATCHING_FILTERS = "MATCHING_FILTERS"
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface ColumnFilter<T> extends HermesDatagridFilterInterface<T> {
|
|
110
|
+
/**
|
|
111
|
+
* Initial filter value provided from defaultFilterValue
|
|
112
|
+
* property of column definition @see #SelectionType
|
|
113
|
+
*/
|
|
114
|
+
filterValue: any;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Defines a column in the Datagrid.
|
|
119
|
+
*/
|
|
120
|
+
interface ColumnDefinition<T> {
|
|
121
|
+
/**
|
|
122
|
+
* Unique identifier for the column, used for persistence.
|
|
123
|
+
*/
|
|
124
|
+
uid?: string;
|
|
125
|
+
/**
|
|
126
|
+
* The text displayed as the column header.
|
|
127
|
+
*/
|
|
128
|
+
displayName: string;
|
|
129
|
+
/**
|
|
130
|
+
* The name of the property in the Datagrid data that this column represents.
|
|
131
|
+
*/
|
|
132
|
+
field: string;
|
|
133
|
+
/**
|
|
134
|
+
* Determines whether the column can be hidden using the column toggle in the footer.
|
|
135
|
+
* If set to `false`, the column will always remain visible.
|
|
136
|
+
*
|
|
137
|
+
* @default true - Columns are hideable by default.
|
|
138
|
+
*/
|
|
139
|
+
hideable?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Specifies whether the column is initially hidden when the Datagrid is rendered.
|
|
142
|
+
* A value of `true` hides the column by default, while `false` ensures it is visible.
|
|
143
|
+
*
|
|
144
|
+
* @default false - Columns are visible by default.
|
|
145
|
+
*/
|
|
146
|
+
hidden?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Pins the column to the left of the Datagrid, so it stays visible while the remaining columns
|
|
149
|
+
* are scrolled horizontally. Pinned columns keep the order they are defined in and are rendered
|
|
150
|
+
* after the built-in row controls.
|
|
151
|
+
*
|
|
152
|
+
* @default false - Columns are not pinned by default.
|
|
153
|
+
*/
|
|
154
|
+
pinned?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Defines string filter for data in this column.
|
|
157
|
+
*/
|
|
158
|
+
stringFilter?: HermesDatagridStringFilterInterface<T>;
|
|
159
|
+
/**
|
|
160
|
+
* Defines filter component for data in this column.
|
|
161
|
+
*/
|
|
162
|
+
filter?: Type<ColumnFilter<T>>;
|
|
163
|
+
/**
|
|
164
|
+
* Default filter value for the column's filter.
|
|
165
|
+
*/
|
|
166
|
+
defaultFilterValue?: any;
|
|
167
|
+
/**
|
|
168
|
+
* A custom component to render/display data in this column.
|
|
169
|
+
*/
|
|
170
|
+
columnRenderer?: Type<ColumnRenderer<T>>;
|
|
171
|
+
/**
|
|
172
|
+
* Additional key/value pair configuration options for the `columnRenderer`.
|
|
173
|
+
*/
|
|
174
|
+
columnRendererConfig?: any;
|
|
175
|
+
/**
|
|
176
|
+
* Comparator that to be used when sorting data in this column.
|
|
177
|
+
*/
|
|
178
|
+
sortComparator?: HermesDatagridComparatorInterface<T> | string;
|
|
179
|
+
/**
|
|
180
|
+
* Specifies the default sort order for the column.
|
|
181
|
+
*/
|
|
182
|
+
defaultSortOrder?: HermesDatagridSortOrder;
|
|
183
|
+
/**
|
|
184
|
+
* Column width in pixels (e.g., '100px'). Auto-calculated if not set.
|
|
185
|
+
*/
|
|
186
|
+
width?: string;
|
|
187
|
+
/**
|
|
188
|
+
* The field by which the column will be filtered and sorted.
|
|
189
|
+
*/
|
|
190
|
+
sortAndFilterByField?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Controls whether the "unsort" step is removed from this column's sort cycle,
|
|
193
|
+
* overriding the grid-level `disableUnsort` default.
|
|
194
|
+
* - `true`: this column toggles ascending ↔ descending only.
|
|
195
|
+
* - `false`: this column cycles ascending → descending → unsorted.
|
|
196
|
+
*
|
|
197
|
+
* When omitted, the grid-level `disableUnsort` value is used.
|
|
198
|
+
*/
|
|
199
|
+
disableUnsort?: boolean;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Represents a custom renderer for a Datagrid column, responsible for displaying data
|
|
203
|
+
* and responding to changes in the associated item or column configuration.
|
|
204
|
+
*/
|
|
205
|
+
interface ColumnRenderer<T> {
|
|
206
|
+
/**
|
|
207
|
+
* The data item representing a row in the Datagrid.
|
|
208
|
+
*/
|
|
209
|
+
item: T;
|
|
210
|
+
/**
|
|
211
|
+
* The definition of the column being rendered.
|
|
212
|
+
*/
|
|
213
|
+
column?: ColumnDefinition<T>;
|
|
214
|
+
/**
|
|
215
|
+
* Called when the item or the column objects have changed.
|
|
216
|
+
* The DatagridCellContainer has ngOnChanges lifecycle hook and call
|
|
217
|
+
* this function if it is implemented.
|
|
218
|
+
*
|
|
219
|
+
* In most cases this method is good to be implemented.
|
|
220
|
+
* The renderer should not implement this method only if they don't expect
|
|
221
|
+
* their data to be updated or if they directly bind properties of the item
|
|
222
|
+
* object in their html template.
|
|
223
|
+
*/
|
|
224
|
+
onChange?(item: T, column?: ColumnDefinition<T>): void;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface ColumnState {
|
|
228
|
+
column: ColumnDefinition<any>;
|
|
229
|
+
}
|
|
230
|
+
interface ColumnResize extends ColumnState {
|
|
231
|
+
columnSize: number;
|
|
232
|
+
}
|
|
233
|
+
interface ColumnSortOrder extends ColumnState {
|
|
234
|
+
sortOrder: HermesDatagridSortOrder;
|
|
235
|
+
}
|
|
236
|
+
interface ColumnHiddenState extends ColumnState {
|
|
237
|
+
hidden: boolean;
|
|
238
|
+
}
|
|
239
|
+
interface ColumnFilterChange extends ColumnState {
|
|
240
|
+
filterValue: any;
|
|
241
|
+
}
|
|
242
|
+
interface ColumnOrderChanged {
|
|
243
|
+
previousIndex: number;
|
|
244
|
+
currentIndex: number;
|
|
245
|
+
columns: ColumnDefinition<any>[];
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
interface DatagridItemSet {
|
|
249
|
+
totalDatagridItems: any[];
|
|
250
|
+
selectedItems: any[];
|
|
251
|
+
filteredDatagridItems: any[];
|
|
252
|
+
}
|
|
253
|
+
interface ExportValueCallbackParams {
|
|
254
|
+
item: any;
|
|
255
|
+
field: string;
|
|
256
|
+
itemValue: any;
|
|
257
|
+
}
|
|
258
|
+
type SortFunction = (items: any[], sortOrder?: ColumnSortOrder) => any[];
|
|
259
|
+
/**
|
|
260
|
+
* Configuration for client-side data export.
|
|
261
|
+
* Defines export settings such as file name and columns to be exported,
|
|
262
|
+
* whether the export is custom (will be made by host component), count of all items (valuable for client-side grids in which data are filtered)
|
|
263
|
+
* and how to sort the exported items.
|
|
264
|
+
*/
|
|
265
|
+
interface ClientSideExportConfig {
|
|
266
|
+
exportedFileName: string;
|
|
267
|
+
columnDefinitions: ExportColumnDefinition[];
|
|
268
|
+
customExport?: boolean;
|
|
269
|
+
allItemsCount?: number;
|
|
270
|
+
/**
|
|
271
|
+
* If true, the export service will sort the items before exporting them
|
|
272
|
+
* using the sortOrder field and the provided sortFunction. If the sort function
|
|
273
|
+
* is not provided, we will use the internal sortExportedItems function.
|
|
274
|
+
*/
|
|
275
|
+
sort?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Column sort order is set by the grid when the user clicks on a column or when
|
|
278
|
+
* ClientSideExportConfig is created. It is provided to SortFunction.
|
|
279
|
+
*
|
|
280
|
+
*/
|
|
281
|
+
sortOrder?: ColumnSortOrder;
|
|
282
|
+
/**
|
|
283
|
+
* Custom sort function, which can be used for sorting the items before exporting them.
|
|
284
|
+
*/
|
|
285
|
+
sortFunction?: SortFunction;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Represents the status of an export operation.
|
|
289
|
+
*/
|
|
290
|
+
interface ExportStatus {
|
|
291
|
+
/**
|
|
292
|
+
* Specifies the type of export operation being performed.
|
|
293
|
+
* @See ExportType {{ALL: string; SELECTED_ONLY: string; MATCHING_FILTERS: string}}
|
|
294
|
+
*/
|
|
295
|
+
exportType: ExportType;
|
|
296
|
+
/**
|
|
297
|
+
* Indicates whether the export operation is currently in progress.
|
|
298
|
+
*/
|
|
299
|
+
inProgress?: boolean;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Defines a column structure for Export
|
|
303
|
+
*/
|
|
304
|
+
interface ExportColumnDefinition {
|
|
305
|
+
/**
|
|
306
|
+
* The text for the column header
|
|
307
|
+
*/
|
|
308
|
+
displayName: string;
|
|
309
|
+
/**
|
|
310
|
+
* field: The name of the property that this column represents.
|
|
311
|
+
* Note: Make sure that the field property in Column Definitions are the same as used in rows for grid values.
|
|
312
|
+
*
|
|
313
|
+
* See Example:->
|
|
314
|
+
* Columns: [ { 'field': 'name', 'displayName': 'Name', 'exportProperty': true },
|
|
315
|
+
* { 'field': 'id', 'displayName': 'id', 'exportProperty': false },
|
|
316
|
+
* { 'field': 'version', 'displayName': 'Version No.', 'exportProperty': true } ]
|
|
317
|
+
* Rows: [ { 'name': 'Item A', 'id': 'item1', 'version': '1.0.1' },
|
|
318
|
+
* { 'name': 'Item B', 'id': 'item2', 'version': '1.0.2' } ]
|
|
319
|
+
*/
|
|
320
|
+
field: string;
|
|
321
|
+
/**
|
|
322
|
+
* Whether to export this property or not
|
|
323
|
+
*/
|
|
324
|
+
getExportValue?: any;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Helper functions to convert data into CSV format
|
|
329
|
+
*/
|
|
330
|
+
declare class CsvHelperService {
|
|
331
|
+
getData(rows: any[], columns: ExportColumnDefinition[]): string;
|
|
332
|
+
getColumnDataFromColumnDef(columnDefinitions: ExportColumnDefinition[]): string;
|
|
333
|
+
getRowDataFromColumnDef(exportItems: any[], columnDefinitions: ExportColumnDefinition[]): string;
|
|
334
|
+
toCsvFormat(itemValue: string): string;
|
|
335
|
+
/** To extract value from nested JSON objects."
|
|
336
|
+
* Example =>
|
|
337
|
+
* JSON object to extract value from => { product: {cost: {limit: 100, lowestValue: 0 }}}
|
|
338
|
+
* Field format => "product.cost.limit'
|
|
339
|
+
* Value returned => 100
|
|
340
|
+
*/
|
|
341
|
+
private getItemValueFromColumnField;
|
|
342
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CsvHelperService, never>;
|
|
343
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CsvHelperService>;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* User-visible strings used in the 'datagrid' library.
|
|
348
|
+
*
|
|
349
|
+
* Strings are in English only. If you need to provide localized strings:
|
|
350
|
+
* - extend this class
|
|
351
|
+
* - override all fields with localized values
|
|
352
|
+
* - provide instance in the module, where you use the library
|
|
353
|
+
*
|
|
354
|
+
* ```
|
|
355
|
+
* @NgModule({
|
|
356
|
+
* ...
|
|
357
|
+
* providers: [
|
|
358
|
+
* { provide: DatagridStrings, useClass: LocalizedDatagridStrings },
|
|
359
|
+
* ]
|
|
360
|
+
* })
|
|
361
|
+
* export class AppModule {}
|
|
362
|
+
* ```
|
|
363
|
+
*/
|
|
364
|
+
declare class DatagridStrings {
|
|
365
|
+
/**
|
|
366
|
+
* Text displayed inside the grid when the grid is empty.
|
|
367
|
+
*/
|
|
368
|
+
noItemsFound: string;
|
|
369
|
+
/**
|
|
370
|
+
* Label of the column toggle buttons.
|
|
371
|
+
*/
|
|
372
|
+
showColumns: string;
|
|
373
|
+
/**
|
|
374
|
+
* Label of the button (inside column toggle) that selects all columns.
|
|
375
|
+
*/
|
|
376
|
+
selectAll: string;
|
|
377
|
+
/**
|
|
378
|
+
* Tooltip for Show Columns toggle button
|
|
379
|
+
*/
|
|
380
|
+
pickColumns: string;
|
|
381
|
+
/**
|
|
382
|
+
* Datagrid Show columns menu description
|
|
383
|
+
*/
|
|
384
|
+
showColumnsMenuDescription: string;
|
|
385
|
+
/**
|
|
386
|
+
* Datagrid Show columns / All columns selected confirmation
|
|
387
|
+
*/
|
|
388
|
+
allColumnsSelected: string;
|
|
389
|
+
/**
|
|
390
|
+
* Footer label to display.
|
|
391
|
+
* Can contain up to 3 placeholders:
|
|
392
|
+
* {0} - total items count
|
|
393
|
+
* {1} - index of first item of the current page (if paging is used)
|
|
394
|
+
* {2} - index of last item of the current page (if paging is used)
|
|
395
|
+
*
|
|
396
|
+
* @example
|
|
397
|
+
* footer = "Apples and bananas";
|
|
398
|
+
* footer = "{0} apples";
|
|
399
|
+
* footer = "{1} - {2} of {0} apples"
|
|
400
|
+
*
|
|
401
|
+
* If not set, the grid will automatically show one of the following strings:
|
|
402
|
+
* @see singleItem: if there is only 1 item in the grid<br/>
|
|
403
|
+
* @see multipleItems: if there are many items and data is not paged<br/>
|
|
404
|
+
* @see pagedItems: if there is paging enabled
|
|
405
|
+
*/
|
|
406
|
+
footer?: string;
|
|
407
|
+
/**
|
|
408
|
+
* Footer label displayed when there is a single item.
|
|
409
|
+
* @example "1 item"
|
|
410
|
+
*/
|
|
411
|
+
singleItem: string;
|
|
412
|
+
/**
|
|
413
|
+
* Footer label to display total items count.
|
|
414
|
+
* @example "{0} items"
|
|
415
|
+
*/
|
|
416
|
+
multipleItems: string;
|
|
417
|
+
/**
|
|
418
|
+
* Footer label when using pagination.
|
|
419
|
+
* @example "{1} - {2} of {0} items"
|
|
420
|
+
*/
|
|
421
|
+
pagedItems: string;
|
|
422
|
+
/**
|
|
423
|
+
* Label for page size selector.
|
|
424
|
+
*/
|
|
425
|
+
itemsPerPage: string;
|
|
426
|
+
/**
|
|
427
|
+
* Title of the export button.
|
|
428
|
+
*/
|
|
429
|
+
exportLink: string;
|
|
430
|
+
/**
|
|
431
|
+
* Title of 'Export > Export All' option.
|
|
432
|
+
*/
|
|
433
|
+
exportAll: string;
|
|
434
|
+
/**
|
|
435
|
+
* Title of 'Export > Matching Filters' option.
|
|
436
|
+
*/
|
|
437
|
+
exportMatchingFilters: string;
|
|
438
|
+
/**
|
|
439
|
+
* Title of 'Export > Selected Rows' option.
|
|
440
|
+
*/
|
|
441
|
+
exportSelectedRows: string;
|
|
442
|
+
/**
|
|
443
|
+
* Error message displayed in case of error during data export.
|
|
444
|
+
*/
|
|
445
|
+
exportErrorMessage: string;
|
|
446
|
+
/**
|
|
447
|
+
* Title of the error dialog displayed in case of error during data export.
|
|
448
|
+
*/
|
|
449
|
+
exportErrorTitle: string;
|
|
450
|
+
/**
|
|
451
|
+
* Text for close button of column toggler on 4x zoom
|
|
452
|
+
*/
|
|
453
|
+
closeColumnTogglerText: string;
|
|
454
|
+
/**
|
|
455
|
+
* Label of the button for deselecting all rows.
|
|
456
|
+
*/
|
|
457
|
+
deselectAll: string;
|
|
458
|
+
/**
|
|
459
|
+
* Details pane label for the collapsed button.
|
|
460
|
+
* @example "Expand the details pane for the {0} item"
|
|
461
|
+
*/
|
|
462
|
+
expandDetailsPaneLabel: string;
|
|
463
|
+
/**
|
|
464
|
+
* Details pane label for the expanded button.
|
|
465
|
+
* @example "Collapse the details pane for the {0} item"
|
|
466
|
+
*/
|
|
467
|
+
collapseDetailsPaneLabel: string;
|
|
468
|
+
/**
|
|
469
|
+
* Placeholder text for the filter input in each filterable column.
|
|
470
|
+
* @example "Filter items"
|
|
471
|
+
*/
|
|
472
|
+
filterPlaceholder: string;
|
|
473
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridStrings, never>;
|
|
474
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DatagridStrings>;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
declare const appfxDatagridErrorNotifiableToken: InjectionToken<ErrorNotifiable>;
|
|
478
|
+
interface ErrorNotifiable {
|
|
479
|
+
notifyError(title: string, message: string): void;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
declare class ExportProviderService {
|
|
483
|
+
private csvHelperService;
|
|
484
|
+
private renderer;
|
|
485
|
+
private elementRef;
|
|
486
|
+
private dgStrings;
|
|
487
|
+
private errorNotifiableService;
|
|
488
|
+
constructor(csvHelperService: CsvHelperService, renderer: Renderer2, elementRef: ElementRef, dgStrings: DatagridStrings, errorNotifiableService: ErrorNotifiable);
|
|
489
|
+
exportUIOnlyData(datagridProperties: ClientSideExportConfig, exportStatus: ExportStatus, datagridItemSet: DatagridItemSet): void;
|
|
490
|
+
/**
|
|
491
|
+
* Function to create a CSV file from CsvData and download it
|
|
492
|
+
*/
|
|
493
|
+
downloadFile(csvData: string, exportedFileName?: string): void;
|
|
494
|
+
private showExportError;
|
|
495
|
+
/**
|
|
496
|
+
* Sort function used internally from ExportProviderService to sort exported items.
|
|
497
|
+
*/
|
|
498
|
+
private sortExportedItems;
|
|
499
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExportProviderService, [null, null, null, null, { optional: true; }]>;
|
|
500
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExportProviderService>;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Represents the context of a right-click event on a grid row.
|
|
505
|
+
*/
|
|
506
|
+
interface ContextMenuEvent {
|
|
507
|
+
event: MouseEvent;
|
|
508
|
+
/**
|
|
509
|
+
* An array of selected grid items.
|
|
510
|
+
* This property represents the context in which the right-click event occurred.
|
|
511
|
+
*/
|
|
512
|
+
context: any[];
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Interface defining the configuration required to enable drag-and-drop functionality within a datagrid.
|
|
517
|
+
* This configuration specifies which field should be displayed while dragging and optionally groups the draggable items.
|
|
518
|
+
*/
|
|
519
|
+
interface DatagridDragConfig {
|
|
520
|
+
/**
|
|
521
|
+
* The name of the field whose value will be displayed as a ghost element while dragging.
|
|
522
|
+
* The ghost element is the visual representation of the dragged item that follows the cursor during
|
|
523
|
+
* a drag-and-drop operation.
|
|
524
|
+
*/
|
|
525
|
+
fieldName: string;
|
|
526
|
+
/**
|
|
527
|
+
* An optional identifier for grouping draggable elements.
|
|
528
|
+
*/
|
|
529
|
+
dragGroup?: string;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
interface PreselectableComponent {
|
|
533
|
+
trackByGridItemProperty: string;
|
|
534
|
+
trackByFunction: TrackByFunction<any>;
|
|
535
|
+
selectionType: SelectionType;
|
|
536
|
+
selectedItems: any[];
|
|
537
|
+
serverDrivenDatagrid: boolean;
|
|
538
|
+
gridItemsChange: EventEmitter<any[]>;
|
|
539
|
+
/**
|
|
540
|
+
* Handles datagrid selected items changes.
|
|
541
|
+
*/
|
|
542
|
+
onSelectedItemsChange: (selectedItems: any[]) => void;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* The problem we want to solve with the common interface and the token below:
|
|
546
|
+
* We don't want this directive to enumerate all its host components by type
|
|
547
|
+
* because we don't want to import and thus depend on components which might
|
|
548
|
+
* use the directive. To reverse the dependency, we use the token. Each
|
|
549
|
+
* component which might host this directive should provide itself as the token.
|
|
550
|
+
*/
|
|
551
|
+
declare const appfxPreselectableComponentToken: InjectionToken<PreselectableComponent>;
|
|
552
|
+
/**
|
|
553
|
+
* Preserves selection of datagrid and datagrid-detail by tracking whether some
|
|
554
|
+
* grid item should be selected on the base of the a set "trackByGridItemProperty"
|
|
555
|
+
* input of the datagrid or with the help of the "trackByFunction" function
|
|
556
|
+
* input of the datagrid.
|
|
557
|
+
*
|
|
558
|
+
* After global refresh the data grid receives new items and the selection is lost
|
|
559
|
+
* because the grid doesn't know how to recognize which of the new items are the old one
|
|
560
|
+
* selected before global refresh. This directive tracks the selected items by property and
|
|
561
|
+
* when the grid receives new data update the selected items array with the items from the
|
|
562
|
+
* the new grid data.
|
|
563
|
+
*
|
|
564
|
+
* The server-side driven data grid doesn't receive all data. The directive in this case will
|
|
565
|
+
* update only the items which can be found among the new grid items and leave
|
|
566
|
+
* the old ones which it can't find in the selected grid items array. In this case, the component
|
|
567
|
+
* which host the appfx datagrid has responsibility to remove the old selected items which are
|
|
568
|
+
* not applicable for selection after grid data has been updated.
|
|
569
|
+
*
|
|
570
|
+
* How to use it
|
|
571
|
+
*
|
|
572
|
+
* <appfx-datagrid [appfxPreserveSelection] ="'hostObjectId'" [gridItems]="gridItems" ....>
|
|
573
|
+
*
|
|
574
|
+
* <appfx-datagrid appfxPreserveSelection [trackByGridItemProperty]="'hostObjectId'" [gridItems]="gridItems" ....>
|
|
575
|
+
*
|
|
576
|
+
* <appfx-datagrid appfxPreserveSelection [trackByFunction]="<function>" [gridItems]="gridItems" ....>
|
|
577
|
+
*
|
|
578
|
+
* Where function receives as an argument datagrid item and returns unique identifier for it.
|
|
579
|
+
*/
|
|
580
|
+
declare class DatagridPreserveSelectionDirective implements AfterViewInit, OnDestroy {
|
|
581
|
+
preselectableComponent: PreselectableComponent;
|
|
582
|
+
/**
|
|
583
|
+
* preserveSelection - needed mainly because of list-view component and
|
|
584
|
+
* indicates whether grid should preserve the selection based on 'trackByFunction' or
|
|
585
|
+
* 'trackByGridItemProperty'.
|
|
586
|
+
*/
|
|
587
|
+
preserveExistingSelection: boolean;
|
|
588
|
+
selectedItemsUpdated: EventEmitter<any[]>;
|
|
589
|
+
private component;
|
|
590
|
+
private selectBy;
|
|
591
|
+
private gridItemChangeSub;
|
|
592
|
+
constructor(preselectableComponent: PreselectableComponent);
|
|
593
|
+
ngAfterViewInit(): void;
|
|
594
|
+
ngOnDestroy(): void;
|
|
595
|
+
updateSelectedItems(items: any[]): void;
|
|
596
|
+
private findSelectedItems;
|
|
597
|
+
private findAndUpdateSelectedItems;
|
|
598
|
+
private createSelectedItemsDictionary;
|
|
599
|
+
private getItemUniquePropertyValue;
|
|
600
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridPreserveSelectionDirective, [{ host: true; }]>;
|
|
601
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DatagridPreserveSelectionDirective, "[appfxPreserveSelection]", never, { "preserveExistingSelection": { "alias": "preserveExistingSelection"; "required": false; }; }, { "selectedItemsUpdated": "selectedItemsUpdated"; }, never, never, false, never>;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
interface ActionClickEvent<T = any> {
|
|
605
|
+
action: ActionDefinition;
|
|
606
|
+
/**
|
|
607
|
+
* Represent action context.
|
|
608
|
+
* Array of selected data grid items in case of action bar action
|
|
609
|
+
* or the data grid item associated with the datagrid row which single row
|
|
610
|
+
* action is clicked.
|
|
611
|
+
*/
|
|
612
|
+
context: T;
|
|
613
|
+
}
|
|
614
|
+
interface SingleRowActionOpen<T = any> {
|
|
615
|
+
/**
|
|
616
|
+
* Menu state open/close
|
|
617
|
+
*/
|
|
618
|
+
open: boolean;
|
|
619
|
+
/**
|
|
620
|
+
* Actions of the single row datagrid menu.
|
|
621
|
+
*/
|
|
622
|
+
actions: ActionDefinition[] | null;
|
|
623
|
+
/**
|
|
624
|
+
* The data grid item associated with the Datagrid row which single row
|
|
625
|
+
* menu is opened/closed.
|
|
626
|
+
*/
|
|
627
|
+
context: T;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* The GridLayoutModel interface defines configurable options for customizing
|
|
632
|
+
* the visual appearance and behavior of the datagrid layout.
|
|
633
|
+
*/
|
|
634
|
+
interface GridLayoutModel {
|
|
635
|
+
/**
|
|
636
|
+
* Enables compact mode for the datagrid, reducing row height to create a denser layout.
|
|
637
|
+
* This mode is particularly useful when you need to display more rows within the same viewport.
|
|
638
|
+
* - `true`: Enables compact mode.
|
|
639
|
+
* - `false`: Uses the default Clarity layout with standard row and column height.
|
|
640
|
+
*
|
|
641
|
+
* Defaults to `true` if not specified.
|
|
642
|
+
*/
|
|
643
|
+
compact?: boolean;
|
|
644
|
+
/**
|
|
645
|
+
* Disables the datagrid, preventing all user interactions.
|
|
646
|
+
* - `true`: Disables the grid and makes it non-interactive.
|
|
647
|
+
* - `false`: Allows full user interactions.
|
|
648
|
+
*
|
|
649
|
+
* Defaults to `false` if not specified.
|
|
650
|
+
*/
|
|
651
|
+
disabled?: boolean;
|
|
652
|
+
/**
|
|
653
|
+
* Adjusts the datagrid layout to stretch and fill 100% of the height of the parent container.
|
|
654
|
+
* - `true`: The datagrid stretches to fill the parent container's height.
|
|
655
|
+
* - `false`: The datagrid height adjusts based on its content.
|
|
656
|
+
*
|
|
657
|
+
* Defaults to `true` if not specified.
|
|
658
|
+
*/
|
|
659
|
+
stretchToParentHeight?: boolean;
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* The GridFooterModel interface configures the behavior and appearance of the datagrid footer.
|
|
663
|
+
*/
|
|
664
|
+
interface GridFooterModel {
|
|
665
|
+
/**
|
|
666
|
+
* Controls the visibility of the datagrid footer.
|
|
667
|
+
* - `true`: The footer is displayed.
|
|
668
|
+
* - `false`: The footer is hidden.
|
|
669
|
+
*
|
|
670
|
+
* Defaults to `true` if not specified.
|
|
671
|
+
*/
|
|
672
|
+
showFooter?: boolean;
|
|
673
|
+
/**
|
|
674
|
+
* Controls the visibility of the column toggle in the datagrid footer.
|
|
675
|
+
* - `true`: The column toggle is hidden.
|
|
676
|
+
* - `false`: The column toggle is visible, allowing users to show or hide columns.
|
|
677
|
+
*
|
|
678
|
+
* Defaults to `false` if not specified.
|
|
679
|
+
*/
|
|
680
|
+
hideColumnToggle?: boolean;
|
|
681
|
+
/**
|
|
682
|
+
* Configuration for client-side data export behavior.
|
|
683
|
+
* This option allows to define settings such as the file name, export columns.
|
|
684
|
+
*
|
|
685
|
+
* Note: To implement custom export logic, use the `enableCustomExport` property.
|
|
686
|
+
* The `onExportData` event can be handled manually for custom export behavior.
|
|
687
|
+
*
|
|
688
|
+
* @see ClientSideExportConfig
|
|
689
|
+
*/
|
|
690
|
+
clientSideExportConfig?: ClientSideExportConfig;
|
|
691
|
+
/**
|
|
692
|
+
* Specifies whether the export button should be displayed in the datagrid.
|
|
693
|
+
* Enabling this option causes the component to emit the `onExportData` event, which can be used for implementing custom export logic.
|
|
694
|
+
*
|
|
695
|
+
* If `clientSideExportConfig` is provided, the export button will automatically be shown.
|
|
696
|
+
*
|
|
697
|
+
* Values:
|
|
698
|
+
* - `true`: Displays the export button and triggers the `onExportData` event when clicked.
|
|
699
|
+
* - `false`: Hides the export button.
|
|
700
|
+
*
|
|
701
|
+
* Defaults to `false` if not specified.
|
|
702
|
+
*/
|
|
703
|
+
enableCustomExport?: boolean;
|
|
704
|
+
/**
|
|
705
|
+
* An array of action definitions to be rendered in the Datagrid footer.
|
|
706
|
+
* These actions are displayed as small buttons on the left side of the footer.
|
|
707
|
+
*
|
|
708
|
+
* Interaction:
|
|
709
|
+
* When a footer action is clicked, the {@link #onActionClick} callback is invoked,
|
|
710
|
+
* passing the specific {@link ActionDefinition} and the current datagrid
|
|
711
|
+
* selection (single or multiple items) as context.
|
|
712
|
+
*
|
|
713
|
+
* Note on Styling:
|
|
714
|
+
* Unlike ActionBar actions, footer actions ignore the 'class' property and
|
|
715
|
+
* apply a consistent style to maintain visual harmony with
|
|
716
|
+
* pagination and other footer elements.
|
|
717
|
+
*/
|
|
718
|
+
footerActions?: ActionDefinition[];
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* DatagridComponent represents a data-bound list control that displays items from an array-based source in the form of columns and rows.
|
|
722
|
+
* The component is built on top of the HermesDatagrid component from Clarity
|
|
723
|
+
* and provides additional functionality and customization options on top of the base HermesDatagrid.
|
|
724
|
+
*
|
|
725
|
+
* @template T - The type of the data being displayed in the datagrid.
|
|
726
|
+
* This allows the datagrid to enforce type safety for the items passed to it, ensuring
|
|
727
|
+
* that the `gridItems` and other related inputs conform to a specific structure.
|
|
728
|
+
*
|
|
729
|
+
* @example
|
|
730
|
+
* <appfx-datagrid [gridItems]="data" [columns]="columns"></appfx-datagrid>
|
|
731
|
+
*/
|
|
732
|
+
declare class DatagridComponent<T> implements OnInit, OnDestroy, AfterViewInit, OnChanges, PreselectableComponent {
|
|
733
|
+
#private;
|
|
734
|
+
private readonly uid;
|
|
735
|
+
private cdr;
|
|
736
|
+
private readonly exportProviderService;
|
|
737
|
+
private readonly groupService;
|
|
738
|
+
private readonly zoomLevelService;
|
|
739
|
+
searchTerm: string;
|
|
740
|
+
visibleColumns: ColumnDefinition<T>[];
|
|
741
|
+
draggedItems: T[];
|
|
742
|
+
hermesDatagridPagination: HermesDatagridPagination;
|
|
743
|
+
/**
|
|
744
|
+
* Shows loading indicator inside the datagrid to prevent user interactions while data is loading.
|
|
745
|
+
* Set to `true` to display loading; set to `false` to hide the loading indicator.
|
|
746
|
+
* Defaults to `false`.
|
|
747
|
+
*/
|
|
748
|
+
loading: boolean;
|
|
749
|
+
/**
|
|
750
|
+
* Indicates if additional records are currently being fetched during infinite scrolling.
|
|
751
|
+
* When `true`, a loading indicator is appended to the end of the datagrid rows.
|
|
752
|
+
* @default false
|
|
753
|
+
*/
|
|
754
|
+
loadingMoreItems: boolean;
|
|
755
|
+
/**
|
|
756
|
+
* When set to `true`, automatically selects the first item in the datagrid upon initialization.
|
|
757
|
+
* Defaults to `false`.
|
|
758
|
+
*/
|
|
759
|
+
preSelectFirstItem: boolean;
|
|
760
|
+
/**
|
|
761
|
+
* Defines the selectable page size options displayed in the grid footer.
|
|
762
|
+
* Users can choose from these options to control the number of items shown per page.
|
|
763
|
+
*/
|
|
764
|
+
pageSizeOptions: number[];
|
|
765
|
+
/**
|
|
766
|
+
* The totalItems should be provided when the grid is server driven datagrid
|
|
767
|
+
* (serverDrivenDatagrid = true), otherwise the totalItems is calculated
|
|
768
|
+
* internally and shouldn't be set.
|
|
769
|
+
*/
|
|
770
|
+
totalItems: number;
|
|
771
|
+
/**
|
|
772
|
+
* Shows the projected custom pagination component from the host component.
|
|
773
|
+
* Used for infinite pagination scenarios.
|
|
774
|
+
* Default: false
|
|
775
|
+
*/
|
|
776
|
+
showCustomPagination: boolean;
|
|
777
|
+
/**
|
|
778
|
+
* Enables or disables server-driven mode for the datagrid.
|
|
779
|
+
* When set to `true`, pagination and filtering should be managed externally.
|
|
780
|
+
* Defaults to `false`.
|
|
781
|
+
*/
|
|
782
|
+
serverDrivenDatagrid: boolean;
|
|
783
|
+
/**
|
|
784
|
+
* All grid items count when no filter is added.
|
|
785
|
+
* Used for Export functionality when showExport is true.
|
|
786
|
+
* Should be provided only when the grid is server driven datagrid
|
|
787
|
+
* (serverDrivenDatagrid = true), otherwise the listItemsCount is calculated
|
|
788
|
+
* internally and shouldn't be set.
|
|
789
|
+
*
|
|
790
|
+
* @deprecated To be removed with VSUIP-4776
|
|
791
|
+
*/
|
|
792
|
+
listItemsCount: number;
|
|
793
|
+
/**
|
|
794
|
+
* Template for the content displayed when a row expands. Enables expandable row functionality.
|
|
795
|
+
*/
|
|
796
|
+
rowDetailContent: TemplateRef<unknown>;
|
|
797
|
+
rowsExpandedByDefault: boolean;
|
|
798
|
+
/**
|
|
799
|
+
* A function that defines how to be tracked the changes for items in the grid.
|
|
800
|
+
*/
|
|
801
|
+
trackByFunction: TrackByFunction<T>;
|
|
802
|
+
/**
|
|
803
|
+
* property expression which defines the item property which to be
|
|
804
|
+
* used for tracking changes of items in in the grid. May be deep with "a.b.c" notation.
|
|
805
|
+
*/
|
|
806
|
+
trackByGridItemProperty: string;
|
|
807
|
+
/**
|
|
808
|
+
* Reference to the template containing the content for the header
|
|
809
|
+
* displayed on top of the detail content.
|
|
810
|
+
*/
|
|
811
|
+
detailHeader?: TemplateRef<unknown>;
|
|
812
|
+
/**
|
|
813
|
+
* Reference to the template containing the detail content.
|
|
814
|
+
*/
|
|
815
|
+
detailBody?: TemplateRef<unknown>;
|
|
816
|
+
/**
|
|
817
|
+
* The state passed to the detail pane. Contains the gridItem for which
|
|
818
|
+
* detail is shown or null in case detail pane is hidden.
|
|
819
|
+
*/
|
|
820
|
+
detailState: T | null;
|
|
821
|
+
/**
|
|
822
|
+
* Used to notify the hosting view that the detailState value has changed
|
|
823
|
+
* ( to enable two way data binding )
|
|
824
|
+
*/
|
|
825
|
+
detailStateChange: EventEmitter<T>;
|
|
826
|
+
/**
|
|
827
|
+
* A function that determines if a specific row is locked (disabled).
|
|
828
|
+
*
|
|
829
|
+
* This function receives a row item as an argument and returns a boolean indicating
|
|
830
|
+
* whether the row should be locked (`true`) or enabled (`false`).
|
|
831
|
+
*/
|
|
832
|
+
isRowLocked: (rowItem: T) => boolean;
|
|
833
|
+
/**
|
|
834
|
+
* Configuration for enabling drag-and-drop functionality within the datagrid.
|
|
835
|
+
* By default, drag and drop is disabled. To enable it, provide a valid configuration object
|
|
836
|
+
* implementing the @see DatagridDragConfig interface.
|
|
837
|
+
*/
|
|
838
|
+
dragConfig: DatagridDragConfig;
|
|
839
|
+
/**
|
|
840
|
+
* An array of properties used for advanced filtering in FilterMode.Advanced
|
|
841
|
+
*/
|
|
842
|
+
filterableProperties: FilterablePropertyDefinition[];
|
|
843
|
+
/**
|
|
844
|
+
* Specifies the type of global filter to enable.
|
|
845
|
+
* - `FilterMode.Quick`: Enables the quick filter.
|
|
846
|
+
* - `FilterMode.Advanced`: Enables the advanced filter.
|
|
847
|
+
* - `FilterMode.AdvancedOnly`: Enables only the advanced filter.
|
|
848
|
+
*
|
|
849
|
+
* When the filter is enabled, the component will emit the `searchTermChange`/`advancedFilterChange` event whenever the filter changes.
|
|
850
|
+
* If not set, no filter will be displayed.
|
|
851
|
+
*/
|
|
852
|
+
filterMode?: FilterMode;
|
|
853
|
+
/**
|
|
854
|
+
* Action definitions for the single row actions.
|
|
855
|
+
*/
|
|
856
|
+
singleRowActions: ActionDefinition[] | null;
|
|
857
|
+
/**
|
|
858
|
+
* Controls whether the datagrid selection should be preserved on filtering.
|
|
859
|
+
*/
|
|
860
|
+
preserveExistingSelectionOnFilter: boolean;
|
|
861
|
+
/**
|
|
862
|
+
* Controls whether the datagrid uses virtual scrolling to render data.
|
|
863
|
+
* Virtual scrolling improves performance with large datasets by only rendering
|
|
864
|
+
* rows that are currently visible in the viewport.
|
|
865
|
+
*
|
|
866
|
+
* @remarks
|
|
867
|
+
* Virtual scrolling has the following limitations:
|
|
868
|
+
* - Requires fixed row height for accurate scroll position calculations
|
|
869
|
+
* - Cell text is always truncated to maintain consistent row heights
|
|
870
|
+
* - Expandable rows are not supported due to height constraints
|
|
871
|
+
* - Only works with server-driven data mode
|
|
872
|
+
*
|
|
873
|
+
* @default false
|
|
874
|
+
*/
|
|
875
|
+
virtualScrolling: boolean;
|
|
876
|
+
/**
|
|
877
|
+
* Controls whether the "unsort" step is removed from the column sort cycle for
|
|
878
|
+
* every column in the grid.
|
|
879
|
+
* - `true` (default): sorting toggles ASC ↔ DESC only; a sorted column cannot
|
|
880
|
+
* be returned to the unsorted state by clicking its header.
|
|
881
|
+
* - `false`: sorting cycles ASC → DESC → unsorted (Clarity's default behavior).
|
|
882
|
+
*
|
|
883
|
+
* A column may override this grid-level default via
|
|
884
|
+
* {@link ColumnDefinition.disableUnsort}.
|
|
885
|
+
*
|
|
886
|
+
* @default true
|
|
887
|
+
*/
|
|
888
|
+
disableUnsort: boolean;
|
|
889
|
+
/**
|
|
890
|
+
* Input for providing data when virtual scrolling is enabled.
|
|
891
|
+
* <code>gridItems</code> should not be used in this case.
|
|
892
|
+
*/
|
|
893
|
+
dataRange: HermesDatagridVirtualScrollRangeInterface<T>;
|
|
894
|
+
/**
|
|
895
|
+
* Data source for the Datagrid, represented as an array of row objects.
|
|
896
|
+
*
|
|
897
|
+
* Each object in this array corresponds to a row in the Datagrid, where
|
|
898
|
+
* individual fields map to columns based on each column's `field` property
|
|
899
|
+
* as defined in {@link ColumnDefinition}.
|
|
900
|
+
*/
|
|
901
|
+
gridItems: T[];
|
|
902
|
+
/**
|
|
903
|
+
* Emits the updated page size {@link pageSize} to the parent component when changed.
|
|
904
|
+
*/
|
|
905
|
+
pageSizeChange: EventEmitter<number>;
|
|
906
|
+
/**
|
|
907
|
+
* Emits the updated gridItems to the parent component when changed.
|
|
908
|
+
*/
|
|
909
|
+
gridItemsChange: EventEmitter<T[]>;
|
|
910
|
+
/**
|
|
911
|
+
* Emits when advanced filter criteria changes.
|
|
912
|
+
*/
|
|
913
|
+
advancedFilterChange: EventEmitter<PropertyFilter[]>;
|
|
914
|
+
/**
|
|
915
|
+
* Emits the updated column definitions {@link columns} to the parent component when changed.
|
|
916
|
+
*/
|
|
917
|
+
columnDefsChange: EventEmitter<ColumnDefinition<T>[]>;
|
|
918
|
+
/**
|
|
919
|
+
* Emits the updated selected items {@link selectedItems} when changed.
|
|
920
|
+
*/
|
|
921
|
+
selectedItemsChange: EventEmitter<T[]>;
|
|
922
|
+
/**
|
|
923
|
+
* Event emitter to tell the hosting view that user has requested to export list data
|
|
924
|
+
*/
|
|
925
|
+
exportDataEvent: EventEmitter<ExportStatus>;
|
|
926
|
+
/**
|
|
927
|
+
* Event emitter to tell hosting view that search term, used for filtering has changed.
|
|
928
|
+
*/
|
|
929
|
+
searchTermChange: EventEmitter<string>;
|
|
930
|
+
/**
|
|
931
|
+
* Event emitter to tell hosting view that size of column has changed.
|
|
932
|
+
*/
|
|
933
|
+
columnResize: EventEmitter<ColumnResize>;
|
|
934
|
+
/**
|
|
935
|
+
* Event emitter to tell hosting view that sort order of column has changed.
|
|
936
|
+
*/
|
|
937
|
+
columnSortOrderChange: EventEmitter<ColumnSortOrder>;
|
|
938
|
+
/**
|
|
939
|
+
* Event emitter to tell hosting view that hidden state of column has changed.
|
|
940
|
+
*/
|
|
941
|
+
columnHiddenStateChange: EventEmitter<ColumnHiddenState>;
|
|
942
|
+
/**
|
|
943
|
+
* Event emitter to tell hosting view that column filtering has changed.
|
|
944
|
+
*/
|
|
945
|
+
columnFilterChange: EventEmitter<ColumnFilterChange>;
|
|
946
|
+
/**
|
|
947
|
+
* Event emitter emitted when the data needs to be refreshed,
|
|
948
|
+
* based on user action or external ones.
|
|
949
|
+
*/
|
|
950
|
+
refreshGridData: EventEmitter<HermesDatagridStateInterface>;
|
|
951
|
+
/**
|
|
952
|
+
* Event emitter emits when data in the grid with virtual scrolling needs to be refreshed.
|
|
953
|
+
*/
|
|
954
|
+
refreshVirtualGridData: EventEmitter<HermesDatagridStateInterface>;
|
|
955
|
+
/**
|
|
956
|
+
* Event emitter triggered when a single-row action or actionbar action is clicked.
|
|
957
|
+
* The emitted event contains information about the action that was clicked. {@link ActionClickEvent}
|
|
958
|
+
*/
|
|
959
|
+
actionClick: EventEmitter<ActionClickEvent<any>>;
|
|
960
|
+
/**
|
|
961
|
+
* Event emitter triggered when the single-row action menu is opened.
|
|
962
|
+
* The emitted event contains information about the open state and the actions associated with the menu. {@link SingleRowActionOpen}
|
|
963
|
+
*/
|
|
964
|
+
rowActionMenuOpenChange: EventEmitter<SingleRowActionOpen<any>>;
|
|
965
|
+
/**
|
|
966
|
+
* Event emitter triggered when a right-click event is performed on a grid row.
|
|
967
|
+
*/
|
|
968
|
+
openContextMenu: EventEmitter<ContextMenuEvent>;
|
|
969
|
+
/**
|
|
970
|
+
* Event emitter to tell hosting view that column order has changed.
|
|
971
|
+
*/
|
|
972
|
+
columnOrderChange: EventEmitter<ColumnOrderChanged>;
|
|
973
|
+
protected applyFlexLayout: boolean;
|
|
974
|
+
protected zoomLevel: ZoomLevel;
|
|
975
|
+
protected gridLayoutModel: GridLayoutModel;
|
|
976
|
+
protected gridFooterModel: GridFooterModel;
|
|
977
|
+
protected readonly defaultUnsetValue: string;
|
|
978
|
+
protected readonly defaultUnsortedOrder: HermesDatagridSortOrder;
|
|
979
|
+
protected readonly dgStrings: DatagridStrings;
|
|
980
|
+
protected enableSingleRowActions: boolean;
|
|
981
|
+
private hermesDatagrid;
|
|
982
|
+
constructor(datagridStrings: DatagridStrings, uid: string, cdr: ChangeDetectorRef, exportProviderService: ExportProviderService, groupService: DragAndDropGroupService, zoomLevelService: ZoomLevelService);
|
|
983
|
+
/**
|
|
984
|
+
* Input property for the grid layout configuration.
|
|
985
|
+
* Allows the consumer of the component to provide configuration values.
|
|
986
|
+
*
|
|
987
|
+
* @See GridLayoutModel
|
|
988
|
+
*/
|
|
989
|
+
get layoutModel(): GridLayoutModel;
|
|
990
|
+
set layoutModel(config: GridLayoutModel);
|
|
991
|
+
/**
|
|
992
|
+
* Input property for the footer configuration.
|
|
993
|
+
* Allows the consumer of the component to provide configuration values.
|
|
994
|
+
*
|
|
995
|
+
* @See GridFooterModel
|
|
996
|
+
*/
|
|
997
|
+
get footerModel(): GridFooterModel;
|
|
998
|
+
set footerModel(config: GridFooterModel);
|
|
999
|
+
/**
|
|
1000
|
+
* Array of column definitions that configure the appearance and behavior of each column in the Datagrid.
|
|
1001
|
+
*
|
|
1002
|
+
* Each object in this array represents a column {@link ColumnDefinition}.
|
|
1003
|
+
* The required ColumnDefinition properties are:
|
|
1004
|
+
* - `displayName`: The text for the column header.
|
|
1005
|
+
* - `field`: The name of the property in the data source to be shown in the column.
|
|
1006
|
+
*/
|
|
1007
|
+
get columns(): ColumnDefinition<T>[];
|
|
1008
|
+
set columns(columns: ColumnDefinition<T>[]);
|
|
1009
|
+
/**
|
|
1010
|
+
* Defines the grid selection type.
|
|
1011
|
+
* Accepts a value from `SelectionType` enum {@link SelectionType}, which specifies the row selection behavior:
|
|
1012
|
+
* - `SelectionType.NONE`: No rows are selectable.
|
|
1013
|
+
* - `SelectionType.SINGLE_SELECT` (default): Only one row can be selected at a time.
|
|
1014
|
+
* - `SelectionType.MULTI_SELECT`: Multiple rows can be selected.
|
|
1015
|
+
*
|
|
1016
|
+
* Defaults to `SelectionType.SINGLE_SELECT`.
|
|
1017
|
+
*/
|
|
1018
|
+
get selectionType(): SelectionType;
|
|
1019
|
+
set selectionType(type: SelectionType | string);
|
|
1020
|
+
/**
|
|
1021
|
+
* Array of grid items {@link gridItems} which to be selected.
|
|
1022
|
+
*/
|
|
1023
|
+
get selectedItems(): T[];
|
|
1024
|
+
set selectedItems(items: T[]);
|
|
1025
|
+
/**
|
|
1026
|
+
* Enables or disables selection/deselection of rows when a row is clicked.
|
|
1027
|
+
* If `SelectionType` is set to `NONE`, row selection is automatically disabled, regardless of this setting.
|
|
1028
|
+
* Defaults to `true`.
|
|
1029
|
+
*/
|
|
1030
|
+
get rowSelectionMode(): boolean;
|
|
1031
|
+
set rowSelectionMode(value: boolean);
|
|
1032
|
+
/**
|
|
1033
|
+
* Action definitions for the action bar.
|
|
1034
|
+
*/
|
|
1035
|
+
get actionBarActions(): ActionDefinition[];
|
|
1036
|
+
set actionBarActions(actions: ActionDefinition[] | null);
|
|
1037
|
+
/**
|
|
1038
|
+
* Sets the number of items displayed per page in the datagrid.
|
|
1039
|
+
* By default, no page size is set.
|
|
1040
|
+
*/
|
|
1041
|
+
get pageSize(): number;
|
|
1042
|
+
set pageSize(value: number);
|
|
1043
|
+
set datagridLabels(overriddenStrings: Partial<DatagridStrings>);
|
|
1044
|
+
/**
|
|
1045
|
+
* Defines whether the content in the cells of the datagrid should be wrapped
|
|
1046
|
+
* {@see DatagridContentNoWrapDirective}.
|
|
1047
|
+
*/
|
|
1048
|
+
get wrapText(): boolean;
|
|
1049
|
+
set wrapText(value: boolean);
|
|
1050
|
+
protected get rowsDisabled(): boolean;
|
|
1051
|
+
protected get enableToolBar(): boolean;
|
|
1052
|
+
protected get enableExportButton(): boolean;
|
|
1053
|
+
protected get selectedItemsCount(): number;
|
|
1054
|
+
protected get showDeselectAll(): boolean;
|
|
1055
|
+
protected get deselectAllDisabled(): boolean;
|
|
1056
|
+
protected get filteredItemsCount(): number;
|
|
1057
|
+
ngOnInit(): void;
|
|
1058
|
+
ngAfterViewInit(): void;
|
|
1059
|
+
ngOnDestroy(): void;
|
|
1060
|
+
resize(): void;
|
|
1061
|
+
onModelChange(): void;
|
|
1062
|
+
onContextMenu($event: MouseEvent, item: T): void;
|
|
1063
|
+
onColumnOrderChange(data: ColumnOrderChanged): void;
|
|
1064
|
+
/**
|
|
1065
|
+
* Virtual scroll event handler. Called when visible data range has changed
|
|
1066
|
+
*/
|
|
1067
|
+
renderedRangeChange($event: ListRange): void;
|
|
1068
|
+
/**
|
|
1069
|
+
* Scrolls to a specified index when virtual scrolling is enabled.
|
|
1070
|
+
*/
|
|
1071
|
+
scrollToIndex(index: number, behavior?: ScrollBehavior): void;
|
|
1072
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1073
|
+
/**
|
|
1074
|
+
* Wrapper around trackByFn intended for identity comparison only.
|
|
1075
|
+
* The index passed (0) is a dummy value and should not be relied upon.
|
|
1076
|
+
*/
|
|
1077
|
+
trackByGridItemFn: (item: T) => T;
|
|
1078
|
+
trackByColumnId(index: number, column: ColumnDefinition<T>): string;
|
|
1079
|
+
buildRowDetailContentId(index: number): string;
|
|
1080
|
+
onAdvancedFilterCriteriaChange(filterCriteria: PropertyFilter[]): void;
|
|
1081
|
+
/**
|
|
1082
|
+
* Handles datagrid selected items changes.
|
|
1083
|
+
* It is public because is use from directives to emit selection
|
|
1084
|
+
* change events (see DatagridPreserveSelection directive).
|
|
1085
|
+
*/
|
|
1086
|
+
onSelectedItemsChange(selected: T[]): void;
|
|
1087
|
+
/**
|
|
1088
|
+
* Return DataGrid footer label.
|
|
1089
|
+
* - Return "datagridLabels.footer" property, if defined.
|
|
1090
|
+
* - If there is one item -> 1 item
|
|
1091
|
+
* - If there is no paging -> {0} items
|
|
1092
|
+
* - Else -> {1} - {2} of {0} items
|
|
1093
|
+
*/
|
|
1094
|
+
getFooterMessage(totalItems: number, pageSize?: number, firstItem?: number, lastItem?: number): string;
|
|
1095
|
+
toggleAll(): void;
|
|
1096
|
+
protected getExpandDetailsLabel(item: T): string;
|
|
1097
|
+
protected getCollapseDetailsLabel(item: T): string;
|
|
1098
|
+
protected onColumnResize(columnSize: number, column: ColumnDefinition<T>): void;
|
|
1099
|
+
protected onSortOrderChange(sortOrder: HermesDatagridSortOrder, column: ColumnDefinition<T>): void;
|
|
1100
|
+
protected onDeselectAllClick(): void;
|
|
1101
|
+
protected onSelectAllInVirtualGrid(isSelect: boolean): void;
|
|
1102
|
+
protected onDragStart(row: T): void;
|
|
1103
|
+
protected onDragMove(): void;
|
|
1104
|
+
protected onFilterChange(filterValue: unknown, column: ColumnDefinition<T>): void;
|
|
1105
|
+
protected onColumnHiddenStateChange(value: ColumnHiddenState): void;
|
|
1106
|
+
protected refreshGrid(state: HermesDatagridStateInterface): void;
|
|
1107
|
+
protected onExportEvent(exportStatus: ExportStatus): void;
|
|
1108
|
+
protected onActionClick(action: ActionDefinition, context?: T | T[]): void;
|
|
1109
|
+
protected onRowActionOverflowOpen(open: boolean, actions: ActionDefinition[] | null, item: T): void;
|
|
1110
|
+
protected onAdvancedSearchTermChange(searchTerm: string): void;
|
|
1111
|
+
/**
|
|
1112
|
+
* Update "detailState" with the latest value
|
|
1113
|
+
* @param state
|
|
1114
|
+
*/
|
|
1115
|
+
protected onDetailStateChange(state: T): void;
|
|
1116
|
+
/**
|
|
1117
|
+
* Angular ngFor optimization:
|
|
1118
|
+
* By allowing client to specify a given function or property key lookup expression
|
|
1119
|
+
* the looping and binding over large datasets can now offer performance.
|
|
1120
|
+
* The default Angular differ offered is slower since it does a complete object comparison.
|
|
1121
|
+
*/
|
|
1122
|
+
protected trackByFn(index: number, gridItem: T): T;
|
|
1123
|
+
protected isItemSelected(item: T): boolean;
|
|
1124
|
+
protected dropGroup(group: string): CdkDropList[];
|
|
1125
|
+
private hasExpandableRows;
|
|
1126
|
+
private preselectDetail;
|
|
1127
|
+
private setDraggedItems;
|
|
1128
|
+
/**
|
|
1129
|
+
* Notifies clarity datagrid about data changes.
|
|
1130
|
+
* When <code>trackByFunction</code> or <code>trackByGridItemProperty</code>
|
|
1131
|
+
* is provided clarity datagrid is not able to pick up data changes in the
|
|
1132
|
+
* <code>rows</<code> collection and selection is messed up. Angular just
|
|
1133
|
+
* does not emit <code>QueryList<T>.changes</code> in this case.
|
|
1134
|
+
*/
|
|
1135
|
+
private notifyOnChanges;
|
|
1136
|
+
private initActionTypes;
|
|
1137
|
+
private initGridSelection;
|
|
1138
|
+
private updateSelectedItems;
|
|
1139
|
+
private initTotalItemsCount;
|
|
1140
|
+
private interpolateMessage;
|
|
1141
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridComponent<any>, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
1142
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatagridComponent<any>, "appfx-datagrid", never, { "loading": { "alias": "loading"; "required": false; }; "loadingMoreItems": { "alias": "loadingMoreItems"; "required": false; }; "preSelectFirstItem": { "alias": "preSelectFirstItem"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "showCustomPagination": { "alias": "showCustomPagination"; "required": false; }; "serverDrivenDatagrid": { "alias": "serverDrivenDatagrid"; "required": false; }; "listItemsCount": { "alias": "listItemsCount"; "required": false; }; "rowDetailContent": { "alias": "rowDetailContent"; "required": false; }; "rowsExpandedByDefault": { "alias": "rowsExpandedByDefault"; "required": false; }; "trackByFunction": { "alias": "trackByFunction"; "required": false; }; "trackByGridItemProperty": { "alias": "trackByGridItemProperty"; "required": false; }; "detailHeader": { "alias": "detailHeader"; "required": false; }; "detailBody": { "alias": "detailBody"; "required": false; }; "detailState": { "alias": "detailState"; "required": false; }; "isRowLocked": { "alias": "isRowLocked"; "required": false; }; "dragConfig": { "alias": "dragConfig"; "required": false; }; "filterableProperties": { "alias": "filterableProperties"; "required": false; }; "filterMode": { "alias": "filterMode"; "required": false; }; "singleRowActions": { "alias": "singleRowActions"; "required": false; }; "preserveExistingSelectionOnFilter": { "alias": "preserveExistingSelectionOnFilter"; "required": false; }; "virtualScrolling": { "alias": "virtualScrolling"; "required": false; }; "disableUnsort": { "alias": "disableUnsort"; "required": false; }; "dataRange": { "alias": "dataRange"; "required": false; }; "gridItems": { "alias": "gridItems"; "required": false; }; "layoutModel": { "alias": "layoutModel"; "required": false; }; "footerModel": { "alias": "footerModel"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "selectionType": { "alias": "selectionType"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "rowSelectionMode": { "alias": "rowSelectionMode"; "required": false; }; "actionBarActions": { "alias": "actionBarActions"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "datagridLabels": { "alias": "datagridLabels"; "required": false; }; }, { "detailStateChange": "detailStateChange"; "pageSizeChange": "pageSizeChange"; "gridItemsChange": "gridItemsChange"; "advancedFilterChange": "advancedFilterChange"; "columnDefsChange": "columnDefsChange"; "selectedItemsChange": "selectedItemsChange"; "exportDataEvent": "exportDataEvent"; "searchTermChange": "searchTermChange"; "columnResize": "columnResize"; "columnSortOrderChange": "columnSortOrderChange"; "columnHiddenStateChange": "columnHiddenStateChange"; "columnFilterChange": "columnFilterChange"; "refreshGridData": "refreshGridData"; "refreshVirtualGridData": "refreshVirtualGridData"; "actionClick": "actionClick"; "rowActionMenuOpenChange": "rowActionMenuOpenChange"; "openContextMenu": "openContextMenu"; "columnOrderChange": "columnOrderChange"; }, never, [".custom-placeholder-content", ".custom-footer-content", "*"], false, never>;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* Datagrid page directive which set the page which to be shown when the appfx datagrid is display.
|
|
1147
|
+
* Supports setting of arbitrary grid page as current page and emits the new page
|
|
1148
|
+
* number when the page is change.
|
|
1149
|
+
* Supports this functionality for server side and client side grids.
|
|
1150
|
+
*/
|
|
1151
|
+
declare class DatagridPageDirective implements AfterViewInit, OnDestroy {
|
|
1152
|
+
datagridPageChange: EventEmitter<number>;
|
|
1153
|
+
private component;
|
|
1154
|
+
private initCompleted;
|
|
1155
|
+
private initialPage;
|
|
1156
|
+
private subscription;
|
|
1157
|
+
constructor(datagrid: DatagridComponent<unknown>);
|
|
1158
|
+
set datagridPage(value: number);
|
|
1159
|
+
ngAfterViewInit(): void;
|
|
1160
|
+
ngOnDestroy(): void;
|
|
1161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridPageDirective, [{ host: true; }]>;
|
|
1162
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DatagridPageDirective, "[datagridPage]", never, { "datagridPage": { "alias": "datagridPage"; "required": false; }; }, { "datagridPageChange": "datagridPageChange"; }, never, never, false, never>;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
interface PersistDatagridSettingsService {
|
|
1166
|
+
getUserDataSync: (key: string) => any;
|
|
1167
|
+
setUserData: (key: string, data: any) => void;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
declare const appfxDatagridPersistSettingsToken: InjectionToken<PersistDatagridSettingsService>;
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* Sets the grid up with page size, column visibility and width from user-defined storage that is provided
|
|
1174
|
+
* Reacts to user changes in the Clarity datagrid to notify the injected storage to persist the grid properties
|
|
1175
|
+
* So reloading the application in automatically restore these preferences as a convenience
|
|
1176
|
+
*/
|
|
1177
|
+
declare class DatagridPersistSettingsDirective implements OnDestroy, AfterViewInit {
|
|
1178
|
+
private grid;
|
|
1179
|
+
private persistDatagridSettingsService;
|
|
1180
|
+
private subs;
|
|
1181
|
+
private datagridKeyChange$;
|
|
1182
|
+
private saveColumnsStateTimerId;
|
|
1183
|
+
private datagridKey;
|
|
1184
|
+
private storePageSize;
|
|
1185
|
+
private storeSortOrder;
|
|
1186
|
+
constructor(grid: DatagridComponent<unknown>, persistDatagridSettingsService: PersistDatagridSettingsService);
|
|
1187
|
+
/**
|
|
1188
|
+
* Directive takes unique identifier input to describe the grid
|
|
1189
|
+
*/
|
|
1190
|
+
set appfxPersistDatagridSettings(key: string);
|
|
1191
|
+
/**
|
|
1192
|
+
* Flag indicates whether to be persisted the grid page size.
|
|
1193
|
+
*/
|
|
1194
|
+
set persistPageSize(value: boolean);
|
|
1195
|
+
/**
|
|
1196
|
+
* Flag indicates whether to be persisted the grid page size.
|
|
1197
|
+
*/
|
|
1198
|
+
set persistSortOrder(value: boolean);
|
|
1199
|
+
ngAfterViewInit(): void;
|
|
1200
|
+
ngOnDestroy(): void;
|
|
1201
|
+
private saveColumnStates;
|
|
1202
|
+
private saveColumnsData;
|
|
1203
|
+
private saveColumnSortOrder;
|
|
1204
|
+
private savePageSize;
|
|
1205
|
+
private createPersistedColumnState;
|
|
1206
|
+
/**
|
|
1207
|
+
* Preserve data in the persistence storage.
|
|
1208
|
+
* @param data the data that is going to be persisted.
|
|
1209
|
+
*/
|
|
1210
|
+
private setPersistedData;
|
|
1211
|
+
/**
|
|
1212
|
+
* Retrieves the data from the persistence storage.
|
|
1213
|
+
* @returns a promise which when resolved will contain the ListView columns data.
|
|
1214
|
+
*/
|
|
1215
|
+
private getPersistedData;
|
|
1216
|
+
private getListViewColumnDefKey;
|
|
1217
|
+
private initialiseDatagridWithPersistedSettings;
|
|
1218
|
+
/**
|
|
1219
|
+
* Set initial page size read from the local storage on the datagrid.
|
|
1220
|
+
*/
|
|
1221
|
+
private updateDatagridPageSize;
|
|
1222
|
+
/**
|
|
1223
|
+
* Set width of datagrid columns, its visible and sort states.
|
|
1224
|
+
*/
|
|
1225
|
+
private updateDatagridColumnDefinitions;
|
|
1226
|
+
private applyPersistedColumnSettings;
|
|
1227
|
+
/**
|
|
1228
|
+
* Set column default sort order read from the local storage on the datagrid
|
|
1229
|
+
*/
|
|
1230
|
+
private applySorting;
|
|
1231
|
+
private getColumnUid;
|
|
1232
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridPersistSettingsDirective, [{ host: true; }, { optional: true; }]>;
|
|
1233
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DatagridPersistSettingsDirective, "appfx-datagrid[appfxPersistDatagridSettings]", never, { "appfxPersistDatagridSettings": { "alias": "appfxPersistDatagridSettings"; "required": false; }; "persistPageSize": { "alias": "persistPageSize"; "required": false; }; "persistSortOrder": { "alias": "persistSortOrder"; "required": false; }; }, {}, never, never, false, never>;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
interface DatagridUserPreferencesService {
|
|
1237
|
+
getWrapGridCellTextPreference$: () => Observable<boolean>;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
declare const appfxDatagridUserPreferencesToken: InjectionToken<DatagridUserPreferencesService>;
|
|
1241
|
+
|
|
1242
|
+
declare class DatagridContentNoWrapDirective implements OnDestroy {
|
|
1243
|
+
private grid;
|
|
1244
|
+
private userPreferencesService;
|
|
1245
|
+
private subs;
|
|
1246
|
+
/**
|
|
1247
|
+
* Constructor, if DatagridUserPreferencesService is provided get wrap grid cell
|
|
1248
|
+
* user preference.
|
|
1249
|
+
*
|
|
1250
|
+
* @param grid
|
|
1251
|
+
* @param userPreferencesService - optional, because external projects which use appfx-datagrid may decide not
|
|
1252
|
+
* to use this directive and allow their customers to select whether to wrap
|
|
1253
|
+
* or not text in columns, in this case, they don't need to provide this service
|
|
1254
|
+
* and the grid will have default behavior that will not wrap the text in list columns.
|
|
1255
|
+
*/
|
|
1256
|
+
constructor(grid: DatagridComponent<unknown>, userPreferencesService: DatagridUserPreferencesService);
|
|
1257
|
+
ngOnDestroy(): void;
|
|
1258
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridContentNoWrapDirective, [{ host: true; }, { optional: true; }]>;
|
|
1259
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DatagridContentNoWrapDirective, "appfx-datagrid", never, {}, {}, never, never, false, never>;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
declare class FieldComparator<T> implements HermesDatagridComparatorInterface<T> {
|
|
1263
|
+
field: string;
|
|
1264
|
+
constructor(compareField: string);
|
|
1265
|
+
compare(a: any, b: any): number;
|
|
1266
|
+
}
|
|
1267
|
+
declare class ListComparator<T> implements HermesDatagridComparatorInterface<T> {
|
|
1268
|
+
field: string;
|
|
1269
|
+
constructor(compareField: string);
|
|
1270
|
+
compare(a: any, b: any): number;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
declare class SimpleNumericComparator<T> implements HermesDatagridComparatorInterface<T> {
|
|
1274
|
+
private readonly fieldName;
|
|
1275
|
+
constructor(fieldName: string);
|
|
1276
|
+
compare(first: T, second: T): number;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
declare class DatagridFilterComponent implements HermesDatagridFilterInterface<any>, OnInit, AfterViewInit {
|
|
1280
|
+
dgStrings: DatagridStrings;
|
|
1281
|
+
private popoverService;
|
|
1282
|
+
filterValue: any;
|
|
1283
|
+
stringFilterType?: HermesDatagridStringFilterInterface<any>;
|
|
1284
|
+
fieldName?: string;
|
|
1285
|
+
filterValueChange: EventEmitter<any>;
|
|
1286
|
+
input: ElementRef;
|
|
1287
|
+
value: string;
|
|
1288
|
+
changes: Subject<any>;
|
|
1289
|
+
constructor(dgStrings: DatagridStrings, popoverService: HermesPopoverService);
|
|
1290
|
+
ngOnInit(): void;
|
|
1291
|
+
ngAfterViewInit(): void;
|
|
1292
|
+
onKey(event: any): void;
|
|
1293
|
+
isActive(): boolean;
|
|
1294
|
+
accepts(item: any): boolean;
|
|
1295
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridFilterComponent, never>;
|
|
1296
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatagridFilterComponent, "appfx-datagrid-filter", never, { "filterValue": { "alias": "filterValue"; "required": false; }; "stringFilterType": { "alias": "stringFilterType"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; }, { "filterValueChange": "filterValueChange"; }, never, never, false, never>;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
declare class DatagridCellContainerComponent implements OnInit, OnDestroy, OnChanges {
|
|
1300
|
+
container: ViewContainerRef;
|
|
1301
|
+
column: ColumnDefinition<any>;
|
|
1302
|
+
item: any;
|
|
1303
|
+
private componentRef;
|
|
1304
|
+
private instance;
|
|
1305
|
+
ngOnChanges(): void;
|
|
1306
|
+
ngOnInit(): void;
|
|
1307
|
+
ngOnDestroy(): void;
|
|
1308
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridCellContainerComponent, never>;
|
|
1309
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatagridCellContainerComponent, "appfx-dg-cell-container", never, { "column": { "alias": "column"; "required": false; }; "item": { "alias": "item"; "required": false; }; }, {}, never, never, false, never>;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
declare class DatagridColumnToggleComponent implements OnDestroy {
|
|
1313
|
+
dgStrings: DatagridStrings;
|
|
1314
|
+
layoutClass: string;
|
|
1315
|
+
closeColumnButtonElement: ElementRef;
|
|
1316
|
+
columns: ColumnDefinition<any>[];
|
|
1317
|
+
columnsChange: EventEmitter<ColumnDefinition<any>[]>;
|
|
1318
|
+
columnHiddenStateChange: EventEmitter<ColumnHiddenState>;
|
|
1319
|
+
positions: ConnectionPositionPair[];
|
|
1320
|
+
openState: boolean;
|
|
1321
|
+
viewId: string | undefined;
|
|
1322
|
+
overlay: CdkConnectedOverlay;
|
|
1323
|
+
constructor(dgStrings: DatagridStrings);
|
|
1324
|
+
get hasOnlyOneVisibleColumn(): boolean;
|
|
1325
|
+
ngOnDestroy(): void;
|
|
1326
|
+
onAttach(overlay: CdkConnectedOverlay): void;
|
|
1327
|
+
onDetach(): void;
|
|
1328
|
+
showColumn(colUid: string): void;
|
|
1329
|
+
hideColumn(colUid: string): void;
|
|
1330
|
+
toggleColumnState(columnToToggle: ColumnDefinition<any>, event?: Event): void;
|
|
1331
|
+
onSelectAll(): void;
|
|
1332
|
+
allColumnsSelected(): boolean;
|
|
1333
|
+
hideableColumns(): ColumnDefinition<any>[];
|
|
1334
|
+
private showHideColumn;
|
|
1335
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridColumnToggleComponent, never>;
|
|
1336
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatagridColumnToggleComponent, "appfx-dg-column-toggle", never, { "columns": { "alias": "columns"; "required": false; }; }, { "columnsChange": "columnsChange"; "columnHiddenStateChange": "columnHiddenStateChange"; }, never, never, false, never>;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* A component that acts as a container for custom column filters.
|
|
1341
|
+
* It creates an instance of the specified filter component and manages its lifecycle.
|
|
1342
|
+
*/
|
|
1343
|
+
declare class DatagridFilterContainerComponent implements AfterViewInit, OnDestroy {
|
|
1344
|
+
private filterContainer;
|
|
1345
|
+
container: ViewContainerRef;
|
|
1346
|
+
/**
|
|
1347
|
+
* The filter component to be created.
|
|
1348
|
+
*/
|
|
1349
|
+
filterType: Type<any>;
|
|
1350
|
+
/**
|
|
1351
|
+
* The initial value for the filter.
|
|
1352
|
+
*/
|
|
1353
|
+
filterValue: any;
|
|
1354
|
+
/**
|
|
1355
|
+
* Event emitter to notify the hosting view about changes in the filter value.
|
|
1356
|
+
*/
|
|
1357
|
+
filterValueChange: EventEmitter<any>;
|
|
1358
|
+
private componentRef;
|
|
1359
|
+
private filter;
|
|
1360
|
+
private filterChangeSub;
|
|
1361
|
+
constructor(filterContainer: HermesDatagridFilter);
|
|
1362
|
+
ngAfterViewInit(): void;
|
|
1363
|
+
ngOnDestroy(): void;
|
|
1364
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridFilterContainerComponent, never>;
|
|
1365
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatagridFilterContainerComponent, "appfx-dg-filter-container", never, { "filterType": { "alias": "filterType"; "required": false; }; "filterValue": { "alias": "filterValue"; "required": false; }; }, { "filterValueChange": "filterValueChange"; }, never, never, false, never>;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
declare class ExportDatagridComponent {
|
|
1369
|
+
dgStrings: DatagridStrings;
|
|
1370
|
+
/**
|
|
1371
|
+
* All grid items count
|
|
1372
|
+
*/
|
|
1373
|
+
allItemsCount: any;
|
|
1374
|
+
/**
|
|
1375
|
+
* All filtered items count
|
|
1376
|
+
*/
|
|
1377
|
+
filteredItemsCount: any;
|
|
1378
|
+
/**
|
|
1379
|
+
* Selected items in the datagrid
|
|
1380
|
+
*/
|
|
1381
|
+
selectedItemsCount: any;
|
|
1382
|
+
/**
|
|
1383
|
+
* Event emitter to tell the hosting view that user has requested to export list data
|
|
1384
|
+
*/
|
|
1385
|
+
exportEventEmitter: EventEmitter<ExportStatus>;
|
|
1386
|
+
allRowsCount: string;
|
|
1387
|
+
selectedRowsCount: string;
|
|
1388
|
+
matchedFilterRowsCount: string;
|
|
1389
|
+
exportType: any;
|
|
1390
|
+
exportStatus: ExportStatus;
|
|
1391
|
+
constructor(dgStrings: DatagridStrings);
|
|
1392
|
+
/**
|
|
1393
|
+
* Export event is emitted on Export button click and no dropdown options are available
|
|
1394
|
+
* All Items are Exported.
|
|
1395
|
+
*/
|
|
1396
|
+
exportAllIfOnlyOption(): void;
|
|
1397
|
+
/**
|
|
1398
|
+
* Handler function called when one of the export options is clicked
|
|
1399
|
+
*/
|
|
1400
|
+
onExportClick(exportType: ExportType): void;
|
|
1401
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExportDatagridComponent, never>;
|
|
1402
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExportDatagridComponent, "appfx-dg-export", never, { "allItemsCount": { "alias": "allItemsCount"; "required": false; }; "filteredItemsCount": { "alias": "filteredItemsCount"; "required": false; }; "selectedItemsCount": { "alias": "selectedItemsCount"; "required": false; }; }, { "exportEventEmitter": "exportEventEmitter"; }, never, never, false, never>;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* Used to determine whether the datagrid row is locked (disabled) or not, by
|
|
1407
|
+
* returning boolean result. If the disabled state is provided and is true the row
|
|
1408
|
+
* is consider as not selectable. If isLocked function is provided the return
|
|
1409
|
+
* boolean result from it is used to be determine whether the row is selectable.
|
|
1410
|
+
* If isLocked function is not provided the pipe returns null, row is consider
|
|
1411
|
+
* selectable.
|
|
1412
|
+
*
|
|
1413
|
+
* Usage:
|
|
1414
|
+
* rowItem | isRowSelectable: isLockedFunction : disabled
|
|
1415
|
+
*/
|
|
1416
|
+
declare class IsRowSelectablePipe implements PipeTransform {
|
|
1417
|
+
transform(rowItem: any, isLocked?: (rowItem: any) => boolean, disabled?: boolean): boolean;
|
|
1418
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsRowSelectablePipe, never>;
|
|
1419
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsRowSelectablePipe, "isRowSelectable", false>;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* Provides subjects for communication between appfxDgColumnsOrder and appfxColumnOrder
|
|
1424
|
+
* directives.
|
|
1425
|
+
*/
|
|
1426
|
+
declare class DatagridColumnsOrderService {
|
|
1427
|
+
/**
|
|
1428
|
+
* Emits the column which should be marked as grabbed. If the column is null all columns are
|
|
1429
|
+
* marked as not grabbed
|
|
1430
|
+
*/
|
|
1431
|
+
readonly grabbedColumn: BehaviorSubject<ColumnDefinition<any>>;
|
|
1432
|
+
/**
|
|
1433
|
+
* Emits when the column should be moved as result of left or right arrow key press.
|
|
1434
|
+
*/
|
|
1435
|
+
readonly moveVisibleColumn: Subject<{
|
|
1436
|
+
visibleColumnIndex: number;
|
|
1437
|
+
moveLeft: boolean;
|
|
1438
|
+
}>;
|
|
1439
|
+
/**
|
|
1440
|
+
* Event emitter to tell the dragged column to set focus
|
|
1441
|
+
*/
|
|
1442
|
+
readonly focusGrabbedColumn: Subject<void>;
|
|
1443
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridColumnsOrderService, never>;
|
|
1444
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DatagridColumnsOrderService>;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
declare class ColumnOrderDirective implements OnDestroy, OnInit {
|
|
1448
|
+
private readonly datagrid;
|
|
1449
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
1450
|
+
private readonly columnOrderingService;
|
|
1451
|
+
private readonly changeDetectorRef;
|
|
1452
|
+
private readonly cdkDrag;
|
|
1453
|
+
isGrabbed: boolean;
|
|
1454
|
+
columnData: ColumnDefinition<any>;
|
|
1455
|
+
columnIndex: number;
|
|
1456
|
+
private subs;
|
|
1457
|
+
constructor(datagrid: HermesDatagrid, elementRef: ElementRef<HTMLElement>, columnOrderingService: DatagridColumnsOrderService, changeDetectorRef: ChangeDetectorRef, cdkDrag: CdkDrag);
|
|
1458
|
+
keydown(event: KeyboardEvent): void;
|
|
1459
|
+
ngOnInit(): void;
|
|
1460
|
+
ngOnDestroy(): void;
|
|
1461
|
+
private moveColumn;
|
|
1462
|
+
private updateGrabbedState;
|
|
1463
|
+
private setActiveCell;
|
|
1464
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnOrderDirective, never>;
|
|
1465
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnOrderDirective, "hermes-dg-column[appfxColumnOrder]", never, { "columnData": { "alias": "columnData"; "required": false; }; "columnIndex": { "alias": "columnIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
declare class DatagridColumnsOrderDirective implements OnInit, OnDestroy, OnChanges {
|
|
1469
|
+
private readonly elementRef;
|
|
1470
|
+
private readonly cdkDropList;
|
|
1471
|
+
private readonly columnOrderingService;
|
|
1472
|
+
dgColumnsOrderColumns: ColumnDefinition<any>[];
|
|
1473
|
+
dgColumnsVirtualScrolling: boolean;
|
|
1474
|
+
dgColumnsOrderChange: EventEmitter<ColumnOrderChanged>;
|
|
1475
|
+
private subs;
|
|
1476
|
+
constructor(elementRef: ElementRef<HTMLElement>, cdkDropList: CdkDropList, columnOrderingService: DatagridColumnsOrderService);
|
|
1477
|
+
ngOnInit(): void;
|
|
1478
|
+
setDgColumnsContainer(): void;
|
|
1479
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1480
|
+
ngOnDestroy(): void;
|
|
1481
|
+
/**
|
|
1482
|
+
* A pinned column is rendered in the datagrid's sticky container while the others are rendered in
|
|
1483
|
+
* the scrollable one. Changing the relative order of the two groups cannot be re-rendered: the
|
|
1484
|
+
* column elements are moved against a sibling that now lives in the other container, and the DOM
|
|
1485
|
+
* insert throws. Until the datagrid can render that, a reorder that would cross a pinned column is
|
|
1486
|
+
* refused rather than applied.
|
|
1487
|
+
*/
|
|
1488
|
+
private isReorderAllowed;
|
|
1489
|
+
private reorderColumn;
|
|
1490
|
+
private getColumnIndices;
|
|
1491
|
+
private findColumnIndices;
|
|
1492
|
+
private createColumnIndices;
|
|
1493
|
+
private findColumnIndex;
|
|
1494
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridColumnsOrderDirective, never>;
|
|
1495
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DatagridColumnsOrderDirective, "hermes-datagrid[appfxDgColumnsOrder]", never, { "dgColumnsOrderColumns": { "alias": "dgColumnsOrderColumns"; "required": false; }; "dgColumnsVirtualScrolling": { "alias": "dgColumnsVirtualScrolling"; "required": false; }; }, { "dgColumnsOrderChange": "dgColumnsOrderChange"; }, never, never, false, never>;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
declare class DatagridColumnsOrderModule {
|
|
1499
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridColumnsOrderModule, never>;
|
|
1500
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DatagridColumnsOrderModule, [typeof ColumnOrderDirective, typeof DatagridColumnsOrderDirective], [typeof i3.HermesDatagridModule, typeof i4.CommonModule, typeof i5.DragDropModule], [typeof ColumnOrderDirective, typeof DatagridColumnsOrderDirective]>;
|
|
1501
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DatagridColumnsOrderModule>;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
declare class AppfxDatagridModule {
|
|
1505
|
+
constructor();
|
|
1506
|
+
static forRoot(errorNotifiableService: Type<ErrorNotifiable>): ModuleWithProviders<AppfxDatagridModule>;
|
|
1507
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppfxDatagridModule, never>;
|
|
1508
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppfxDatagridModule, [typeof DatagridComponent, typeof DatagridActionBarComponent, typeof DatagridFilterComponent, typeof DatagridPageDirective, typeof DatagridPersistSettingsDirective, typeof DatagridPreserveSelectionDirective, typeof DatagridContentNoWrapDirective, typeof DatagridCellContainerComponent, typeof DatagridColumnToggleComponent, typeof DatagridFilterContainerComponent, typeof ExportDatagridComponent, typeof IsRowSelectablePipe], [typeof i13.AppfxA11yModule, typeof i14.AppfxDatagridFiltersModule, typeof i15.A11yModule, typeof i5.DragDropModule, typeof i17.OverlayModule, typeof i18.HermesCheckboxModule, typeof i3.HermesDatagridModule, typeof i20.HermesDropdownModule, typeof i21.HermesIcon, typeof i18.HermesInputModule, typeof i22.HermesLoadingModule, typeof i4.CommonModule, typeof DatagridColumnsOrderModule, typeof i25.FormsModule], [typeof DatagridComponent, typeof DatagridActionBarComponent, typeof DatagridFilterComponent, typeof DatagridPageDirective, typeof DatagridPersistSettingsDirective, typeof DatagridPreserveSelectionDirective, typeof DatagridContentNoWrapDirective]>;
|
|
1509
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AppfxDatagridModule>;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
/**
|
|
1513
|
+
* Feature states populated on application level during app initialization.
|
|
1514
|
+
* This is needed, because datagrid module does not have direct access to feature-state-service.
|
|
1515
|
+
*/
|
|
1516
|
+
declare class DatagridFeatureStates {
|
|
1517
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridFeatureStates, never>;
|
|
1518
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DatagridFeatureStates>;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
declare class CaseInsensitiveContainsStringFilter implements HermesDatagridStringFilterInterface<any> {
|
|
1522
|
+
private fieldName;
|
|
1523
|
+
constructor(fieldName: string);
|
|
1524
|
+
accepts(item: any, search: string): boolean;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
export { ActionBarLayout, AppfxDatagridModule, CaseInsensitiveContainsStringFilter, CsvHelperService, DatagridActionBarComponent, DatagridComponent, DatagridContentNoWrapDirective, DatagridFeatureStates, DatagridFilterComponent, DatagridPageDirective, DatagridPersistSettingsDirective, DatagridPreserveSelectionDirective, DatagridStrings, ExportProviderService, ExportType, FieldComparator, ListComparator, SimpleNumericComparator, appfxDatagridErrorNotifiableToken, appfxDatagridPersistSettingsToken, appfxDatagridUserPreferencesToken, appfxPreselectableComponentToken };
|
|
1528
|
+
export type { ActionClickEvent, ActionDefinition, ClientSideExportConfig, ColumnDefinition, ColumnFilter, ColumnFilterChange, ColumnHiddenState, ColumnOrderChanged, ColumnRenderer, ColumnResize, ColumnSortOrder, ContextMenuEvent, DatagridDragConfig, DatagridItemSet, DatagridUserPreferencesService, ErrorNotifiable, ExportColumnDefinition, ExportStatus, ExportValueCallbackParams, GridFooterModel, GridLayoutModel, PersistDatagridSettingsService, PreselectableComponent, SingleRowActionOpen };
|
|
1529
|
+
//# sourceMappingURL=hermes-ui-angular-addons-datagrid.d.ts.map
|