@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
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal, DoCheck, Injector, Renderer2, ElementRef, WritableSignal, InputSignal, ModelSignal, OutputEmitterRef, OnInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
import { NgControl, AbstractControl, NgForm, FormGroupDirective, ControlValueAccessor, FormGroup, ValidatorFn } from '@angular/forms';
|
|
5
|
+
import { Subscription, Observable, Subject } from 'rxjs';
|
|
6
|
+
import { Country, Currency } from '@unipin/graphql-schema';
|
|
7
|
+
import { CountryService, CurrencyService } from '@unipin/angular-applet/common';
|
|
8
|
+
import { SingleDate, RangeDate } from '@unipin/angular-applet/calendar';
|
|
9
|
+
|
|
10
|
+
declare abstract class UpFieldControl {
|
|
11
|
+
abstract readonly error: Signal<string>;
|
|
12
|
+
abstract readonly ngControl: NgControl | AbstractControl | null;
|
|
13
|
+
abstract setControlName(name: string): void;
|
|
14
|
+
}
|
|
15
|
+
declare class UpFieldControlComponent implements UpFieldControl, DoCheck {
|
|
16
|
+
readonly error: _angular_core.WritableSignal<string>;
|
|
17
|
+
readonly injector: Injector;
|
|
18
|
+
readonly ngControl: NgControl | null;
|
|
19
|
+
protected readonly _parentForm: NgForm | null;
|
|
20
|
+
protected readonly _parentFormGroup: FormGroupDirective | null;
|
|
21
|
+
protected _controlName: string;
|
|
22
|
+
ngDoCheck(): void;
|
|
23
|
+
setControlName(name: string): void;
|
|
24
|
+
protected updateErrorState(): void;
|
|
25
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpFieldControlComponent, never>;
|
|
26
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<UpFieldControlComponent>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare class UpInputDirective extends UpFieldControlComponent {
|
|
30
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
31
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
32
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpInputDirective, never>;
|
|
33
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpInputDirective, "[upInput]", ["upInput"], { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare class UpNumberDirective extends UpInputDirective implements ControlValueAccessor {
|
|
37
|
+
protected readonly renderer: Renderer2;
|
|
38
|
+
protected readonly el: ElementRef<HTMLInputElement>;
|
|
39
|
+
readonly magnifyValue: _angular_core.InputSignal<number>;
|
|
40
|
+
protected readonly maxDecimalDigits: _angular_core.Signal<number>;
|
|
41
|
+
protected lastCaretPos: number;
|
|
42
|
+
protected lastRawValue: string;
|
|
43
|
+
protected lastKey: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Callback function to handle value changes in the password input.
|
|
46
|
+
* @type {(_val: any) => void}
|
|
47
|
+
*/
|
|
48
|
+
protected _onChange: (_val: any) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Callback function to handle touch events in the password input.
|
|
51
|
+
* @type {() => void}
|
|
52
|
+
*/
|
|
53
|
+
protected _onTouched: () => void;
|
|
54
|
+
constructor(renderer: Renderer2, el: ElementRef<HTMLInputElement>);
|
|
55
|
+
onBlur(): void;
|
|
56
|
+
onInput(event: Event): void;
|
|
57
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
58
|
+
/**
|
|
59
|
+
* Registers a callback function to be called when the password input value changes.
|
|
60
|
+
* @param {(_val: any) => void} fn - Callback function for value changes.
|
|
61
|
+
*/
|
|
62
|
+
registerOnChange(fn: any): void;
|
|
63
|
+
/**
|
|
64
|
+
* Registers a callback function to be called when the password input is touched.
|
|
65
|
+
* @param {() => void} fn - Callback function for touch events.
|
|
66
|
+
*/
|
|
67
|
+
registerOnTouched(fn: any): void;
|
|
68
|
+
setDisabledState(isDisabled: boolean): void;
|
|
69
|
+
writeValue(value: any): void;
|
|
70
|
+
protected findCommaCaret(formatted: string, digitsBefore: number): number;
|
|
71
|
+
protected mapDigitsToIndex(formatted: string, digitsBefore: number): number;
|
|
72
|
+
protected formatNumber(value: string): string;
|
|
73
|
+
protected formatWithThousandSeparator(value: string): string;
|
|
74
|
+
protected sanitizeNumber(value: string): {
|
|
75
|
+
integer: string;
|
|
76
|
+
decimal?: string;
|
|
77
|
+
};
|
|
78
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpNumberDirective, never>;
|
|
79
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpNumberDirective, "[upNumber]", ["upNumber"], { "magnifyValue": { "alias": "magnifyValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare class UpCheckboxDirective extends UpFieldControlComponent {
|
|
83
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
84
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
85
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpCheckboxDirective, never>;
|
|
86
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UpCheckboxDirective, "[upCheckbox]", ["upCheckbox"], { "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
declare class UpSwitchComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
90
|
+
readonly checked: _angular_core.ModelSignal<boolean>;
|
|
91
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
92
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
93
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
94
|
+
isTouched: boolean;
|
|
95
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
96
|
+
protected _onChange: (_val: any) => void;
|
|
97
|
+
protected _onTouched: () => void;
|
|
98
|
+
constructor();
|
|
99
|
+
writeValue(value: boolean): void;
|
|
100
|
+
registerOnChange(fn: any): void;
|
|
101
|
+
registerOnTouched(fn: any): void;
|
|
102
|
+
touch(): void;
|
|
103
|
+
toggle(): void;
|
|
104
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpSwitchComponent, never>;
|
|
105
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpSwitchComponent, "up-switch", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, never, true, never>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
declare class UpPasswordComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
109
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
110
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
111
|
+
readonly autocomplete: _angular_core.InputSignal<"off" | "current-password" | "new-password">;
|
|
112
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
113
|
+
readonly disabled: _angular_core.ModelSignal<boolean>;
|
|
114
|
+
readonly value: WritableSignal<string>;
|
|
115
|
+
readonly type: WritableSignal<"text" | "password">;
|
|
116
|
+
isTouched: boolean;
|
|
117
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Callback function to handle value changes in the password input.
|
|
120
|
+
* @type {(_val: any) => void}
|
|
121
|
+
*/
|
|
122
|
+
protected _onChange: (_val: any) => void;
|
|
123
|
+
/**
|
|
124
|
+
* Callback function to handle touch events in the password input.
|
|
125
|
+
* @type {() => void}
|
|
126
|
+
*/
|
|
127
|
+
protected _onTouched: () => void;
|
|
128
|
+
constructor();
|
|
129
|
+
/**
|
|
130
|
+
* Registers a callback function to be called when the password input value changes.
|
|
131
|
+
* @param {(_val: any) => void} fn - Callback function for value changes.
|
|
132
|
+
*/
|
|
133
|
+
registerOnChange(fn: any): void;
|
|
134
|
+
/**
|
|
135
|
+
* Registers a callback function to be called when the password input is touched.
|
|
136
|
+
* @param {() => void} fn - Callback function for touch events.
|
|
137
|
+
*/
|
|
138
|
+
registerOnTouched(fn: any): void;
|
|
139
|
+
/**
|
|
140
|
+
* Writes a new value to the password input.
|
|
141
|
+
* @param {*} val - The new value to be set.
|
|
142
|
+
*/
|
|
143
|
+
writeValue(val: any): void;
|
|
144
|
+
/**
|
|
145
|
+
* Function that is called by the forms API when the control status change to or from 'DISABLED'.
|
|
146
|
+
* Depending on the status, it enables or disables the appropriate DOM element
|
|
147
|
+
* @param {boolean} isDisabled - disable state
|
|
148
|
+
*/
|
|
149
|
+
setDisabledState(isDisabled: boolean): void;
|
|
150
|
+
/**
|
|
151
|
+
* Toggles the type of the password input between text and password.
|
|
152
|
+
*/
|
|
153
|
+
changeType(): void;
|
|
154
|
+
/**
|
|
155
|
+
* Event handler to handle touch status.
|
|
156
|
+
*
|
|
157
|
+
* @returns {void}
|
|
158
|
+
*/
|
|
159
|
+
touch(): void;
|
|
160
|
+
/**
|
|
161
|
+
* Event handler for changes in the password input.
|
|
162
|
+
* If not touched, marks the input as touched.
|
|
163
|
+
* Updates the value and triggers change detection.
|
|
164
|
+
* @param {any} param - Event detail containing the new password input value.
|
|
165
|
+
*/
|
|
166
|
+
change({ value }: any): void;
|
|
167
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpPasswordComponent, never>;
|
|
168
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpPasswordComponent, "up-password", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; }, never, never, true, never>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare class UpSelectComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
172
|
+
readonly items: InputSignal<any[]>;
|
|
173
|
+
readonly label: InputSignal<string>;
|
|
174
|
+
readonly appendTo: InputSignal<string>;
|
|
175
|
+
readonly placeholder: InputSignal<string>;
|
|
176
|
+
readonly bindLabel: InputSignal<string>;
|
|
177
|
+
readonly bindValue: InputSignal<string>;
|
|
178
|
+
readonly value: ModelSignal<any | null>;
|
|
179
|
+
readonly inlineClass: InputSignal<ClassValue>;
|
|
180
|
+
readonly loading: InputSignal<boolean>;
|
|
181
|
+
readonly multiple: InputSignal<boolean>;
|
|
182
|
+
readonly required: InputSignal<boolean>;
|
|
183
|
+
readonly disabled: InputSignal<boolean>;
|
|
184
|
+
readonly clearable: InputSignal<boolean>;
|
|
185
|
+
readonly addTag: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
186
|
+
readonly searchable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
187
|
+
readonly virtualScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
188
|
+
readonly changed: OutputEmitterRef<any>;
|
|
189
|
+
readonly control: Signal<UpFieldControl | undefined>;
|
|
190
|
+
readonly _computedClass: Signal<any>;
|
|
191
|
+
protected isTouched: boolean;
|
|
192
|
+
protected _onTouched: () => void;
|
|
193
|
+
protected _onChange: (_val: any) => void;
|
|
194
|
+
constructor();
|
|
195
|
+
/**
|
|
196
|
+
* Lifecycle hook — initializes the control name for form integration.
|
|
197
|
+
*/
|
|
198
|
+
ngOnInit(): void;
|
|
199
|
+
/**
|
|
200
|
+
* Writes a new value from the form model into the view.
|
|
201
|
+
*
|
|
202
|
+
* @param {any} value - The value to assign to the select.
|
|
203
|
+
*/
|
|
204
|
+
writeValue(value: any): void;
|
|
205
|
+
/**
|
|
206
|
+
* Registers a callback function to be called when the select value changes.
|
|
207
|
+
*
|
|
208
|
+
* @param {(val: any) => void} fn - Callback function to handle value changes.
|
|
209
|
+
*/
|
|
210
|
+
registerOnChange(fn: (val: any) => void): void;
|
|
211
|
+
/**
|
|
212
|
+
* Registers a callback function to be called when the component is touched.
|
|
213
|
+
*
|
|
214
|
+
* @param {() => void} fn - Callback function for touch events.
|
|
215
|
+
*/
|
|
216
|
+
registerOnTouched(fn: () => void): void;
|
|
217
|
+
/**
|
|
218
|
+
* Marks the component as touched (used for form validation state).
|
|
219
|
+
*/
|
|
220
|
+
touch(): void;
|
|
221
|
+
/**
|
|
222
|
+
* Handles changes from the dropdown and propagates them to the form model.
|
|
223
|
+
*
|
|
224
|
+
* @param {any} e - The new value emitted by the ng-select component.
|
|
225
|
+
*/
|
|
226
|
+
change(e?: any): void;
|
|
227
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpSelectComponent, never>;
|
|
228
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpSelectComponent, "up-select", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "appendTo": { "alias": "appendTo"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "bindLabel": { "alias": "bindLabel"; "required": false; "isSignal": true; }; "bindValue": { "alias": "bindValue"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "addTag": { "alias": "addTag"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "changed": "changed"; }, ["control"], never, true, never>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
declare class UpCountrySelectComponent extends UpFieldControlComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
232
|
+
protected readonly service: CountryService;
|
|
233
|
+
readonly multiple: _angular_core.InputSignal<boolean>;
|
|
234
|
+
readonly clearable: _angular_core.InputSignal<boolean>;
|
|
235
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
236
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
237
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
238
|
+
readonly value: _angular_core.ModelSignal<string | null>;
|
|
239
|
+
readonly changed: OutputEmitterRef<Country>;
|
|
240
|
+
readonly countries: _angular_core.WritableSignal<Country[]>;
|
|
241
|
+
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
242
|
+
readonly _disabled: _angular_core.WritableSignal<boolean>;
|
|
243
|
+
protected sub?: Subscription;
|
|
244
|
+
protected isTouched: boolean;
|
|
245
|
+
protected _onTouched: () => void;
|
|
246
|
+
protected _onChange: (_val: any) => void;
|
|
247
|
+
constructor(service: CountryService);
|
|
248
|
+
ngOnInit(): void;
|
|
249
|
+
ngOnDestroy(): void;
|
|
250
|
+
registerOnChange(fn: any): void;
|
|
251
|
+
registerOnTouched(fn: any): void;
|
|
252
|
+
setDisabledState(isDisabled: boolean): void;
|
|
253
|
+
writeValue(value: any): void;
|
|
254
|
+
onTouched(): void;
|
|
255
|
+
change(value: any): void;
|
|
256
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpCountrySelectComponent, never>;
|
|
257
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpCountrySelectComponent, "up-country-select", never, { "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "changed": "changed"; }, never, never, true, never>;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
declare class UpCurrencySelectComponent extends UpFieldControlComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
261
|
+
protected readonly service: CurrencyService;
|
|
262
|
+
readonly multiple: _angular_core.InputSignal<boolean>;
|
|
263
|
+
readonly clearable: _angular_core.InputSignal<boolean>;
|
|
264
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
265
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
266
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
267
|
+
readonly value: _angular_core.ModelSignal<string | null>;
|
|
268
|
+
readonly changed: OutputEmitterRef<Currency>;
|
|
269
|
+
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
270
|
+
readonly _disabled: _angular_core.WritableSignal<boolean>;
|
|
271
|
+
readonly currencies: _angular_core.WritableSignal<(Currency & {
|
|
272
|
+
displayLabel: string;
|
|
273
|
+
})[]>;
|
|
274
|
+
protected sub?: Subscription;
|
|
275
|
+
protected isTouched: boolean;
|
|
276
|
+
protected _onTouched: () => void;
|
|
277
|
+
protected _onChange: (_val: any) => void;
|
|
278
|
+
constructor(service: CurrencyService);
|
|
279
|
+
ngOnInit(): void;
|
|
280
|
+
ngOnDestroy(): void;
|
|
281
|
+
registerOnChange(fn: any): void;
|
|
282
|
+
registerOnTouched(fn: any): void;
|
|
283
|
+
setDisabledState(isDisabled: boolean): void;
|
|
284
|
+
writeValue(value: any): void;
|
|
285
|
+
onTouched(): void;
|
|
286
|
+
change(value: any): void;
|
|
287
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpCurrencySelectComponent, never>;
|
|
288
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpCurrencySelectComponent, "up-currency-select", never, { "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "changed": "changed"; }, never, never, true, never>;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare class UpSearchableSelectComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
292
|
+
readonly query: InputSignal<(keyword: string) => Observable<any>>;
|
|
293
|
+
readonly label: InputSignal<string>;
|
|
294
|
+
readonly appendTo: InputSignal<string>;
|
|
295
|
+
readonly placeholder: InputSignal<string>;
|
|
296
|
+
readonly initialItems: InputSignal<any[]>;
|
|
297
|
+
readonly bindLabel: InputSignal<string>;
|
|
298
|
+
readonly bindValue: InputSignal<string>;
|
|
299
|
+
readonly inlineClass: InputSignal<ClassValue>;
|
|
300
|
+
readonly addTag: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
301
|
+
readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
302
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
303
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
304
|
+
readonly clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
305
|
+
readonly virtualScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
306
|
+
readonly loading: ModelSignal<boolean>;
|
|
307
|
+
readonly value: ModelSignal<any | null>;
|
|
308
|
+
readonly changed: OutputEmitterRef<any>;
|
|
309
|
+
readonly control: Signal<UpFieldControl | undefined>;
|
|
310
|
+
readonly _computedClass: Signal<any>;
|
|
311
|
+
readonly items: Signal<any[]>;
|
|
312
|
+
readonly typeahead: Subject<string>;
|
|
313
|
+
protected readonly query$: Observable<any[]>;
|
|
314
|
+
protected readonly _queryResults: Signal<any[]>;
|
|
315
|
+
protected isTouched: boolean;
|
|
316
|
+
protected _onTouched: () => void;
|
|
317
|
+
protected _onChange: (_val: any) => void;
|
|
318
|
+
constructor();
|
|
319
|
+
ngOnInit(): void;
|
|
320
|
+
registerOnChange(fn: (val: any) => void): void;
|
|
321
|
+
registerOnTouched(fn: () => void): void;
|
|
322
|
+
writeValue(value: any): void;
|
|
323
|
+
touch(): void;
|
|
324
|
+
change(e?: any): void;
|
|
325
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpSearchableSelectComponent, never>;
|
|
326
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpSearchableSelectComponent, "up-searchable-select", never, { "query": { "alias": "query"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "appendTo": { "alias": "appendTo"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "initialItems": { "alias": "initialItems"; "required": false; "isSignal": true; }; "bindLabel": { "alias": "bindLabel"; "required": false; "isSignal": true; }; "bindValue": { "alias": "bindValue"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "addTag": { "alias": "addTag"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "loading": "loadingChange"; "value": "valueChange"; "changed": "changed"; }, ["control"], never, true, never>;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
declare class UpDatepickerComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
330
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
331
|
+
readonly minDate: _angular_core.InputSignal<SingleDate>;
|
|
332
|
+
readonly maxDate: _angular_core.InputSignal<SingleDate>;
|
|
333
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
334
|
+
readonly dateFormat: _angular_core.InputSignal<string>;
|
|
335
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
336
|
+
readonly btnTrigger: _angular_core.Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
337
|
+
readonly value: _angular_core.WritableSignal<SingleDate>;
|
|
338
|
+
readonly _disabled: _angular_core.WritableSignal<boolean>;
|
|
339
|
+
readonly formattedDate: _angular_core.Signal<string>;
|
|
340
|
+
readonly _computedClass: _angular_core.Signal<string>;
|
|
341
|
+
protected _isTouched: boolean;
|
|
342
|
+
protected _onTouched: () => void;
|
|
343
|
+
protected _onChange: (_val: any) => void;
|
|
344
|
+
constructor();
|
|
345
|
+
writeValue(value: any): void;
|
|
346
|
+
registerOnChange(fn: any): void;
|
|
347
|
+
registerOnTouched(fn: any): void;
|
|
348
|
+
setDisabledState(isDisabled: boolean): void;
|
|
349
|
+
touch(): void;
|
|
350
|
+
selectedDate(day: SingleDate): void;
|
|
351
|
+
protected _markTouched(): void;
|
|
352
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpDatepickerComponent, never>;
|
|
353
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpDatepickerComponent, "up-datepicker", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "format"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
declare class UpDateRangePickerComponent extends UpFieldControlComponent implements ControlValueAccessor {
|
|
357
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
358
|
+
readonly minDate: _angular_core.InputSignal<SingleDate>;
|
|
359
|
+
readonly maxDate: _angular_core.InputSignal<SingleDate>;
|
|
360
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
361
|
+
readonly dateFormat: _angular_core.InputSignal<string>;
|
|
362
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
363
|
+
readonly _disabled: _angular_core.WritableSignal<boolean>;
|
|
364
|
+
readonly value: _angular_core.WritableSignal<RangeDate>;
|
|
365
|
+
readonly formattedDate: _angular_core.Signal<string>;
|
|
366
|
+
readonly _computedClass: _angular_core.Signal<string>;
|
|
367
|
+
protected _isTouched: boolean;
|
|
368
|
+
protected _onTouched: () => void;
|
|
369
|
+
protected _onChange: (_val: any) => void;
|
|
370
|
+
constructor();
|
|
371
|
+
writeValue(value: any): void;
|
|
372
|
+
registerOnChange(fn: any): void;
|
|
373
|
+
registerOnTouched(fn: any): void;
|
|
374
|
+
setDisabledState(isDisabled: boolean): void;
|
|
375
|
+
touch(): void;
|
|
376
|
+
selectedDate(range: RangeDate): void;
|
|
377
|
+
protected _markTouched(): void;
|
|
378
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpDateRangePickerComponent, never>;
|
|
379
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpDateRangePickerComponent, "up-date-range-picker", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "format"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
declare class UpFormFieldComponent {
|
|
383
|
+
readonly name: _angular_core.InputSignal<string>;
|
|
384
|
+
readonly hint: _angular_core.InputSignal<string>;
|
|
385
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
386
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
387
|
+
readonly control: _angular_core.Signal<UpFieldControl | undefined>;
|
|
388
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
389
|
+
constructor();
|
|
390
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpFormFieldComponent, never>;
|
|
391
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpFormFieldComponent, "up-form-field", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, ["control"], ["*"], true, never>;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
declare function setValidator(form: FormGroup, keys: string[], validators: ValidatorFn | ValidatorFn[]): void;
|
|
395
|
+
|
|
396
|
+
declare function toggleFormControls(form: FormGroup, keys: string[], mode: 'enable' | 'disable'): void;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Range validator for number and date values.
|
|
400
|
+
* @param {string} fromKey - The "from" control name
|
|
401
|
+
* @param {string} toKey - The "to" control name
|
|
402
|
+
* @returns {ValidatorFn} Throw error message when fromKey is greater than toKey
|
|
403
|
+
*
|
|
404
|
+
* Usage:
|
|
405
|
+
* this.form = new FormGroup({
|
|
406
|
+
* agingFrom: new FormControl(),
|
|
407
|
+
* agingTo: new FormControl(),
|
|
408
|
+
* }, { validators: rangeValidator('agingFrom', 'agingTo') });
|
|
409
|
+
*/
|
|
410
|
+
declare function validRangeValidator(fromKey: string, toKey: string): ValidatorFn;
|
|
411
|
+
|
|
412
|
+
export { UpCheckboxDirective, UpCountrySelectComponent, UpCurrencySelectComponent, UpDateRangePickerComponent, UpDatepickerComponent, UpFieldControl, UpFieldControlComponent, UpFormFieldComponent, UpInputDirective, UpNumberDirective, UpPasswordComponent, UpSearchableSelectComponent, UpSelectComponent, UpSwitchComponent, setValidator, toggleFormControls, validRangeValidator };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, WritableSignal } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
import { UpFieldControlComponent } from '@unipin/angular-applet/forms';
|
|
6
|
+
|
|
7
|
+
declare class UpFroalaComponent extends UpFieldControlComponent implements OnInit, ControlValueAccessor {
|
|
8
|
+
readonly froalaKey: _angular_core.InputSignal<string>;
|
|
9
|
+
readonly froalaEvents: _angular_core.InputSignal<any>;
|
|
10
|
+
readonly inlineClass: _angular_core.InputSignal<ClassValue>;
|
|
11
|
+
readonly useCustomSocialEmbed: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
12
|
+
readonly value: WritableSignal<string>;
|
|
13
|
+
readonly froalaOptions: _angular_core.Signal<{
|
|
14
|
+
fullPage: boolean;
|
|
15
|
+
toolbarSticky: boolean;
|
|
16
|
+
videoResponsive: boolean;
|
|
17
|
+
imageMaxSize: number;
|
|
18
|
+
imageDefaultWidth: number;
|
|
19
|
+
videoMaxSize: number;
|
|
20
|
+
imageDefaultAlign: string;
|
|
21
|
+
key: string;
|
|
22
|
+
imageResizeWithPercent: boolean;
|
|
23
|
+
imageAllowedTypes: string[];
|
|
24
|
+
placeholderText: string;
|
|
25
|
+
videoAllowedTypes: string[];
|
|
26
|
+
pasteAllowedStyleProps: string[];
|
|
27
|
+
htmlAllowedTags: string[];
|
|
28
|
+
events: any;
|
|
29
|
+
toolbarButtons: {
|
|
30
|
+
moreText: {
|
|
31
|
+
buttons: string[];
|
|
32
|
+
align: string;
|
|
33
|
+
buttonsVisible: number;
|
|
34
|
+
};
|
|
35
|
+
moreParagraph: {
|
|
36
|
+
buttons: string[];
|
|
37
|
+
align: string;
|
|
38
|
+
buttonsVisible: number;
|
|
39
|
+
};
|
|
40
|
+
moreRich: {
|
|
41
|
+
buttons: string[];
|
|
42
|
+
align: string;
|
|
43
|
+
buttonsVisible: number;
|
|
44
|
+
};
|
|
45
|
+
moreMisc: {
|
|
46
|
+
buttons: string[];
|
|
47
|
+
align: string;
|
|
48
|
+
buttonsVisible: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}>;
|
|
52
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Callback function to handle value changes in the password input.
|
|
55
|
+
* @type {(_val: any) => void}
|
|
56
|
+
*/
|
|
57
|
+
protected _onChange: (_val: any) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Callback function to handle touch events in the password input.
|
|
60
|
+
* @type {() => void}
|
|
61
|
+
*/
|
|
62
|
+
protected _onTouched: () => void;
|
|
63
|
+
constructor();
|
|
64
|
+
ngOnInit(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Registers a callback function to be called when the password input value changes.
|
|
67
|
+
* @param {(_val: any) => void} fn - Callback function for value changes.
|
|
68
|
+
*/
|
|
69
|
+
registerOnChange(fn: any): void;
|
|
70
|
+
/**
|
|
71
|
+
* Registers a callback function to be called when the password input is touched.
|
|
72
|
+
* @param {() => void} fn - Callback function for touch events.
|
|
73
|
+
*/
|
|
74
|
+
registerOnTouched(fn: any): void;
|
|
75
|
+
/**
|
|
76
|
+
* Writes a new value to the password input.
|
|
77
|
+
* @param {*} val - The new value to be set.
|
|
78
|
+
*/
|
|
79
|
+
writeValue(val: any): void;
|
|
80
|
+
protected customSocialEmbed(): void;
|
|
81
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UpFroalaComponent, never>;
|
|
82
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UpFroalaComponent, "up-froala", never, { "froalaKey": { "alias": "froalaKey"; "required": true; "isSignal": true; }; "froalaEvents": { "alias": "froalaEvents"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; "useCustomSocialEmbed": { "alias": "useCustomSocialEmbed"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export { UpFroalaComponent };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BadgeVariants } from '@unipin/angular-applet/badge';
|
|
2
|
+
|
|
3
|
+
declare function renderFlag(value: string | string[]): string;
|
|
4
|
+
|
|
5
|
+
type RenderGridBadgeOptions = {
|
|
6
|
+
additionalClass?: string;
|
|
7
|
+
isAutoGenerateColor?: boolean;
|
|
8
|
+
variant?: BadgeVariants['variant'];
|
|
9
|
+
};
|
|
10
|
+
declare function renderGridBadge(value: string, { additionalClass, variant, isAutoGenerateColor, }: RenderGridBadgeOptions): string;
|
|
11
|
+
|
|
12
|
+
type RenderStatusBadgeOptions = Omit<RenderGridBadgeOptions, 'isAutoGenerateColor' | 'variant'> & {
|
|
13
|
+
additionalStatus?: {
|
|
14
|
+
[key: string]: {
|
|
15
|
+
class: string;
|
|
16
|
+
variant: BadgeVariants['variant'];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
declare function renderStatusBadge(value: string, { additionalStatus, additionalClass }: RenderStatusBadgeOptions): string;
|
|
21
|
+
|
|
22
|
+
export { renderFlag, renderGridBadge, renderStatusBadge };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, ElementRef, InputSignal, OutputEmitterRef } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class UpInfiniteScrollDirective implements OnInit, OnDestroy {
|
|
5
|
+
protected readonly elementRef: ElementRef;
|
|
6
|
+
/**
|
|
7
|
+
* Threshold at which to trigger the callback. A value of 0.0 means that the callback
|
|
8
|
+
* will be triggered as soon as a single pixel is visible. 1.0 means that the callback will only be triggered when the entire element is visible.
|
|
9
|
+
* @type {InputSignal<number>}
|
|
10
|
+
*/
|
|
11
|
+
readonly threshold: InputSignal<number>;
|
|
12
|
+
/**
|
|
13
|
+
* Margin around the root. This can be used to grow or shrink the area used to
|
|
14
|
+
* determine intersections. It follows the same syntax as the CSS margin property.
|
|
15
|
+
* Example values: '10px', '10px 20px', '10%', '10% 20% 30% 40%'.
|
|
16
|
+
* @type {InputSignal<string>}
|
|
17
|
+
*/
|
|
18
|
+
readonly rootMargin: InputSignal<string>;
|
|
19
|
+
/**
|
|
20
|
+
* Event emitted when the user has scrolled to the threshold.
|
|
21
|
+
* Used for triggering the component to load more data.
|
|
22
|
+
* @type {OutputEmitterRef<void>}
|
|
23
|
+
*/
|
|
24
|
+
readonly scrolled: OutputEmitterRef<void>;
|
|
25
|
+
/**
|
|
26
|
+
* IntersectionObserver instance used to observe the element.
|
|
27
|
+
* @type {IntersectionObserver}
|
|
28
|
+
*/
|
|
29
|
+
protected intersectionObserver?: IntersectionObserver;
|
|
30
|
+
constructor(elementRef: ElementRef);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
ngOnDestroy(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Updates the observer configuration when inputs change.
|
|
35
|
+
* Call this method if you need to update threshold or rootMargin dynamically.
|
|
36
|
+
*/
|
|
37
|
+
updateObserver(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Cleans up the Intersection Observer when the directive is destroyed.
|
|
40
|
+
*/
|
|
41
|
+
protected destroyIntersectionObserver(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Creates and configures the Intersection Observer to monitor when the element
|
|
44
|
+
* comes into view based on the specified threshold and root margin.
|
|
45
|
+
*/
|
|
46
|
+
protected createIntersectionObserver(): void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpInfiniteScrollDirective, never>;
|
|
48
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UpInfiniteScrollDirective, "[upInfiniteScroll]", ["upInfiniteScroll"], { "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; "rootMargin": { "alias": "rootMargin"; "required": false; "isSignal": true; }; }, { "scrolled": "scrolled"; }, never, never, true, never>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { UpInfiniteScrollDirective };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InputSignal } from '@angular/core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
declare class JsonViewerComponent {
|
|
6
|
+
/**
|
|
7
|
+
* Input for the JSON data to be displayed.
|
|
8
|
+
*
|
|
9
|
+
* @type {InputSignal<Record<string, any>>}
|
|
10
|
+
*/
|
|
11
|
+
readonly json: InputSignal<Record<string, any>>;
|
|
12
|
+
/**
|
|
13
|
+
* Input for if the JSON data should be expanded by default.
|
|
14
|
+
*
|
|
15
|
+
* @type {InputSignal<boolean>}
|
|
16
|
+
*/
|
|
17
|
+
readonly expanded: InputSignal<boolean>;
|
|
18
|
+
/**
|
|
19
|
+
* Input for the depth of the JSON data to be displayed.
|
|
20
|
+
*
|
|
21
|
+
* @type {InputSignal<number>}
|
|
22
|
+
*/
|
|
23
|
+
readonly depth: InputSignal<number>;
|
|
24
|
+
readonly inlineClass: InputSignal<ClassValue>;
|
|
25
|
+
protected readonly _computedClass: i0.Signal<string>;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JsonViewerComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JsonViewerComponent, "up-json-viewer", never, { "json": { "alias": "json"; "required": true; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "depth": { "alias": "depth"; "required": false; "isSignal": true; }; "inlineClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { JsonViewerComponent };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { UpDialogService, UpDialogRef } from '@unipin/angular-applet/dialog';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
|
|
5
|
+
type LoadingDialogOptions = {
|
|
6
|
+
showError?: boolean;
|
|
7
|
+
serviceCalls: Observable<any>[];
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
declare class UpLoadingDialogController {
|
|
11
|
+
protected readonly dialog: UpDialogService;
|
|
12
|
+
constructor(dialog: UpDialogService);
|
|
13
|
+
show(options: LoadingDialogOptions): UpDialogRef;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpLoadingDialogController, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UpLoadingDialogController>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { UpLoadingDialogController };
|
|
19
|
+
export type { LoadingDialogOptions };
|