ng-prime-tools 1.0.72 → 1.0.73
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 +381 -258
- package/fesm2022/ng-prime-tools.mjs +349 -330
- package/fesm2022/ng-prime-tools.mjs.map +1 -1
- package/package.json +15 -9
- package/types/ng-prime-tools.d.ts +1992 -0
- package/types/ng-prime-tools.d.ts.map +1 -0
- package/esm2022/lib/enums/align.enum.mjs +0 -8
- package/esm2022/lib/enums/badge-type.enum.mjs +0 -21
- package/esm2022/lib/enums/button-color.enum.mjs +0 -10
- package/esm2022/lib/enums/form-input-type.enum.mjs +0 -16
- package/esm2022/lib/enums/index.mjs +0 -2
- package/esm2022/lib/enums/input-validation.enum.mjs +0 -9
- package/esm2022/lib/enums/public-api.mjs +0 -10
- package/esm2022/lib/enums/search-criteria-type.enum.mjs +0 -10
- package/esm2022/lib/enums/severity.enum.mjs +0 -8
- package/esm2022/lib/enums/table-type.enum.mjs +0 -17
- package/esm2022/lib/models/axis-chart-config.model.mjs +0 -2
- package/esm2022/lib/models/axis-chart-data.model.mjs +0 -2
- package/esm2022/lib/models/badge.model.mjs +0 -2
- package/esm2022/lib/models/bread-crumb-config.model.mjs +0 -2
- package/esm2022/lib/models/button.model.mjs +0 -2
- package/esm2022/lib/models/card-config.model.mjs +0 -2
- package/esm2022/lib/models/chart-config.model.mjs +0 -2
- package/esm2022/lib/models/filter-option.model.mjs +0 -2
- package/esm2022/lib/models/footer-config.model.mjs +0 -2
- package/esm2022/lib/models/footer.model.mjs +0 -2
- package/esm2022/lib/models/form-button.model.mjs +0 -2
- package/esm2022/lib/models/form-check-field.model.mjs +0 -2
- package/esm2022/lib/models/form-date-field.model.mjs +0 -2
- package/esm2022/lib/models/form-drop-down-field.model.mjs +0 -2
- package/esm2022/lib/models/form-field-group.model.mjs +0 -2
- package/esm2022/lib/models/form-field.model.mjs +0 -2
- package/esm2022/lib/models/form-multi-select.model.mjs +0 -2
- package/esm2022/lib/models/form-number-field.model.mjs +0 -2
- package/esm2022/lib/models/form-switch-field.model.mjs +0 -2
- package/esm2022/lib/models/form-text-area-field.model.mjs +0 -2
- package/esm2022/lib/models/form-text-field.model.mjs +0 -2
- package/esm2022/lib/models/icon-image-style.model.mjs +0 -2
- package/esm2022/lib/models/icon-style.model.mjs +0 -2
- package/esm2022/lib/models/image-style.model.mjs +0 -2
- package/esm2022/lib/models/index.mjs +0 -2
- package/esm2022/lib/models/login-model.mjs +0 -2
- package/esm2022/lib/models/login-page-config.model.mjs +0 -2
- package/esm2022/lib/models/menu-config.model.mjs +0 -2
- package/esm2022/lib/models/menu-item.model.mjs +0 -2
- package/esm2022/lib/models/menu.model.mjs +0 -2
- package/esm2022/lib/models/metric-card-data.model.mjs +0 -2
- package/esm2022/lib/models/metric-indicateur-data.model.mjs +0 -2
- package/esm2022/lib/models/metric-panel-data.model.mjs +0 -2
- package/esm2022/lib/models/nav-bar-menu-config.model.mjs +0 -2
- package/esm2022/lib/models/page-skeleton-config.model.mjs +0 -2
- package/esm2022/lib/models/pattern.model.mjs +0 -2
- package/esm2022/lib/models/pt-confirm-dialog-config.model.mjs +0 -2
- package/esm2022/lib/models/pt-dialog-config.model.mjs +0 -3
- package/esm2022/lib/models/public-api.mjs +0 -58
- package/esm2022/lib/models/search-criteria.model.mjs +0 -2
- package/esm2022/lib/models/side-menu-bar-config.model.mjs +0 -2
- package/esm2022/lib/models/table-column.model.mjs +0 -2
- package/esm2022/lib/models/text-style.model.mjs +0 -2
- package/esm2022/lib/models/title-style.model.mjs +0 -2
- package/esm2022/lib/models/toast-message.model.mjs +0 -2
- package/esm2022/lib/multi-search-criteria/index.mjs +0 -2
- package/esm2022/lib/multi-search-criteria/multi-search-criteria.component.mjs +0 -154
- package/esm2022/lib/multi-search-criteria/multi-search-criteria.module.mjs +0 -48
- package/esm2022/lib/multi-search-criteria/public-api.mjs +0 -3
- package/esm2022/lib/ng-prime-tools.module.mjs +0 -277
- package/esm2022/lib/pipes/custom-currency.mjs +0 -44
- package/esm2022/lib/pipes/custom-date.pipe.mjs +0 -44
- package/esm2022/lib/pt-advanced-prime-table/date-utility.service.mjs +0 -43
- package/esm2022/lib/pt-advanced-prime-table/index.mjs +0 -2
- package/esm2022/lib/pt-advanced-prime-table/pt-advanced-prime-table.component.mjs +0 -1050
- package/esm2022/lib/pt-advanced-prime-table/pt-advanced-prime-table.module.mjs +0 -80
- package/esm2022/lib/pt-advanced-prime-table/public-api.mjs +0 -4
- package/esm2022/lib/pt-bread-crumb/index.mjs +0 -2
- package/esm2022/lib/pt-bread-crumb/pt-bread-crumb.component.mjs +0 -50
- package/esm2022/lib/pt-bread-crumb/pt-bread-crumb.module.mjs +0 -19
- package/esm2022/lib/pt-bread-crumb/pt-bread-crumb.service.mjs +0 -92
- package/esm2022/lib/pt-bread-crumb/public-api.mjs +0 -3
- package/esm2022/lib/pt-button/index.mjs +0 -2
- package/esm2022/lib/pt-button/pt-button.component.mjs +0 -115
- package/esm2022/lib/pt-button/pt-button.module.mjs +0 -19
- package/esm2022/lib/pt-button/public-api.mjs +0 -3
- package/esm2022/lib/pt-card/index.mjs +0 -2
- package/esm2022/lib/pt-card/pt-card.component.mjs +0 -206
- package/esm2022/lib/pt-card/pt-card.module.mjs +0 -19
- package/esm2022/lib/pt-card/public-api.mjs +0 -3
- package/esm2022/lib/pt-chart/index.mjs +0 -2
- package/esm2022/lib/pt-chart/pt-chart.component.mjs +0 -71
- package/esm2022/lib/pt-chart/pt-chart.module.mjs +0 -18
- package/esm2022/lib/pt-chart/public-api.mjs +0 -3
- package/esm2022/lib/pt-chart-comparison/index.mjs +0 -2
- package/esm2022/lib/pt-chart-comparison/pt-chart-comparison.component.mjs +0 -143
- package/esm2022/lib/pt-chart-comparison/pt-chart-comparison.module.mjs +0 -18
- package/esm2022/lib/pt-chart-comparison/public-api.mjs +0 -3
- package/esm2022/lib/pt-check-box-input/index.mjs +0 -2
- package/esm2022/lib/pt-check-box-input/pt-check-box-input.component.mjs +0 -62
- package/esm2022/lib/pt-check-box-input/pt-check-box-input.module.mjs +0 -20
- package/esm2022/lib/pt-check-box-input/public-api.mjs +0 -3
- package/esm2022/lib/pt-confirm-dialog/index.mjs +0 -2
- package/esm2022/lib/pt-confirm-dialog/pt-confirm-dialog.component.mjs +0 -374
- package/esm2022/lib/pt-confirm-dialog/pt-confirm-dialog.module.mjs +0 -21
- package/esm2022/lib/pt-confirm-dialog/public-api.mjs +0 -3
- package/esm2022/lib/pt-date-input/index.mjs +0 -2
- package/esm2022/lib/pt-date-input/pt-date-input.component.mjs +0 -86
- package/esm2022/lib/pt-date-input/pt-date-input.module.mjs +0 -20
- package/esm2022/lib/pt-date-input/pt-date.service.mjs +0 -62
- package/esm2022/lib/pt-date-input/public-api.mjs +0 -3
- package/esm2022/lib/pt-dialog/index.mjs +0 -2
- package/esm2022/lib/pt-dialog/pt-dialog.component.mjs +0 -171
- package/esm2022/lib/pt-dialog/pt-dialog.module.mjs +0 -19
- package/esm2022/lib/pt-dialog/public-api.mjs +0 -3
- package/esm2022/lib/pt-dropdown/index.mjs +0 -2
- package/esm2022/lib/pt-dropdown/pt-dropdown.component.mjs +0 -177
- package/esm2022/lib/pt-dropdown/pt-dropdown.module.mjs +0 -20
- package/esm2022/lib/pt-dropdown/public-api.mjs +0 -3
- package/esm2022/lib/pt-footer/index.mjs +0 -2
- package/esm2022/lib/pt-footer/pt-footer.component.mjs +0 -41
- package/esm2022/lib/pt-footer/pt-footer.module.mjs +0 -19
- package/esm2022/lib/pt-footer/public-api.mjs +0 -3
- package/esm2022/lib/pt-form-builder/index.mjs +0 -2
- package/esm2022/lib/pt-form-builder/pt-dynamic-form-field/pt-dynamic-form-field-module.mjs +0 -59
- package/esm2022/lib/pt-form-builder/pt-dynamic-form-field/pt-dynamic-form-field.component.mjs +0 -55
- package/esm2022/lib/pt-form-builder/pt-form-builder.component.mjs +0 -167
- package/esm2022/lib/pt-form-builder/pt-form-builder.module.mjs +0 -32
- package/esm2022/lib/pt-form-builder/public-api.mjs +0 -3
- package/esm2022/lib/pt-group/index.mjs +0 -2
- package/esm2022/lib/pt-group/pt-group.component.mjs +0 -39
- package/esm2022/lib/pt-group/pt-group.module.mjs +0 -19
- package/esm2022/lib/pt-group/public-api.mjs +0 -3
- package/esm2022/lib/pt-line-chart/index.mjs +0 -2
- package/esm2022/lib/pt-line-chart/pt-line-chart.component.mjs +0 -104
- package/esm2022/lib/pt-line-chart/pt-line-chart.module.mjs +0 -20
- package/esm2022/lib/pt-line-chart/public-api.mjs +0 -3
- package/esm2022/lib/pt-login-page/index.mjs +0 -2
- package/esm2022/lib/pt-login-page/pt-login-card/pt-login-card.component.mjs +0 -153
- package/esm2022/lib/pt-login-page/pt-login-page.component.mjs +0 -53
- package/esm2022/lib/pt-login-page/pt-login-page.module.mjs +0 -43
- package/esm2022/lib/pt-login-page/public-api.mjs +0 -3
- package/esm2022/lib/pt-menu/index.mjs +0 -2
- package/esm2022/lib/pt-menu/pt-menu.component.mjs +0 -97
- package/esm2022/lib/pt-menu/pt-menu.module.mjs +0 -18
- package/esm2022/lib/pt-menu/public-api.mjs +0 -3
- package/esm2022/lib/pt-menu-fancy/index.mjs +0 -2
- package/esm2022/lib/pt-menu-fancy/pt-menu-fancy.component.mjs +0 -105
- package/esm2022/lib/pt-menu-fancy/pt-menu-fancy.module.mjs +0 -19
- package/esm2022/lib/pt-menu-fancy/public-api.mjs +0 -3
- package/esm2022/lib/pt-metric-card/index.mjs +0 -2
- package/esm2022/lib/pt-metric-card/pt-metric-card.component.mjs +0 -194
- package/esm2022/lib/pt-metric-card/pt-metric-card.module.mjs +0 -18
- package/esm2022/lib/pt-metric-card/public-api.mjs +0 -3
- package/esm2022/lib/pt-metric-card-group/index.mjs +0 -2
- package/esm2022/lib/pt-metric-card-group/pt-metric-card-group.component.mjs +0 -18
- package/esm2022/lib/pt-metric-card-group/pt-metric-card-group.module.mjs +0 -19
- package/esm2022/lib/pt-metric-card-group/public-api.mjs +0 -3
- package/esm2022/lib/pt-metric-panel/index.mjs +0 -2
- package/esm2022/lib/pt-metric-panel/pt-metric-panel.component.mjs +0 -93
- package/esm2022/lib/pt-metric-panel/pt-metric-panel.module.mjs +0 -19
- package/esm2022/lib/pt-metric-panel/public-api.mjs +0 -3
- package/esm2022/lib/pt-multi-select/index.mjs +0 -2
- package/esm2022/lib/pt-multi-select/pt-multi-select.component.mjs +0 -85
- package/esm2022/lib/pt-multi-select/pt-multi-select.module.mjs +0 -20
- package/esm2022/lib/pt-multi-select/public-api.mjs +0 -3
- package/esm2022/lib/pt-nav-bar-menu/index.mjs +0 -2
- package/esm2022/lib/pt-nav-bar-menu/pt-nav-bar-menu.component.mjs +0 -331
- package/esm2022/lib/pt-nav-bar-menu/pt-nav-bar-menu.module.mjs +0 -20
- package/esm2022/lib/pt-nav-bar-menu/public-api.mjs +0 -3
- package/esm2022/lib/pt-number-input/index.mjs +0 -2
- package/esm2022/lib/pt-number-input/pt-number-input.component.mjs +0 -100
- package/esm2022/lib/pt-number-input/pt-number-input.module.mjs +0 -43
- package/esm2022/lib/pt-number-input/public-api.mjs +0 -3
- package/esm2022/lib/pt-page-skeleton/index.mjs +0 -2
- package/esm2022/lib/pt-page-skeleton/pt-page-skeleton.component.mjs +0 -59
- package/esm2022/lib/pt-page-skeleton/pt-page-skeleton.module.mjs +0 -44
- package/esm2022/lib/pt-page-skeleton/public-api.mjs +0 -3
- package/esm2022/lib/pt-side-bar-menu/index.mjs +0 -2
- package/esm2022/lib/pt-side-bar-menu/pt-side-bar-menu.component.mjs +0 -214
- package/esm2022/lib/pt-side-bar-menu/pt-side-bar-menu.module.mjs +0 -21
- package/esm2022/lib/pt-side-bar-menu/public-api.mjs +0 -3
- package/esm2022/lib/pt-switch-input/index.mjs +0 -2
- package/esm2022/lib/pt-switch-input/pt-switch-input.component.mjs +0 -70
- package/esm2022/lib/pt-switch-input/pt-switch-input.module.mjs +0 -20
- package/esm2022/lib/pt-switch-input/public-api.mjs +0 -3
- package/esm2022/lib/pt-text-area-input/index.mjs +0 -2
- package/esm2022/lib/pt-text-area-input/pt-text-area-input.component.mjs +0 -103
- package/esm2022/lib/pt-text-area-input/pt-text-area-input.module.mjs +0 -36
- package/esm2022/lib/pt-text-area-input/public-api.mjs +0 -3
- package/esm2022/lib/pt-text-input/index.mjs +0 -2
- package/esm2022/lib/pt-text-input/pt-text-input.component.mjs +0 -115
- package/esm2022/lib/pt-text-input/pt-text-input.module.mjs +0 -36
- package/esm2022/lib/pt-text-input/public-api.mjs +0 -3
- package/esm2022/lib/pt-toast-notifier/index.mjs +0 -2
- package/esm2022/lib/pt-toast-notifier/pt-toast-notifier.component.mjs +0 -29
- package/esm2022/lib/pt-toast-notifier/pt-toast-notifier.module.mjs +0 -21
- package/esm2022/lib/pt-toast-notifier/public-api.mjs +0 -3
- package/esm2022/lib/types/date-format.type.mjs +0 -2
- package/esm2022/lib/types/date-input.type.mjs +0 -2
- package/esm2022/lib/types/index.mjs +0 -2
- package/esm2022/lib/types/public-api.mjs +0 -2
- package/esm2022/lib/utils/date.util.mjs +0 -69
- package/esm2022/lib/utils/text.util.mjs +0 -23
- package/esm2022/ng-prime-tools.mjs +0 -5
- package/esm2022/public-api.mjs +0 -51
- package/index.d.ts +0 -6
- package/lib/enums/align.enum.d.ts +0 -6
- package/lib/enums/align.enum.d.ts.map +0 -1
- package/lib/enums/badge-type.enum.d.ts +0 -20
- package/lib/enums/badge-type.enum.d.ts.map +0 -1
- package/lib/enums/button-color.enum.d.ts +0 -9
- package/lib/enums/button-color.enum.d.ts.map +0 -1
- package/lib/enums/form-input-type.enum.d.ts +0 -15
- package/lib/enums/form-input-type.enum.d.ts.map +0 -1
- package/lib/enums/index.d.ts +0 -2
- package/lib/enums/index.d.ts.map +0 -1
- package/lib/enums/input-validation.enum.d.ts +0 -8
- package/lib/enums/input-validation.enum.d.ts.map +0 -1
- package/lib/enums/public-api.d.ts +0 -9
- package/lib/enums/public-api.d.ts.map +0 -1
- package/lib/enums/search-criteria-type.enum.d.ts +0 -9
- package/lib/enums/search-criteria-type.enum.d.ts.map +0 -1
- package/lib/enums/severity.enum.d.ts +0 -7
- package/lib/enums/severity.enum.d.ts.map +0 -1
- package/lib/enums/table-type.enum.d.ts +0 -16
- package/lib/enums/table-type.enum.d.ts.map +0 -1
- package/lib/models/axis-chart-config.model.d.ts +0 -17
- package/lib/models/axis-chart-config.model.d.ts.map +0 -1
- package/lib/models/axis-chart-data.model.d.ts +0 -5
- package/lib/models/axis-chart-data.model.d.ts.map +0 -1
- package/lib/models/badge.model.d.ts +0 -8
- package/lib/models/badge.model.d.ts.map +0 -1
- package/lib/models/bread-crumb-config.model.d.ts +0 -7
- package/lib/models/bread-crumb-config.model.d.ts.map +0 -1
- package/lib/models/button.model.d.ts +0 -18
- package/lib/models/button.model.d.ts.map +0 -1
- package/lib/models/card-config.model.d.ts +0 -28
- package/lib/models/card-config.model.d.ts.map +0 -1
- package/lib/models/chart-config.model.d.ts +0 -33
- package/lib/models/chart-config.model.d.ts.map +0 -1
- package/lib/models/filter-option.model.d.ts +0 -5
- package/lib/models/filter-option.model.d.ts.map +0 -1
- package/lib/models/footer-config.model.d.ts +0 -8
- package/lib/models/footer-config.model.d.ts.map +0 -1
- package/lib/models/footer.model.d.ts +0 -5
- package/lib/models/footer.model.d.ts.map +0 -1
- package/lib/models/form-button.model.d.ts +0 -10
- package/lib/models/form-button.model.d.ts.map +0 -1
- package/lib/models/form-check-field.model.d.ts +0 -4
- package/lib/models/form-check-field.model.d.ts.map +0 -1
- package/lib/models/form-date-field.model.d.ts +0 -11
- package/lib/models/form-date-field.model.d.ts.map +0 -1
- package/lib/models/form-drop-down-field.model.d.ts +0 -13
- package/lib/models/form-drop-down-field.model.d.ts.map +0 -1
- package/lib/models/form-field-group.model.d.ts +0 -7
- package/lib/models/form-field-group.model.d.ts.map +0 -1
- package/lib/models/form-field.model.d.ts +0 -16
- package/lib/models/form-field.model.d.ts.map +0 -1
- package/lib/models/form-multi-select.model.d.ts +0 -5
- package/lib/models/form-multi-select.model.d.ts.map +0 -1
- package/lib/models/form-number-field.model.d.ts +0 -11
- package/lib/models/form-number-field.model.d.ts.map +0 -1
- package/lib/models/form-switch-field.model.d.ts +0 -4
- package/lib/models/form-switch-field.model.d.ts.map +0 -1
- package/lib/models/form-text-area-field.model.d.ts +0 -11
- package/lib/models/form-text-area-field.model.d.ts.map +0 -1
- package/lib/models/form-text-field.model.d.ts +0 -11
- package/lib/models/form-text-field.model.d.ts.map +0 -1
- package/lib/models/icon-image-style.model.d.ts +0 -12
- package/lib/models/icon-image-style.model.d.ts.map +0 -1
- package/lib/models/icon-style.model.d.ts +0 -9
- package/lib/models/icon-style.model.d.ts.map +0 -1
- package/lib/models/image-style.model.d.ts +0 -14
- package/lib/models/image-style.model.d.ts.map +0 -1
- package/lib/models/index.d.ts +0 -2
- package/lib/models/index.d.ts.map +0 -1
- package/lib/models/login-model.d.ts +0 -7
- package/lib/models/login-model.d.ts.map +0 -1
- package/lib/models/login-page-config.model.d.ts +0 -25
- package/lib/models/login-page-config.model.d.ts.map +0 -1
- package/lib/models/menu-config.model.d.ts +0 -10
- package/lib/models/menu-config.model.d.ts.map +0 -1
- package/lib/models/menu-item.model.d.ts +0 -11
- package/lib/models/menu-item.model.d.ts.map +0 -1
- package/lib/models/menu.model.d.ts +0 -13
- package/lib/models/menu.model.d.ts.map +0 -1
- package/lib/models/metric-card-data.model.d.ts +0 -35
- package/lib/models/metric-card-data.model.d.ts.map +0 -1
- package/lib/models/metric-indicateur-data.model.d.ts +0 -9
- package/lib/models/metric-indicateur-data.model.d.ts.map +0 -1
- package/lib/models/metric-panel-data.model.d.ts +0 -7
- package/lib/models/metric-panel-data.model.d.ts.map +0 -1
- package/lib/models/nav-bar-menu-config.model.d.ts +0 -30
- package/lib/models/nav-bar-menu-config.model.d.ts.map +0 -1
- package/lib/models/page-skeleton-config.model.d.ts +0 -14
- package/lib/models/page-skeleton-config.model.d.ts.map +0 -1
- package/lib/models/pattern.model.d.ts +0 -12
- package/lib/models/pattern.model.d.ts.map +0 -1
- package/lib/models/pt-confirm-dialog-config.model.d.ts +0 -18
- package/lib/models/pt-confirm-dialog-config.model.d.ts.map +0 -1
- package/lib/models/pt-dialog-config.model.d.ts +0 -42
- package/lib/models/pt-dialog-config.model.d.ts.map +0 -1
- package/lib/models/public-api.d.ts +0 -44
- package/lib/models/public-api.d.ts.map +0 -1
- package/lib/models/search-criteria.model.d.ts +0 -15
- package/lib/models/search-criteria.model.d.ts.map +0 -1
- package/lib/models/side-menu-bar-config.model.d.ts +0 -21
- package/lib/models/side-menu-bar-config.model.d.ts.map +0 -1
- package/lib/models/table-column.model.d.ts +0 -47
- package/lib/models/table-column.model.d.ts.map +0 -1
- package/lib/models/text-style.model.d.ts +0 -8
- package/lib/models/text-style.model.d.ts.map +0 -1
- package/lib/models/title-style.model.d.ts +0 -9
- package/lib/models/title-style.model.d.ts.map +0 -1
- package/lib/models/toast-message.model.d.ts +0 -7
- package/lib/models/toast-message.model.d.ts.map +0 -1
- package/lib/multi-search-criteria/index.d.ts +0 -2
- package/lib/multi-search-criteria/index.d.ts.map +0 -1
- package/lib/multi-search-criteria/multi-search-criteria.component.d.ts +0 -32
- package/lib/multi-search-criteria/multi-search-criteria.component.d.ts.map +0 -1
- package/lib/multi-search-criteria/multi-search-criteria.module.d.ts +0 -16
- package/lib/multi-search-criteria/multi-search-criteria.module.d.ts.map +0 -1
- package/lib/multi-search-criteria/public-api.d.ts +0 -3
- package/lib/multi-search-criteria/public-api.d.ts.map +0 -1
- package/lib/ng-prime-tools.module.d.ts +0 -34
- package/lib/ng-prime-tools.module.d.ts.map +0 -1
- package/lib/pipes/custom-currency.d.ts +0 -8
- package/lib/pipes/custom-currency.d.ts.map +0 -1
- package/lib/pipes/custom-date.pipe.d.ts +0 -8
- package/lib/pipes/custom-date.pipe.d.ts.map +0 -1
- package/lib/pt-advanced-prime-table/date-utility.service.d.ts +0 -8
- package/lib/pt-advanced-prime-table/date-utility.service.d.ts.map +0 -1
- package/lib/pt-advanced-prime-table/index.d.ts +0 -2
- package/lib/pt-advanced-prime-table/index.d.ts.map +0 -1
- package/lib/pt-advanced-prime-table/pt-advanced-prime-table.component.d.ts +0 -189
- package/lib/pt-advanced-prime-table/pt-advanced-prime-table.component.d.ts.map +0 -1
- package/lib/pt-advanced-prime-table/pt-advanced-prime-table.module.d.ts +0 -25
- package/lib/pt-advanced-prime-table/pt-advanced-prime-table.module.d.ts.map +0 -1
- package/lib/pt-advanced-prime-table/public-api.d.ts +0 -4
- package/lib/pt-advanced-prime-table/public-api.d.ts.map +0 -1
- package/lib/pt-bread-crumb/index.d.ts +0 -2
- package/lib/pt-bread-crumb/index.d.ts.map +0 -1
- package/lib/pt-bread-crumb/pt-bread-crumb.component.d.ts +0 -23
- package/lib/pt-bread-crumb/pt-bread-crumb.component.d.ts.map +0 -1
- package/lib/pt-bread-crumb/pt-bread-crumb.module.d.ts +0 -10
- package/lib/pt-bread-crumb/pt-bread-crumb.module.d.ts.map +0 -1
- package/lib/pt-bread-crumb/pt-bread-crumb.service.d.ts +0 -17
- package/lib/pt-bread-crumb/pt-bread-crumb.service.d.ts.map +0 -1
- package/lib/pt-bread-crumb/public-api.d.ts +0 -3
- package/lib/pt-bread-crumb/public-api.d.ts.map +0 -1
- package/lib/pt-button/index.d.ts +0 -2
- package/lib/pt-button/index.d.ts.map +0 -1
- package/lib/pt-button/pt-button.component.d.ts +0 -25
- package/lib/pt-button/pt-button.component.d.ts.map +0 -1
- package/lib/pt-button/pt-button.module.d.ts +0 -10
- package/lib/pt-button/pt-button.module.d.ts.map +0 -1
- package/lib/pt-button/public-api.d.ts +0 -3
- package/lib/pt-button/public-api.d.ts.map +0 -1
- package/lib/pt-card/index.d.ts +0 -2
- package/lib/pt-card/index.d.ts.map +0 -1
- package/lib/pt-card/pt-card.component.d.ts +0 -89
- package/lib/pt-card/pt-card.component.d.ts.map +0 -1
- package/lib/pt-card/pt-card.module.d.ts +0 -10
- package/lib/pt-card/pt-card.module.d.ts.map +0 -1
- package/lib/pt-card/public-api.d.ts +0 -3
- package/lib/pt-card/public-api.d.ts.map +0 -1
- package/lib/pt-chart/index.d.ts +0 -2
- package/lib/pt-chart/index.d.ts.map +0 -1
- package/lib/pt-chart/pt-chart.component.d.ts +0 -17
- package/lib/pt-chart/pt-chart.component.d.ts.map +0 -1
- package/lib/pt-chart/pt-chart.module.d.ts +0 -9
- package/lib/pt-chart/pt-chart.module.d.ts.map +0 -1
- package/lib/pt-chart/public-api.d.ts +0 -3
- package/lib/pt-chart/public-api.d.ts.map +0 -1
- package/lib/pt-chart-comparison/index.d.ts +0 -2
- package/lib/pt-chart-comparison/index.d.ts.map +0 -1
- package/lib/pt-chart-comparison/pt-chart-comparison.component.d.ts +0 -27
- package/lib/pt-chart-comparison/pt-chart-comparison.component.d.ts.map +0 -1
- package/lib/pt-chart-comparison/pt-chart-comparison.module.d.ts +0 -9
- package/lib/pt-chart-comparison/pt-chart-comparison.module.d.ts.map +0 -1
- package/lib/pt-chart-comparison/public-api.d.ts +0 -3
- package/lib/pt-chart-comparison/public-api.d.ts.map +0 -1
- package/lib/pt-check-box-input/index.d.ts +0 -2
- package/lib/pt-check-box-input/index.d.ts.map +0 -1
- package/lib/pt-check-box-input/pt-check-box-input.component.d.ts +0 -17
- package/lib/pt-check-box-input/pt-check-box-input.component.d.ts.map +0 -1
- package/lib/pt-check-box-input/pt-check-box-input.module.d.ts +0 -11
- package/lib/pt-check-box-input/pt-check-box-input.module.d.ts.map +0 -1
- package/lib/pt-check-box-input/public-api.d.ts +0 -3
- package/lib/pt-check-box-input/public-api.d.ts.map +0 -1
- package/lib/pt-confirm-dialog/index.d.ts +0 -2
- package/lib/pt-confirm-dialog/index.d.ts.map +0 -1
- package/lib/pt-confirm-dialog/pt-confirm-dialog.component.d.ts +0 -44
- package/lib/pt-confirm-dialog/pt-confirm-dialog.component.d.ts.map +0 -1
- package/lib/pt-confirm-dialog/pt-confirm-dialog.module.d.ts +0 -11
- package/lib/pt-confirm-dialog/pt-confirm-dialog.module.d.ts.map +0 -1
- package/lib/pt-confirm-dialog/public-api.d.ts +0 -3
- package/lib/pt-confirm-dialog/public-api.d.ts.map +0 -1
- package/lib/pt-date-input/index.d.ts +0 -2
- package/lib/pt-date-input/index.d.ts.map +0 -1
- package/lib/pt-date-input/pt-date-input.component.d.ts +0 -25
- package/lib/pt-date-input/pt-date-input.component.d.ts.map +0 -1
- package/lib/pt-date-input/pt-date-input.module.d.ts +0 -11
- package/lib/pt-date-input/pt-date-input.module.d.ts.map +0 -1
- package/lib/pt-date-input/pt-date.service.d.ts +0 -11
- package/lib/pt-date-input/pt-date.service.d.ts.map +0 -1
- package/lib/pt-date-input/public-api.d.ts +0 -3
- package/lib/pt-date-input/public-api.d.ts.map +0 -1
- package/lib/pt-dialog/index.d.ts +0 -2
- package/lib/pt-dialog/index.d.ts.map +0 -1
- package/lib/pt-dialog/pt-dialog.component.d.ts +0 -36
- package/lib/pt-dialog/pt-dialog.component.d.ts.map +0 -1
- package/lib/pt-dialog/pt-dialog.module.d.ts +0 -10
- package/lib/pt-dialog/pt-dialog.module.d.ts.map +0 -1
- package/lib/pt-dialog/public-api.d.ts +0 -3
- package/lib/pt-dialog/public-api.d.ts.map +0 -1
- package/lib/pt-dropdown/index.d.ts +0 -2
- package/lib/pt-dropdown/index.d.ts.map +0 -1
- package/lib/pt-dropdown/pt-dropdown.component.d.ts +0 -36
- package/lib/pt-dropdown/pt-dropdown.component.d.ts.map +0 -1
- package/lib/pt-dropdown/pt-dropdown.module.d.ts +0 -11
- package/lib/pt-dropdown/pt-dropdown.module.d.ts.map +0 -1
- package/lib/pt-dropdown/public-api.d.ts +0 -3
- package/lib/pt-dropdown/public-api.d.ts.map +0 -1
- package/lib/pt-footer/index.d.ts +0 -2
- package/lib/pt-footer/index.d.ts.map +0 -1
- package/lib/pt-footer/pt-footer.component.d.ts +0 -11
- package/lib/pt-footer/pt-footer.component.d.ts.map +0 -1
- package/lib/pt-footer/pt-footer.module.d.ts +0 -10
- package/lib/pt-footer/pt-footer.module.d.ts.map +0 -1
- package/lib/pt-footer/public-api.d.ts +0 -3
- package/lib/pt-footer/public-api.d.ts.map +0 -1
- package/lib/pt-form-builder/index.d.ts +0 -2
- package/lib/pt-form-builder/index.d.ts.map +0 -1
- package/lib/pt-form-builder/pt-dynamic-form-field/pt-dynamic-form-field-module.d.ts +0 -18
- package/lib/pt-form-builder/pt-dynamic-form-field/pt-dynamic-form-field-module.d.ts.map +0 -1
- package/lib/pt-form-builder/pt-dynamic-form-field/pt-dynamic-form-field.component.d.ts +0 -29
- package/lib/pt-form-builder/pt-dynamic-form-field/pt-dynamic-form-field.component.d.ts.map +0 -1
- package/lib/pt-form-builder/pt-form-builder.component.d.ts +0 -50
- package/lib/pt-form-builder/pt-form-builder.component.d.ts.map +0 -1
- package/lib/pt-form-builder/pt-form-builder.module.d.ts +0 -12
- package/lib/pt-form-builder/pt-form-builder.module.d.ts.map +0 -1
- package/lib/pt-form-builder/public-api.d.ts +0 -3
- package/lib/pt-form-builder/public-api.d.ts.map +0 -1
- package/lib/pt-group/index.d.ts +0 -2
- package/lib/pt-group/index.d.ts.map +0 -1
- package/lib/pt-group/pt-group.component.d.ts +0 -12
- package/lib/pt-group/pt-group.component.d.ts.map +0 -1
- package/lib/pt-group/pt-group.module.d.ts +0 -10
- package/lib/pt-group/pt-group.module.d.ts.map +0 -1
- package/lib/pt-group/public-api.d.ts +0 -3
- package/lib/pt-group/public-api.d.ts.map +0 -1
- package/lib/pt-line-chart/index.d.ts +0 -2
- package/lib/pt-line-chart/index.d.ts.map +0 -1
- package/lib/pt-line-chart/pt-line-chart.component.d.ts +0 -15
- package/lib/pt-line-chart/pt-line-chart.component.d.ts.map +0 -1
- package/lib/pt-line-chart/pt-line-chart.module.d.ts +0 -11
- package/lib/pt-line-chart/pt-line-chart.module.d.ts.map +0 -1
- package/lib/pt-line-chart/public-api.d.ts +0 -3
- package/lib/pt-line-chart/public-api.d.ts.map +0 -1
- package/lib/pt-login-page/index.d.ts +0 -2
- package/lib/pt-login-page/index.d.ts.map +0 -1
- package/lib/pt-login-page/pt-login-card/pt-login-card.component.d.ts +0 -19
- package/lib/pt-login-page/pt-login-card/pt-login-card.component.d.ts.map +0 -1
- package/lib/pt-login-page/pt-login-page.component.d.ts +0 -16
- package/lib/pt-login-page/pt-login-page.component.d.ts.map +0 -1
- package/lib/pt-login-page/pt-login-page.module.d.ts +0 -14
- package/lib/pt-login-page/pt-login-page.module.d.ts.map +0 -1
- package/lib/pt-login-page/public-api.d.ts +0 -3
- package/lib/pt-login-page/public-api.d.ts.map +0 -1
- package/lib/pt-menu/index.d.ts +0 -2
- package/lib/pt-menu/index.d.ts.map +0 -1
- package/lib/pt-menu/pt-menu.component.d.ts +0 -33
- package/lib/pt-menu/pt-menu.component.d.ts.map +0 -1
- package/lib/pt-menu/pt-menu.module.d.ts +0 -9
- package/lib/pt-menu/pt-menu.module.d.ts.map +0 -1
- package/lib/pt-menu/public-api.d.ts +0 -3
- package/lib/pt-menu/public-api.d.ts.map +0 -1
- package/lib/pt-menu-fancy/index.d.ts +0 -2
- package/lib/pt-menu-fancy/index.d.ts.map +0 -1
- package/lib/pt-menu-fancy/pt-menu-fancy.component.d.ts +0 -35
- package/lib/pt-menu-fancy/pt-menu-fancy.component.d.ts.map +0 -1
- package/lib/pt-menu-fancy/pt-menu-fancy.module.d.ts +0 -10
- package/lib/pt-menu-fancy/pt-menu-fancy.module.d.ts.map +0 -1
- package/lib/pt-menu-fancy/public-api.d.ts +0 -3
- package/lib/pt-menu-fancy/public-api.d.ts.map +0 -1
- package/lib/pt-metric-card/index.d.ts +0 -2
- package/lib/pt-metric-card/index.d.ts.map +0 -1
- package/lib/pt-metric-card/pt-metric-card.component.d.ts +0 -89
- package/lib/pt-metric-card/pt-metric-card.component.d.ts.map +0 -1
- package/lib/pt-metric-card/pt-metric-card.module.d.ts +0 -9
- package/lib/pt-metric-card/pt-metric-card.module.d.ts.map +0 -1
- package/lib/pt-metric-card/public-api.d.ts +0 -3
- package/lib/pt-metric-card/public-api.d.ts.map +0 -1
- package/lib/pt-metric-card-group/index.d.ts +0 -2
- package/lib/pt-metric-card-group/index.d.ts.map +0 -1
- package/lib/pt-metric-card-group/pt-metric-card-group.component.d.ts +0 -8
- package/lib/pt-metric-card-group/pt-metric-card-group.component.d.ts.map +0 -1
- package/lib/pt-metric-card-group/pt-metric-card-group.module.d.ts +0 -10
- package/lib/pt-metric-card-group/pt-metric-card-group.module.d.ts.map +0 -1
- package/lib/pt-metric-card-group/public-api.d.ts +0 -3
- package/lib/pt-metric-card-group/public-api.d.ts.map +0 -1
- package/lib/pt-metric-panel/index.d.ts +0 -2
- package/lib/pt-metric-panel/index.d.ts.map +0 -1
- package/lib/pt-metric-panel/pt-metric-panel.component.d.ts +0 -55
- package/lib/pt-metric-panel/pt-metric-panel.component.d.ts.map +0 -1
- package/lib/pt-metric-panel/pt-metric-panel.module.d.ts +0 -10
- package/lib/pt-metric-panel/pt-metric-panel.module.d.ts.map +0 -1
- package/lib/pt-metric-panel/public-api.d.ts +0 -3
- package/lib/pt-metric-panel/public-api.d.ts.map +0 -1
- package/lib/pt-multi-select/index.d.ts +0 -2
- package/lib/pt-multi-select/index.d.ts.map +0 -1
- package/lib/pt-multi-select/pt-multi-select.component.d.ts +0 -22
- package/lib/pt-multi-select/pt-multi-select.component.d.ts.map +0 -1
- package/lib/pt-multi-select/pt-multi-select.module.d.ts +0 -11
- package/lib/pt-multi-select/pt-multi-select.module.d.ts.map +0 -1
- package/lib/pt-multi-select/public-api.d.ts +0 -3
- package/lib/pt-multi-select/public-api.d.ts.map +0 -1
- package/lib/pt-nav-bar-menu/index.d.ts +0 -2
- package/lib/pt-nav-bar-menu/index.d.ts.map +0 -1
- package/lib/pt-nav-bar-menu/pt-nav-bar-menu.component.d.ts +0 -98
- package/lib/pt-nav-bar-menu/pt-nav-bar-menu.component.d.ts.map +0 -1
- package/lib/pt-nav-bar-menu/pt-nav-bar-menu.module.d.ts +0 -11
- package/lib/pt-nav-bar-menu/pt-nav-bar-menu.module.d.ts.map +0 -1
- package/lib/pt-nav-bar-menu/public-api.d.ts +0 -3
- package/lib/pt-nav-bar-menu/public-api.d.ts.map +0 -1
- package/lib/pt-number-input/index.d.ts +0 -2
- package/lib/pt-number-input/index.d.ts.map +0 -1
- package/lib/pt-number-input/pt-number-input.component.d.ts +0 -18
- package/lib/pt-number-input/pt-number-input.component.d.ts.map +0 -1
- package/lib/pt-number-input/pt-number-input.module.d.ts +0 -14
- package/lib/pt-number-input/pt-number-input.module.d.ts.map +0 -1
- package/lib/pt-number-input/public-api.d.ts +0 -3
- package/lib/pt-number-input/public-api.d.ts.map +0 -1
- package/lib/pt-page-skeleton/index.d.ts +0 -2
- package/lib/pt-page-skeleton/index.d.ts.map +0 -1
- package/lib/pt-page-skeleton/pt-page-skeleton.component.d.ts +0 -19
- package/lib/pt-page-skeleton/pt-page-skeleton.component.d.ts.map +0 -1
- package/lib/pt-page-skeleton/pt-page-skeleton.module.d.ts +0 -15
- package/lib/pt-page-skeleton/pt-page-skeleton.module.d.ts.map +0 -1
- package/lib/pt-page-skeleton/public-api.d.ts +0 -3
- package/lib/pt-page-skeleton/public-api.d.ts.map +0 -1
- package/lib/pt-side-bar-menu/index.d.ts +0 -2
- package/lib/pt-side-bar-menu/index.d.ts.map +0 -1
- package/lib/pt-side-bar-menu/pt-side-bar-menu.component.d.ts +0 -43
- package/lib/pt-side-bar-menu/pt-side-bar-menu.component.d.ts.map +0 -1
- package/lib/pt-side-bar-menu/pt-side-bar-menu.module.d.ts +0 -12
- package/lib/pt-side-bar-menu/pt-side-bar-menu.module.d.ts.map +0 -1
- package/lib/pt-side-bar-menu/public-api.d.ts +0 -3
- package/lib/pt-side-bar-menu/public-api.d.ts.map +0 -1
- package/lib/pt-switch-input/index.d.ts +0 -2
- package/lib/pt-switch-input/index.d.ts.map +0 -1
- package/lib/pt-switch-input/pt-switch-input.component.d.ts +0 -18
- package/lib/pt-switch-input/pt-switch-input.component.d.ts.map +0 -1
- package/lib/pt-switch-input/pt-switch-input.module.d.ts +0 -11
- package/lib/pt-switch-input/pt-switch-input.module.d.ts.map +0 -1
- package/lib/pt-switch-input/public-api.d.ts +0 -3
- package/lib/pt-switch-input/public-api.d.ts.map +0 -1
- package/lib/pt-text-area-input/index.d.ts +0 -2
- package/lib/pt-text-area-input/index.d.ts.map +0 -1
- package/lib/pt-text-area-input/pt-text-area-input.component.d.ts +0 -20
- package/lib/pt-text-area-input/pt-text-area-input.component.d.ts.map +0 -1
- package/lib/pt-text-area-input/pt-text-area-input.module.d.ts +0 -13
- package/lib/pt-text-area-input/pt-text-area-input.module.d.ts.map +0 -1
- package/lib/pt-text-area-input/public-api.d.ts +0 -3
- package/lib/pt-text-area-input/public-api.d.ts.map +0 -1
- package/lib/pt-text-input/index.d.ts +0 -2
- package/lib/pt-text-input/index.d.ts.map +0 -1
- package/lib/pt-text-input/pt-text-input.component.d.ts +0 -22
- package/lib/pt-text-input/pt-text-input.component.d.ts.map +0 -1
- package/lib/pt-text-input/pt-text-input.module.d.ts +0 -13
- package/lib/pt-text-input/pt-text-input.module.d.ts.map +0 -1
- package/lib/pt-text-input/public-api.d.ts +0 -3
- package/lib/pt-text-input/public-api.d.ts.map +0 -1
- package/lib/pt-toast-notifier/index.d.ts +0 -2
- package/lib/pt-toast-notifier/index.d.ts.map +0 -1
- package/lib/pt-toast-notifier/pt-toast-notifier.component.d.ts +0 -12
- package/lib/pt-toast-notifier/pt-toast-notifier.component.d.ts.map +0 -1
- package/lib/pt-toast-notifier/pt-toast-notifier.module.d.ts +0 -10
- package/lib/pt-toast-notifier/pt-toast-notifier.module.d.ts.map +0 -1
- package/lib/pt-toast-notifier/public-api.d.ts +0 -3
- package/lib/pt-toast-notifier/public-api.d.ts.map +0 -1
- package/lib/types/date-format.type.d.ts +0 -2
- package/lib/types/date-format.type.d.ts.map +0 -1
- package/lib/types/date-input.type.d.ts +0 -2
- package/lib/types/date-input.type.d.ts.map +0 -1
- package/lib/types/index.d.ts +0 -2
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/public-api.d.ts +0 -2
- package/lib/types/public-api.d.ts.map +0 -1
- package/lib/utils/date.util.d.ts +0 -7
- package/lib/utils/date.util.d.ts.map +0 -1
- package/lib/utils/text.util.d.ts +0 -11
- package/lib/utils/text.util.d.ts.map +0 -1
- package/ng-prime-tools.d.ts.map +0 -1
- package/public-api.d.ts +0 -35
- package/public-api.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -7,6 +7,7 @@ An advanced PrimeNG tools library for Angular.
|
|
|
7
7
|
- [Introduction](#introduction)
|
|
8
8
|
- [Installation](#installation)
|
|
9
9
|
- [Compatibility](#compatibility)
|
|
10
|
+
- [PrimeNG Theme Configuration](#primeng-theme-configuration)
|
|
10
11
|
- [Usage](#usage)
|
|
11
12
|
- [pt-advanced-prime-table](#pt-advanced-prime-table)
|
|
12
13
|
- [Inputs](#inputs)
|
|
@@ -24,114 +25,185 @@ An advanced PrimeNG tools library for Angular.
|
|
|
24
25
|
|
|
25
26
|
## Introduction
|
|
26
27
|
|
|
27
|
-
`ng-prime-tools` is a collection of advanced tools built on top of PrimeNG for Angular applications.
|
|
28
|
+
`ng-prime-tools` is a collection of advanced reusable UI tools built on top of PrimeNG for Angular applications.
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
The library provides configurable components for advanced tables, dynamic forms, dashboards, cards, menus, dialogs, charts, search criteria, page skeletons, and other common application needs.
|
|
31
|
+
|
|
32
|
+
Version `2.x` targets Angular 21 and PrimeNG 21.
|
|
30
33
|
|
|
31
34
|
## Installation
|
|
32
35
|
|
|
33
|
-
|
|
36
|
+
Install `ng-prime-tools` with its required peer dependencies:
|
|
34
37
|
|
|
35
38
|
```bash
|
|
36
39
|
npm install ng-prime-tools
|
|
40
|
+
npm install primeng @primeng/themes primeicons primeflex
|
|
37
41
|
npm install chart.js chartjs-plugin-datalabels
|
|
38
42
|
```
|
|
39
43
|
|
|
40
|
-
|
|
44
|
+
For Angular 21, use a compatible Node.js, TypeScript, and RxJS environment.
|
|
45
|
+
|
|
46
|
+
Recommended versions:
|
|
47
|
+
|
|
48
|
+
- Node.js: `^20.19.0 || ^22.12.0 || ^24.0.0`
|
|
49
|
+
- TypeScript: `>=5.9.0 <6.0.0`
|
|
50
|
+
- RxJS: `^7.4.0`
|
|
51
|
+
- Zone.js: `~0.15.1`
|
|
52
|
+
|
|
53
|
+
Angular 21 officially supports Node.js `^20.19.0 || ^22.12.0 || ^24.0.0`, TypeScript `>=5.9.0 <6.0.0`, and RxJS `^6.5.3 || ^7.4.0`. For this library, RxJS `^7.4.0` is recommended.
|
|
41
54
|
|
|
42
55
|
## Compatibility
|
|
43
56
|
|
|
44
|
-
|
|
45
|
-
|
|
57
|
+
| Library | Version |
|
|
58
|
+
| ------------------------- | ---------------- |
|
|
59
|
+
| Angular | `^21.0.0` |
|
|
60
|
+
| PrimeNG | `^21.0.0` |
|
|
61
|
+
| @primeng/themes | `^21.0.0` |
|
|
62
|
+
| PrimeIcons | `^7.0.0` |
|
|
63
|
+
| PrimeFlex | `^4.0.0` |
|
|
64
|
+
| Chart.js | `^4.4.4` |
|
|
65
|
+
| chartjs-plugin-datalabels | `^2.2.0` |
|
|
66
|
+
| RxJS | `^7.4.0` |
|
|
67
|
+
| TypeScript | `>=5.9.0 <6.0.0` |
|
|
68
|
+
| Zone.js | `~0.15.1` |
|
|
69
|
+
|
|
70
|
+
`ng-prime-tools` version `2.x` targets Angular 21 and PrimeNG 21.
|
|
71
|
+
|
|
72
|
+
For Angular 17 / PrimeNG 17 applications, use the previous `1.x` version of the library.
|
|
73
|
+
|
|
74
|
+
## PrimeNG Theme Configuration
|
|
75
|
+
|
|
76
|
+
PrimeNG 21 uses the styled-mode theme system with presets such as Aura, Material, Lara, and Nora. It no longer relies on the old global CSS imports from `primeng/resources/...`.
|
|
77
|
+
|
|
78
|
+
Remove these old style entries from `angular.json` if they exist:
|
|
79
|
+
|
|
80
|
+
```json
|
|
81
|
+
"node_modules/primeng/resources/themes/saga-blue/theme.css",
|
|
82
|
+
"node_modules/primeng/resources/primeng.min.css"
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Keep only the application stylesheet and the icon/layout libraries:
|
|
86
|
+
|
|
87
|
+
```json
|
|
88
|
+
"styles": [
|
|
89
|
+
"src/styles.css",
|
|
90
|
+
"node_modules/primeicons/primeicons.css",
|
|
91
|
+
"node_modules/@fortawesome/fontawesome-free/css/all.min.css",
|
|
92
|
+
"node_modules/primeflex/primeflex.css"
|
|
93
|
+
]
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Then configure PrimeNG using `providePrimeNG`.
|
|
97
|
+
|
|
98
|
+
Example `app.config.ts`:
|
|
99
|
+
|
|
100
|
+
```typescript
|
|
101
|
+
import { ApplicationConfig } from "@angular/core";
|
|
102
|
+
import { provideRouter } from "@angular/router";
|
|
103
|
+
import { provideAnimations } from "@angular/platform-browser/animations";
|
|
104
|
+
import { providePrimeNG } from "primeng/config";
|
|
105
|
+
import Aura from "@primeng/themes/aura";
|
|
106
|
+
|
|
107
|
+
import { routes } from "./app.routes";
|
|
108
|
+
|
|
109
|
+
export const appConfig: ApplicationConfig = {
|
|
110
|
+
providers: [
|
|
111
|
+
provideRouter(routes),
|
|
112
|
+
provideAnimations(),
|
|
113
|
+
providePrimeNG({
|
|
114
|
+
theme: {
|
|
115
|
+
preset: Aura,
|
|
116
|
+
},
|
|
117
|
+
}),
|
|
118
|
+
],
|
|
119
|
+
};
|
|
120
|
+
```
|
|
46
121
|
|
|
47
122
|
## Usage
|
|
48
123
|
|
|
49
124
|
### pt-advanced-prime-table
|
|
50
125
|
|
|
51
|
-
To use the `pt-advanced-prime-table` component, follow these steps
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
```
|
|
126
|
+
To use the `pt-advanced-prime-table` component, follow these steps.
|
|
127
|
+
|
|
128
|
+
#### Import the module
|
|
129
|
+
|
|
130
|
+
Import `PTAdvancedPrimeTableModule` in your Angular module or standalone component.
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
import { PTAdvancedPrimeTableModule, TableColumn, TableTypeEnum } from "ng-prime-tools";
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
#### Add the component
|
|
137
|
+
|
|
138
|
+
Add the `pt-advanced-prime-table` component to your template:
|
|
139
|
+
|
|
140
|
+
```html
|
|
141
|
+
<pt-advanced-prime-table [columns]="columns" [data]="data" [hasSearchFilter]="true" [hasColumnFilter]="true" [isPaginated]="true" [totalRecords]="totalRecords" [isSortable]="true"></pt-advanced-prime-table>
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
#### Define the inputs
|
|
145
|
+
|
|
146
|
+
```typescript
|
|
147
|
+
import { Component, OnInit } from "@angular/core";
|
|
148
|
+
import { CommonModule } from "@angular/common";
|
|
149
|
+
import { PTAdvancedPrimeTableModule, TableColumn, TableTypeEnum } from "ng-prime-tools";
|
|
150
|
+
|
|
151
|
+
@Component({
|
|
152
|
+
selector: "app-root",
|
|
153
|
+
standalone: true,
|
|
154
|
+
imports: [CommonModule, PTAdvancedPrimeTableModule],
|
|
155
|
+
templateUrl: "./app.component.html",
|
|
156
|
+
styleUrls: ["./app.component.css"],
|
|
157
|
+
})
|
|
158
|
+
export class AppComponent implements OnInit {
|
|
159
|
+
columns: TableColumn[] = [];
|
|
160
|
+
data: any[] = [];
|
|
161
|
+
totalRecords = 0;
|
|
162
|
+
|
|
163
|
+
ngOnInit(): void {
|
|
164
|
+
this.columns = [
|
|
165
|
+
{
|
|
166
|
+
title: "Name",
|
|
167
|
+
code: "name",
|
|
168
|
+
type: TableTypeEnum.STRING,
|
|
169
|
+
isEditable: true,
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
title: "Date",
|
|
173
|
+
code: "date",
|
|
174
|
+
type: TableTypeEnum.DATE,
|
|
175
|
+
isEditable: true,
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
title: "Amount",
|
|
179
|
+
code: "amount",
|
|
180
|
+
type: TableTypeEnum.AMOUNT,
|
|
181
|
+
currency: "USD",
|
|
182
|
+
isEditable: true,
|
|
183
|
+
},
|
|
184
|
+
];
|
|
185
|
+
|
|
186
|
+
this.data = [
|
|
187
|
+
{ name: "John Doe", date: "11/06/2024", amount: 100 },
|
|
188
|
+
{ name: "Jane Doe", date: "20/06/2024", amount: 200 },
|
|
189
|
+
];
|
|
190
|
+
|
|
191
|
+
this.totalRecords = this.data.length;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
```
|
|
123
195
|
|
|
124
196
|
### Inputs
|
|
125
197
|
|
|
126
198
|
- **data** (`any[]`): The data to be displayed in the table.
|
|
127
|
-
- **columns** (`TableColumn[]`): The
|
|
199
|
+
- **columns** (`TableColumn[]`): The column configuration for the table.
|
|
128
200
|
- **totalRecords** (`number`): The total number of records.
|
|
129
201
|
- **rowsPerPage** (`number[]`): The number of rows per page options for pagination.
|
|
130
|
-
- **hasSearchFilter** (`boolean`):
|
|
131
|
-
- **hasColumnFilter** (`boolean`):
|
|
132
|
-
- **isPaginated** (`boolean`):
|
|
133
|
-
- **actions** (`any[]`): The actions available for
|
|
134
|
-
- **isSortable** (`boolean`):
|
|
202
|
+
- **hasSearchFilter** (`boolean`): Enables or disables the global search filter.
|
|
203
|
+
- **hasColumnFilter** (`boolean`): Enables or disables column-specific filters.
|
|
204
|
+
- **isPaginated** (`boolean`): Enables or disables pagination.
|
|
205
|
+
- **actions** (`any[]`): The actions available for table rows.
|
|
206
|
+
- **isSortable** (`boolean`): Enables or disables sortable columns.
|
|
135
207
|
|
|
136
208
|
### Outputs
|
|
137
209
|
|
|
@@ -140,26 +212,22 @@ To use the `pt-advanced-prime-table` component, follow these steps:
|
|
|
140
212
|
|
|
141
213
|
### Example
|
|
142
214
|
|
|
143
|
-
Here's a complete example of how to use the `pt-advanced-prime-table` component:
|
|
144
|
-
|
|
145
215
|
```typescript
|
|
146
216
|
import { Component, OnInit } from "@angular/core";
|
|
147
217
|
import { CommonModule } from "@angular/common";
|
|
148
|
-
import {
|
|
149
|
-
import { TableColumn } from "ng-prime-tools/models";
|
|
150
|
-
import { TableTypeEnum } from "ng-prime-tools/enums";
|
|
218
|
+
import { PTAdvancedPrimeTableModule, TableColumn, TableTypeEnum } from "ng-prime-tools";
|
|
151
219
|
|
|
152
220
|
@Component({
|
|
153
221
|
selector: "app-root",
|
|
154
222
|
standalone: true,
|
|
155
|
-
imports: [CommonModule,
|
|
223
|
+
imports: [CommonModule, PTAdvancedPrimeTableModule],
|
|
156
224
|
templateUrl: "./app.component.html",
|
|
157
225
|
styleUrls: ["./app.component.css"],
|
|
158
226
|
})
|
|
159
227
|
export class AppComponent implements OnInit {
|
|
160
228
|
columns: TableColumn[] = [];
|
|
161
229
|
data: any[] = [];
|
|
162
|
-
totalRecords
|
|
230
|
+
totalRecords = 0;
|
|
163
231
|
|
|
164
232
|
ngOnInit(): void {
|
|
165
233
|
this.columns = [
|
|
@@ -200,133 +268,133 @@ export class AppComponent implements OnInit {
|
|
|
200
268
|
|
|
201
269
|
### multi-search-criteria
|
|
202
270
|
|
|
203
|
-
To use the `multi-search-criteria` component, follow these steps
|
|
204
|
-
|
|
205
|
-
1. **Import the Module:**
|
|
206
|
-
|
|
207
|
-
Import the `MultiSearchCriteriaModule` in your Angular module or standalone component.
|
|
208
|
-
|
|
209
|
-
```typescript
|
|
210
|
-
import { MultiSearchCriteriaModule, SearchCriteria, SearchCriteriaTypeEnum } from "ng-prime-tools";
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
2. **Add the Component:**
|
|
214
|
-
|
|
215
|
-
Add the `multi-search-criteria` component to your template:
|
|
216
|
-
|
|
217
|
-
```html
|
|
218
|
-
<multi-search-criteria [title]="'Multi-Criteria Search'" [criteria]="criteria" [data]="data" [mode]="'dynamic'" (filteredData)="onFilteredData($event)" (searchCriteria)="onSearchData($event)"></multi-search-criteria>
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
3. **Define the Inputs:**
|
|
222
|
-
|
|
223
|
-
In your component, define the necessary inputs for the criteria:
|
|
224
|
-
|
|
225
|
-
```typescript
|
|
226
|
-
import { Component, OnInit } from "@angular/core";
|
|
227
|
-
import { CommonModule } from "@angular/common";
|
|
228
|
-
import { MultiSearchCriteriaModule, SearchCriteria, SearchCriteriaTypeEnum, FilterOption } from "ng-prime-tools";
|
|
229
|
-
|
|
230
|
-
@Component({
|
|
231
|
-
selector: "app-root",
|
|
232
|
-
standalone: true,
|
|
233
|
-
imports: [CommonModule, MultiSearchCriteriaModule],
|
|
234
|
-
templateUrl: "./app.component.html",
|
|
235
|
-
styleUrls: ["./app.component.css"],
|
|
236
|
-
})
|
|
237
|
-
export class AppComponent implements OnInit {
|
|
238
|
-
criteria: SearchCriteria[] = [];
|
|
239
|
-
data: any[] = [];
|
|
240
|
-
filteredData: any[] = [];
|
|
241
|
-
totalRecords: number = 0;
|
|
242
|
-
|
|
243
|
-
ngOnInit(): void {
|
|
244
|
-
this.criteria = [
|
|
245
|
-
{
|
|
246
|
-
title: "Name",
|
|
247
|
-
code: "name",
|
|
248
|
-
type: SearchCriteriaTypeEnum.STRING,
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
title: "Date Range",
|
|
252
|
-
code: "dateRange",
|
|
253
|
-
type: SearchCriteriaTypeEnum.DATERANGE,
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
title: "Amount",
|
|
257
|
-
code: "amount",
|
|
258
|
-
type: SearchCriteriaTypeEnum.AMOUNT,
|
|
259
|
-
currency: "USD",
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
title: "Type",
|
|
263
|
-
code: "type",
|
|
264
|
-
type: SearchCriteriaTypeEnum.MULTISELECT,
|
|
265
|
-
filterOptions: [
|
|
266
|
-
{ label: "Invoice", value: "Invoice" },
|
|
267
|
-
{ label: "Bill", value: "Bill" },
|
|
268
|
-
],
|
|
269
|
-
},
|
|
270
|
-
];
|
|
271
|
-
|
|
272
|
-
this.data = [
|
|
273
|
-
{ name: "ZAK JAAI", date: "11/06/2024", amount: 100, type: "Invoice" },
|
|
274
|
-
{ name: "ZAK2 JAAI", date: "20/06/2024", amount: 200, type: "Bill" },
|
|
275
|
-
];
|
|
276
|
-
|
|
277
|
-
this.filteredData = [...this.data];
|
|
278
|
-
this.totalRecords = this.data.length;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
onFilteredData(filteredData: any[]): void {
|
|
282
|
-
this.filteredData = filteredData;
|
|
283
|
-
this.totalRecords = filteredData.length;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
onSearchData(searchCriteria: { [key: string]: any }): void {
|
|
287
|
-
console.log(searchCriteria);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
```
|
|
271
|
+
To use the `multi-search-criteria` component, follow these steps.
|
|
291
272
|
|
|
292
|
-
|
|
273
|
+
#### Import the module
|
|
274
|
+
|
|
275
|
+
```typescript
|
|
276
|
+
import { MultiSearchCriteriaModule, SearchCriteria, SearchCriteriaTypeEnum } from "ng-prime-tools";
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
#### Add the component
|
|
280
|
+
|
|
281
|
+
```html
|
|
282
|
+
<multi-search-criteria [title]="'Multi-Criteria Search'" [criteria]="criteria" [data]="data" [mode]="'dynamic'" (filteredData)="onFilteredData($event)" (searchCriteria)="onSearchData($event)"></multi-search-criteria>
|
|
283
|
+
```
|
|
293
284
|
|
|
294
|
-
|
|
285
|
+
#### Define the inputs
|
|
295
286
|
|
|
296
|
-
|
|
287
|
+
```typescript
|
|
288
|
+
import { Component, OnInit } from "@angular/core";
|
|
289
|
+
import { CommonModule } from "@angular/common";
|
|
290
|
+
import { MultiSearchCriteriaModule, SearchCriteria, SearchCriteriaTypeEnum, FilterOption } from "ng-prime-tools";
|
|
297
291
|
|
|
292
|
+
@Component({
|
|
293
|
+
selector: "app-root",
|
|
294
|
+
standalone: true,
|
|
295
|
+
imports: [CommonModule, MultiSearchCriteriaModule],
|
|
296
|
+
templateUrl: "./app.component.html",
|
|
297
|
+
styleUrls: ["./app.component.css"],
|
|
298
|
+
})
|
|
299
|
+
export class AppComponent implements OnInit {
|
|
300
|
+
criteria: SearchCriteria[] = [];
|
|
301
|
+
data: any[] = [];
|
|
302
|
+
filteredData: any[] = [];
|
|
303
|
+
totalRecords = 0;
|
|
304
|
+
|
|
305
|
+
ngOnInit(): void {
|
|
306
|
+
this.criteria = [
|
|
307
|
+
{
|
|
308
|
+
title: "Name",
|
|
309
|
+
code: "name",
|
|
310
|
+
type: SearchCriteriaTypeEnum.STRING,
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
title: "Date Range",
|
|
314
|
+
code: "dateRange",
|
|
315
|
+
type: SearchCriteriaTypeEnum.DATERANGE,
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
title: "Amount",
|
|
319
|
+
code: "amount",
|
|
320
|
+
type: SearchCriteriaTypeEnum.AMOUNT,
|
|
321
|
+
currency: "USD",
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
title: "Type",
|
|
325
|
+
code: "type",
|
|
326
|
+
type: SearchCriteriaTypeEnum.MULTISELECT,
|
|
327
|
+
filterOptions: [
|
|
328
|
+
{ label: "Invoice", value: "Invoice" },
|
|
329
|
+
{ label: "Bill", value: "Bill" },
|
|
330
|
+
] as FilterOption[],
|
|
331
|
+
},
|
|
332
|
+
];
|
|
333
|
+
|
|
334
|
+
this.data = [
|
|
335
|
+
{
|
|
336
|
+
name: "ZAK JAAI",
|
|
337
|
+
date: "11/06/2024",
|
|
338
|
+
amount: 100,
|
|
339
|
+
type: "Invoice",
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
name: "ZAK2 JAAI",
|
|
343
|
+
date: "20/06/2024",
|
|
344
|
+
amount: 200,
|
|
345
|
+
type: "Bill",
|
|
346
|
+
},
|
|
347
|
+
];
|
|
348
|
+
|
|
349
|
+
this.filteredData = [...this.data];
|
|
350
|
+
this.totalRecords = this.data.length;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
onFilteredData(filteredData: any[]): void {
|
|
354
|
+
this.filteredData = filteredData;
|
|
355
|
+
this.totalRecords = filteredData.length;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
onSearchData(searchCriteria: { [key: string]: any }): void {
|
|
359
|
+
console.log(searchCriteria);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
### Inputs
|
|
365
|
+
|
|
366
|
+
- **title** (`string`): The title of the multi-search criteria panel.
|
|
298
367
|
- **criteria** (`SearchCriteria[]`): The search criteria configuration.
|
|
299
|
-
- **data** (`any[]`): The data to be filtered
|
|
300
|
-
- **mode** (`'static' | 'dynamic'`): The mode
|
|
301
|
-
- `'static'`: Filters the data directly
|
|
302
|
-
- `'dynamic'`: Emits the search criteria
|
|
368
|
+
- **data** (`any[]`): The data to be filtered when the component is used in static mode.
|
|
369
|
+
- **mode** (`'static' | 'dynamic'`): The filtering mode.
|
|
370
|
+
- `'static'`: Filters the provided data directly inside the component.
|
|
371
|
+
- `'dynamic'`: Emits the search criteria so that the parent component or backend can handle filtering.
|
|
303
372
|
|
|
304
373
|
### Outputs
|
|
305
374
|
|
|
306
|
-
- **filteredData** (`EventEmitter<any[]>`): Emitted with the filtered data
|
|
307
|
-
- **searchCriteria** (`EventEmitter<{ [key: string]: any }>`): Emitted with the search criteria
|
|
375
|
+
- **filteredData** (`EventEmitter<any[]>`): Emitted with the filtered data in static mode.
|
|
376
|
+
- **searchCriteria** (`EventEmitter<{ [key: string]: any }>`): Emitted with the search criteria in dynamic mode.
|
|
308
377
|
|
|
309
378
|
### Example
|
|
310
379
|
|
|
311
|
-
Here's a complete example of how to use the `multi-search-criteria` component in dynamic mode:
|
|
312
|
-
|
|
313
380
|
```typescript
|
|
314
381
|
import { Component, OnInit } from "@angular/core";
|
|
315
382
|
import { CommonModule } from "@angular/common";
|
|
316
|
-
import { MultiSearchCriteriaModule, SearchCriteria, SearchCriteriaTypeEnum, FilterOption } from "ng-prime-tools";
|
|
383
|
+
import { MultiSearchCriteriaModule, SearchCriteria, SearchCriteriaTypeEnum, FilterOption, PTAdvancedPrimeTableModule, TableColumn, TableTypeEnum } from "ng-prime-tools";
|
|
317
384
|
|
|
318
385
|
@Component({
|
|
319
386
|
selector: "app-root",
|
|
320
387
|
standalone: true,
|
|
321
|
-
imports: [CommonModule, MultiSearchCriteriaModule],
|
|
388
|
+
imports: [CommonModule, MultiSearchCriteriaModule, PTAdvancedPrimeTableModule],
|
|
322
389
|
templateUrl: "./app.component.html",
|
|
323
390
|
styleUrls: ["./app.component.css"],
|
|
324
391
|
})
|
|
325
392
|
export class AppComponent implements OnInit {
|
|
326
393
|
criteria: SearchCriteria[] = [];
|
|
394
|
+
columns: TableColumn[] = [];
|
|
327
395
|
data: any[] = [];
|
|
328
396
|
filteredData: any[] = [];
|
|
329
|
-
totalRecords
|
|
397
|
+
totalRecords = 0;
|
|
330
398
|
|
|
331
399
|
ngOnInit(): void {
|
|
332
400
|
this.criteria = [
|
|
@@ -353,13 +421,42 @@ export class AppComponent implements OnInit {
|
|
|
353
421
|
filterOptions: [
|
|
354
422
|
{ label: "Invoice", value: "Invoice" },
|
|
355
423
|
{ label: "Bill", value: "Bill" },
|
|
356
|
-
],
|
|
424
|
+
] as FilterOption[],
|
|
425
|
+
},
|
|
426
|
+
];
|
|
427
|
+
|
|
428
|
+
this.columns = [
|
|
429
|
+
{
|
|
430
|
+
title: "Name",
|
|
431
|
+
code: "name",
|
|
432
|
+
type: TableTypeEnum.STRING,
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
title: "Amount",
|
|
436
|
+
code: "amount",
|
|
437
|
+
type: TableTypeEnum.AMOUNT,
|
|
438
|
+
currency: "USD",
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
title: "Type",
|
|
442
|
+
code: "type",
|
|
443
|
+
type: TableTypeEnum.STRING,
|
|
357
444
|
},
|
|
358
445
|
];
|
|
359
446
|
|
|
360
447
|
this.data = [
|
|
361
|
-
{
|
|
362
|
-
|
|
448
|
+
{
|
|
449
|
+
name: "ZAK JAAI",
|
|
450
|
+
date: "11/06/2024",
|
|
451
|
+
amount: 100,
|
|
452
|
+
type: "Invoice",
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
name: "ZAK2 JAAI",
|
|
456
|
+
date: "20/06/2024",
|
|
457
|
+
amount: 200,
|
|
458
|
+
type: "Bill",
|
|
459
|
+
},
|
|
363
460
|
];
|
|
364
461
|
|
|
365
462
|
this.filteredData = [...this.data];
|
|
@@ -373,7 +470,6 @@ export class AppComponent implements OnInit {
|
|
|
373
470
|
|
|
374
471
|
onSearchData(searchCriteria: { [key: string]: any }): void {
|
|
375
472
|
console.log(searchCriteria);
|
|
376
|
-
// Perform server-side search or any other external data fetching logic
|
|
377
473
|
}
|
|
378
474
|
}
|
|
379
475
|
```
|
|
@@ -393,15 +489,26 @@ The `FormBuilder` component is a powerful and flexible tool for dynamically gene
|
|
|
393
489
|
The `FormBuilder` leverages several input components to build comprehensive forms:
|
|
394
490
|
|
|
395
491
|
- **`pt-check-box-input`**: A customizable checkbox input component.
|
|
396
|
-
- **`pt-date-input`**: A
|
|
397
|
-
- **`pt-dropdown`**: A
|
|
492
|
+
- **`pt-date-input`**: A date input component based on PrimeNG DatePicker.
|
|
493
|
+
- **`pt-dropdown`**: A select input component based on PrimeNG Select.
|
|
398
494
|
- **`pt-form-builder`**: The form builder component that dynamically renders form fields.
|
|
399
495
|
- **`pt-multi-select`**: A multi-select dropdown component for selecting multiple values from a list.
|
|
400
496
|
- **`pt-number-input`**: A numeric input component with support for validation and formatting.
|
|
401
|
-
- **`pt-switch-input`**: A switch input component
|
|
402
|
-
- **`pt-text-area-input`**: A text area input component
|
|
497
|
+
- **`pt-switch-input`**: A toggle switch input component based on PrimeNG ToggleSwitch.
|
|
498
|
+
- **`pt-text-area-input`**: A text area input component based on PrimeNG Textarea.
|
|
403
499
|
- **`pt-text-input`**: A standard text input component with support for icons, placeholders, and validation.
|
|
404
500
|
|
|
501
|
+
#### PrimeNG component mapping
|
|
502
|
+
|
|
503
|
+
During the Angular 21 / PrimeNG 21 migration, the following PrimeNG components were replaced:
|
|
504
|
+
|
|
505
|
+
| Old PrimeNG API | New PrimeNG API |
|
|
506
|
+
| ---------------------------------------- | --------------------------------------- |
|
|
507
|
+
| `InputSwitchModule` / `p-inputSwitch` | `ToggleSwitchModule` / `p-toggleswitch` |
|
|
508
|
+
| `CalendarModule` / `p-calendar` | `DatePickerModule` / `p-datepicker` |
|
|
509
|
+
| `DropdownModule` / `p-dropdown` | `SelectModule` / `p-select` |
|
|
510
|
+
| `InputTextareaModule` / `pInputTextarea` | `TextareaModule` / `pTextarea` |
|
|
511
|
+
|
|
405
512
|
#### Example
|
|
406
513
|
|
|
407
514
|
Below is an example of how to use the `FormBuilder` component to create a user registration form with various input fields:
|
|
@@ -410,7 +517,7 @@ Below is an example of how to use the `FormBuilder` component to create a user r
|
|
|
410
517
|
import { Component, OnInit } from "@angular/core";
|
|
411
518
|
import { CommonModule } from "@angular/common";
|
|
412
519
|
import { ReactiveFormsModule } from "@angular/forms";
|
|
413
|
-
import {
|
|
520
|
+
import { ButtonColorEnum, FormButton, FormCheckBoxField, FormDateField, FormDropdownField, FormFieldGroup, FormInputTypeEnum, FormMultiSelectField, FormNumberField, FormSwitchField, FormTextAreaField, FormTextField, InputValidationEnum, PTFormBuilderModule } from "ng-prime-tools";
|
|
414
521
|
|
|
415
522
|
@Component({
|
|
416
523
|
selector: "app-form-builder-tester",
|
|
@@ -423,16 +530,16 @@ export class FormBuilderTesterComponent implements OnInit {
|
|
|
423
530
|
mainGroup: FormFieldGroup = { fields: [], groups: [] };
|
|
424
531
|
buttons: FormButton[] = [];
|
|
425
532
|
|
|
426
|
-
ngOnInit() {
|
|
533
|
+
ngOnInit(): void {
|
|
427
534
|
this.initializeSettings();
|
|
428
535
|
}
|
|
429
536
|
|
|
430
|
-
initializeSettings() {
|
|
537
|
+
initializeSettings(): void {
|
|
431
538
|
this.initializeMainGroup();
|
|
432
539
|
this.initializeButtons();
|
|
433
540
|
}
|
|
434
541
|
|
|
435
|
-
initializeMainGroup() {
|
|
542
|
+
initializeMainGroup(): void {
|
|
436
543
|
this.mainGroup = {
|
|
437
544
|
groups: [this.createNameGroup(), this.createSubscriptionGroup(), this.createAgeGroup(), this.createBirthdateGroup(), this.createDateRangeGroup(), this.createAmountGroup(), this.createCountryGroup(), this.createHobbiesGroup(), this.createDescriptionGroup()],
|
|
438
545
|
};
|
|
@@ -611,7 +718,7 @@ export class FormBuilderTesterComponent implements OnInit {
|
|
|
611
718
|
};
|
|
612
719
|
}
|
|
613
720
|
|
|
614
|
-
initializeButtons() {
|
|
721
|
+
initializeButtons(): void {
|
|
615
722
|
this.buttons = [
|
|
616
723
|
{
|
|
617
724
|
text: "Custom Action",
|
|
@@ -619,16 +726,24 @@ export class FormBuilderTesterComponent implements OnInit {
|
|
|
619
726
|
color: ButtonColorEnum.SUCCESS,
|
|
620
727
|
icon: "pi pi-check",
|
|
621
728
|
},
|
|
622
|
-
{
|
|
623
|
-
|
|
729
|
+
{
|
|
730
|
+
text: "Submit",
|
|
731
|
+
color: ButtonColorEnum.PRIMARY,
|
|
732
|
+
isSubmit: true,
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
text: "Clear",
|
|
736
|
+
color: ButtonColorEnum.SECONDARY,
|
|
737
|
+
isClear: true,
|
|
738
|
+
},
|
|
624
739
|
];
|
|
625
740
|
}
|
|
626
741
|
|
|
627
|
-
customAction() {
|
|
742
|
+
customAction(): void {
|
|
628
743
|
console.log("Custom action executed");
|
|
629
744
|
}
|
|
630
745
|
|
|
631
|
-
onFormSubmit(formData: { [key: string]: any }) {
|
|
746
|
+
onFormSubmit(formData: { [key: string]: any }): void {
|
|
632
747
|
console.log("Form submitted with data:", formData);
|
|
633
748
|
}
|
|
634
749
|
}
|
|
@@ -636,15 +751,33 @@ export class FormBuilderTesterComponent implements OnInit {
|
|
|
636
751
|
|
|
637
752
|
## Changelog
|
|
638
753
|
|
|
754
|
+
### Version 2.0.0 - Release Date: 25/05/2026
|
|
755
|
+
|
|
756
|
+
- Migrated the library to **Angular 21**.
|
|
757
|
+
- Migrated PrimeNG dependencies to **PrimeNG 21**.
|
|
758
|
+
- Updated the library peer dependencies for Angular 21, PrimeNG 21, RxJS 7, and TypeScript 5.9.
|
|
759
|
+
- Replaced deprecated PrimeNG components:
|
|
760
|
+
- `InputSwitchModule` / `p-inputSwitch` → `ToggleSwitchModule` / `p-toggleswitch`
|
|
761
|
+
- `CalendarModule` / `p-calendar` → `DatePickerModule` / `p-datepicker`
|
|
762
|
+
- `DropdownModule` / `p-dropdown` → `SelectModule` / `p-select`
|
|
763
|
+
- `InputTextareaModule` / `pInputTextarea` → `TextareaModule` / `pTextarea`
|
|
764
|
+
- Updated PrimeNG theme configuration to use `@primeng/themes` and `providePrimeNG`.
|
|
765
|
+
- Removed old PrimeNG CSS resource imports:
|
|
766
|
+
- `primeng/resources/themes/...`
|
|
767
|
+
- `primeng/resources/primeng.min.css`
|
|
768
|
+
- Updated severity handling to support PrimeNG 21 severity values, including `warn` instead of the old `warning` value.
|
|
769
|
+
- Updated Angular templates progressively to support the latest Angular syntax and PrimeNG 21 compatibility.
|
|
770
|
+
- Removed obsolete Angular tooling such as TSLint, Codelyzer, and Protractor from the migration target.
|
|
771
|
+
|
|
639
772
|
### Version 1.0.31 - Release Date: 16/04/2025
|
|
640
773
|
|
|
641
|
-
- pt-advanced-table
|
|
774
|
+
- pt-advanced-table: Fixing the filters with asynchronous data and composed types.
|
|
642
775
|
|
|
643
776
|
### Version 1.0.30 - Release Date: 10/04/2025
|
|
644
777
|
|
|
645
778
|
- fixing the disabling btn in pt-login
|
|
646
779
|
|
|
647
|
-
### Version 1.0.28 - 1.
|
|
780
|
+
### Version 1.0.28 - 1.0.29 - Release Date: 05/04/2025
|
|
648
781
|
|
|
649
782
|
- Changing style of pt-button when disabled
|
|
650
783
|
|
|
@@ -689,7 +822,7 @@ export class FormBuilderTesterComponent implements OnInit {
|
|
|
689
822
|
### Version 1.0.18 - Release Date: 22/01/2025
|
|
690
823
|
|
|
691
824
|
- fixing search in sidebar position
|
|
692
|
-
- pt-card
|
|
825
|
+
- pt-card: adding background color transparency and pattern image transparency
|
|
693
826
|
|
|
694
827
|
### Version 1.0.17 - Release Date: 21/01/2025
|
|
695
828
|
|
|
@@ -705,7 +838,7 @@ export class FormBuilderTesterComponent implements OnInit {
|
|
|
705
838
|
|
|
706
839
|
### Version 1.0.14 - Release Date: 15/11/2024
|
|
707
840
|
|
|
708
|
-
- fix metric-card
|
|
841
|
+
- fix metric-card `fixedWidth` param
|
|
709
842
|
- adding design for icons in metric cards
|
|
710
843
|
- fix issue having multiple charts using pt-chart
|
|
711
844
|
|
|
@@ -727,79 +860,69 @@ export class FormBuilderTesterComponent implements OnInit {
|
|
|
727
860
|
### Version 1.0.10 - Release Date: 25/09/2024
|
|
728
861
|
|
|
729
862
|
- **New Components:**
|
|
730
|
-
|
|
731
|
-
- **`pt-
|
|
732
|
-
- **`pt-
|
|
733
|
-
- **`pt-
|
|
734
|
-
- **`pt-
|
|
735
|
-
- **`pt-
|
|
736
|
-
- **`pt-
|
|
737
|
-
- **`pt-confirm-dialog`:** Added a flexible dialog component for modal-based interactions, supporting customizable content, actions, and layout.
|
|
863
|
+
- **`pt-bar`**: Introduced a new bar component to visually represent progress or metrics in a horizontal bar layout.
|
|
864
|
+
- **`pt-text-input`**: Added a customizable text input component to handle various form input needs with validation and error handling.
|
|
865
|
+
- **`pt-page-skeleton`**: Introduced a page skeleton component for loading states, offering a clean UI while data is being fetched.
|
|
866
|
+
- **`pt-footer`**: A new footer component providing a customizable and responsive footer layout for pages.
|
|
867
|
+
- **`pt-menu-fancy`**: Added a new fancy menu component for stylish navigation menus with enhanced layout options.
|
|
868
|
+
- **`pt-button`**: Introduced a highly customizable button component with various styles, icons, and action support.
|
|
869
|
+
- **`pt-confirm-dialog`**: Added a flexible dialog component for modal-based interactions, supporting customizable content, actions, and layout.
|
|
738
870
|
|
|
739
871
|
- **Enhancements to `pt-advanced-prime-table`:**
|
|
740
|
-
- **Dynamic Column Width:** Enhanced the table to support dynamic column width adjustments based on content
|
|
741
|
-
- **Customizable Sticky Headers:** Improved sticky header behavior
|
|
742
|
-
- **Improved Icon Handling:** Optimized column and icon width calculations
|
|
872
|
+
- **Dynamic Column Width:** Enhanced the table to support dynamic column width adjustments based on content.
|
|
873
|
+
- **Customizable Sticky Headers:** Improved sticky header behavior for tables with large datasets.
|
|
874
|
+
- **Improved Icon Handling:** Optimized column and icon width calculations.
|
|
743
875
|
- **Cell Alignment Fixes:** Resolved issues with header and body cell misalignment when header content wraps.
|
|
744
876
|
|
|
745
877
|
### Version 1.0.9 - Release Date: 02/09/2024
|
|
746
878
|
|
|
747
879
|
- **`pt-advanced-prime-table`:**
|
|
880
|
+
- **Loading Indicator:** Added loading spinner functionality.
|
|
881
|
+
- **Vertical Scrolling:** Enabled vertical scrolling for large datasets.
|
|
882
|
+
- **Empty Record Message:** Introduced a customizable empty-state message.
|
|
748
883
|
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
- **`pt-metric-card-group` & `pt-metric-card`:** Introduced a new metric card component and its group, designed for displaying key performance indicators in a visually appealing way.
|
|
754
|
-
- **`pt-chart`:** Added a new chart component that supports various chart types (line, bar, doughnut, pie, etc.), with extensive customization options.
|
|
755
|
-
- **`pt-card`:** Introduced a new card component for displaying content within a bordered and customizable container.
|
|
756
|
-
- **`pt-menu`:** Added a new menu component to be used within cards, supporting various actions and a customizable layout.
|
|
884
|
+
- **`pt-metric-card-group` & `pt-metric-card`**: Introduced metric card components for KPI display.
|
|
885
|
+
- **`pt-chart`**: Added chart component support for line, bar, doughnut, pie, and other chart types.
|
|
886
|
+
- **`pt-card`**: Introduced a configurable card component.
|
|
887
|
+
- **`pt-menu`**: Added a menu component for cards and actions.
|
|
757
888
|
|
|
758
889
|
#### Version 1.0.8
|
|
759
890
|
|
|
760
|
-
Fix bug on size of buttons exports
|
|
891
|
+
- Fix bug on size of buttons exports.
|
|
761
892
|
|
|
762
893
|
#### Version 1.0.7
|
|
763
894
|
|
|
764
|
-
Adding export to
|
|
895
|
+
- Adding export to PDF and Excel buttons in the `pt-advanced-prime-table`.
|
|
765
896
|
|
|
766
|
-
```
|
|
767
|
-
|
|
768
|
-
[hasExportPDF]="true"
|
|
769
|
-
(exportExcelEvent)="onExportExcel()"
|
|
770
|
-
(exportPdfEvent)="onExportPDF()"
|
|
897
|
+
```html
|
|
898
|
+
<pt-advanced-prime-table [hasExportExcel]="true" [hasExportPDF]="true" (exportExcelEvent)="onExportExcel()" (exportPdfEvent)="onExportPDF()"></pt-advanced-prime-table>
|
|
771
899
|
```
|
|
772
900
|
|
|
773
901
|
#### Version 1.0.6
|
|
774
902
|
|
|
775
|
-
- **FormBuilder Component:**
|
|
776
|
-
Introduced a powerful and flexible `FormBuilder` component that allows developers to dynamically create forms with various input types. The `FormBuilder` supports nested groups, input validation, and customizable form behavior. This component simplifies the process of building complex forms by providing a consistent and reusable structure.
|
|
777
|
-
|
|
903
|
+
- **FormBuilder Component:** Introduced a flexible `FormBuilder` component for dynamically creating forms with various input types.
|
|
778
904
|
- **New Input Components:**
|
|
779
|
-
- **`pt-check-box-input`**: A customizable checkbox input component
|
|
780
|
-
- **`pt-date-input`**: A
|
|
781
|
-
- **`pt-dropdown`**: A
|
|
782
|
-
- **`pt-multi-select`**: A multi-select
|
|
783
|
-
- **`pt-number-input`**: A numeric input component with
|
|
784
|
-
- **`pt-switch-input`**: A switch input component
|
|
785
|
-
- **`pt-text-area-input`**: A
|
|
786
|
-
- **`pt-text-input`**: A standard text input component
|
|
905
|
+
- **`pt-check-box-input`**: A customizable checkbox input component.
|
|
906
|
+
- **`pt-date-input`**: A date input component supporting single date and range selections.
|
|
907
|
+
- **`pt-dropdown`**: A select input component for choosing a single option.
|
|
908
|
+
- **`pt-multi-select`**: A multi-select component for choosing multiple values.
|
|
909
|
+
- **`pt-number-input`**: A numeric input component with validation and formatting support.
|
|
910
|
+
- **`pt-switch-input`**: A toggle switch input component.
|
|
911
|
+
- **`pt-text-area-input`**: A multi-line text area input component.
|
|
912
|
+
- **`pt-text-input`**: A standard text input component.
|
|
787
913
|
|
|
788
914
|
### Version 1.0.5
|
|
789
915
|
|
|
790
916
|
- **`multi-search-criteria` Component**
|
|
791
|
-
|
|
792
917
|
- Added support for `mode` input to handle dynamic and static filtering.
|
|
793
|
-
- `mode` input can be set to `'dynamic'` or `'static'`. When set to `'dynamic'`, the component emits search criteria for backend filtering. When set to `'static'`, the component filters data locally.
|
|
794
918
|
- Fixed the bug in the `selectAll` functionality for multi-select filters.
|
|
795
|
-
- Users can select or deselect all options in a multi-select filter.
|
|
796
919
|
|
|
797
920
|
- **`pt-advanced-prime-table` Component**
|
|
798
921
|
- Added support for customizable amount formatting.
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
922
|
+
- New inputs for columns of type `AMOUNT`:
|
|
923
|
+
- `thousandSeparator` (`comma` or `space`)
|
|
924
|
+
- `decimalSeparator` (`comma` or `dot`)
|
|
925
|
+
- Updated the `customCurrency` pipe to handle optional currency display and customizable separators.
|
|
803
926
|
|
|
804
927
|
### Version 1.0.4
|
|
805
928
|
|