@unipin/angular-applet 18.9.7 → 21.0.1
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 +49 -10
- package/common/assets/sprites/flagGlobal.png +0 -0
- package/common/assets/sprites/flagSprite42.webp +0 -0
- package/common/assets/styles/freakflags.scss +263 -0
- package/common/assets/styles/theme.css +69 -0
- package/fesm2022/unipin-angular-applet-accordion.mjs +242 -0
- package/fesm2022/unipin-angular-applet-accordion.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-alert-dialog.mjs +267 -0
- package/fesm2022/unipin-angular-applet-alert-dialog.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-alert.mjs +94 -0
- package/fesm2022/unipin-angular-applet-alert.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-auth.mjs +707 -0
- package/fesm2022/unipin-angular-applet-auth.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-avatar.mjs +41 -0
- package/fesm2022/unipin-angular-applet-avatar.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-badge.mjs +50 -0
- package/fesm2022/unipin-angular-applet-badge.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-buttons.mjs +263 -0
- package/fesm2022/unipin-angular-applet-buttons.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-calendar.mjs +492 -0
- package/fesm2022/unipin-angular-applet-calendar.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-collapsible.mjs +97 -0
- package/fesm2022/unipin-angular-applet-collapsible.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-common.mjs +342 -0
- package/fesm2022/unipin-angular-applet-common.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-containers.mjs +472 -0
- package/fesm2022/unipin-angular-applet-containers.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-dialog.mjs +535 -0
- package/fesm2022/unipin-angular-applet-dialog.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-forms.mjs +1699 -0
- package/fesm2022/unipin-angular-applet-forms.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-froala.mjs +298 -0
- package/fesm2022/unipin-angular-applet-froala.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-grids.mjs +105 -0
- package/fesm2022/unipin-angular-applet-grids.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-infinite-scroll.mjs +86 -0
- package/fesm2022/unipin-angular-applet-infinite-scroll.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-json-viewer.mjs +71 -0
- package/fesm2022/unipin-angular-applet-json-viewer.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-loading-dialog.mjs +252 -0
- package/fesm2022/unipin-angular-applet-loading-dialog.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-markdown.mjs +703 -0
- package/fesm2022/unipin-angular-applet-markdown.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-micro-frontend.mjs +75 -0
- package/fesm2022/unipin-angular-applet-micro-frontend.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-popover.mjs +333 -0
- package/fesm2022/unipin-angular-applet-popover.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-progress-bar.mjs +38 -0
- package/fesm2022/unipin-angular-applet-progress-bar.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-skeleton.mjs +32 -0
- package/fesm2022/unipin-angular-applet-skeleton.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-spinner.mjs +144 -0
- package/fesm2022/unipin-angular-applet-spinner.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-swipeable.mjs +270 -0
- package/fesm2022/unipin-angular-applet-swipeable.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-tabs.mjs +142 -0
- package/fesm2022/unipin-angular-applet-tabs.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-tooltip.mjs +118 -0
- package/fesm2022/unipin-angular-applet-tooltip.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet.mjs +5 -4617
- package/fesm2022/unipin-angular-applet.mjs.map +1 -1
- package/package.json +132 -29
- package/types/unipin-angular-applet-accordion.d.ts +60 -0
- package/types/unipin-angular-applet-alert-dialog.d.ts +35 -0
- package/types/unipin-angular-applet-alert.d.ts +34 -0
- package/types/unipin-angular-applet-auth.d.ts +225 -0
- package/types/unipin-angular-applet-avatar.d.ts +16 -0
- package/types/unipin-angular-applet-badge.d.ts +20 -0
- package/types/unipin-angular-applet-buttons.d.ts +37 -0
- package/types/unipin-angular-applet-calendar.d.ts +44 -0
- package/types/unipin-angular-applet-collapsible.d.ts +35 -0
- package/types/unipin-angular-applet-common.d.ts +94 -0
- package/types/unipin-angular-applet-containers.d.ts +179 -0
- package/types/unipin-angular-applet-dialog.d.ts +180 -0
- package/types/unipin-angular-applet-forms.d.ts +412 -0
- package/types/unipin-angular-applet-froala.d.ts +85 -0
- package/types/unipin-angular-applet-grids.d.ts +22 -0
- package/types/unipin-angular-applet-infinite-scroll.d.ts +51 -0
- package/types/unipin-angular-applet-json-viewer.d.ts +30 -0
- package/types/unipin-angular-applet-loading-dialog.d.ts +19 -0
- package/types/unipin-angular-applet-markdown.d.ts +119 -0
- package/types/unipin-angular-applet-micro-frontend.d.ts +11 -0
- package/types/unipin-angular-applet-popover.d.ts +58 -0
- package/types/unipin-angular-applet-progress-bar.d.ts +14 -0
- package/types/unipin-angular-applet-skeleton.d.ts +11 -0
- package/types/unipin-angular-applet-spinner.d.ts +12 -0
- package/types/unipin-angular-applet-swipeable.d.ts +66 -0
- package/types/unipin-angular-applet-tabs.d.ts +40 -0
- package/types/unipin-angular-applet-tooltip.d.ts +32 -0
- package/types/unipin-angular-applet.d.ts +3 -0
- package/esm2022/graphql/generated.mjs +0 -938
- package/esm2022/lib/components/approval/detail/approval-detail.component.mjs +0 -78
- package/esm2022/lib/components/approval/form/approval-form.component.mjs +0 -128
- package/esm2022/lib/components/approval/index.mjs +0 -5
- package/esm2022/lib/components/approval/list/approval-list.component.mjs +0 -114
- package/esm2022/lib/components/approval/list/provide-approval-entities.util.mjs +0 -9
- package/esm2022/lib/components/approval/services/approval.service.mjs +0 -46
- package/esm2022/lib/components/audit/detail/audit-detail.component.mjs +0 -123
- package/esm2022/lib/components/audit/index.mjs +0 -3
- package/esm2022/lib/components/audit/list/audit-list.component.mjs +0 -81
- package/esm2022/lib/components/audit/service/audit.service.mjs +0 -49
- package/esm2022/lib/components/audit/types/audit-detail-form.type.mjs +0 -2
- package/esm2022/lib/components/buttons/group/btn-group.component.mjs +0 -43
- package/esm2022/lib/components/buttons/group/interfaces/btn-group-config.interface.mjs +0 -2
- package/esm2022/lib/components/buttons/index.mjs +0 -3
- package/esm2022/lib/components/buttons/loading/btn-loading.component.mjs +0 -48
- package/esm2022/lib/components/containers/applet-container/applet-container.component.mjs +0 -55
- package/esm2022/lib/components/containers/applet-container/provide-applet-config.util.mjs +0 -9
- package/esm2022/lib/components/containers/colum-header-container/column-header-container.component.mjs +0 -23
- package/esm2022/lib/components/containers/column-container/column-container.component.mjs +0 -79
- package/esm2022/lib/components/containers/column-container/directives/lazy-route.directive.mjs +0 -57
- package/esm2022/lib/components/containers/index.mjs +0 -7
- package/esm2022/lib/components/containers/list-container/index.mjs +0 -3
- package/esm2022/lib/components/containers/list-container/interfaces/list-container-config.interface.mjs +0 -2
- package/esm2022/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.mjs +0 -58
- package/esm2022/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.mjs +0 -57
- package/esm2022/lib/components/containers/modal-container/modal-container.component.mjs +0 -40
- package/esm2022/lib/components/filter/filter.component.mjs +0 -222
- package/esm2022/lib/components/filter/index.mjs +0 -2
- package/esm2022/lib/components/filter/interfaces/filter-config.interface.mjs +0 -2
- package/esm2022/lib/components/filter/interfaces/filter-field.interface.mjs +0 -2
- package/esm2022/lib/components/filter/interfaces/filter-search-event.interface.mjs +0 -2
- package/esm2022/lib/components/forms/country-input/form-country-input.component.mjs +0 -122
- package/esm2022/lib/components/forms/currency-input/form-currency-input.component.mjs +0 -157
- package/esm2022/lib/components/forms/date/form-date.component.mjs +0 -117
- package/esm2022/lib/components/forms/image-picker/directives/drag-n-drop.directive.mjs +0 -49
- package/esm2022/lib/components/forms/image-picker/form-image-picker.component.mjs +0 -68
- package/esm2022/lib/components/forms/index.mjs +0 -12
- package/esm2022/lib/components/forms/input/form-input.component.mjs +0 -98
- package/esm2022/lib/components/forms/number/form-number.component.mjs +0 -97
- package/esm2022/lib/components/forms/number/pipes/locale-number.pipe.mjs +0 -33
- package/esm2022/lib/components/forms/password/form-password.component.mjs +0 -100
- package/esm2022/lib/components/forms/rate-group-code-input/form-rate-group-code-input.component.mjs +0 -135
- package/esm2022/lib/components/forms/searchable-select/form-searchable-select.component.mjs +0 -138
- package/esm2022/lib/components/forms/select/form-select.component.mjs +0 -119
- package/esm2022/lib/components/forms/textarea/form-textarea.component.mjs +0 -88
- package/esm2022/lib/components/grids/grid-pagination/grid-pagination.component.mjs +0 -111
- package/esm2022/lib/components/grids/grid-snapshot/grid-snapshot.component.mjs +0 -109
- package/esm2022/lib/components/grids/index.mjs +0 -4
- package/esm2022/lib/components/grids/interfaces/grid-config.interface.mjs +0 -2
- package/esm2022/lib/components/grids/services/grid.service.mjs +0 -25
- package/esm2022/lib/components/index.mjs +0 -9
- package/esm2022/lib/components/infinite-scroll/directive/infinite-scroll.directive.mjs +0 -43
- package/esm2022/lib/components/infinite-scroll/index.mjs +0 -3
- package/esm2022/lib/components/infinite-scroll/infinite-scroll.component.mjs +0 -36
- package/esm2022/lib/components/tabs/index.mjs +0 -3
- package/esm2022/lib/components/tabs/tab-content/tab-content.component.mjs +0 -37
- package/esm2022/lib/components/tabs/tab-group/tab-group.component.mjs +0 -47
- package/esm2022/lib/guards/auth/auth.guard.mjs +0 -10
- package/esm2022/lib/guards/index.mjs +0 -2
- package/esm2022/lib/interceptors/header/header.interceptor.mjs +0 -29
- package/esm2022/lib/interceptors/index.mjs +0 -3
- package/esm2022/lib/interceptors/refresh-token/refresh-token.interceptor.mjs +0 -83
- package/esm2022/lib/interfaces/index.mjs +0 -2
- package/esm2022/lib/interfaces/user/user.interface.mjs +0 -2
- package/esm2022/lib/modules/index.mjs +0 -3
- package/esm2022/lib/modules/micro-frontend/index.mjs +0 -2
- package/esm2022/lib/modules/micro-frontend/utils/mf-bootstrap.util.mjs +0 -55
- package/esm2022/lib/modules/micro-frontend/utils/mf-global-state.util.mjs +0 -14
- package/esm2022/lib/modules/permission/directive/permission.directive.mjs +0 -41
- package/esm2022/lib/modules/permission/guards/permission.guard.mjs +0 -26
- package/esm2022/lib/modules/permission/index.mjs +0 -7
- package/esm2022/lib/modules/permission/pages/401/unauthorized.page.mjs +0 -15
- package/esm2022/lib/modules/permission/pages/loading/loading.page.mjs +0 -65
- package/esm2022/lib/modules/permission/pages/loading/provide-loading-config.util.mjs +0 -9
- package/esm2022/lib/modules/permission/services/permission.service.mjs +0 -50
- package/esm2022/lib/resolvers/auth/auth.resolver.mjs +0 -87
- package/esm2022/lib/resolvers/index.mjs +0 -2
- package/esm2022/lib/services/auth/auth.service.mjs +0 -171
- package/esm2022/lib/services/country/country.service.mjs +0 -43
- package/esm2022/lib/services/currency/currency.service.mjs +0 -40
- package/esm2022/lib/services/index.mjs +0 -6
- package/esm2022/lib/services/profile/profile.service.mjs +0 -82
- package/esm2022/lib/services/rate-group-code/rate-group-code.service.mjs +0 -31
- package/esm2022/lib/utils/contrast-color-generator/contrast-color-generator.util.mjs +0 -16
- package/esm2022/lib/utils/form-error-message/form-error-message.util.mjs +0 -21
- package/esm2022/lib/utils/format-capitalize/format-capitalize.util.mjs +0 -18
- package/esm2022/lib/utils/index.mjs +0 -5
- package/esm2022/lib/utils/redirect-to-first-menu/redirect-to-first-menu.util.mjs +0 -9
- package/esm2022/public-api.mjs +0 -10
- package/esm2022/unipin-angular-applet.mjs +0 -2
- package/graphql/generated.d.ts +0 -16225
- package/index.d.ts +0 -2
- package/lib/components/approval/detail/approval-detail.component.d.ts +0 -26
- package/lib/components/approval/form/approval-form.component.d.ts +0 -33
- package/lib/components/approval/index.d.ts +0 -4
- package/lib/components/approval/list/approval-list.component.d.ts +0 -33
- package/lib/components/approval/list/provide-approval-entities.util.d.ts +0 -3
- package/lib/components/approval/services/approval.service.d.ts +0 -18
- package/lib/components/audit/detail/audit-detail.component.d.ts +0 -33
- package/lib/components/audit/index.d.ts +0 -2
- package/lib/components/audit/list/audit-list.component.d.ts +0 -31
- package/lib/components/audit/service/audit.service.d.ts +0 -15
- package/lib/components/audit/types/audit-detail-form.type.d.ts +0 -12
- package/lib/components/buttons/group/btn-group.component.d.ts +0 -18
- package/lib/components/buttons/group/interfaces/btn-group-config.interface.d.ts +0 -11
- package/lib/components/buttons/index.d.ts +0 -3
- package/lib/components/buttons/loading/btn-loading.component.d.ts +0 -19
- package/lib/components/containers/applet-container/applet-container.component.d.ts +0 -22
- package/lib/components/containers/applet-container/provide-applet-config.util.d.ts +0 -15
- package/lib/components/containers/colum-header-container/column-header-container.component.d.ts +0 -7
- package/lib/components/containers/column-container/column-container.component.d.ts +0 -26
- package/lib/components/containers/column-container/directives/lazy-route.directive.d.ts +0 -17
- package/lib/components/containers/index.d.ts +0 -6
- package/lib/components/containers/list-container/index.d.ts +0 -3
- package/lib/components/containers/list-container/interfaces/list-container-config.interface.d.ts +0 -9
- package/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.d.ts +0 -23
- package/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.d.ts +0 -23
- package/lib/components/containers/modal-container/modal-container.component.d.ts +0 -16
- package/lib/components/filter/filter.component.d.ts +0 -44
- package/lib/components/filter/index.d.ts +0 -4
- package/lib/components/filter/interfaces/filter-config.interface.d.ts +0 -5
- package/lib/components/filter/interfaces/filter-field.interface.d.ts +0 -24
- package/lib/components/filter/interfaces/filter-search-event.interface.d.ts +0 -4
- package/lib/components/forms/country-input/form-country-input.component.d.ts +0 -41
- package/lib/components/forms/currency-input/form-currency-input.component.d.ts +0 -52
- package/lib/components/forms/date/form-date.component.d.ts +0 -33
- package/lib/components/forms/image-picker/directives/drag-n-drop.directive.d.ts +0 -10
- package/lib/components/forms/image-picker/form-image-picker.component.d.ts +0 -21
- package/lib/components/forms/index.d.ts +0 -11
- package/lib/components/forms/input/form-input.component.d.ts +0 -31
- package/lib/components/forms/number/form-number.component.d.ts +0 -27
- package/lib/components/forms/number/pipes/locale-number.pipe.d.ts +0 -8
- package/lib/components/forms/password/form-password.component.d.ts +0 -27
- package/lib/components/forms/rate-group-code-input/form-rate-group-code-input.component.d.ts +0 -41
- package/lib/components/forms/searchable-select/form-searchable-select.component.d.ts +0 -42
- package/lib/components/forms/select/form-select.component.d.ts +0 -34
- package/lib/components/forms/textarea/form-textarea.component.d.ts +0 -26
- package/lib/components/grids/grid-pagination/grid-pagination.component.d.ts +0 -33
- package/lib/components/grids/grid-snapshot/grid-snapshot.component.d.ts +0 -36
- package/lib/components/grids/index.d.ts +0 -4
- package/lib/components/grids/interfaces/grid-config.interface.d.ts +0 -16
- package/lib/components/grids/services/grid.service.d.ts +0 -12
- package/lib/components/index.d.ts +0 -8
- package/lib/components/infinite-scroll/directive/infinite-scroll.directive.d.ts +0 -15
- package/lib/components/infinite-scroll/index.d.ts +0 -2
- package/lib/components/infinite-scroll/infinite-scroll.component.d.ts +0 -12
- package/lib/components/tabs/index.d.ts +0 -6
- package/lib/components/tabs/tab-content/tab-content.component.d.ts +0 -14
- package/lib/components/tabs/tab-group/tab-group.component.d.ts +0 -18
- package/lib/guards/auth/auth.guard.d.ts +0 -1
- package/lib/guards/index.d.ts +0 -1
- package/lib/interceptors/header/header.interceptor.d.ts +0 -9
- package/lib/interceptors/index.d.ts +0 -2
- package/lib/interceptors/refresh-token/refresh-token.interceptor.d.ts +0 -14
- package/lib/interfaces/index.d.ts +0 -1
- package/lib/interfaces/user/user.interface.d.ts +0 -27
- package/lib/modules/index.d.ts +0 -2
- package/lib/modules/micro-frontend/index.d.ts +0 -1
- package/lib/modules/micro-frontend/utils/mf-bootstrap.util.d.ts +0 -9
- package/lib/modules/micro-frontend/utils/mf-global-state.util.d.ts +0 -4
- package/lib/modules/permission/directive/permission.directive.d.ts +0 -16
- package/lib/modules/permission/guards/permission.guard.d.ts +0 -2
- package/lib/modules/permission/index.d.ts +0 -6
- package/lib/modules/permission/pages/401/unauthorized.page.d.ts +0 -5
- package/lib/modules/permission/pages/loading/loading.page.d.ts +0 -18
- package/lib/modules/permission/pages/loading/provide-loading-config.util.d.ts +0 -10
- package/lib/modules/permission/services/permission.service.d.ts +0 -21
- package/lib/resolvers/auth/auth.resolver.d.ts +0 -14
- package/lib/resolvers/index.d.ts +0 -1
- package/lib/services/auth/auth.service.d.ts +0 -39
- package/lib/services/country/country.service.d.ts +0 -16
- package/lib/services/currency/currency.service.d.ts +0 -16
- package/lib/services/index.d.ts +0 -5
- package/lib/services/profile/profile.service.d.ts +0 -12
- package/lib/services/rate-group-code/rate-group-code.service.d.ts +0 -14
- package/lib/utils/contrast-color-generator/contrast-color-generator.util.d.ts +0 -4
- package/lib/utils/form-error-message/form-error-message.util.d.ts +0 -2
- package/lib/utils/format-capitalize/format-capitalize.util.d.ts +0 -1
- package/lib/utils/index.d.ts +0 -4
- package/lib/utils/redirect-to-first-menu/redirect-to-first-menu.util.d.ts +0 -2
- package/public-api.d.ts +0 -11
- package/src/assets/scss/forms.scss +0 -65
- package/src/assets/scss/grid.scss +0 -7505
- package/src/assets/scss/select.scss +0 -328
package/package.json
CHANGED
|
@@ -1,43 +1,146 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unipin/angular-applet",
|
|
3
|
-
"version": "
|
|
4
|
-
"sideEffects": false,
|
|
5
|
-
"homepage": "https://backoffice.unipin.com/",
|
|
6
|
-
"description": "Angular specific wrappers for UniPin applet",
|
|
3
|
+
"version": "21.0.1",
|
|
7
4
|
"peerDependencies": {
|
|
8
|
-
"@angular
|
|
9
|
-
"@angular/common": "
|
|
10
|
-
"@angular/core": "
|
|
11
|
-
"@
|
|
12
|
-
"
|
|
13
|
-
"@
|
|
14
|
-
"
|
|
15
|
-
"
|
|
5
|
+
"@angular/cdk": "21.x.x",
|
|
6
|
+
"@angular/common": "21.x.x",
|
|
7
|
+
"@angular/core": "21.x.x",
|
|
8
|
+
"@angular/elements": "21.x.x",
|
|
9
|
+
"@unipin/angular-gql": "1.x.x",
|
|
10
|
+
"@ng-icons/core": "33.x.x",
|
|
11
|
+
"@ng-icons/material-icons": "33.x.x",
|
|
12
|
+
"@ng-select/ng-select": "21.x.x",
|
|
13
|
+
"angular-froala-wysiwyg": "4.x.x",
|
|
14
|
+
"angular-split": "20.x.x",
|
|
15
|
+
"class-variance-authority": "0.x.x",
|
|
16
|
+
"clsx": "2.x.x",
|
|
17
|
+
"date-fns": "4.x.x",
|
|
18
|
+
"ngx-json-viewer": "3.x.x",
|
|
19
|
+
"ngx-sonner": "3.x.x",
|
|
20
|
+
"tailwind-merge": "3.x.x",
|
|
21
|
+
"marked": "17.x.x"
|
|
16
22
|
},
|
|
17
23
|
"dependencies": {
|
|
18
|
-
"tslib": "^2.3.0"
|
|
19
|
-
"angular-split": "18.x.x",
|
|
20
|
-
"@angular/elements": "18.x.x",
|
|
21
|
-
"@ng-select/ng-select": "13.x.x",
|
|
22
|
-
"@ag-grid-community/core": "31.x.x",
|
|
23
|
-
"@ag-grid-community/angular": "31.x.x",
|
|
24
|
-
"@ag-grid-community/client-side-row-model": "31.x.x",
|
|
25
|
-
"@ag-grid-community/infinite-row-model": "31.x.x"
|
|
24
|
+
"tslib": "^2.3.0"
|
|
26
25
|
},
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"module": "fesm2022/unipin-angular-applet.mjs",
|
|
28
|
+
"typings": "types/unipin-angular-applet.d.ts",
|
|
27
29
|
"exports": {
|
|
28
|
-
"./scss/*": {
|
|
29
|
-
"style": "./src/assets/scss/*"
|
|
30
|
-
},
|
|
31
30
|
"./package.json": {
|
|
32
31
|
"default": "./package.json"
|
|
33
32
|
},
|
|
34
33
|
".": {
|
|
35
|
-
"types": "./
|
|
36
|
-
"esm2022": "./esm2022/unipin-angular-applet.mjs",
|
|
37
|
-
"esm": "./esm2022/unipin-angular-applet.mjs",
|
|
34
|
+
"types": "./types/unipin-angular-applet.d.ts",
|
|
38
35
|
"default": "./fesm2022/unipin-angular-applet.mjs"
|
|
36
|
+
},
|
|
37
|
+
"./accordion": {
|
|
38
|
+
"types": "./types/unipin-angular-applet-accordion.d.ts",
|
|
39
|
+
"default": "./fesm2022/unipin-angular-applet-accordion.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./alert": {
|
|
42
|
+
"types": "./types/unipin-angular-applet-alert.d.ts",
|
|
43
|
+
"default": "./fesm2022/unipin-angular-applet-alert.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./alert-dialog": {
|
|
46
|
+
"types": "./types/unipin-angular-applet-alert-dialog.d.ts",
|
|
47
|
+
"default": "./fesm2022/unipin-angular-applet-alert-dialog.mjs"
|
|
48
|
+
},
|
|
49
|
+
"./auth": {
|
|
50
|
+
"types": "./types/unipin-angular-applet-auth.d.ts",
|
|
51
|
+
"default": "./fesm2022/unipin-angular-applet-auth.mjs"
|
|
52
|
+
},
|
|
53
|
+
"./avatar": {
|
|
54
|
+
"types": "./types/unipin-angular-applet-avatar.d.ts",
|
|
55
|
+
"default": "./fesm2022/unipin-angular-applet-avatar.mjs"
|
|
56
|
+
},
|
|
57
|
+
"./badge": {
|
|
58
|
+
"types": "./types/unipin-angular-applet-badge.d.ts",
|
|
59
|
+
"default": "./fesm2022/unipin-angular-applet-badge.mjs"
|
|
60
|
+
},
|
|
61
|
+
"./buttons": {
|
|
62
|
+
"types": "./types/unipin-angular-applet-buttons.d.ts",
|
|
63
|
+
"default": "./fesm2022/unipin-angular-applet-buttons.mjs"
|
|
64
|
+
},
|
|
65
|
+
"./calendar": {
|
|
66
|
+
"types": "./types/unipin-angular-applet-calendar.d.ts",
|
|
67
|
+
"default": "./fesm2022/unipin-angular-applet-calendar.mjs"
|
|
68
|
+
},
|
|
69
|
+
"./collapsible": {
|
|
70
|
+
"types": "./types/unipin-angular-applet-collapsible.d.ts",
|
|
71
|
+
"default": "./fesm2022/unipin-angular-applet-collapsible.mjs"
|
|
72
|
+
},
|
|
73
|
+
"./common": {
|
|
74
|
+
"types": "./types/unipin-angular-applet-common.d.ts",
|
|
75
|
+
"default": "./fesm2022/unipin-angular-applet-common.mjs"
|
|
76
|
+
},
|
|
77
|
+
"./containers": {
|
|
78
|
+
"types": "./types/unipin-angular-applet-containers.d.ts",
|
|
79
|
+
"default": "./fesm2022/unipin-angular-applet-containers.mjs"
|
|
80
|
+
},
|
|
81
|
+
"./dialog": {
|
|
82
|
+
"types": "./types/unipin-angular-applet-dialog.d.ts",
|
|
83
|
+
"default": "./fesm2022/unipin-angular-applet-dialog.mjs"
|
|
84
|
+
},
|
|
85
|
+
"./forms": {
|
|
86
|
+
"types": "./types/unipin-angular-applet-forms.d.ts",
|
|
87
|
+
"default": "./fesm2022/unipin-angular-applet-forms.mjs"
|
|
88
|
+
},
|
|
89
|
+
"./froala": {
|
|
90
|
+
"types": "./types/unipin-angular-applet-froala.d.ts",
|
|
91
|
+
"default": "./fesm2022/unipin-angular-applet-froala.mjs"
|
|
92
|
+
},
|
|
93
|
+
"./grids": {
|
|
94
|
+
"types": "./types/unipin-angular-applet-grids.d.ts",
|
|
95
|
+
"default": "./fesm2022/unipin-angular-applet-grids.mjs"
|
|
96
|
+
},
|
|
97
|
+
"./infinite-scroll": {
|
|
98
|
+
"types": "./types/unipin-angular-applet-infinite-scroll.d.ts",
|
|
99
|
+
"default": "./fesm2022/unipin-angular-applet-infinite-scroll.mjs"
|
|
100
|
+
},
|
|
101
|
+
"./json-viewer": {
|
|
102
|
+
"types": "./types/unipin-angular-applet-json-viewer.d.ts",
|
|
103
|
+
"default": "./fesm2022/unipin-angular-applet-json-viewer.mjs"
|
|
104
|
+
},
|
|
105
|
+
"./loading-dialog": {
|
|
106
|
+
"types": "./types/unipin-angular-applet-loading-dialog.d.ts",
|
|
107
|
+
"default": "./fesm2022/unipin-angular-applet-loading-dialog.mjs"
|
|
108
|
+
},
|
|
109
|
+
"./markdown": {
|
|
110
|
+
"types": "./types/unipin-angular-applet-markdown.d.ts",
|
|
111
|
+
"default": "./fesm2022/unipin-angular-applet-markdown.mjs"
|
|
112
|
+
},
|
|
113
|
+
"./micro-frontend": {
|
|
114
|
+
"types": "./types/unipin-angular-applet-micro-frontend.d.ts",
|
|
115
|
+
"default": "./fesm2022/unipin-angular-applet-micro-frontend.mjs"
|
|
116
|
+
},
|
|
117
|
+
"./popover": {
|
|
118
|
+
"types": "./types/unipin-angular-applet-popover.d.ts",
|
|
119
|
+
"default": "./fesm2022/unipin-angular-applet-popover.mjs"
|
|
120
|
+
},
|
|
121
|
+
"./progress-bar": {
|
|
122
|
+
"types": "./types/unipin-angular-applet-progress-bar.d.ts",
|
|
123
|
+
"default": "./fesm2022/unipin-angular-applet-progress-bar.mjs"
|
|
124
|
+
},
|
|
125
|
+
"./skeleton": {
|
|
126
|
+
"types": "./types/unipin-angular-applet-skeleton.d.ts",
|
|
127
|
+
"default": "./fesm2022/unipin-angular-applet-skeleton.mjs"
|
|
128
|
+
},
|
|
129
|
+
"./spinner": {
|
|
130
|
+
"types": "./types/unipin-angular-applet-spinner.d.ts",
|
|
131
|
+
"default": "./fesm2022/unipin-angular-applet-spinner.mjs"
|
|
132
|
+
},
|
|
133
|
+
"./swipeable": {
|
|
134
|
+
"types": "./types/unipin-angular-applet-swipeable.d.ts",
|
|
135
|
+
"default": "./fesm2022/unipin-angular-applet-swipeable.mjs"
|
|
136
|
+
},
|
|
137
|
+
"./tabs": {
|
|
138
|
+
"types": "./types/unipin-angular-applet-tabs.d.ts",
|
|
139
|
+
"default": "./fesm2022/unipin-angular-applet-tabs.mjs"
|
|
140
|
+
},
|
|
141
|
+
"./tooltip": {
|
|
142
|
+
"types": "./types/unipin-angular-applet-tooltip.d.ts",
|
|
143
|
+
"default": "./fesm2022/unipin-angular-applet-tooltip.mjs"
|
|
39
144
|
}
|
|
40
|
-
}
|
|
41
|
-
"module": "fesm2022/unipin-angular-applet.mjs",
|
|
42
|
-
"typings": "index.d.ts"
|
|
145
|
+
}
|
|
43
146
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
declare class UpAccordionDirective implements OnInit {
|
|
6
|
+
readonly dir: _angular_core.InputSignal<"ltr" | "rtl">;
|
|
7
|
+
readonly orientation: _angular_core.InputSignal<"vertical" | "horizontal">;
|
|
8
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
9
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
10
|
+
readonly collapsible: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
11
|
+
readonly type: _angular_core.ModelSignal<"single" | "multiple">;
|
|
12
|
+
readonly valueChange: _angular_core.OutputEmitterRef<string | string[]>;
|
|
13
|
+
readonly value: _angular_core.ModelSignal<string | string[] | undefined>;
|
|
14
|
+
readonly defaultValue: _angular_core.ModelSignal<string | string[] | undefined>;
|
|
15
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
16
|
+
constructor();
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpAccordionDirective, never>;
|
|
19
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpAccordionDirective, "[upAccordion]", ["upAccordion"], { "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; }, { "type": "typeChange"; "valueChange": "valueChange"; "value": "valueChange"; "defaultValue": "defaultValueChange"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class UpAccordionItemDirective {
|
|
23
|
+
readonly wrapper: UpAccordionDirective;
|
|
24
|
+
readonly value: _angular_core.InputSignal<string>;
|
|
25
|
+
readonly isOpened: _angular_core.ModelSignal<boolean>;
|
|
26
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
27
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
protected _computedClass: _angular_core.Signal<string>;
|
|
29
|
+
constructor(wrapper: UpAccordionDirective);
|
|
30
|
+
setOpen(value: boolean): void;
|
|
31
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpAccordionItemDirective, never>;
|
|
32
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpAccordionItemDirective, "[upAccordionItem]", ["upAccordionItem"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "isOpened": { "alias": "isOpened"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "isOpened": "isOpenedChange"; }, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare class UpAccordionTriggerDirective {
|
|
36
|
+
readonly item: UpAccordionItemDirective;
|
|
37
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
38
|
+
protected _computedClass: _angular_core.Signal<string>;
|
|
39
|
+
constructor(item: UpAccordionItemDirective);
|
|
40
|
+
toggleState(): void;
|
|
41
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
42
|
+
protected focusNextItem(): void;
|
|
43
|
+
protected focusPreviousItem(): void;
|
|
44
|
+
protected focusFirstItem(): void;
|
|
45
|
+
protected focusLastItem(): void;
|
|
46
|
+
protected getAllTriggers(): HTMLElement[];
|
|
47
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpAccordionTriggerDirective, never>;
|
|
48
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpAccordionTriggerDirective, "[upAccordionTrigger]", never, { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare class UpAccordionContentDirective {
|
|
52
|
+
protected readonly item: UpAccordionItemDirective;
|
|
53
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
54
|
+
protected _computedClass: _angular_core.Signal<string>;
|
|
55
|
+
constructor(item: UpAccordionItemDirective);
|
|
56
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpAccordionContentDirective, never>;
|
|
57
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpAccordionContentDirective, "[upAccordionContent]", ["upAccordionContent"], { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { UpAccordionContentDirective, UpAccordionDirective, UpAccordionItemDirective, UpAccordionTriggerDirective };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ButtonVariants } from '@unipin/angular-applet/buttons';
|
|
2
|
+
import { UpDialogService, UpDialogRef } from '@unipin/angular-applet/dialog';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
|
|
5
|
+
type AlertOptions = {
|
|
6
|
+
title: string;
|
|
7
|
+
buttons: AlertButton[];
|
|
8
|
+
description?: string;
|
|
9
|
+
fields?: AlertFormField[];
|
|
10
|
+
};
|
|
11
|
+
type AlertButton = {
|
|
12
|
+
text: string;
|
|
13
|
+
additionalClass?: string;
|
|
14
|
+
variant?: ButtonVariants['variant'];
|
|
15
|
+
handler?: (form?: Record<string, any>) => void;
|
|
16
|
+
};
|
|
17
|
+
type AlertFormField = {
|
|
18
|
+
name: string;
|
|
19
|
+
type: 'text' | 'number' | 'checkbox' | 'password';
|
|
20
|
+
required?: boolean;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
declare class UpAlertController {
|
|
25
|
+
protected dialog: UpDialogService;
|
|
26
|
+
protected readonly MAX_FIELDS = 3;
|
|
27
|
+
protected readonly MAX_BUTTONS = 2;
|
|
28
|
+
constructor(dialog: UpDialogService);
|
|
29
|
+
show(options: AlertOptions, canDismiss?: boolean): UpDialogRef;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpAlertController, never>;
|
|
31
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UpAlertController>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { UpAlertController };
|
|
35
|
+
export type { AlertButton, AlertFormField, AlertOptions };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
declare const alertVariants: (props?: ({
|
|
7
|
+
variant?: "default" | "success" | "warning" | "destructive" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
type AlertVariants = VariantProps<typeof alertVariants>;
|
|
10
|
+
|
|
11
|
+
declare class UpAlertDirective {
|
|
12
|
+
readonly variant: _angular_core.InputSignal<"default" | "success" | "warning" | "destructive" | null | undefined>;
|
|
13
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
14
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
15
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpAlertDirective, never>;
|
|
16
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpAlertDirective, "[upAlert]", ["upAlert"], { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare class UpAlertTitleDirective {
|
|
20
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
21
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
22
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpAlertTitleDirective, never>;
|
|
23
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpAlertTitleDirective, "[upAlertTitle]", ["upAlertTitle"], { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare class UpAlertDescriptionDirective {
|
|
27
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
28
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
29
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpAlertDescriptionDirective, never>;
|
|
30
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpAlertDescriptionDirective, "[upAlertDescription]", ["upAlertDescription"], { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { UpAlertDescriptionDirective, UpAlertDirective, UpAlertTitleDirective, alertVariants };
|
|
34
|
+
export type { AlertVariants };
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { AppLoginSubject, Maybe, MutationAuthMsRefreshAccessTokenArgs, Token, LoginRq, LoginResponse, PermissionFilter, AppPermDfn } from '@unipin/graphql-schema';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Provider, WritableSignal, TemplateRef, ViewContainerRef, OnInit, OnDestroy } from '@angular/core';
|
|
4
|
+
import { CanActivateFn, Router, ActivatedRoute } from '@angular/router';
|
|
5
|
+
import { HttpInterceptorFn } from '@angular/common/http';
|
|
6
|
+
import { Observable, Subscription } from 'rxjs';
|
|
7
|
+
import { GqlParser, CacheStrategy, QueryResult, MutationResult } from '@unipin/angular-gql';
|
|
8
|
+
|
|
9
|
+
type User = AppLoginSubject & {
|
|
10
|
+
email: string;
|
|
11
|
+
photo: string;
|
|
12
|
+
mobileNumber?: string | null;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
type LoadingConfig = {
|
|
16
|
+
permTypes: string[];
|
|
17
|
+
permModules: string[];
|
|
18
|
+
subjectGuidStorageKey?: string;
|
|
19
|
+
};
|
|
20
|
+
declare function provideLoadingConfig(config: LoadingConfig): Provider;
|
|
21
|
+
|
|
22
|
+
declare const authGuard: CanActivateFn;
|
|
23
|
+
|
|
24
|
+
declare const permissionGuard: CanActivateFn;
|
|
25
|
+
|
|
26
|
+
declare const authorizationInterceptor: HttpInterceptorFn;
|
|
27
|
+
|
|
28
|
+
declare const refreshTokenInterceptor: HttpInterceptorFn;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The `AuthResolver` service provides methods for handling authentication-related tasks,
|
|
32
|
+
* such as checking user login status, retrieving authentication tokens, and managing token expiration.
|
|
33
|
+
*/
|
|
34
|
+
declare class AuthResolver {
|
|
35
|
+
/**
|
|
36
|
+
* Checks if the user is logged in by verifying the presence of an authentication token.
|
|
37
|
+
* @returns {boolean} - True if the user is logged in; otherwise, false.
|
|
38
|
+
*/
|
|
39
|
+
isUserLoggedIn(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Retrieves the authentication token, resolving it if needed.
|
|
42
|
+
* @returns {string | null} - The authentication token if the user is logged in; otherwise, null.
|
|
43
|
+
*/
|
|
44
|
+
getAuthToken(): string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Resolves the user's authentication token by checking expiration and whether the user still logged in or not.
|
|
47
|
+
*/
|
|
48
|
+
protected resolveUserAuthToken(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Checks if a given token is expired or not yet.
|
|
51
|
+
* @param {string | null} token - The token to be checked for expiration.
|
|
52
|
+
* @returns {boolean} - True if the token is expired; otherwise, false.
|
|
53
|
+
*/
|
|
54
|
+
protected isTokenExpired(token: string | null): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Retrieves the expiration date of a token.
|
|
57
|
+
* @param {string | null} token - The token for which to retrieve the expiration date.
|
|
58
|
+
* @returns {Date | null} - The expiration date of the token if available; otherwise, null.
|
|
59
|
+
*/
|
|
60
|
+
protected getTokenExpirationDate(token: string | null): Date | null;
|
|
61
|
+
/**
|
|
62
|
+
* Decodes a JWT token to extract payload information.
|
|
63
|
+
* @param {string | null} token - The JWT token to be decoded.
|
|
64
|
+
* @returns {string | null} - The decoded payload as a string if successful; otherwise, null.
|
|
65
|
+
*/
|
|
66
|
+
protected decodeToken(token: string | null): string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Decodes a base64url-encoded string.
|
|
69
|
+
* @param {string} str - The base64url-encoded string to be decoded.
|
|
70
|
+
* @returns {string} - The decoded string.
|
|
71
|
+
*/
|
|
72
|
+
protected urlBase64Decode(str: string): string;
|
|
73
|
+
/**
|
|
74
|
+
* Decodes a Unicode string from a base64-encoded string.
|
|
75
|
+
* @param {string} str - The base64-encoded string to be decoded.
|
|
76
|
+
* @returns {string} - The decoded Unicode string.
|
|
77
|
+
*/
|
|
78
|
+
protected b64DecodeUnicode(str: string): string;
|
|
79
|
+
/**
|
|
80
|
+
* Decodes a base64-encoded string.
|
|
81
|
+
* @param {string} str - The base64-encoded string to be decoded.
|
|
82
|
+
* @returns {string} - The decoded string.
|
|
83
|
+
*/
|
|
84
|
+
protected b64decode(str: string): string;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthResolver, never>;
|
|
86
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthResolver>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
declare class ProfileService {
|
|
90
|
+
protected readonly gql: GqlParser;
|
|
91
|
+
constructor(gql: GqlParser);
|
|
92
|
+
transformSubjetToUser(subject: AppLoginSubject): User;
|
|
93
|
+
/**
|
|
94
|
+
* A method to get the user profile information.
|
|
95
|
+
* @param {string} extraAttr - Contain extra attribute to get the user profile information.
|
|
96
|
+
* @param {CacheStrategy | undefined} cacheStrategy - Specifies how Apollo Client should handle data retrieval, determining whether it should make a network request to fetch fresh data from the server or use data from the local cache.
|
|
97
|
+
*
|
|
98
|
+
* @returns {Observable<QueryResult<{ authMsMyProfile: Maybe<AppLoginSubject> }>>} Contain user profile information.
|
|
99
|
+
*/
|
|
100
|
+
getMyProfile(extraAttr?: string, cacheStrategy?: CacheStrategy): Observable<QueryResult<{
|
|
101
|
+
authMsMyProfile: Maybe<AppLoginSubject>;
|
|
102
|
+
}>>;
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
|
|
104
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare class AuthService {
|
|
108
|
+
protected readonly gql: GqlParser;
|
|
109
|
+
protected readonly profileService: ProfileService;
|
|
110
|
+
/**
|
|
111
|
+
* Both `authToken` and `refreshToken` are public static variable to store the auth token and refresh token obtained form the login API.
|
|
112
|
+
* They will be set as header param inside API calls.
|
|
113
|
+
* @type {string}
|
|
114
|
+
*
|
|
115
|
+
* @default ''
|
|
116
|
+
*/
|
|
117
|
+
static authToken: string;
|
|
118
|
+
static refreshToken: string;
|
|
119
|
+
/**
|
|
120
|
+
* A public variable to store the logined user information.
|
|
121
|
+
* @type {User} An interface contain user information.
|
|
122
|
+
* @default {} as User
|
|
123
|
+
*/
|
|
124
|
+
user: WritableSignal<User>;
|
|
125
|
+
constructor(gql: GqlParser, profileService: ProfileService);
|
|
126
|
+
static logout(): void;
|
|
127
|
+
logout(): void;
|
|
128
|
+
/**
|
|
129
|
+
* This method is used by the `refreshTokenInterceptor`, to get the new token shortly before the auth token is expired.
|
|
130
|
+
* @param {MutationAuthMsRefreshAccessTokenArgs} variables - Contain `refreshToken` attribute which is the current refresh token.
|
|
131
|
+
* @returns {Observable<MutationResult<{ authMsRefreshAccessToken: Token }>>} Contain new `authToken` and `refreshToken`.
|
|
132
|
+
*/
|
|
133
|
+
refreshToken(variables: MutationAuthMsRefreshAccessTokenArgs): Observable<MutationResult<{
|
|
134
|
+
authMsRefreshAccessToken: Token;
|
|
135
|
+
}>>;
|
|
136
|
+
/**
|
|
137
|
+
* A method to authenticate the user to get the session for applet or platform.
|
|
138
|
+
* When successful it will set the user information to the `user` variable, `authToken` and `refreshToken`.
|
|
139
|
+
* It will set the `authToken`, `refreshToken`, `userGuid` and `roles` to the localStorage also for API calls.
|
|
140
|
+
*
|
|
141
|
+
* @param {{ email: string, password: string, sourcePlatform: string }} input - Contain `email` which is registered user email, `password` which is registered user password and `sourcePlatform` it's value can be `ADMIN` to get the applet session or `CP_COMMERCE` to get the platform session.
|
|
142
|
+
*
|
|
143
|
+
* @returns {Observable<MutationResult<{ authMsLogin: LoginResponse }>>} Contain logined user information.
|
|
144
|
+
*/
|
|
145
|
+
login(input: LoginRq): Observable<MutationResult<{
|
|
146
|
+
authMsLogin: LoginResponse;
|
|
147
|
+
}>>;
|
|
148
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
149
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
declare class PermissionService {
|
|
153
|
+
protected readonly gql: GqlParser;
|
|
154
|
+
readonly permissions: i0.WritableSignal<Map<string, boolean>>;
|
|
155
|
+
/**
|
|
156
|
+
* A boolean value that tells the permission service is initiated (permissions list is retrieved from Backend) or not.
|
|
157
|
+
* @default false
|
|
158
|
+
*/
|
|
159
|
+
isInitiated: boolean;
|
|
160
|
+
constructor(gql: GqlParser);
|
|
161
|
+
/**
|
|
162
|
+
* A method that checking if the user has the permission or not based on the params value.
|
|
163
|
+
* @param {string} permission - Permission code that wanted to be checked
|
|
164
|
+
*
|
|
165
|
+
* @returns {boolean} Contain boolean value that tells the user has the permission or not.
|
|
166
|
+
*/
|
|
167
|
+
has(permission: string): boolean;
|
|
168
|
+
/**
|
|
169
|
+
* A method that set the permissions and permission modules.
|
|
170
|
+
* @param {string[]} permCodes - Contain list of permission codes.
|
|
171
|
+
*/
|
|
172
|
+
setPermission(permCodes: string[]): void;
|
|
173
|
+
/**
|
|
174
|
+
* A method that get the query value with authMsPermission as the object.
|
|
175
|
+
* @param {PermissionFilter} filter - Contain filter as a conditions for the query.
|
|
176
|
+
* @returns {Observable<ApolloQueryResult<{ authMsPermission: { data: AppPermDfn[] }}>>} Contain query value.
|
|
177
|
+
*/
|
|
178
|
+
getPermissions(filter: PermissionFilter, cacheStrategy?: CacheStrategy): Observable<QueryResult<{
|
|
179
|
+
authMsPermission: {
|
|
180
|
+
data: AppPermDfn[];
|
|
181
|
+
};
|
|
182
|
+
}>>;
|
|
183
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionService, never>;
|
|
184
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PermissionService>;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* The `PermissionDirective` is a directive that conditionally renders content based on user permissions.
|
|
189
|
+
* @selector '[hasPermission]'
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* ```html
|
|
193
|
+
* <div *hasPermission="'MERCHANT.CONTRACT.READ'"></div>
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
declare class PermissionDirective {
|
|
197
|
+
protected readonly service: PermissionService;
|
|
198
|
+
protected readonly templateRef: TemplateRef<any>;
|
|
199
|
+
protected readonly viewContainer: ViewContainerRef;
|
|
200
|
+
constructor(service: PermissionService, templateRef: TemplateRef<any>, viewContainer: ViewContainerRef);
|
|
201
|
+
set hasPermission(permission: string);
|
|
202
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionDirective, never>;
|
|
203
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PermissionDirective, "[hasPermission]", ["hasPermission"], { "hasPermission": { "alias": "hasPermission"; "required": false; }; }, {}, never, never, true, never>;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
declare class UnauthorizedPage {
|
|
207
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UnauthorizedPage, never>;
|
|
208
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UnauthorizedPage, "up-unauthorized", never, {}, {}, never, never, true, never>;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
declare class LoadingPage implements OnInit, OnDestroy {
|
|
212
|
+
readonly config: LoadingConfig;
|
|
213
|
+
protected readonly router: Router;
|
|
214
|
+
protected readonly route: ActivatedRoute;
|
|
215
|
+
protected readonly permissionService: PermissionService;
|
|
216
|
+
protected sub?: Subscription;
|
|
217
|
+
constructor(config: LoadingConfig, router: Router, route: ActivatedRoute, permissionService: PermissionService);
|
|
218
|
+
ngOnInit(): void;
|
|
219
|
+
ngOnDestroy(): void;
|
|
220
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingPage, never>;
|
|
221
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingPage, "up-loading", never, {}, {}, never, never, true, never>;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export { AuthResolver, AuthService, LoadingPage, PermissionDirective, PermissionService, ProfileService, UnauthorizedPage, authGuard, authorizationInterceptor, permissionGuard, provideLoadingConfig, refreshTokenInterceptor };
|
|
225
|
+
export type { LoadingConfig, User };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
declare class UpAvatarDirective {
|
|
6
|
+
protected readonly el: ElementRef;
|
|
7
|
+
protected readonly renderer: Renderer2;
|
|
8
|
+
readonly initialText: _angular_core.InputSignal<string>;
|
|
9
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
10
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
11
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
12
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpAvatarDirective, never>;
|
|
13
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpAvatarDirective, "[upAvatar]", ["upAvatar"], { "initialText": { "alias": "initial"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { UpAvatarDirective };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
declare const badgeVariants: (props?: ({
|
|
7
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
type BadgeVariants = VariantProps<typeof badgeVariants>;
|
|
10
|
+
|
|
11
|
+
declare class UpBadgeDirective {
|
|
12
|
+
readonly variant: _angular_core.InputSignal<"default" | "secondary" | "destructive" | "outline" | null | undefined>;
|
|
13
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
14
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
15
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpBadgeDirective, never>;
|
|
16
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpBadgeDirective, "[upBadge]", ["upBadge"], { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { UpBadgeDirective, badgeVariants };
|
|
20
|
+
export type { BadgeVariants };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { ElementRef, ModelSignal } from '@angular/core';
|
|
5
|
+
import { ClassValue } from 'clsx';
|
|
6
|
+
|
|
7
|
+
declare const buttonVariants: (props?: ({
|
|
8
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
9
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
+
type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
12
|
+
|
|
13
|
+
declare class UpButtonDirective {
|
|
14
|
+
readonly size: _angular_core.InputSignal<"default" | "sm" | "lg" | "icon" | null | undefined>;
|
|
15
|
+
readonly variant: _angular_core.InputSignal<"default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined>;
|
|
16
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
17
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
18
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpButtonDirective, never>;
|
|
19
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpButtonDirective, "[upButton]", ["upButton"], { "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class UpSplitButtonComponent {
|
|
23
|
+
readonly _buttons: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
24
|
+
readonly _descriptions: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
25
|
+
readonly activeIndex: ModelSignal<number>;
|
|
26
|
+
splitBtnItems: {
|
|
27
|
+
labels: string[];
|
|
28
|
+
descriptions: string[];
|
|
29
|
+
variant: ButtonVariants["variant"][];
|
|
30
|
+
};
|
|
31
|
+
constructor();
|
|
32
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpSplitButtonComponent, never>;
|
|
33
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpSplitButtonComponent, "up-split-button", never, { "activeIndex": { "alias": "activeIndex"; "required": false; "isSignal": true; }; }, { "activeIndex": "activeIndexChange"; }, ["_buttons", "_descriptions"], ["*"], true, never>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { UpButtonDirective, UpSplitButtonComponent, buttonVariants };
|
|
37
|
+
export type { ButtonVariants };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as date_fns from 'date-fns';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
|
|
4
|
+
type SingleDate = Date | null;
|
|
5
|
+
type RangeDate = {
|
|
6
|
+
from: Date | null;
|
|
7
|
+
to: Date | null;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
declare class UpCalendarComponent {
|
|
11
|
+
readonly minDate: _angular_core.InputSignal<SingleDate>;
|
|
12
|
+
readonly maxDate: _angular_core.InputSignal<SingleDate>;
|
|
13
|
+
readonly variant: _angular_core.InputSignal<"single" | "range">;
|
|
14
|
+
readonly selected: _angular_core.OutputEmitterRef<SingleDate>;
|
|
15
|
+
readonly rangeSelected: _angular_core.OutputEmitterRef<RangeDate>;
|
|
16
|
+
readonly today: Date;
|
|
17
|
+
readonly activeDay: _angular_core.ModelSignal<SingleDate>;
|
|
18
|
+
readonly activeRangeDay: _angular_core.ModelSignal<RangeDate>;
|
|
19
|
+
readonly rangeTo: _angular_core.WritableSignal<SingleDate>;
|
|
20
|
+
readonly rangeFrom: _angular_core.WritableSignal<SingleDate>;
|
|
21
|
+
readonly selectedYear: _angular_core.WritableSignal<number>;
|
|
22
|
+
readonly selectedMonth: _angular_core.WritableSignal<number>;
|
|
23
|
+
readonly firstDayOfActiveMonth: _angular_core.Signal<Date>;
|
|
24
|
+
readonly daysOfMonth: _angular_core.Signal<date_fns.EachDayOfIntervalResult<{
|
|
25
|
+
start: Date;
|
|
26
|
+
end: Date;
|
|
27
|
+
}, undefined>>;
|
|
28
|
+
readonly weekDays: string[];
|
|
29
|
+
readonly months: string[];
|
|
30
|
+
readonly years: number[];
|
|
31
|
+
constructor();
|
|
32
|
+
changeMonth(event: Event): void;
|
|
33
|
+
changeYear(event: Event): void;
|
|
34
|
+
previousMonth(): void;
|
|
35
|
+
nextMonth(): void;
|
|
36
|
+
selectDate(day: Date): void;
|
|
37
|
+
protected handleRangeSelection(day: Date): void;
|
|
38
|
+
protected setRange(from: SingleDate, to: SingleDate): void;
|
|
39
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpCalendarComponent, never>;
|
|
40
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpCalendarComponent, "up-calendar", never, { "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "activeDay": { "alias": "activeDay"; "required": false; "isSignal": true; }; "activeRangeDay": { "alias": "activeRangeDay"; "required": false; "isSignal": true; }; }, { "selected": "selected"; "rangeSelected": "rangeSelected"; "activeDay": "activeDayChange"; "activeRangeDay": "activeRangeDayChange"; }, never, never, true, never>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { UpCalendarComponent };
|
|
44
|
+
export type { RangeDate, SingleDate };
|