@unipin/angular-applet 18.9.4 → 18.9.6
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 +8 -11
- package/esm2022/graphql/generated.mjs +938 -0
- package/esm2022/lib/components/approval/detail/approval-detail.component.mjs +78 -0
- package/esm2022/lib/components/approval/form/approval-form.component.mjs +128 -0
- package/esm2022/lib/components/approval/index.mjs +5 -0
- package/esm2022/lib/components/approval/list/approval-list.component.mjs +114 -0
- package/esm2022/lib/components/approval/list/provide-approval-entities.util.mjs +9 -0
- package/esm2022/lib/components/approval/services/approval.service.mjs +46 -0
- package/esm2022/lib/components/audit/detail/audit-detail.component.mjs +123 -0
- package/esm2022/lib/components/audit/index.mjs +3 -0
- package/esm2022/lib/components/audit/list/audit-list.component.mjs +81 -0
- package/esm2022/lib/components/audit/service/audit.service.mjs +49 -0
- package/esm2022/lib/components/audit/types/audit-detail-form.type.mjs +2 -0
- package/esm2022/lib/components/buttons/group/btn-group.component.mjs +43 -0
- package/esm2022/lib/components/buttons/group/interfaces/btn-group-config.interface.mjs +2 -0
- package/esm2022/lib/components/buttons/index.mjs +3 -0
- package/esm2022/lib/components/buttons/loading/btn-loading.component.mjs +48 -0
- package/esm2022/lib/components/containers/applet-container/applet-container.component.mjs +55 -0
- package/esm2022/lib/components/containers/applet-container/provide-applet-config.util.mjs +9 -0
- package/esm2022/lib/components/containers/colum-header-container/column-header-container.component.mjs +23 -0
- package/esm2022/lib/components/containers/column-container/column-container.component.mjs +79 -0
- package/esm2022/lib/components/containers/column-container/directives/lazy-route.directive.mjs +57 -0
- package/esm2022/lib/components/containers/index.mjs +7 -0
- package/esm2022/lib/components/containers/list-container/index.mjs +3 -0
- package/esm2022/lib/components/containers/list-container/interfaces/list-container-config.interface.mjs +2 -0
- package/esm2022/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.mjs +58 -0
- package/esm2022/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.mjs +57 -0
- package/esm2022/lib/components/containers/modal-container/modal-container.component.mjs +40 -0
- package/esm2022/lib/components/filter/filter.component.mjs +222 -0
- package/esm2022/lib/components/filter/index.mjs +2 -0
- package/esm2022/lib/components/filter/interfaces/filter-config.interface.mjs +2 -0
- package/esm2022/lib/components/filter/interfaces/filter-field.interface.mjs +2 -0
- package/esm2022/lib/components/filter/interfaces/filter-search-event.interface.mjs +2 -0
- package/esm2022/lib/components/forms/country-input/form-country-input.component.mjs +122 -0
- package/esm2022/lib/components/forms/currency-input/form-currency-input.component.mjs +157 -0
- package/esm2022/lib/components/forms/date/form-date.component.mjs +117 -0
- package/esm2022/lib/components/forms/image-picker/directives/drag-n-drop.directive.mjs +49 -0
- package/esm2022/lib/components/forms/image-picker/form-image-picker.component.mjs +68 -0
- package/esm2022/lib/components/forms/index.mjs +12 -0
- package/esm2022/lib/components/forms/input/form-input.component.mjs +98 -0
- package/esm2022/lib/components/forms/number/form-number.component.mjs +97 -0
- package/esm2022/lib/components/forms/number/pipes/locale-number.pipe.mjs +33 -0
- package/esm2022/lib/components/forms/password/form-password.component.mjs +100 -0
- package/esm2022/lib/components/forms/rate-group-code-input/form-rate-group-code-input.component.mjs +135 -0
- package/esm2022/lib/components/forms/searchable-select/form-searchable-select.component.mjs +138 -0
- package/esm2022/lib/components/forms/select/form-select.component.mjs +119 -0
- package/esm2022/lib/components/forms/textarea/form-textarea.component.mjs +88 -0
- package/esm2022/lib/components/grids/grid-pagination/grid-pagination.component.mjs +111 -0
- package/esm2022/lib/components/grids/grid-snapshot/grid-snapshot.component.mjs +109 -0
- package/esm2022/lib/components/grids/index.mjs +4 -0
- package/esm2022/lib/components/grids/interfaces/grid-config.interface.mjs +2 -0
- package/esm2022/lib/components/grids/services/grid.service.mjs +25 -0
- package/esm2022/lib/components/index.mjs +9 -0
- package/esm2022/lib/components/infinite-scroll/directive/infinite-scroll.directive.mjs +43 -0
- package/esm2022/lib/components/infinite-scroll/index.mjs +3 -0
- package/esm2022/lib/components/infinite-scroll/infinite-scroll.component.mjs +36 -0
- package/esm2022/lib/components/tabs/index.mjs +3 -0
- package/esm2022/lib/components/tabs/tab-content/tab-content.component.mjs +37 -0
- package/esm2022/lib/components/tabs/tab-group/tab-group.component.mjs +47 -0
- package/esm2022/lib/guards/auth/auth.guard.mjs +10 -0
- package/esm2022/lib/guards/index.mjs +2 -0
- package/esm2022/lib/interceptors/header/header.interceptor.mjs +29 -0
- package/esm2022/lib/interceptors/index.mjs +3 -0
- package/esm2022/lib/interceptors/refresh-token/refresh-token.interceptor.mjs +83 -0
- package/esm2022/lib/interfaces/index.mjs +2 -0
- package/esm2022/lib/interfaces/user/user.interface.mjs +2 -0
- package/esm2022/lib/modules/index.mjs +3 -0
- package/esm2022/lib/modules/micro-frontend/index.mjs +2 -0
- package/esm2022/lib/modules/micro-frontend/utils/mf-bootstrap.util.mjs +55 -0
- package/esm2022/lib/modules/micro-frontend/utils/mf-global-state.util.mjs +14 -0
- package/esm2022/lib/modules/permission/directive/permission.directive.mjs +41 -0
- package/esm2022/lib/modules/permission/guards/permission.guard.mjs +26 -0
- package/esm2022/lib/modules/permission/index.mjs +7 -0
- package/esm2022/lib/modules/permission/pages/401/unauthorized.page.mjs +15 -0
- package/esm2022/lib/modules/permission/pages/loading/loading.page.mjs +65 -0
- package/esm2022/lib/modules/permission/pages/loading/provide-loading-config.util.mjs +9 -0
- package/esm2022/lib/modules/permission/services/permission.service.mjs +50 -0
- package/esm2022/lib/resolvers/auth/auth.resolver.mjs +87 -0
- package/esm2022/lib/resolvers/index.mjs +2 -0
- package/esm2022/lib/services/auth/auth.service.mjs +171 -0
- package/esm2022/lib/services/country/country.service.mjs +43 -0
- package/esm2022/lib/services/currency/currency.service.mjs +40 -0
- package/esm2022/lib/services/index.mjs +6 -0
- package/esm2022/lib/services/profile/profile.service.mjs +82 -0
- package/esm2022/lib/services/rate-group-code/rate-group-code.service.mjs +31 -0
- package/esm2022/lib/utils/contrast-color-generator/contrast-color-generator.util.mjs +16 -0
- package/esm2022/lib/utils/form-error-message/form-error-message.util.mjs +21 -0
- package/esm2022/lib/utils/format-capitalize/format-capitalize.util.mjs +18 -0
- package/esm2022/lib/utils/index.mjs +5 -0
- package/esm2022/lib/utils/redirect-to-first-menu/redirect-to-first-menu.util.mjs +9 -0
- package/esm2022/public-api.mjs +10 -0
- package/esm2022/unipin-angular-applet.mjs +2 -0
- package/fesm2022/unipin-angular-applet.mjs +4620 -0
- package/fesm2022/unipin-angular-applet.mjs.map +1 -0
- package/graphql/generated.d.ts +16225 -0
- package/index.d.ts +2 -0
- package/lib/components/approval/detail/approval-detail.component.d.ts +26 -0
- package/lib/components/approval/form/approval-form.component.d.ts +33 -0
- package/{projects/unipin-angular/src/lib/components/approval/index.ts → lib/components/approval/index.d.ts} +0 -1
- package/lib/components/approval/list/approval-list.component.d.ts +33 -0
- package/lib/components/approval/list/provide-approval-entities.util.d.ts +3 -0
- package/lib/components/approval/services/approval.service.d.ts +18 -0
- package/lib/components/audit/detail/audit-detail.component.d.ts +33 -0
- package/lib/components/audit/list/audit-list.component.d.ts +31 -0
- package/lib/components/audit/service/audit.service.d.ts +15 -0
- package/lib/components/audit/types/audit-detail-form.type.d.ts +12 -0
- package/lib/components/buttons/group/btn-group.component.d.ts +18 -0
- package/lib/components/buttons/group/interfaces/btn-group-config.interface.d.ts +11 -0
- package/lib/components/buttons/loading/btn-loading.component.d.ts +19 -0
- package/lib/components/containers/applet-container/applet-container.component.d.ts +22 -0
- package/lib/components/containers/applet-container/provide-applet-config.util.d.ts +15 -0
- package/lib/components/containers/colum-header-container/column-header-container.component.d.ts +7 -0
- package/lib/components/containers/column-container/column-container.component.d.ts +26 -0
- package/lib/components/containers/column-container/directives/lazy-route.directive.d.ts +17 -0
- package/{projects/unipin-angular/src/lib/components/containers/index.ts → lib/components/containers/index.d.ts} +0 -1
- package/{projects/unipin-angular/src/lib/components/containers/list-container/interfaces/list-container-config.interface.ts → lib/components/containers/list-container/interfaces/list-container-config.interface.d.ts} +4 -5
- package/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.d.ts +23 -0
- package/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.d.ts +23 -0
- package/lib/components/containers/modal-container/modal-container.component.d.ts +16 -0
- package/lib/components/filter/filter.component.d.ts +44 -0
- package/{projects/unipin-angular/src/lib/components/filter/index.ts → lib/components/filter/index.d.ts} +1 -1
- package/lib/components/filter/interfaces/filter-config.interface.d.ts +5 -0
- package/lib/components/filter/interfaces/filter-field.interface.d.ts +24 -0
- package/lib/components/filter/interfaces/filter-search-event.interface.d.ts +4 -0
- package/lib/components/forms/country-input/form-country-input.component.d.ts +41 -0
- package/lib/components/forms/currency-input/form-currency-input.component.d.ts +52 -0
- package/lib/components/forms/date/form-date.component.d.ts +33 -0
- package/lib/components/forms/image-picker/directives/drag-n-drop.directive.d.ts +10 -0
- package/lib/components/forms/image-picker/form-image-picker.component.d.ts +21 -0
- package/lib/components/forms/input/form-input.component.d.ts +31 -0
- package/lib/components/forms/number/form-number.component.d.ts +27 -0
- package/lib/components/forms/number/pipes/locale-number.pipe.d.ts +8 -0
- package/lib/components/forms/password/form-password.component.d.ts +27 -0
- package/lib/components/forms/rate-group-code-input/form-rate-group-code-input.component.d.ts +41 -0
- package/lib/components/forms/searchable-select/form-searchable-select.component.d.ts +42 -0
- package/lib/components/forms/select/form-select.component.d.ts +34 -0
- package/lib/components/forms/textarea/form-textarea.component.d.ts +26 -0
- package/lib/components/grids/grid-pagination/grid-pagination.component.d.ts +33 -0
- package/lib/components/grids/grid-snapshot/grid-snapshot.component.d.ts +36 -0
- package/lib/components/grids/interfaces/grid-config.interface.d.ts +16 -0
- package/lib/components/grids/services/grid.service.d.ts +12 -0
- package/{projects/unipin-angular/src/lib/components/index.ts → lib/components/index.d.ts} +2 -14
- package/lib/components/infinite-scroll/directive/infinite-scroll.directive.d.ts +15 -0
- package/lib/components/infinite-scroll/infinite-scroll.component.d.ts +12 -0
- package/{projects/unipin-angular/src/lib/components/tabs/index.ts → lib/components/tabs/index.d.ts} +2 -3
- package/lib/components/tabs/tab-content/tab-content.component.d.ts +14 -0
- package/lib/components/tabs/tab-group/tab-group.component.d.ts +18 -0
- package/lib/guards/auth/auth.guard.d.ts +1 -0
- package/lib/interceptors/header/header.interceptor.d.ts +9 -0
- package/lib/interceptors/refresh-token/refresh-token.interceptor.d.ts +14 -0
- package/lib/interfaces/user/user.interface.d.ts +27 -0
- package/lib/modules/index.d.ts +2 -0
- package/lib/modules/micro-frontend/utils/mf-bootstrap.util.d.ts +9 -0
- package/lib/modules/micro-frontend/utils/mf-global-state.util.d.ts +4 -0
- package/lib/modules/permission/directive/permission.directive.d.ts +16 -0
- package/lib/modules/permission/guards/permission.guard.d.ts +2 -0
- package/{projects/unipin-angular/src/lib/modules/permission/index.ts → lib/modules/permission/index.d.ts} +0 -1
- package/lib/modules/permission/pages/401/unauthorized.page.d.ts +5 -0
- package/lib/modules/permission/pages/loading/loading.page.d.ts +18 -0
- package/lib/modules/permission/pages/loading/provide-loading-config.util.d.ts +10 -0
- package/lib/modules/permission/services/permission.service.d.ts +21 -0
- package/lib/resolvers/auth/auth.resolver.d.ts +14 -0
- package/lib/services/auth/auth.service.d.ts +39 -0
- package/lib/services/country/country.service.d.ts +16 -0
- package/lib/services/currency/currency.service.d.ts +16 -0
- package/lib/services/profile/profile.service.d.ts +12 -0
- package/lib/services/rate-group-code/rate-group-code.service.d.ts +14 -0
- package/lib/utils/contrast-color-generator/contrast-color-generator.util.d.ts +4 -0
- package/lib/utils/form-error-message/form-error-message.util.d.ts +2 -0
- package/lib/utils/format-capitalize/format-capitalize.util.d.ts +1 -0
- package/lib/utils/redirect-to-first-menu/redirect-to-first-menu.util.d.ts +2 -0
- package/package.json +38 -86
- package/public-api.d.ts +11 -0
- package/.editorconfig +0 -16
- package/.eslintrc.json +0 -72
- package/.github/ISSUE_TEMPLATE/bug_fix.yml +0 -60
- package/.github/ISSUE_TEMPLATE/dependency_update.yml +0 -20
- package/.github/ISSUE_TEMPLATE/documentation.yml +0 -13
- package/.github/ISSUE_TEMPLATE/engineering.yml +0 -22
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -38
- package/.github/ISSUE_TEMPLATE/testing.yml +0 -38
- package/.github/dependabot.yml +0 -11
- package/.github/pull_request_template.md +0 -77
- package/.github/workflows/npm_publish.yml +0 -52
- package/.storybook/main.ts +0 -28
- package/.storybook/preview.ts +0 -19
- package/.storybook/test-runner.ts +0 -29
- package/.storybook/tsconfig.json +0 -14
- package/.storybook/typings.d.ts +0 -4
- package/.vscode/extensions.json +0 -7
- package/.vscode/launch.json +0 -20
- package/.vscode/settings.json +0 -16
- package/.vscode/tasks.json +0 -42
- package/angular.json +0 -102
- package/codegen.yml +0 -8
- package/projects/unipin-angular/README.md +0 -24
- package/projects/unipin-angular/documentation.json +0 -116258
- package/projects/unipin-angular/ng-package.json +0 -19
- package/projects/unipin-angular/package-lock.json +0 -23
- package/projects/unipin-angular/package.json +0 -32
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_accordion.scss +0 -149
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_alert.scss +0 -71
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_badge.scss +0 -38
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_breadcrumb.scss +0 -40
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_button-group.scss +0 -142
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_buttons.scss +0 -209
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_card.scss +0 -234
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_carousel.scss +0 -226
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_close.scss +0 -40
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_containers.scss +0 -41
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_dropdown.scss +0 -249
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_forms.scss +0 -9
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_functions.scss +0 -302
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_grid.scss +0 -33
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_helpers.scss +0 -10
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_images.scss +0 -42
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_list-group.scss +0 -192
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_maps.scss +0 -54
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_mixins.scss +0 -43
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_modal.scss +0 -237
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_nav.scss +0 -172
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_navbar.scss +0 -278
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_offcanvas.scss +0 -144
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_pagination.scss +0 -109
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_placeholders.scss +0 -51
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_popover.scss +0 -196
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_progress.scss +0 -59
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_reboot.scss +0 -610
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_root.scss +0 -73
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_spinners.scss +0 -85
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_tables.scss +0 -164
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_toasts.scss +0 -73
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_tooltip.scss +0 -120
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_transitions.scss +0 -27
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_type.scss +0 -106
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_utilities.scss +0 -647
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/_variables.scss +0 -1634
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/bootstrap-grid.scss +0 -64
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/bootstrap-reboot.scss +0 -9
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/bootstrap-utilities.scss +0 -18
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/bootstrap.scss +0 -24
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/forms/_floating-labels.scss +0 -75
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/forms/_form-check.scss +0 -175
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/forms/_form-control.scss +0 -195
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/forms/_form-range.scss +0 -91
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/forms/_form-select.scss +0 -71
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/forms/_form-text.scss +0 -11
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/forms/_input-group.scss +0 -132
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/forms/_labels.scss +0 -36
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/forms/_validation.scss +0 -12
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/helpers/_clearfix.scss +0 -3
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/helpers/_color-bg.scss +0 -10
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/helpers/_colored-links.scss +0 -12
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/helpers/_position.scss +0 -36
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/helpers/_ratio.scss +0 -26
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/helpers/_stacks.scss +0 -15
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/helpers/_stretched-link.scss +0 -15
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/helpers/_text-truncation.scss +0 -7
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/helpers/_visually-hidden.scss +0 -8
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/helpers/_vr.scss +0 -8
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_alert.scss +0 -15
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_backdrop.scss +0 -14
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_banner.scss +0 -9
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_border-radius.scss +0 -78
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_box-shadow.scss +0 -18
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_breakpoints.scss +0 -127
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_buttons.scss +0 -70
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_caret.scss +0 -64
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_clearfix.scss +0 -9
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_color-scheme.scss +0 -7
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_container.scss +0 -11
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_deprecate.scss +0 -10
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_forms.scss +0 -152
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_gradients.scss +0 -47
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_grid.scss +0 -151
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_image.scss +0 -16
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_list-group.scss +0 -24
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_lists.scss +0 -7
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_pagination.scss +0 -10
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_reset-text.scss +0 -17
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_resize.scss +0 -6
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_table-variants.scss +0 -24
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_text-truncate.scss +0 -8
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_transition.scss +0 -26
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_utilities.scss +0 -97
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/mixins/_visually-hidden.scss +0 -29
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/utilities/_api.scss +0 -47
- package/projects/unipin-angular/src/assets/private/scss/bootstrap/vendor/_rfs.scss +0 -354
- package/projects/unipin-angular/src/assets/private/scss/theme/variables.scss +0 -59
- package/projects/unipin-angular/src/graphql/generated.d.ts +0 -715
- package/projects/unipin-angular/src/graphql/generated.mjs +0 -49
- package/projects/unipin-angular/src/graphql/generated.ts +0 -19998
- package/projects/unipin-angular/src/lib/components/approval/detail/approval-detail.component.html +0 -14
- package/projects/unipin-angular/src/lib/components/approval/detail/approval-detail.component.scss +0 -0
- package/projects/unipin-angular/src/lib/components/approval/detail/approval-detail.component.ts +0 -90
- package/projects/unipin-angular/src/lib/components/approval/detail/approval-detail.stories.ts +0 -61
- package/projects/unipin-angular/src/lib/components/approval/form/approval-form.component.html +0 -41
- package/projects/unipin-angular/src/lib/components/approval/form/approval-form.component.scss +0 -0
- package/projects/unipin-angular/src/lib/components/approval/form/approval-form.component.ts +0 -152
- package/projects/unipin-angular/src/lib/components/approval/form/approval-form.stories.ts +0 -111
- package/projects/unipin-angular/src/lib/components/approval/list/approval-list.component.html +0 -15
- package/projects/unipin-angular/src/lib/components/approval/list/approval-list.component.scss +0 -0
- package/projects/unipin-angular/src/lib/components/approval/list/approval-list.component.ts +0 -136
- package/projects/unipin-angular/src/lib/components/approval/list/approval-list.stories.ts +0 -141
- package/projects/unipin-angular/src/lib/components/approval/list/provide-approval-entities.util.ts +0 -10
- package/projects/unipin-angular/src/lib/components/approval/services/approval.service.ts +0 -46
- package/projects/unipin-angular/src/lib/components/audit/detail/audit-detail.component.html +0 -50
- package/projects/unipin-angular/src/lib/components/audit/detail/audit-detail.component.scss +0 -4
- package/projects/unipin-angular/src/lib/components/audit/detail/audit-detail.component.spec.ts +0 -51
- package/projects/unipin-angular/src/lib/components/audit/detail/audit-detail.component.ts +0 -141
- package/projects/unipin-angular/src/lib/components/audit/detail/audit-detail.stories.ts +0 -126
- package/projects/unipin-angular/src/lib/components/audit/list/audit-list.component.html +0 -5
- package/projects/unipin-angular/src/lib/components/audit/list/audit-list.component.scss +0 -0
- package/projects/unipin-angular/src/lib/components/audit/list/audit-list.component.ts +0 -85
- package/projects/unipin-angular/src/lib/components/audit/list/audit-list.stories.ts +0 -170
- package/projects/unipin-angular/src/lib/components/audit/service/audit.service.ts +0 -48
- package/projects/unipin-angular/src/lib/components/audit/types/audit-detail-form.type.ts +0 -13
- package/projects/unipin-angular/src/lib/components/buttons/group/btn-group.component.html +0 -42
- package/projects/unipin-angular/src/lib/components/buttons/group/btn-group.component.scss +0 -19
- package/projects/unipin-angular/src/lib/components/buttons/group/btn-group.component.ts +0 -72
- package/projects/unipin-angular/src/lib/components/buttons/group/btn-group.stories.ts +0 -132
- package/projects/unipin-angular/src/lib/components/buttons/group/interfaces/btn-group-config.interface.ts +0 -63
- package/projects/unipin-angular/src/lib/components/buttons/loading/btn-loading.component.html +0 -9
- package/projects/unipin-angular/src/lib/components/buttons/loading/btn-loading.component.scss +0 -8
- package/projects/unipin-angular/src/lib/components/buttons/loading/btn-loading.component.ts +0 -87
- package/projects/unipin-angular/src/lib/components/buttons/loading/btn-loading.stories.ts +0 -188
- package/projects/unipin-angular/src/lib/components/containers/applet-container/applet-container.component.html +0 -39
- package/projects/unipin-angular/src/lib/components/containers/applet-container/applet-container.component.scss +0 -68
- package/projects/unipin-angular/src/lib/components/containers/applet-container/applet-container.component.ts +0 -98
- package/projects/unipin-angular/src/lib/components/containers/applet-container/provide-applet-config.util.ts +0 -23
- package/projects/unipin-angular/src/lib/components/containers/colum-header-container/column-header-container.component.html +0 -17
- package/projects/unipin-angular/src/lib/components/containers/colum-header-container/column-header-container.component.scss +0 -4
- package/projects/unipin-angular/src/lib/components/containers/colum-header-container/column-header-container.component.ts +0 -32
- package/projects/unipin-angular/src/lib/components/containers/colum-header-container/column-header.stories.ts +0 -77
- package/projects/unipin-angular/src/lib/components/containers/column-container/column-container.component.html +0 -17
- package/projects/unipin-angular/src/lib/components/containers/column-container/column-container.component.scss +0 -0
- package/projects/unipin-angular/src/lib/components/containers/column-container/column-container.component.ts +0 -139
- package/projects/unipin-angular/src/lib/components/containers/column-container/directives/lazy-route.directive.ts +0 -86
- package/projects/unipin-angular/src/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.html +0 -19
- package/projects/unipin-angular/src/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.scss +0 -7
- package/projects/unipin-angular/src/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.ts +0 -113
- package/projects/unipin-angular/src/lib/components/containers/list-container/list-pagination-container/list-pagination-container.stories.ts +0 -207
- package/projects/unipin-angular/src/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.html +0 -19
- package/projects/unipin-angular/src/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.scss +0 -7
- package/projects/unipin-angular/src/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.ts +0 -114
- package/projects/unipin-angular/src/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.stories.ts +0 -212
- package/projects/unipin-angular/src/lib/components/containers/modal-container/modal-container.component.html +0 -15
- package/projects/unipin-angular/src/lib/components/containers/modal-container/modal-container.component.scss +0 -2
- package/projects/unipin-angular/src/lib/components/containers/modal-container/modal-container.component.ts +0 -88
- package/projects/unipin-angular/src/lib/components/containers/modal-container/modal-container.stories.ts +0 -66
- package/projects/unipin-angular/src/lib/components/filter/filter.component.html +0 -112
- package/projects/unipin-angular/src/lib/components/filter/filter.component.scss +0 -28
- package/projects/unipin-angular/src/lib/components/filter/filter.component.ts +0 -329
- package/projects/unipin-angular/src/lib/components/filter/filter.stories.ts +0 -176
- package/projects/unipin-angular/src/lib/components/filter/interfaces/filter-config.interface.ts +0 -17
- package/projects/unipin-angular/src/lib/components/filter/interfaces/filter-field.interface.ts +0 -73
- package/projects/unipin-angular/src/lib/components/filter/interfaces/filter-search-event.interface.ts +0 -15
- package/projects/unipin-angular/src/lib/components/forms/country-input/form-country-input.component.html +0 -19
- package/projects/unipin-angular/src/lib/components/forms/country-input/form-country-input.component.scss +0 -0
- package/projects/unipin-angular/src/lib/components/forms/country-input/form-country-input.component.ts +0 -210
- package/projects/unipin-angular/src/lib/components/forms/country-input/form-country-input.stories.ts +0 -175
- package/projects/unipin-angular/src/lib/components/forms/currency-input/form-currency-input.component.html +0 -42
- package/projects/unipin-angular/src/lib/components/forms/currency-input/form-currency-input.component.scss +0 -4
- package/projects/unipin-angular/src/lib/components/forms/currency-input/form-currency-input.component.ts +0 -285
- package/projects/unipin-angular/src/lib/components/forms/currency-input/form-currency-input.spec.ts +0 -119
- package/projects/unipin-angular/src/lib/components/forms/currency-input/form-currency-input.stories.ts +0 -243
- package/projects/unipin-angular/src/lib/components/forms/date/form-date.component.html +0 -27
- package/projects/unipin-angular/src/lib/components/forms/date/form-date.component.scss +0 -7
- package/projects/unipin-angular/src/lib/components/forms/date/form-date.component.ts +0 -225
- package/projects/unipin-angular/src/lib/components/forms/date/form-date.stories.ts +0 -201
- package/projects/unipin-angular/src/lib/components/forms/image-picker/directives/drag-n-drop.directive.ts +0 -40
- package/projects/unipin-angular/src/lib/components/forms/image-picker/form-image-picker.component.html +0 -29
- package/projects/unipin-angular/src/lib/components/forms/image-picker/form-image-picker.component.scss +0 -40
- package/projects/unipin-angular/src/lib/components/forms/image-picker/form-image-picker.component.ts +0 -109
- package/projects/unipin-angular/src/lib/components/forms/image-picker/form-image-picker.stories.ts +0 -133
- package/projects/unipin-angular/src/lib/components/forms/input/form-input.component.html +0 -22
- package/projects/unipin-angular/src/lib/components/forms/input/form-input.component.scss +0 -0
- package/projects/unipin-angular/src/lib/components/forms/input/form-input.component.ts +0 -177
- package/projects/unipin-angular/src/lib/components/forms/input/form-input.stories.ts +0 -185
- package/projects/unipin-angular/src/lib/components/forms/number/form-number.component.html +0 -6
- package/projects/unipin-angular/src/lib/components/forms/number/form-number.component.scss +0 -0
- package/projects/unipin-angular/src/lib/components/forms/number/form-number.component.ts +0 -176
- package/projects/unipin-angular/src/lib/components/forms/number/form-number.spec.ts +0 -62
- package/projects/unipin-angular/src/lib/components/forms/number/form-number.stories.ts +0 -150
- package/projects/unipin-angular/src/lib/components/forms/number/pipes/locale-number.pipe.ts +0 -32
- package/projects/unipin-angular/src/lib/components/forms/password/form-password.component.html +0 -11
- package/projects/unipin-angular/src/lib/components/forms/password/form-password.component.scss +0 -5
- package/projects/unipin-angular/src/lib/components/forms/password/form-password.component.ts +0 -177
- package/projects/unipin-angular/src/lib/components/forms/password/form-password.stories.ts +0 -151
- package/projects/unipin-angular/src/lib/components/forms/rate-group-code-input/form-rate-group-code-input.component.html +0 -30
- package/projects/unipin-angular/src/lib/components/forms/rate-group-code-input/form-rate-group-code-input.component.scss +0 -0
- package/projects/unipin-angular/src/lib/components/forms/rate-group-code-input/form-rate-group-code-input.component.ts +0 -271
- package/projects/unipin-angular/src/lib/components/forms/rate-group-code-input/form-rate-group-code-input.stories.ts +0 -248
- package/projects/unipin-angular/src/lib/components/forms/searchable-select/form-searchable-select.component.html +0 -28
- package/projects/unipin-angular/src/lib/components/forms/searchable-select/form-searchable-select.component.scss +0 -0
- package/projects/unipin-angular/src/lib/components/forms/searchable-select/form-searchable-select.component.ts +0 -281
- package/projects/unipin-angular/src/lib/components/forms/searchable-select/form-searchable-select.stories.ts +0 -267
- package/projects/unipin-angular/src/lib/components/forms/select/form-select.component.html +0 -24
- package/projects/unipin-angular/src/lib/components/forms/select/form-select.component.scss +0 -1
- package/projects/unipin-angular/src/lib/components/forms/select/form-select.component.ts +0 -216
- package/projects/unipin-angular/src/lib/components/forms/select/form-select.stories.ts +0 -220
- package/projects/unipin-angular/src/lib/components/forms/textarea/form-textarea.component.html +0 -9
- package/projects/unipin-angular/src/lib/components/forms/textarea/form-textarea.component.scss +0 -0
- package/projects/unipin-angular/src/lib/components/forms/textarea/form-textarea.component.ts +0 -146
- package/projects/unipin-angular/src/lib/components/forms/textarea/form-textarea.stories.ts +0 -163
- package/projects/unipin-angular/src/lib/components/grids/grid-pagination/grid-pagination.component.html +0 -17
- package/projects/unipin-angular/src/lib/components/grids/grid-pagination/grid-pagination.component.scss +0 -8
- package/projects/unipin-angular/src/lib/components/grids/grid-pagination/grid-pagination.component.ts +0 -224
- package/projects/unipin-angular/src/lib/components/grids/grid-pagination/grid-pagination.stories.ts +0 -219
- package/projects/unipin-angular/src/lib/components/grids/grid-snapshot/grid-snapshot.component.html +0 -17
- package/projects/unipin-angular/src/lib/components/grids/grid-snapshot/grid-snapshot.component.scss +0 -8
- package/projects/unipin-angular/src/lib/components/grids/grid-snapshot/grid-snapshot.component.ts +0 -229
- package/projects/unipin-angular/src/lib/components/grids/grid-snapshot/grid-snapshot.stories.ts +0 -173
- package/projects/unipin-angular/src/lib/components/grids/interfaces/grid-config.interface.ts +0 -44
- package/projects/unipin-angular/src/lib/components/grids/services/grid.service.ts +0 -23
- package/projects/unipin-angular/src/lib/components/infinite-scroll/directive/infinite-scroll.directive.ts +0 -72
- package/projects/unipin-angular/src/lib/components/infinite-scroll/infinite-scroll.component.html +0 -13
- package/projects/unipin-angular/src/lib/components/infinite-scroll/infinite-scroll.component.scss +0 -10
- package/projects/unipin-angular/src/lib/components/infinite-scroll/infinite-scroll.component.ts +0 -61
- package/projects/unipin-angular/src/lib/components/infinite-scroll/infinite-scroll.stories.ts +0 -80
- package/projects/unipin-angular/src/lib/components/tabs/tab-content/tab-content.component.html +0 -3
- package/projects/unipin-angular/src/lib/components/tabs/tab-content/tab-content.component.scss +0 -6
- package/projects/unipin-angular/src/lib/components/tabs/tab-content/tab-content.component.ts +0 -56
- package/projects/unipin-angular/src/lib/components/tabs/tab-group/tab-group.component.html +0 -24
- package/projects/unipin-angular/src/lib/components/tabs/tab-group/tab-group.component.scss +0 -39
- package/projects/unipin-angular/src/lib/components/tabs/tab-group/tab-group.component.ts +0 -92
- package/projects/unipin-angular/src/lib/components/tabs/tab.stories.ts +0 -117
- package/projects/unipin-angular/src/lib/guards/auth/auth.guard.ts +0 -11
- package/projects/unipin-angular/src/lib/interceptors/header/header.interceptor.ts +0 -36
- package/projects/unipin-angular/src/lib/interceptors/refresh-token/refresh-token.interceptor.ts +0 -123
- package/projects/unipin-angular/src/lib/interfaces/user/user.interface.ts +0 -27
- package/projects/unipin-angular/src/lib/modules/index.ts +0 -11
- package/projects/unipin-angular/src/lib/modules/micro-frontend/utils/mf-bootstrap.util.ts +0 -74
- package/projects/unipin-angular/src/lib/modules/micro-frontend/utils/mf-global-state.util.ts +0 -20
- package/projects/unipin-angular/src/lib/modules/permission/directive/permission.directive.spec.ts +0 -50
- package/projects/unipin-angular/src/lib/modules/permission/directive/permission.directive.ts +0 -68
- package/projects/unipin-angular/src/lib/modules/permission/guards/permission.guard.spec.ts +0 -76
- package/projects/unipin-angular/src/lib/modules/permission/guards/permission.guard.ts +0 -30
- package/projects/unipin-angular/src/lib/modules/permission/pages/401/unauthorized.page.html +0 -3
- package/projects/unipin-angular/src/lib/modules/permission/pages/401/unauthorized.page.scss +0 -3
- package/projects/unipin-angular/src/lib/modules/permission/pages/401/unauthorized.page.ts +0 -14
- package/projects/unipin-angular/src/lib/modules/permission/pages/loading/loading.page.html +0 -2
- package/projects/unipin-angular/src/lib/modules/permission/pages/loading/loading.page.scss +0 -4
- package/projects/unipin-angular/src/lib/modules/permission/pages/loading/loading.page.ts +0 -76
- package/projects/unipin-angular/src/lib/modules/permission/pages/loading/provide-loading-config.util.ts +0 -18
- package/projects/unipin-angular/src/lib/modules/permission/services/permission.service.spec.ts +0 -62
- package/projects/unipin-angular/src/lib/modules/permission/services/permission.service.ts +0 -78
- package/projects/unipin-angular/src/lib/resolvers/auth/auth.resolver.spec.ts +0 -46
- package/projects/unipin-angular/src/lib/resolvers/auth/auth.resolver.ts +0 -144
- package/projects/unipin-angular/src/lib/services/auth/auth.service.ts +0 -243
- package/projects/unipin-angular/src/lib/services/country/country.service.ts +0 -47
- package/projects/unipin-angular/src/lib/services/currency/currency.service.ts +0 -44
- package/projects/unipin-angular/src/lib/services/profile/profile.service.ts +0 -86
- package/projects/unipin-angular/src/lib/services/rate-group-code/rate-group-code.service.ts +0 -29
- package/projects/unipin-angular/src/lib/utils/contrast-color-generator/contrast-color-generator.util.spec.ts +0 -19
- package/projects/unipin-angular/src/lib/utils/contrast-color-generator/contrast-color-generator.util.ts +0 -28
- package/projects/unipin-angular/src/lib/utils/form-error-message/form-error-message.util.spec.ts +0 -58
- package/projects/unipin-angular/src/lib/utils/form-error-message/form-error-message.util.ts +0 -30
- package/projects/unipin-angular/src/lib/utils/format-capitalize/format-capitalize.util.spec.ts +0 -30
- package/projects/unipin-angular/src/lib/utils/format-capitalize/format-capitalize.util.ts +0 -22
- package/projects/unipin-angular/src/lib/utils/redirect-to-first-menu/redirect-to-first-menu.util.ts +0 -15
- package/projects/unipin-angular/src/public-api.ts +0 -126
- package/projects/unipin-angular/tsconfig.lib.json +0 -14
- package/projects/unipin-angular/tsconfig.lib.prod.json +0 -10
- package/projects/unipin-angular/tsconfig.spec.json +0 -14
- package/snapshot-serializer.js +0 -12
- package/test-runner-jest.config.js +0 -13
- package/tsconfig.json +0 -51
- /package/{projects/unipin-angular/src/lib/components/audit/index.ts → lib/components/audit/index.d.ts} +0 -0
- /package/{projects/unipin-angular/src/lib/components/buttons/index.ts → lib/components/buttons/index.d.ts} +0 -0
- /package/{projects/unipin-angular/src/lib/components/containers/list-container/index.ts → lib/components/containers/list-container/index.d.ts} +0 -0
- /package/{projects/unipin-angular/src/lib/components/forms/index.ts → lib/components/forms/index.d.ts} +0 -0
- /package/{projects/unipin-angular/src/lib/components/grids/index.ts → lib/components/grids/index.d.ts} +0 -0
- /package/{projects/unipin-angular/src/lib/components/infinite-scroll/index.ts → lib/components/infinite-scroll/index.d.ts} +0 -0
- /package/{projects/unipin-angular/src/lib/guards/index.ts → lib/guards/index.d.ts} +0 -0
- /package/{projects/unipin-angular/src/lib/interceptors/index.ts → lib/interceptors/index.d.ts} +0 -0
- /package/{projects/unipin-angular/src/lib/interfaces/index.ts → lib/interfaces/index.d.ts} +0 -0
- /package/{projects/unipin-angular/src/lib/modules/micro-frontend/index.ts → lib/modules/micro-frontend/index.d.ts} +0 -0
- /package/{projects/unipin-angular/src/lib/resolvers/index.ts → lib/resolvers/index.d.ts} +0 -0
- /package/{projects/unipin-angular/src/lib/services/index.ts → lib/services/index.d.ts} +0 -0
- /package/{projects/unipin-angular/src/lib/utils/index.ts → lib/utils/index.d.ts} +0 -0
- /package/{projects/unipin-angular/src → src}/assets/scss/forms.scss +0 -0
- /package/{projects/unipin-angular/src → src}/assets/scss/grid.scss +0 -0
- /package/{projects/unipin-angular/src → src}/assets/scss/select.scss +0 -0
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
import { Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
|
2
|
-
import { formatDate } from '@angular/common';
|
|
3
|
-
import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { IonicModule, PopoverController } from '@ionic/angular';
|
|
5
|
-
import { FilterConfig } from './interfaces/filter-config.interface';
|
|
6
|
-
import { FilterField } from './interfaces/filter-field.interface';
|
|
7
|
-
import { FilterSearchEvent } from './interfaces/filter-search-event.interface';
|
|
8
|
-
import { FormInputComponent, FormSelectComponent, FormDateComponent, FormSearchableSelectComponent } from '../forms';
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
standalone: true,
|
|
12
|
-
selector: 'up-filter',
|
|
13
|
-
styleUrl: './filter.component.scss',
|
|
14
|
-
templateUrl: './filter.component.html',
|
|
15
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
|
-
host: {
|
|
17
|
-
class: 'd-block position-relative'
|
|
18
|
-
},
|
|
19
|
-
imports: [
|
|
20
|
-
IonicModule,
|
|
21
|
-
FormDateComponent,
|
|
22
|
-
FormInputComponent,
|
|
23
|
-
ReactiveFormsModule,
|
|
24
|
-
FormSelectComponent,
|
|
25
|
-
FormSearchableSelectComponent
|
|
26
|
-
]
|
|
27
|
-
})
|
|
28
|
-
export class FilterComponent implements OnInit {
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Input variable for the unique identifier of the filter.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @required
|
|
34
|
-
*/
|
|
35
|
-
@Input({ required: true }) public id!: string;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Input variable for the configuration object specifying filter fields and mode.
|
|
39
|
-
* @type {FilterConfig}
|
|
40
|
-
* @required
|
|
41
|
-
*/
|
|
42
|
-
@Input({ required: true }) public config!: FilterConfig;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Output event emitter triggered when the user performs a search.
|
|
46
|
-
* Emits a `FilterSearchEvent` object with search mode and criteria data.
|
|
47
|
-
* @type {EventEmitter<FilterSearchEvent>}
|
|
48
|
-
*/
|
|
49
|
-
@Output() public readonly onSearch: EventEmitter<FilterSearchEvent> = new EventEmitter();
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* ViewChild decorator to reference the searchBox element in the template.
|
|
53
|
-
* @type {ElementRef}
|
|
54
|
-
*/
|
|
55
|
-
@ViewChild('searchBox') protected readonly searchBox!: ElementRef;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Form group for managing form controls.
|
|
59
|
-
* @type {FormGroup<any>}
|
|
60
|
-
*/
|
|
61
|
-
public readonly form: FormGroup<any> = new FormGroup({});
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Array to store active filter criteria.
|
|
65
|
-
* @type {{ label: string, key: string, value: string }[]}
|
|
66
|
-
*/
|
|
67
|
-
public activeFilter: { label: string, key: string, value: string }[] = [];
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Map to store initial items for each filter key.
|
|
71
|
-
* @type {Map<string, { label: string, value: string }[]>}
|
|
72
|
-
*/
|
|
73
|
-
public initialItems: Map<string, { label: string, value: string }[]> = new Map();
|
|
74
|
-
|
|
75
|
-
constructor(
|
|
76
|
-
@Attribute('placeholder') public placeholder: string,
|
|
77
|
-
protected readonly ch: ChangeDetectorRef,
|
|
78
|
-
protected readonly popoverCtrl: PopoverController
|
|
79
|
-
) { }
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Lifecycle hook to initialize the component.
|
|
83
|
-
* Creates form controls based on the provided configuration and restores saved filter state.
|
|
84
|
-
*/
|
|
85
|
-
public ngOnInit(): void{
|
|
86
|
-
const irresoluteKeys = new Set<string>();
|
|
87
|
-
const irresoluteValue = new Map<string, any>();
|
|
88
|
-
|
|
89
|
-
this.config.fields.forEach(({ key, initialValue, initialItems, isIrresolute }: FilterField) => {
|
|
90
|
-
if (typeof key !== 'string') {
|
|
91
|
-
key.forEach((k: string, i: number) => {
|
|
92
|
-
this.createFormControl(k, initialValue?.at(i), isIrresolute);
|
|
93
|
-
|
|
94
|
-
if (isIrresolute) {
|
|
95
|
-
irresoluteKeys.add(k);
|
|
96
|
-
if (initialValue) irresoluteValue.set(k, initialValue?.at(i));
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
} else {
|
|
100
|
-
if (initialItems) {
|
|
101
|
-
this.initialItems.set(key, initialItems);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
this.createFormControl(key, initialValue, isIrresolute);
|
|
105
|
-
if (isIrresolute) {
|
|
106
|
-
irresoluteKeys.add(key);
|
|
107
|
-
if (initialValue) irresoluteValue.set(key, initialValue);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
const savedState = localStorage.getItem(`${ this.id }`);
|
|
113
|
-
if (!savedState) {
|
|
114
|
-
this.emitValue();
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const state = JSON.parse(savedState);
|
|
119
|
-
if (state.initialItems) {
|
|
120
|
-
this.initialItems = new Map(Object.entries(state.initialItems));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const formValues = state.formValues || {};
|
|
124
|
-
const combValues: { [key: string]: any } = {};
|
|
125
|
-
Object.keys(formValues).forEach(key => {
|
|
126
|
-
if (!irresoluteKeys.has(key)) combValues[key] = formValues[key];
|
|
127
|
-
else {
|
|
128
|
-
combValues[key] = irresoluteValue.get(key);
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
this.form.patchValue(combValues);
|
|
133
|
-
|
|
134
|
-
this.activeFilter = [];
|
|
135
|
-
const currentValues = this.form.getRawValue();
|
|
136
|
-
Object.keys(currentValues).forEach(key => {
|
|
137
|
-
if (currentValues[key]) this.processFilter(key, currentValues[key]);
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
this.emitValue();
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Closes the filter popover.
|
|
145
|
-
*/
|
|
146
|
-
public close(): void{
|
|
147
|
-
this.popoverCtrl.dismiss();
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Clears all filter criteria, localStorage, and triggers a search event with null data.
|
|
152
|
-
*/
|
|
153
|
-
public clear(): void{
|
|
154
|
-
this.resetValue();
|
|
155
|
-
this.form.reset();
|
|
156
|
-
|
|
157
|
-
localStorage.removeItem(`${ this.id }`);
|
|
158
|
-
this.initialItems.clear();
|
|
159
|
-
this.onSearch.emit({ mode: this.config.mode, data: null });
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Removes a specific filter criteria based on its index.
|
|
164
|
-
* @param {number} i - Index of the filter criteria to be removed.
|
|
165
|
-
*/
|
|
166
|
-
public removeFilter(i: number): void{
|
|
167
|
-
this.form.controls[this.activeFilter[i].key].setValue('');
|
|
168
|
-
this.activeFilter.splice(i, 1);
|
|
169
|
-
|
|
170
|
-
if (this.activeFilter.length === 0) {
|
|
171
|
-
this.clear();
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
this.emitValue();
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Initiates a search based on the active filter criteria and clears the saved filter state if there are no active filters.
|
|
178
|
-
*/
|
|
179
|
-
public search(): void{
|
|
180
|
-
this.resetValue();
|
|
181
|
-
this.emitValue((k: string, v: any) => {
|
|
182
|
-
this.processFilter(k, v);
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
if (this.activeFilter.length === 0) {
|
|
186
|
-
this.initialItems.clear();
|
|
187
|
-
localStorage.removeItem(`${this.id}`);
|
|
188
|
-
}
|
|
189
|
-
this.close();
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
protected processFilter(key: string, value: any): void{
|
|
193
|
-
let values: string[];
|
|
194
|
-
if (Array.isArray(value)) {
|
|
195
|
-
values = value;
|
|
196
|
-
} else {
|
|
197
|
-
values = [value];
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
values = values.filter(v => v !== undefined && v !== null && v !== '');
|
|
201
|
-
|
|
202
|
-
if (values.length === 0) {
|
|
203
|
-
this.activeFilter = this.activeFilter.filter(item => item.key !== key);
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
const labels = values.map(v => {
|
|
208
|
-
const initialItem = this.initialItems.get(key)?.find(item => item.value === v);
|
|
209
|
-
return initialItem
|
|
210
|
-
? initialItem.label
|
|
211
|
-
: key.toLowerCase().includes('date')? formatDate(v, 'dd MMM yyyy', 'en-US') : v;
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
const label = `${ key }: ${ labels.join(', ') }`;
|
|
215
|
-
const valueString = values.join(',');
|
|
216
|
-
|
|
217
|
-
this.activeFilter = this.activeFilter.filter(item => item.key !== key);
|
|
218
|
-
this.activeFilter.push({ key, value: valueString, label });
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Adds a new filter criteria based on the user input.
|
|
223
|
-
*/
|
|
224
|
-
public add(): void{
|
|
225
|
-
const { key, value } = this.getValue(this.searchBox.nativeElement.value);
|
|
226
|
-
if (this.config.fields.findIndex(({ key: k }) => k === key) === -1) {
|
|
227
|
-
this.searchBox.nativeElement.value = '';
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
const i = this.activeFilter.findIndex(({ key: k }) => k === key);
|
|
232
|
-
if (i === -1) this.activeFilter.unshift({ label: `${ key }:${ value }`, key, value });
|
|
233
|
-
else {
|
|
234
|
-
this.activeFilter[i].key = key;
|
|
235
|
-
this.activeFilter[i].value = value;
|
|
236
|
-
this.activeFilter[i].label = `${ key }:${ value }`;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
this.form.patchValue({ [key]: value });
|
|
240
|
-
this.searchBox.nativeElement.value = '';
|
|
241
|
-
this.emitValue();
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Receive the initialItems form searchable or select component and apply them to the initialItems map to be used again by searchable or select component
|
|
246
|
-
* when it initialized again.
|
|
247
|
-
* @param {any} item - The initial items received from the searcable or select component.
|
|
248
|
-
* @param {string} key - The key associated with the initial items.
|
|
249
|
-
*/
|
|
250
|
-
public applyInitialItems(item: any, key: string): void{
|
|
251
|
-
if (!Array.isArray(item)) {
|
|
252
|
-
this.initialItems = this.initialItems.set(key, [ item ]);
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
this.initialItems = this.initialItems.set(key, item);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* Resets the active filter and clears the search box.
|
|
261
|
-
*/
|
|
262
|
-
protected resetValue(): void{
|
|
263
|
-
this.activeFilter.length = 0;
|
|
264
|
-
this.searchBox.nativeElement.value = '';
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Parses the input value and returns a key-value pair.
|
|
269
|
-
* @param {string} value - Input value to be parsed.
|
|
270
|
-
* @returns {{ key: string, value: string }} - Key-value pair extracted from the input value.
|
|
271
|
-
*/
|
|
272
|
-
protected getValue(value: string): { key: string, value: string }{
|
|
273
|
-
const values: string[] = value.split(':');
|
|
274
|
-
|
|
275
|
-
if (values.length === 1) return { key: <string> (Array.isArray(this.config.fields[0].key)? this.config.fields[0].key[0] : this.config.fields[0].key), value: values[0] };
|
|
276
|
-
return { key: values[0], value: values[1] };
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Emits the search event based on the form values.
|
|
281
|
-
* Invokes an extra action if provided and saves the state to localStorage.
|
|
282
|
-
* @param {(key: string, value: any) => void} [extraAction] - Optional extra action to be invoked.
|
|
283
|
-
*/
|
|
284
|
-
protected emitValue(extraAction?: (key: string, value: any) => void): void{
|
|
285
|
-
let flag: boolean = false;
|
|
286
|
-
const f = this.form.getRawValue();
|
|
287
|
-
const data: { [k: string]: any } = {};
|
|
288
|
-
|
|
289
|
-
Object.keys(f).forEach((k: any) => {
|
|
290
|
-
if (!f[k] || (Array.isArray(f[k]) && f[k].length === 0)) return;
|
|
291
|
-
|
|
292
|
-
flag = true;
|
|
293
|
-
data[k] = f[k];
|
|
294
|
-
extraAction?.(k, f[k]);
|
|
295
|
-
});
|
|
296
|
-
this.onSearch.emit({ mode: this.config.mode, data: flag? data : null });
|
|
297
|
-
|
|
298
|
-
this.saveState();
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* Creates a form control for a given key and sets its initial value.
|
|
303
|
-
* @param {string} key - Key for the form control.
|
|
304
|
-
* @param {*} [val] - Initial value for the form control.
|
|
305
|
-
*/
|
|
306
|
-
protected createFormControl(key: string, val?: any, isIrresolute?: boolean): void{
|
|
307
|
-
this.form.addControl(key, new FormControl(''));
|
|
308
|
-
|
|
309
|
-
if (val) {
|
|
310
|
-
this.form.controls[key].setValue(val);
|
|
311
|
-
this.processFilter(key, val);
|
|
312
|
-
|
|
313
|
-
if (!isIrresolute) {
|
|
314
|
-
this.saveState();
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
protected saveState(): void{
|
|
320
|
-
localStorage.setItem(
|
|
321
|
-
`${ this.id }`,
|
|
322
|
-
JSON.stringify({
|
|
323
|
-
activeFilter: this.activeFilter,
|
|
324
|
-
initialItems: Object.fromEntries(this.initialItems),
|
|
325
|
-
formValues: this.form.getRawValue()
|
|
326
|
-
})
|
|
327
|
-
);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { importProvidersFrom } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { of } from 'rxjs';
|
|
4
|
-
import { IonicModule } from '@ionic/angular';
|
|
5
|
-
import { applicationConfig, argsToTemplate, moduleMetadata, type Meta, type StoryObj } from '@storybook/angular';
|
|
6
|
-
import { FormDateComponent, FormInputComponent, FormSelectComponent, FormSearchableSelectComponent } from '../forms';
|
|
7
|
-
import { FilterComponent } from './filter.component';
|
|
8
|
-
|
|
9
|
-
const meta: Meta<FilterComponent> = {
|
|
10
|
-
title: 'Filters/Filter',
|
|
11
|
-
tags: [ 'autodocs' ],
|
|
12
|
-
component: FilterComponent,
|
|
13
|
-
decorators: [
|
|
14
|
-
applicationConfig({
|
|
15
|
-
providers: [
|
|
16
|
-
importProvidersFrom([ IonicModule.forRoot() ])
|
|
17
|
-
],
|
|
18
|
-
}),
|
|
19
|
-
moduleMetadata({
|
|
20
|
-
imports: [
|
|
21
|
-
IonicModule,
|
|
22
|
-
CommonModule,
|
|
23
|
-
FilterComponent,
|
|
24
|
-
FormDateComponent,
|
|
25
|
-
FormInputComponent,
|
|
26
|
-
FormSelectComponent,
|
|
27
|
-
FormSearchableSelectComponent
|
|
28
|
-
],
|
|
29
|
-
})
|
|
30
|
-
],
|
|
31
|
-
argTypes: {
|
|
32
|
-
config: {
|
|
33
|
-
defaultValue: undefined,
|
|
34
|
-
description: 'Configuration object for the filter, specifying the fields and mode. The mode has two options: `simple` and `advanced`. The first index of fields will be applied as the default filter. Each field can have a type of `text`, `number`, `date-range`, `select`, `searchable-select`, or `checkbox`.',
|
|
35
|
-
control: {
|
|
36
|
-
type: 'object'
|
|
37
|
-
},
|
|
38
|
-
table: {
|
|
39
|
-
category: 'Input'
|
|
40
|
-
},
|
|
41
|
-
type: {
|
|
42
|
-
required: true,
|
|
43
|
-
name: 'string'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
id: {
|
|
47
|
-
defaultValue: undefined,
|
|
48
|
-
description: 'Unique identifier for the component. Used as the `id` attribute in the HTML and will be used as the `id` for the associated `ion-popup`.',
|
|
49
|
-
table: {
|
|
50
|
-
category: 'Input'
|
|
51
|
-
},
|
|
52
|
-
type: {
|
|
53
|
-
required: true,
|
|
54
|
-
name: 'string'
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
placeholder: {
|
|
58
|
-
defaultValue: undefined,
|
|
59
|
-
description: 'Instructional text that shows before the filter has a value.',
|
|
60
|
-
table: {
|
|
61
|
-
category: 'Input',
|
|
62
|
-
subcategory: 'Attribute'
|
|
63
|
-
},
|
|
64
|
-
type: {
|
|
65
|
-
required: false,
|
|
66
|
-
name: 'string'
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
add: {
|
|
70
|
-
control: { disable: true },
|
|
71
|
-
table: { disable: true }
|
|
72
|
-
},
|
|
73
|
-
clear: {
|
|
74
|
-
control: { disable: true },
|
|
75
|
-
table: { disable: true }
|
|
76
|
-
},
|
|
77
|
-
close: {
|
|
78
|
-
control: { disable: true },
|
|
79
|
-
table: { disable: true }
|
|
80
|
-
},
|
|
81
|
-
form: {
|
|
82
|
-
control: { disable: true },
|
|
83
|
-
table: { disable: true }
|
|
84
|
-
},
|
|
85
|
-
ngOnInit: {
|
|
86
|
-
control: { disable: true },
|
|
87
|
-
table: { disable: true }
|
|
88
|
-
},
|
|
89
|
-
onSearch: {
|
|
90
|
-
control: { disable: true },
|
|
91
|
-
table: { disable: true }
|
|
92
|
-
},
|
|
93
|
-
removeFilter: {
|
|
94
|
-
control: { disable: true },
|
|
95
|
-
table: { disable: true }
|
|
96
|
-
},
|
|
97
|
-
activeFilter: {
|
|
98
|
-
control: { disable: true },
|
|
99
|
-
table: { disable: true }
|
|
100
|
-
},
|
|
101
|
-
search: {
|
|
102
|
-
control: { disable: true },
|
|
103
|
-
table: { disable: true }
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export default meta;
|
|
109
|
-
type Story = StoryObj<FilterComponent>;
|
|
110
|
-
|
|
111
|
-
export const Simple: Story = {
|
|
112
|
-
render: (props) => ({
|
|
113
|
-
props,
|
|
114
|
-
template: `
|
|
115
|
-
<div style="width: 600px">
|
|
116
|
-
<up-filter ${ argsToTemplate(props) } />
|
|
117
|
-
</div>
|
|
118
|
-
`
|
|
119
|
-
}),
|
|
120
|
-
args: {
|
|
121
|
-
placeholder: 'Type To Search',
|
|
122
|
-
id: 'simple-list',
|
|
123
|
-
config: {
|
|
124
|
-
mode: 'simple',
|
|
125
|
-
fields: [{ key: 'description', label: 'Description', type: 'text' }]
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
export const Advanced: Story = {
|
|
131
|
-
name: 'Advanced Search',
|
|
132
|
-
render: (props) => ({
|
|
133
|
-
props,
|
|
134
|
-
template: `
|
|
135
|
-
<div style="width: 600px">
|
|
136
|
-
<up-filter ${ argsToTemplate(props) } />
|
|
137
|
-
</div>
|
|
138
|
-
`
|
|
139
|
-
}),
|
|
140
|
-
args: {
|
|
141
|
-
...Simple.args,
|
|
142
|
-
id: 'advanced-list',
|
|
143
|
-
onSearch: (value) => console.log(value),
|
|
144
|
-
config: {
|
|
145
|
-
mode: 'advanced',
|
|
146
|
-
fields: [
|
|
147
|
-
{ key: 'description', label: 'Description', type: 'text' },
|
|
148
|
-
{ key: 'name', label: 'Name', type: 'text' },
|
|
149
|
-
{
|
|
150
|
-
key: 'status',
|
|
151
|
-
type: 'select',
|
|
152
|
-
multiple: true,
|
|
153
|
-
label: 'Status',
|
|
154
|
-
options: [
|
|
155
|
-
{ label: 'Active', value: 'active' },
|
|
156
|
-
{ label: 'Inactive', value: 'inactive' }
|
|
157
|
-
]
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
type: 'select',
|
|
161
|
-
key: 'country',
|
|
162
|
-
label: 'Country',
|
|
163
|
-
options: [
|
|
164
|
-
{ label: 'Indonesia', value: 'ID' },
|
|
165
|
-
{ label: 'Malaysia', value: 'MY' },
|
|
166
|
-
{ label: 'Thailand', value: 'TH' },
|
|
167
|
-
{ label: 'Philipine', value: 'PH' },
|
|
168
|
-
]
|
|
169
|
-
},
|
|
170
|
-
{ key: 'country', label: 'Country', type: 'searchable-select', getOptions: (keyword: string) => of([ {label: keyword, value: keyword }]) },
|
|
171
|
-
{ key: 'level', label: 'Level', type: 'number' },
|
|
172
|
-
{ key: ['startDate', 'endDate'], label: ['Start Date', 'End Date'], type: 'date-range' }
|
|
173
|
-
]
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
};
|
package/projects/unipin-angular/src/lib/components/filter/interfaces/filter-config.interface.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FilterField } from './filter-field.interface';
|
|
2
|
-
|
|
3
|
-
export interface FilterConfig {
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Mode of the filter, either 'simple' or 'advanced'.
|
|
7
|
-
* @type {('simple' | 'advanced')}
|
|
8
|
-
*/
|
|
9
|
-
mode: 'simple' | 'advanced';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Array of filter field configurations.
|
|
13
|
-
* Each element of the array is a `FilterField` object defining the key and initial value of a filter field.
|
|
14
|
-
* @type {FilterField[]}
|
|
15
|
-
*/
|
|
16
|
-
fields: FilterField[];
|
|
17
|
-
}
|
package/projects/unipin-angular/src/lib/components/filter/interfaces/filter-field.interface.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
|
|
3
|
-
export interface FilterField {
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Function to retrieve options asynchronously based on a keyword.
|
|
7
|
-
* It returns an Observable of an array of { label, value } objects.
|
|
8
|
-
* @type {(keyword: string) => Observable<{ label: string, value: string }[]>}
|
|
9
|
-
*/
|
|
10
|
-
getOptions?: (keyword: string) => Observable<{ label: string, value: string }[]>;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Initial value for the filter field. It can be a single string or an array of strings.
|
|
14
|
-
* @type {(string | string[])}
|
|
15
|
-
*/
|
|
16
|
-
initialValue?: string | string[];
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Initial value for the filter field. Used as intial items for select form filter.
|
|
20
|
-
* @type {{ label: string, value: string }[]}
|
|
21
|
-
*/
|
|
22
|
-
initialItems?: { label: string, value: string }[];
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Key or array of keys representing the field in the data model.
|
|
26
|
-
* @type {(string | string[])}
|
|
27
|
-
*/
|
|
28
|
-
key: string | string[];
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Label or array of labels for displaying the field in the UI.
|
|
32
|
-
* @type {(string | string[])}
|
|
33
|
-
*/
|
|
34
|
-
label: string | string[];
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Options for select-like fields (select, searchable-select, checkbox).
|
|
38
|
-
* An array of { label, value } objects.
|
|
39
|
-
* @type {{ label: string, value: string }[]}
|
|
40
|
-
*/
|
|
41
|
-
options?: { label: string, value: string }[];
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Type of the filter field. It can be 'text', 'number', 'date-range', 'select', 'searchable-select', 'checkbox', or 'number-range'.
|
|
45
|
-
* @type {('text' | 'number' | 'date-range' | 'select' | 'searchable-select' | 'checkbox' | 'number-range')}
|
|
46
|
-
*/
|
|
47
|
-
type: 'text' | 'number' | 'date-range' | 'select' | 'searchable-select' | 'checkbox' | 'number-range';
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* To determine whether the select typed field can has multiple values or not.
|
|
51
|
-
* @type boolean
|
|
52
|
-
*/
|
|
53
|
-
multiple?: boolean;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Determines whether the filter field should skip saving its value to localStorage.
|
|
57
|
-
* If set to true, the field will always use the defined initialValue instead of any saved value.
|
|
58
|
-
* @type {boolean}
|
|
59
|
-
*/
|
|
60
|
-
isIrresolute?: boolean;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Minimum value for number fields (number, number-range).
|
|
64
|
-
* @type {string}
|
|
65
|
-
*/
|
|
66
|
-
min?: string;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Maximum value for number fields (number, number-range).
|
|
70
|
-
* @type {string}
|
|
71
|
-
*/
|
|
72
|
-
max?: string;
|
|
73
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface FilterSearchEvent {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Data representing the search criteria. It can be of any type.
|
|
5
|
-
* @type {any}
|
|
6
|
-
*/
|
|
7
|
-
data: any;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Mode of the filter at the time of the search event.
|
|
11
|
-
* It can be 'simple' or 'advanced'.
|
|
12
|
-
* @type {('simple' | 'advanced')}
|
|
13
|
-
*/
|
|
14
|
-
mode: 'simple' | 'advanced';
|
|
15
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<label class="form-label" [class.required]="required">Country</label>
|
|
2
|
-
<ng-select
|
|
3
|
-
class="flex-shrink-0"
|
|
4
|
-
appendTo="body"
|
|
5
|
-
bindValue="value"
|
|
6
|
-
placeholder="{{ placeholder }}"
|
|
7
|
-
[virtualScroll]="true"
|
|
8
|
-
[items]="items"
|
|
9
|
-
[ngModel]="value"
|
|
10
|
-
[multiple]="multiple"
|
|
11
|
-
[readonly]="disabled"
|
|
12
|
-
[loading]="isLoading"
|
|
13
|
-
[clearable]="clearable"
|
|
14
|
-
(change)="change($event);"
|
|
15
|
-
/>
|
|
16
|
-
@if (errorMsg) {
|
|
17
|
-
<label class="is-invalid">{{ errorMsg }}</label>
|
|
18
|
-
}
|
|
19
|
-
|
|
File without changes
|