@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,150 +0,0 @@
|
|
|
1
|
-
import type { AngularRenderer, Meta, StoryObj } from '@storybook/angular';
|
|
2
|
-
import { userEvent, within } from '@storybook/testing-library';
|
|
3
|
-
import { expect } from '@storybook/jest';
|
|
4
|
-
import { FormNumberComponent } from './form-number.component';
|
|
5
|
-
|
|
6
|
-
const meta: Meta<FormNumberComponent> = {
|
|
7
|
-
title: 'Form/Number',
|
|
8
|
-
tags: [ 'autodocs' ],
|
|
9
|
-
component: FormNumberComponent,
|
|
10
|
-
argTypes: {
|
|
11
|
-
disabled: {
|
|
12
|
-
defaultValue: false,
|
|
13
|
-
description: 'If `true`, the user cannot interact with the input.',
|
|
14
|
-
table: {
|
|
15
|
-
category: 'Input'
|
|
16
|
-
},
|
|
17
|
-
type: {
|
|
18
|
-
required: false,
|
|
19
|
-
name: 'boolean'
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
label: {
|
|
23
|
-
defaultValue: undefined,
|
|
24
|
-
description: 'The visible label associated with the input.',
|
|
25
|
-
table: {
|
|
26
|
-
category: 'Input'
|
|
27
|
-
},
|
|
28
|
-
type: {
|
|
29
|
-
required: false,
|
|
30
|
-
name: 'string'
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
locale: {
|
|
34
|
-
defaultValue: undefined,
|
|
35
|
-
description: 'Specifies the locale used for formatting numbers based on the specified locale. If no locale is provided, the default locale of the user\'s browser is used.',
|
|
36
|
-
table: {
|
|
37
|
-
category: 'Input'
|
|
38
|
-
},
|
|
39
|
-
type: {
|
|
40
|
-
required: false,
|
|
41
|
-
name: 'string'
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
placeholder: {
|
|
45
|
-
defaultValue: undefined,
|
|
46
|
-
description: 'Instructional text that shows before the input has a value.',
|
|
47
|
-
table: {
|
|
48
|
-
category: 'Input',
|
|
49
|
-
subcategory: 'Attribute'
|
|
50
|
-
},
|
|
51
|
-
type: {
|
|
52
|
-
required: false,
|
|
53
|
-
name: 'string'
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
required: {
|
|
57
|
-
defaultValue: false,
|
|
58
|
-
description: 'If `true`, the user must fill in a value before submitting a form.',
|
|
59
|
-
table: {
|
|
60
|
-
category: 'Input'
|
|
61
|
-
},
|
|
62
|
-
type: {
|
|
63
|
-
required: false,
|
|
64
|
-
name: 'boolean'
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
change: {
|
|
68
|
-
table: { disable: true },
|
|
69
|
-
control: { disable: true }
|
|
70
|
-
},
|
|
71
|
-
errorMsg: {
|
|
72
|
-
table: { disable: true },
|
|
73
|
-
control: { disable: true }
|
|
74
|
-
},
|
|
75
|
-
isTouched: {
|
|
76
|
-
table: { disable: true },
|
|
77
|
-
control: { disable: true }
|
|
78
|
-
},
|
|
79
|
-
onKeyDown: {
|
|
80
|
-
table: { disable: true },
|
|
81
|
-
control: { disable: true }
|
|
82
|
-
},
|
|
83
|
-
registerOnChange: {
|
|
84
|
-
table: { disable: true },
|
|
85
|
-
control: { disable: true }
|
|
86
|
-
},
|
|
87
|
-
registerOnTouched: {
|
|
88
|
-
table: { disable: true },
|
|
89
|
-
control: { disable: true }
|
|
90
|
-
},
|
|
91
|
-
setDisabledState: {
|
|
92
|
-
table: { disable: true },
|
|
93
|
-
control: { disable: true }
|
|
94
|
-
},
|
|
95
|
-
writeValue: {
|
|
96
|
-
table: { disable: true },
|
|
97
|
-
control: { disable: true }
|
|
98
|
-
},
|
|
99
|
-
validate: {
|
|
100
|
-
table: { disable: true },
|
|
101
|
-
control: { disable: true }
|
|
102
|
-
},
|
|
103
|
-
value: {
|
|
104
|
-
table: { disable: true },
|
|
105
|
-
control: { disable: true }
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export default meta;
|
|
111
|
-
type Story = StoryObj<FormNumberComponent>;
|
|
112
|
-
|
|
113
|
-
const play: any = async ({ canvasElement }: AngularRenderer) => {
|
|
114
|
-
const numberInput: any = within(canvasElement).getByPlaceholderText('Insert number');
|
|
115
|
-
await userEvent.type(numberInput, '5');
|
|
116
|
-
|
|
117
|
-
await expect(Number(numberInput.value)).toEqual(5);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export const Default: Story = {
|
|
121
|
-
play,
|
|
122
|
-
args: {
|
|
123
|
-
label: 'Number',
|
|
124
|
-
placeholder: 'Insert number'
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export const Required: Story = {
|
|
129
|
-
play,
|
|
130
|
-
args: {
|
|
131
|
-
...Default.args,
|
|
132
|
-
required: true
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export const Disabled: Story = {
|
|
137
|
-
play,
|
|
138
|
-
args: {
|
|
139
|
-
...Default.args,
|
|
140
|
-
disabled: true,
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
export const Error: Story = {
|
|
145
|
-
play,
|
|
146
|
-
args: {
|
|
147
|
-
...Required.args,
|
|
148
|
-
errorMsg: 'Field is required',
|
|
149
|
-
},
|
|
150
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Pipe({
|
|
4
|
-
pure: true,
|
|
5
|
-
standalone: true,
|
|
6
|
-
name: 'localeNumber',
|
|
7
|
-
})
|
|
8
|
-
export class LocaleNumberPipe implements PipeTransform {
|
|
9
|
-
|
|
10
|
-
public transform(value: string | null | undefined, locale: string): string {
|
|
11
|
-
if (value === null || value === undefined) return '';
|
|
12
|
-
|
|
13
|
-
const val = String(value);
|
|
14
|
-
if (!/[.,]/.test(val)) {
|
|
15
|
-
return Number(val).toLocaleString(locale);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return val.replace(/^(.+?)([.,])(\d*)$/, (_, intPart, decSep, decPart) =>
|
|
19
|
-
`${Number(intPart.replace(/[.,]/g, '')).toLocaleString(locale)}${decSep}${decPart}`
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
protected extractSeperator(input: string): string[]{
|
|
24
|
-
const seperators: string[] = [];
|
|
25
|
-
|
|
26
|
-
for (let i = 0; i < input.length; i++) {
|
|
27
|
-
const char = input[i];
|
|
28
|
-
if (char === '.' || char === ',') seperators.push(char);
|
|
29
|
-
}
|
|
30
|
-
return seperators;
|
|
31
|
-
}
|
|
32
|
-
}
|
package/projects/unipin-angular/src/lib/components/forms/password/form-password.component.html
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<label class="form-label d-flex align-items-center">
|
|
2
|
-
<ng-content select="[icon]"/>
|
|
3
|
-
<span>{{ label }}</span>
|
|
4
|
-
</label>
|
|
5
|
-
|
|
6
|
-
<input [type]="type" autocomplete="{{ autocomplete }}" [required]="required" class="form-control pe-5" [value]="value" (change)="change($event.target)" (focus)="touch()" />
|
|
7
|
-
<ion-icon name="{{ type === 'password'? 'eye' : 'eye-off' }}" class="position-absolute fs-4 cursor-pointer" (click)="changeType()"></ion-icon>
|
|
8
|
-
|
|
9
|
-
@if (errorMsg) {
|
|
10
|
-
<label class="is-invalid">{{ errorMsg }}</label>
|
|
11
|
-
}
|
package/projects/unipin-angular/src/lib/components/forms/password/form-password.component.ts
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { Attribute, ChangeDetectorRef, ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import { IonicModule } from '@ionic/angular';
|
|
4
|
-
import { getFormErrorMessage } from '../../../utils';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
standalone: true,
|
|
8
|
-
selector: 'up-password',
|
|
9
|
-
styleUrl: './form-password.component.scss',
|
|
10
|
-
templateUrl: './form-password.component.html',
|
|
11
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
|
-
host: {
|
|
13
|
-
class: 'd-block position-relative'
|
|
14
|
-
},
|
|
15
|
-
imports: [
|
|
16
|
-
IonicModule
|
|
17
|
-
],
|
|
18
|
-
providers: [
|
|
19
|
-
{
|
|
20
|
-
multi: true,
|
|
21
|
-
provide: NG_VALUE_ACCESSOR,
|
|
22
|
-
useExisting: FormPasswordComponent
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
multi: true,
|
|
26
|
-
provide: NG_VALIDATORS,
|
|
27
|
-
useExisting: FormPasswordComponent
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
})
|
|
31
|
-
export class FormPasswordComponent implements ControlValueAccessor, Validator {
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Input variable to determine whether the password is required.
|
|
35
|
-
* @type {boolean}
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
@Input() public required: boolean = false;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Input variable to determine whether the password must be the same as another input.
|
|
42
|
-
* @type {boolean}
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
@Input() public mustSame: boolean = false;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Boolean flag indicating whether the password input has been touched.
|
|
49
|
-
* @type {boolean}
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
public isTouched: boolean = false;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* The type of the password input (text or password).
|
|
56
|
-
* @type {'text' | 'password'}
|
|
57
|
-
* @default 'password'
|
|
58
|
-
*/
|
|
59
|
-
public type: 'text' | 'password' = 'password';
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* The value of the password input.
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @default ''
|
|
65
|
-
*/
|
|
66
|
-
public value: string = '';
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Error message associated with the password input.
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @default undefined
|
|
72
|
-
*/
|
|
73
|
-
public errorMsg!: string;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* The form control associated with the password input.
|
|
77
|
-
* @type {AbstractControl}
|
|
78
|
-
*/
|
|
79
|
-
protected formControl!: AbstractControl;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Callback function to handle value changes in the password input.
|
|
83
|
-
* @type {(_val: any) => void}
|
|
84
|
-
*/
|
|
85
|
-
protected onChange: (_val: any) => void = (_val: any) => {};
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Callback function to handle touch events in the password input.
|
|
89
|
-
* @type {() => void}
|
|
90
|
-
*/
|
|
91
|
-
protected onTouched: () => void = () => {};
|
|
92
|
-
|
|
93
|
-
constructor(
|
|
94
|
-
@Attribute('label') public label: string,
|
|
95
|
-
@Attribute('autocomplete') public autocomplete: 'current-password' | 'new-password',
|
|
96
|
-
protected readonly ch: ChangeDetectorRef
|
|
97
|
-
) { }
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Registers a callback function to be called when the password input value changes.
|
|
101
|
-
* @param {(_val: any) => void} fn - Callback function for value changes.
|
|
102
|
-
*/
|
|
103
|
-
public registerOnChange(fn: any): void{ this.onChange = fn; }
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Registers a callback function to be called when the password input is touched.
|
|
107
|
-
* @param {() => void} fn - Callback function for touch events.
|
|
108
|
-
*/
|
|
109
|
-
public registerOnTouched(fn: any): void{ this.onTouched = fn; }
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Toggles the type of the password input between text and password.
|
|
113
|
-
*/
|
|
114
|
-
public changeType(): void{
|
|
115
|
-
this.type = this.type === 'text'? 'password' : 'text';
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Writes a new value to the password input.
|
|
120
|
-
* @param {*} val - The new value to be set.
|
|
121
|
-
*/
|
|
122
|
-
public writeValue(val: any): void{
|
|
123
|
-
this.value = val;
|
|
124
|
-
this.ch.markForCheck();
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Validates the password input.
|
|
129
|
-
* @param {AbstractControl} control - The abstract control representing the password input.
|
|
130
|
-
* @returns {(ValidationErrors | null)} - Validation errors if any, otherwise null.
|
|
131
|
-
*/
|
|
132
|
-
public validate(control: AbstractControl): ValidationErrors | null{
|
|
133
|
-
this.formControl = control;
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Event handler to handle touch status.
|
|
139
|
-
* If the passsword input got focused, it will retrigger get error message to show the error message properly
|
|
140
|
-
*
|
|
141
|
-
* @returns {void}
|
|
142
|
-
*/
|
|
143
|
-
public touch(): void{
|
|
144
|
-
if (!this.isTouched) {
|
|
145
|
-
this.onTouched();
|
|
146
|
-
this.isTouched = true;
|
|
147
|
-
}
|
|
148
|
-
this.errorMsg = getFormErrorMessage(this.formControl.errors, this.label);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Event handler for changes in the password input.
|
|
153
|
-
* If not touched, marks the input as touched.
|
|
154
|
-
* Updates the value, triggers change detection, and handles validation based on form control errors and label.
|
|
155
|
-
* @param {any} param0 - Event detail containing the new password input value.
|
|
156
|
-
*/
|
|
157
|
-
public change({ value }: any): void{
|
|
158
|
-
if (!this.isTouched) {
|
|
159
|
-
this.onTouched();
|
|
160
|
-
this.isTouched = true;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
this.value = value;
|
|
164
|
-
this.onChange(this.value);
|
|
165
|
-
|
|
166
|
-
if (this.formControl.parent?.errors) {
|
|
167
|
-
if (this.mustSame && this.formControl.parent.hasError('isNotEqual')) {
|
|
168
|
-
this.errorMsg = `${ this.label } is not the same`;
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
this.errorMsg = this.formControl.parent?.errors!['message'] || `${ this.label } has an invalid value`;
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
this.errorMsg = getFormErrorMessage(this.formControl.errors, this.label);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { IonicModule } from '@ionic/angular';
|
|
2
|
-
import { moduleMetadata, type Meta, type StoryObj } from '@storybook/angular';
|
|
3
|
-
import { FormPasswordComponent } from './form-password.component';
|
|
4
|
-
|
|
5
|
-
const meta: Meta<FormPasswordComponent> = {
|
|
6
|
-
title: 'Form/Password',
|
|
7
|
-
tags: [ 'autodocs' ],
|
|
8
|
-
component: FormPasswordComponent,
|
|
9
|
-
decorators: [
|
|
10
|
-
moduleMetadata({
|
|
11
|
-
imports: [
|
|
12
|
-
IonicModule
|
|
13
|
-
],
|
|
14
|
-
})
|
|
15
|
-
],
|
|
16
|
-
argTypes: {
|
|
17
|
-
autocomplete: {
|
|
18
|
-
defaultValue: undefined,
|
|
19
|
-
description: 'Indicates whether the value of the control can be automatically completed by the browser.',
|
|
20
|
-
options: [ 'current-password', 'new-password' ],
|
|
21
|
-
control: {
|
|
22
|
-
type: 'select'
|
|
23
|
-
},
|
|
24
|
-
table: {
|
|
25
|
-
category: 'Input',
|
|
26
|
-
subcategory: 'Attribute'
|
|
27
|
-
},
|
|
28
|
-
type: {
|
|
29
|
-
required: false,
|
|
30
|
-
name: 'string'
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
label: {
|
|
34
|
-
defaultValue: undefined,
|
|
35
|
-
description: 'The visible label associated with the password.',
|
|
36
|
-
table: {
|
|
37
|
-
category: 'Input'
|
|
38
|
-
},
|
|
39
|
-
type: {
|
|
40
|
-
required: false,
|
|
41
|
-
name: 'string'
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
mustSame: {
|
|
45
|
-
defaultValue: false,
|
|
46
|
-
description: 'When set to `true`, enables validation for ensuring that the entered password matches another password input within the same form.',
|
|
47
|
-
table: {
|
|
48
|
-
category: 'Input'
|
|
49
|
-
},
|
|
50
|
-
type: {
|
|
51
|
-
required: false,
|
|
52
|
-
name: 'boolean'
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
required: {
|
|
56
|
-
defaultValue: false,
|
|
57
|
-
description: 'If `true`, the user must fill in a value before submitting a form.',
|
|
58
|
-
table: {
|
|
59
|
-
category: 'Input'
|
|
60
|
-
},
|
|
61
|
-
type: {
|
|
62
|
-
required: false,
|
|
63
|
-
name: 'boolean'
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
type: {
|
|
67
|
-
type: 'string',
|
|
68
|
-
defaultValue: undefined,
|
|
69
|
-
description: 'The type of control to display.',
|
|
70
|
-
options: [ 'text', 'password' ],
|
|
71
|
-
control: {
|
|
72
|
-
type: 'select'
|
|
73
|
-
},
|
|
74
|
-
table: {
|
|
75
|
-
category: 'Input',
|
|
76
|
-
subcategory: 'Attribute'
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
change: {
|
|
80
|
-
table: { disable: true },
|
|
81
|
-
control: { disable: true }
|
|
82
|
-
},
|
|
83
|
-
changeType: {
|
|
84
|
-
table: { disable: true },
|
|
85
|
-
control: { disable: true }
|
|
86
|
-
},
|
|
87
|
-
errorMsg: {
|
|
88
|
-
table: { disable: true },
|
|
89
|
-
control: { disable: true }
|
|
90
|
-
},
|
|
91
|
-
isTouched: {
|
|
92
|
-
table: { disable: true },
|
|
93
|
-
control: { disable: true }
|
|
94
|
-
},
|
|
95
|
-
registerOnChange: {
|
|
96
|
-
table: { disable: true },
|
|
97
|
-
control: { disable: true }
|
|
98
|
-
},
|
|
99
|
-
registerOnTouched: {
|
|
100
|
-
table: { disable: true },
|
|
101
|
-
control: { disable: true }
|
|
102
|
-
},
|
|
103
|
-
validate: {
|
|
104
|
-
table: { disable: true },
|
|
105
|
-
control: { disable: true }
|
|
106
|
-
},
|
|
107
|
-
value: {
|
|
108
|
-
table: { disable: true },
|
|
109
|
-
control: { disable: true }
|
|
110
|
-
},
|
|
111
|
-
writeValue: {
|
|
112
|
-
table: { disable: true },
|
|
113
|
-
control: { disable: true }
|
|
114
|
-
},
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export default meta;
|
|
119
|
-
type Story = StoryObj<FormPasswordComponent>;
|
|
120
|
-
|
|
121
|
-
export const Default: Story = {
|
|
122
|
-
args: {
|
|
123
|
-
label: 'Password',
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
export const WithIcon: Story = {
|
|
128
|
-
name: 'With Icon',
|
|
129
|
-
render: (props) => ({
|
|
130
|
-
props,
|
|
131
|
-
template: `
|
|
132
|
-
<up-password label="Password">
|
|
133
|
-
<ion-icon name="lock" class="me-1" icon />
|
|
134
|
-
</up-password>
|
|
135
|
-
`
|
|
136
|
-
})
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
export const Required: Story = {
|
|
140
|
-
args: {
|
|
141
|
-
...Default.args,
|
|
142
|
-
required: true
|
|
143
|
-
},
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
export const Error: Story = {
|
|
147
|
-
args: {
|
|
148
|
-
...Required.args,
|
|
149
|
-
errorMsg: 'Field is required',
|
|
150
|
-
},
|
|
151
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<label
|
|
2
|
-
class="form-label d-flex align-items-center"
|
|
3
|
-
[class.required]="required"
|
|
4
|
-
>
|
|
5
|
-
<ng-content select="[icon]" />
|
|
6
|
-
<span>{{ label }}</span>
|
|
7
|
-
</label>
|
|
8
|
-
|
|
9
|
-
<ng-select
|
|
10
|
-
typeToSearchText="Please enter 3 or more characters"
|
|
11
|
-
bindLabel="{{ bindLabel }}"
|
|
12
|
-
bindValue="{{ bindValue }}"
|
|
13
|
-
placeholder="{{ placeholder }}"
|
|
14
|
-
[minTermLength]="3"
|
|
15
|
-
[addTag]="true"
|
|
16
|
-
[virtualScroll]="true"
|
|
17
|
-
[editableSearchTerm]="true"
|
|
18
|
-
[ngModel]="value"
|
|
19
|
-
[readonly]="disabled"
|
|
20
|
-
[loading]="isLoading"
|
|
21
|
-
[appendTo]="appendTo"
|
|
22
|
-
[clearable]="clearable"
|
|
23
|
-
[typeahead]="typeahead"
|
|
24
|
-
[items]="items$ | async"
|
|
25
|
-
(change)="change($event);"
|
|
26
|
-
/>
|
|
27
|
-
|
|
28
|
-
@if (errorMsg) {
|
|
29
|
-
<label class="is-invalid">{{ errorMsg }}</label>
|
|
30
|
-
}
|