@bravobit/bb-foundation 0.54.3 → 0.55.0
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/auth/index.d.ts +267 -5
- package/collections/index.d.ts +350 -5
- package/combobox/index.d.ts +58 -5
- package/dashboard/index.d.ts +104 -5
- package/dialog/index.d.ts +168 -5
- package/elements/index.d.ts +838 -5
- package/fesm2022/bravobit-bb-foundation-auth.mjs +22 -22
- package/fesm2022/bravobit-bb-foundation-collections.mjs +44 -44
- package/fesm2022/bravobit-bb-foundation-collections.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-combobox.mjs +15 -15
- package/fesm2022/bravobit-bb-foundation-dashboard.mjs +25 -25
- package/fesm2022/bravobit-bb-foundation-dialog.mjs +33 -33
- package/fesm2022/bravobit-bb-foundation-dialog.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-elements.mjs +102 -102
- package/fesm2022/bravobit-bb-foundation-elements.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-http.mjs +10 -10
- package/fesm2022/bravobit-bb-foundation-localize.mjs +18 -18
- package/fesm2022/bravobit-bb-foundation-localize.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-masking.mjs +16 -16
- package/fesm2022/bravobit-bb-foundation-notifications.mjs +15 -15
- package/fesm2022/bravobit-bb-foundation-notifications.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-permissions.mjs +10 -10
- package/fesm2022/bravobit-bb-foundation-recaptcha.mjs +11 -12
- package/fesm2022/bravobit-bb-foundation-recaptcha.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-select.mjs +21 -21
- package/fesm2022/bravobit-bb-foundation-select.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-storage.mjs +3 -3
- package/fesm2022/bravobit-bb-foundation-table.mjs +22 -22
- package/fesm2022/bravobit-bb-foundation-tooltip.mjs +10 -10
- package/fesm2022/bravobit-bb-foundation-utils.mjs +16 -16
- package/fesm2022/bravobit-bb-foundation.mjs +25 -25
- package/fesm2022/bravobit-bb-foundation.mjs.map +1 -1
- package/http/index.d.ts +78 -5
- package/index.d.ts +215 -5
- package/localize/index.d.ts +546 -5
- package/masking/index.d.ts +104 -5
- package/notifications/index.d.ts +78 -5
- package/package.json +21 -21
- package/permissions/index.d.ts +89 -5
- package/recaptcha/index.d.ts +92 -5
- package/rxjs/index.d.ts +19 -5
- package/select/index.d.ts +129 -5
- package/storage/index.d.ts +109 -5
- package/table/index.d.ts +197 -5
- package/tooltip/index.d.ts +45 -5
- package/utils/index.d.ts +66 -5
- package/auth/lib/acting.interceptor.d.ts +0 -9
- package/auth/lib/acting.service.d.ts +0 -17
- package/auth/lib/auth.config.d.ts +0 -3
- package/auth/lib/auth.interceptor.d.ts +0 -20
- package/auth/lib/auth.module.d.ts +0 -10
- package/auth/lib/auth.service.d.ts +0 -51
- package/auth/lib/auth.session.d.ts +0 -50
- package/auth/lib/directives/anonymous.directive.d.ts +0 -20
- package/auth/lib/directives/authenticated.directive.d.ts +0 -20
- package/auth/lib/guards/anonymous.guard.d.ts +0 -2
- package/auth/lib/guards/authenticated.guard.d.ts +0 -2
- package/auth/lib/helpers/jwt.helper.d.ts +0 -8
- package/auth/lib/interfaces/config.interface.d.ts +0 -27
- package/auth/lib/interfaces/provider.interface.d.ts +0 -23
- package/auth/lib/interfaces/token.interface.d.ts +0 -11
- package/auth/lib/providers/email.provider.d.ts +0 -9
- package/auth/lib/providers/verify.provider.d.ts +0 -9
- package/auth/lib/tokens/use-authorization.token.d.ts +0 -2
- package/auth/public_api.d.ts +0 -17
- package/collections/lib/classes/array.collection.d.ts +0 -17
- package/collections/lib/collection.d.ts +0 -40
- package/collections/lib/collections.config.d.ts +0 -3
- package/collections/lib/collections.interfaces.d.ts +0 -10
- package/collections/lib/collections.module.d.ts +0 -19
- package/collections/lib/components/collections-actions/collections-actions.component.d.ts +0 -13
- package/collections/lib/components/collections-grid/collections-grid.component.d.ts +0 -18
- package/collections/lib/components/collections-pager/collections-pager.component.d.ts +0 -38
- package/collections/lib/components/collections-table/collections-table.component.d.ts +0 -26
- package/collections/lib/components/collections-table-label/collections-table-label.component.d.ts +0 -11
- package/collections/lib/components/collections-table-sorting/collections-table-sorting.component.d.ts +0 -18
- package/collections/lib/components/collections-viewer/collections-viewer.component.d.ts +0 -16
- package/collections/lib/directives/collections-data-row.directive.d.ts +0 -14
- package/collections/lib/directives/collections-data.directive.d.ts +0 -14
- package/collections/lib/directives/collections-empty.directive.d.ts +0 -14
- package/collections/lib/directives/collections-error.directive.d.ts +0 -14
- package/collections/lib/directives/collections-initial.directive.d.ts +0 -11
- package/collections/lib/directives/collections-item.directive.d.ts +0 -14
- package/collections/lib/interfaces/array-collection.interface.d.ts +0 -6
- package/collections/lib/interfaces/collection.interface.d.ts +0 -32
- package/collections/lib/providers/api-collection.provider.d.ts +0 -19
- package/collections/lib/providers/collection.provider.d.ts +0 -9
- package/collections/lib/providers/local-collection.provider.d.ts +0 -16
- package/collections/public_api.d.ts +0 -23
- package/combobox/combobox/combobox-container.directive.d.ts +0 -28
- package/combobox/combobox/combobox.component.d.ts +0 -37
- package/combobox/combobox-label.directive.d.ts +0 -5
- package/combobox/combobox-option.directive.d.ts +0 -7
- package/combobox/combobox-panel/combobox-panel.animation.d.ts +0 -1
- package/combobox/combobox-panel/combobox-panel.component.d.ts +0 -18
- package/combobox/combobox.interface.d.ts +0 -8
- package/combobox/public_api.d.ts +0 -3
- package/dashboard/lib/dashboard/dashboard.component.d.ts +0 -17
- package/dashboard/lib/dashboard-header/dashboard-header.component.d.ts +0 -9
- package/dashboard/lib/dashboard-menu/dashboard-menu.component.d.ts +0 -9
- package/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.d.ts +0 -8
- package/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.d.ts +0 -19
- package/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.d.ts +0 -22
- package/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.d.ts +0 -16
- package/dashboard/lib/dashboard.module.d.ts +0 -13
- package/dashboard/public_api.d.ts +0 -8
- package/dialog/lib/dialog-actions/dialog-actions.component.d.ts +0 -5
- package/dialog/lib/dialog-confirm/dialog-confirm.component.d.ts +0 -22
- package/dialog/lib/dialog-container/dialog-container.component.d.ts +0 -23
- package/dialog/lib/dialog-header/dialog-header.component.d.ts +0 -13
- package/dialog/lib/dialog-modal/dialog-modal.component.d.ts +0 -16
- package/dialog/lib/dialog-overlay/dialog-overlay.component.d.ts +0 -19
- package/dialog/lib/dialog.config.d.ts +0 -3
- package/dialog/lib/dialog.insertion.d.ts +0 -7
- package/dialog/lib/dialog.interfaces.d.ts +0 -21
- package/dialog/lib/dialog.module.d.ts +0 -17
- package/dialog/lib/dialog.ref.d.ts +0 -8
- package/dialog/lib/dialog.service.d.ts +0 -15
- package/dialog/lib/directives/confirm.directive.d.ts +0 -14
- package/dialog/public_api.d.ts +0 -10
- package/elements/lib/avatar/avatar.component.d.ts +0 -31
- package/elements/lib/button/button.component.d.ts +0 -21
- package/elements/lib/checkbox/checkbox.component.d.ts +0 -36
- package/elements/lib/checkbox-group/checkbox-group.component.d.ts +0 -13
- package/elements/lib/color-picker/color-picker.component.d.ts +0 -18
- package/elements/lib/color-slider/color-slider.component.d.ts +0 -24
- package/elements/lib/date-picker/date-picker.component.d.ts +0 -77
- package/elements/lib/directives/color-picker.directive.d.ts +0 -27
- package/elements/lib/directives/extra-error-controls.directive.d.ts +0 -13
- package/elements/lib/directives/file-drop.directive.d.ts +0 -13
- package/elements/lib/directives/form-submit.directive.d.ts +0 -17
- package/elements/lib/directives/form-submitter.directive.d.ts +0 -9
- package/elements/lib/directives/image-upload.directive.d.ts +0 -25
- package/elements/lib/directives/input.directive.d.ts +0 -16
- package/elements/lib/elements.config.d.ts +0 -3
- package/elements/lib/elements.inject.d.ts +0 -3
- package/elements/lib/elements.interfaces.d.ts +0 -41
- package/elements/lib/elements.module.d.ts +0 -39
- package/elements/lib/file-picker/file-picker.component.d.ts +0 -57
- package/elements/lib/form-control/form-control.component.d.ts +0 -20
- package/elements/lib/form-error/form-error.component.d.ts +0 -36
- package/elements/lib/form-group/form-group.component.d.ts +0 -7
- package/elements/lib/icon/icon.component.d.ts +0 -26
- package/elements/lib/image-control/image-control.component.d.ts +0 -44
- package/elements/lib/image-picker/image-picker.component.d.ts +0 -39
- package/elements/lib/multi-file-control/multi-file-control.component.d.ts +0 -72
- package/elements/lib/pincode-control/pincode-control.component.d.ts +0 -65
- package/elements/lib/pipes/date.pipe.d.ts +0 -9
- package/elements/lib/pipes/file-data-url.pipe.d.ts +0 -12
- package/elements/lib/pipes/file-image.pipe.d.ts +0 -14
- package/elements/lib/pipes/file-size.pipe.d.ts +0 -7
- package/elements/lib/pipes/relative-time.pipe.d.ts +0 -19
- package/elements/lib/radio-button/radio-button.component.d.ts +0 -16
- package/elements/lib/radio-group/radio-group.component.d.ts +0 -38
- package/elements/lib/spinner/spinner.component.d.ts +0 -9
- package/elements/public_api.d.ts +0 -35
- package/http/lib/classes/http.config.d.ts +0 -9
- package/http/lib/classes/http.error.d.ts +0 -7
- package/http/lib/http.config.d.ts +0 -5
- package/http/lib/http.interfaces.d.ts +0 -21
- package/http/lib/http.module.d.ts +0 -11
- package/http/lib/interceptors/base-url.interceptor.d.ts +0 -15
- package/http/lib/interceptors/error.interceptor.d.ts +0 -9
- package/http/public_api.d.ts +0 -7
- package/lib/core/colors/hex.d.ts +0 -18
- package/lib/core/colors/hsl.d.ts +0 -7
- package/lib/core/colors/hsv.d.ts +0 -13
- package/lib/core/colors/rgb.d.ts +0 -7
- package/lib/core/functions/array.utils.d.ts +0 -1
- package/lib/core/functions/date.utils.d.ts +0 -4
- package/lib/core/functions/file.utils.d.ts +0 -3
- package/lib/core/functions/format.utils.d.ts +0 -1
- package/lib/core/functions/password.utils.d.ts +0 -1
- package/lib/core/functions/route-cache.utils.d.ts +0 -10
- package/lib/core/functions/utils.d.ts +0 -1
- package/lib/core/miscellaneous/coercion.d.ts +0 -2
- package/lib/core/miscellaneous/regex.d.ts +0 -5
- package/lib/core/miscellaneous/validator.d.ts +0 -13
- package/lib/core/services/exif.service.d.ts +0 -12
- package/lib/core/services/file-loader.service.d.ts +0 -13
- package/lib/core/services/files.service.d.ts +0 -15
- package/lib/core/services/image-converter.service.d.ts +0 -17
- package/lib/core/services/languages.service.d.ts +0 -15
- package/lib/core/services/network.service.d.ts +0 -13
- package/lib/core/services/patch.service.d.ts +0 -14
- package/lib/core/tokens/accept-language.token.d.ts +0 -2
- package/lib/core/tokens/cookie.token.d.ts +0 -2
- package/lib/core/tokens/global-focus-mode.token.d.ts +0 -4
- package/lib/core/tokens/location.token.d.ts +0 -2
- package/lib/core/tokens/navigator.token.d.ts +0 -2
- package/lib/core/tokens/window.token.d.ts +0 -2
- package/localize/lib/dictionary/dictionary.class.d.ts +0 -28
- package/localize/lib/dictionary/dictionary.context.d.ts +0 -7
- package/localize/lib/dictionary/dictionary.data.d.ts +0 -7
- package/localize/lib/functions/date.function.d.ts +0 -5
- package/localize/lib/functions/lowercase.function.d.ts +0 -5
- package/localize/lib/functions/uppercase.function.d.ts +0 -5
- package/localize/lib/handlers/missing.handler.d.ts +0 -6
- package/localize/lib/interfaces/config.interfaces.d.ts +0 -18
- package/localize/lib/interfaces/functions.interfaces.d.ts +0 -7
- package/localize/lib/interfaces/handlers.interfaces.d.ts +0 -6
- package/localize/lib/interfaces/options.interfaces.d.ts +0 -11
- package/localize/lib/localizations/dutch.localization.d.ts +0 -74
- package/localize/lib/localizations/english.localization.d.ts +0 -74
- package/localize/lib/localizations/papiamento.localization.d.ts +0 -74
- package/localize/lib/localizations/spanish.localization.d.ts +0 -74
- package/localize/lib/localize.config.d.ts +0 -5
- package/localize/lib/localize.module.d.ts +0 -12
- package/localize/lib/localize.pipe.d.ts +0 -12
- package/localize/lib/localize.service.d.ts +0 -43
- package/localize/lib/localize.tokens.d.ts +0 -11
- package/localize/lib/transforms/abstract.transform.d.ts +0 -13
- package/localize/lib/transforms/interpolate.transform.d.ts +0 -13
- package/localize/lib/transforms/plural.transform.d.ts +0 -16
- package/localize/lib/transforms/reference.transform.d.ts +0 -9
- package/localize/lib/views/localize-string/localize-string.component.d.ts +0 -23
- package/localize/lib/views/localize-template.directive.d.ts +0 -9
- package/localize/public_api.d.ts +0 -26
- package/masking/lib/directives/currency-mask.directive.d.ts +0 -17
- package/masking/lib/directives/date-mask.directive.d.ts +0 -17
- package/masking/lib/directives/input-mask.directive.d.ts +0 -38
- package/masking/lib/input-mask.interface.d.ts +0 -19
- package/masking/lib/masking.module.d.ts +0 -9
- package/masking/lib/masking.service.d.ts +0 -12
- package/masking/public_api.d.ts +0 -6
- package/notifications/lib/notifications-item/notifications-item.component.d.ts +0 -33
- package/notifications/lib/notifications-list/notifications-list.component.d.ts +0 -18
- package/notifications/lib/notifications.animations.d.ts +0 -1
- package/notifications/lib/notifications.config.d.ts +0 -3
- package/notifications/lib/notifications.interfaces.d.ts +0 -36
- package/notifications/lib/notifications.module.d.ts +0 -9
- package/notifications/lib/notifications.service.d.ts +0 -30
- package/notifications/public_api.d.ts +0 -4
- package/permissions/lib/directives/permission.directive.d.ts +0 -27
- package/permissions/lib/guards/permission.guard.d.ts +0 -3
- package/permissions/lib/handlers/abstract.handler.d.ts +0 -4
- package/permissions/lib/handlers/local.handler.d.ts +0 -10
- package/permissions/lib/permissions.config.d.ts +0 -3
- package/permissions/lib/permissions.interface.d.ts +0 -13
- package/permissions/lib/permissions.module.d.ts +0 -10
- package/permissions/lib/permissions.service.d.ts +0 -23
- package/permissions/public_api.d.ts +0 -8
- package/public_api.d.ts +0 -27
- package/recaptcha/lib/recaptcha/recaptcha.component.d.ts +0 -47
- package/recaptcha/lib/recaptcha-loader.service.d.ts +0 -19
- package/recaptcha/lib/recaptcha.config.d.ts +0 -3
- package/recaptcha/lib/recaptcha.interface.d.ts +0 -13
- package/recaptcha/lib/recaptcha.module.d.ts +0 -10
- package/recaptcha/public_api.d.ts +0 -5
- package/rxjs/lib/observables/get-control-value.observable.d.ts +0 -3
- package/rxjs/lib/observables/get-route-param.observable.d.ts +0 -3
- package/rxjs/lib/operators/combine-latest-map.operator.d.ts +0 -8
- package/rxjs/lib/operators/filter-nil.operator.d.ts +0 -1
- package/rxjs/public_api.d.ts +0 -4
- package/select/lib/select/select.component.d.ts +0 -94
- package/select/lib/select-label.directive.d.ts +0 -7
- package/select/lib/select-multi-label.directive.d.ts +0 -7
- package/select/lib/select-option-group.directive.d.ts +0 -7
- package/select/lib/select-option.directive.d.ts +0 -7
- package/select/lib/select.config.d.ts +0 -2
- package/select/lib/select.module.d.ts +0 -11
- package/select/public_api.d.ts +0 -7
- package/storage/lib/interfaces/attributes.interface.d.ts +0 -13
- package/storage/lib/interfaces/memory.interface.d.ts +0 -7
- package/storage/lib/interfaces/strategy.interface.d.ts +0 -17
- package/storage/lib/storage.service.d.ts +0 -25
- package/storage/lib/strategies/cookie-storage.strategy.d.ts +0 -20
- package/storage/lib/strategies/memory-storage.strategy.d.ts +0 -11
- package/storage/lib/strategies/polyfill-storage.strategy.d.ts +0 -15
- package/storage/public_api.d.ts +0 -7
- package/table/lib/components/table/table.component.d.ts +0 -57
- package/table/lib/components/table-cell/table-cell.component.d.ts +0 -5
- package/table/lib/components/table-header-cell/table-header-cell.component.d.ts +0 -26
- package/table/lib/components/table-pager/table-pager.component.d.ts +0 -40
- package/table/lib/data/datasource.data.d.ts +0 -14
- package/table/lib/data/generic.data.d.ts +0 -25
- package/table/lib/interfaces/datasource.interface.d.ts +0 -17
- package/table/lib/interfaces/table.interfaces.d.ts +0 -11
- package/table/lib/table.config.d.ts +0 -3
- package/table/lib/table.module.d.ts +0 -10
- package/table/public_api.d.ts +0 -10
- package/tooltip/lib/tooltip-container/tooltip-container.component.d.ts +0 -9
- package/tooltip/lib/tooltip.directive.d.ts +0 -23
- package/tooltip/lib/tooltip.interfaces.d.ts +0 -4
- package/tooltip/lib/tooltip.module.d.ts +0 -7
- package/tooltip/public_api.d.ts +0 -4
- package/utils/lib/directives/autosize.directive.d.ts +0 -19
- package/utils/lib/directives/focus-trap.directive.d.ts +0 -14
- package/utils/lib/directives/focus.directive.d.ts +0 -16
- package/utils/lib/directives/template.directive.d.ts +0 -10
- package/utils/lib/utils.module.d.ts +0 -10
- package/utils/public_api.d.ts +0 -5
package/localize/index.d.ts
CHANGED
|
@@ -1,5 +1,546 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { TemplateRef, AfterViewInit, OnDestroy, QueryList, ChangeDetectorRef, InjectionToken, PipeTransform, EnvironmentProviders, ModuleWithProviders } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
type LocalizeDictionaryDataValues = {
|
|
7
|
+
[key: string]: string | LocalizeDictionaryDataValues;
|
|
8
|
+
};
|
|
9
|
+
declare class LocalizeDictionaryData {
|
|
10
|
+
data: LocalizeDictionaryDataValues;
|
|
11
|
+
constructor(data: LocalizeDictionaryDataValues);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface LocalizeConfig {
|
|
15
|
+
languages: LocalizeConfigLanguage[];
|
|
16
|
+
mode?: 'automatic' | 'manual';
|
|
17
|
+
storageToken?: string;
|
|
18
|
+
substitutions?: {
|
|
19
|
+
plural?: [leftSubstitution: string, rightSubstitution: string];
|
|
20
|
+
references?: [leftSubstitution: string, rightSubstitution: string];
|
|
21
|
+
interpolation?: [leftSubstitution: string, rightSubstitution: string];
|
|
22
|
+
};
|
|
23
|
+
compareDictionaries?: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface LocalizeConfigLanguage {
|
|
26
|
+
id: string;
|
|
27
|
+
locale: string;
|
|
28
|
+
supported: string[];
|
|
29
|
+
data: () => LocalizeDictionaryData | Promise<LocalizeDictionaryData>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface LocalizeOptions {
|
|
33
|
+
optional?: boolean;
|
|
34
|
+
dictionary?: string;
|
|
35
|
+
data?: LocalizeOptionsData;
|
|
36
|
+
}
|
|
37
|
+
interface LocalizeOptionsData {
|
|
38
|
+
[token: string]: string | number | boolean | Date;
|
|
39
|
+
}
|
|
40
|
+
interface LocalizeParams extends LocalizeOptions {
|
|
41
|
+
token: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface LocalizeFunction {
|
|
45
|
+
keyword(): string;
|
|
46
|
+
transform(value: string, locale?: string): string;
|
|
47
|
+
}
|
|
48
|
+
interface LocalizeFunctionMap {
|
|
49
|
+
[keyword: string]: LocalizeFunction;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class LocalizeDictionaryContext {
|
|
53
|
+
regexp: RegExp;
|
|
54
|
+
pattern(regexp: RegExp): this;
|
|
55
|
+
matches(value: string | string[]): this;
|
|
56
|
+
group(value: string | string[]): this;
|
|
57
|
+
private formatValue;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class LocalizeDictionary {
|
|
61
|
+
private _id;
|
|
62
|
+
private _locale;
|
|
63
|
+
private _supported;
|
|
64
|
+
private _dataValues;
|
|
65
|
+
private _localize;
|
|
66
|
+
private readonly _data;
|
|
67
|
+
constructor(_id: string, _locale: string, _supported: string[], _dataValues: LocalizeDictionaryDataValues, _localize: Localize);
|
|
68
|
+
get id(): string;
|
|
69
|
+
get locale(): string;
|
|
70
|
+
get supported(): string[];
|
|
71
|
+
get(token: string | string[]): string;
|
|
72
|
+
has(token: string | string[]): boolean;
|
|
73
|
+
all(): {
|
|
74
|
+
token: string;
|
|
75
|
+
value: string;
|
|
76
|
+
}[];
|
|
77
|
+
some(callback: (context: LocalizeDictionaryContext) => LocalizeDictionaryContext): {
|
|
78
|
+
token: string;
|
|
79
|
+
value: string;
|
|
80
|
+
}[];
|
|
81
|
+
compare(to: string | string[]): Promise<void>;
|
|
82
|
+
count(): number;
|
|
83
|
+
private formatData;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare class Localize {
|
|
87
|
+
private readonly _storage;
|
|
88
|
+
private readonly _languages;
|
|
89
|
+
private readonly _window?;
|
|
90
|
+
private readonly _document?;
|
|
91
|
+
private readonly _config?;
|
|
92
|
+
private readonly _transforms?;
|
|
93
|
+
private readonly _missingHandler?;
|
|
94
|
+
private readonly _storageToken;
|
|
95
|
+
private readonly _availableLanguages;
|
|
96
|
+
private readonly _bestMatchingLanguage;
|
|
97
|
+
private readonly _loadedDictionaries;
|
|
98
|
+
private _current$;
|
|
99
|
+
dictionaryChanges$: rxjs.Observable<LocalizeDictionary>;
|
|
100
|
+
constructor();
|
|
101
|
+
get languages(): LocalizeConfigLanguage[];
|
|
102
|
+
get current(): LocalizeDictionary;
|
|
103
|
+
load(id: string): any;
|
|
104
|
+
loadAllLanguages(): Promise<void>;
|
|
105
|
+
switch(id: string, options?: {
|
|
106
|
+
cache?: boolean;
|
|
107
|
+
reload?: boolean;
|
|
108
|
+
}): Promise<any>;
|
|
109
|
+
select(id: string): LocalizeDictionary;
|
|
110
|
+
initialize(): Promise<void>;
|
|
111
|
+
clear(): void;
|
|
112
|
+
transform(value: string, data?: LocalizeParams['data']): string;
|
|
113
|
+
translate(tokenOrParams: string | LocalizeParams): string;
|
|
114
|
+
private retrieveBestMatchingLanguage;
|
|
115
|
+
private getLanguageFromStorage;
|
|
116
|
+
private getBestBrowserMatchLanguage;
|
|
117
|
+
private createDictionary;
|
|
118
|
+
private getDictionary;
|
|
119
|
+
private renderDocumentLanguage;
|
|
120
|
+
private compareDictionaries;
|
|
121
|
+
private convertToParams;
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Localize, never>;
|
|
123
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Localize>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
interface LocalizeHandlerProtocol {
|
|
127
|
+
handle(params: LocalizeParams): string | null;
|
|
128
|
+
handle(params: LocalizeParams, localize: Localize): string | null;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
declare class LocalizeLowercaseFunction implements LocalizeFunction {
|
|
132
|
+
keyword(): string;
|
|
133
|
+
transform(value: string): string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare class LocalizeUppercaseFunction implements LocalizeFunction {
|
|
137
|
+
keyword(): string;
|
|
138
|
+
transform(value: string): string;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare class LocalizeDateFunction implements LocalizeFunction {
|
|
142
|
+
keyword(): string;
|
|
143
|
+
transform(value: string, locale?: string): string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare const extraEnglishDictionary: {
|
|
147
|
+
'form-control-errors': {
|
|
148
|
+
unknown: string;
|
|
149
|
+
required: string;
|
|
150
|
+
pattern: string;
|
|
151
|
+
email: string;
|
|
152
|
+
emailTaken: string;
|
|
153
|
+
passwordMatch: string;
|
|
154
|
+
confirm: string;
|
|
155
|
+
fullNumber: string;
|
|
156
|
+
min: string;
|
|
157
|
+
max: string;
|
|
158
|
+
invalidFileType: string;
|
|
159
|
+
invalidFiles: string;
|
|
160
|
+
maxFileSize: string;
|
|
161
|
+
maxTotalFileSize: string;
|
|
162
|
+
minDate: string;
|
|
163
|
+
maxDate: string;
|
|
164
|
+
invalidDate: string;
|
|
165
|
+
minlength: string;
|
|
166
|
+
maxlength: string;
|
|
167
|
+
};
|
|
168
|
+
select: {
|
|
169
|
+
not_found_text: string;
|
|
170
|
+
clear_all_text: string;
|
|
171
|
+
loading_text: string;
|
|
172
|
+
type_to_search_text: string;
|
|
173
|
+
add_tag_text: string;
|
|
174
|
+
};
|
|
175
|
+
'multi-file-control': {
|
|
176
|
+
choose_file: string;
|
|
177
|
+
choose_file_text: string;
|
|
178
|
+
};
|
|
179
|
+
'image-control': {
|
|
180
|
+
button_label: string;
|
|
181
|
+
delete_label: string;
|
|
182
|
+
};
|
|
183
|
+
collection: {
|
|
184
|
+
search_label: string;
|
|
185
|
+
showing_label: string;
|
|
186
|
+
no_results_label: string;
|
|
187
|
+
empty_label: string;
|
|
188
|
+
error_label: string;
|
|
189
|
+
};
|
|
190
|
+
tables: {
|
|
191
|
+
search: string;
|
|
192
|
+
loading: string;
|
|
193
|
+
empty: string;
|
|
194
|
+
page: string;
|
|
195
|
+
error_datasource: string;
|
|
196
|
+
error_unauthorized: string;
|
|
197
|
+
error_forbidden: string;
|
|
198
|
+
error_not_found: string;
|
|
199
|
+
error_server: string;
|
|
200
|
+
error_down: string;
|
|
201
|
+
error_unknown: string;
|
|
202
|
+
};
|
|
203
|
+
'file-picker': {
|
|
204
|
+
choose: string;
|
|
205
|
+
remove: string;
|
|
206
|
+
drop: string;
|
|
207
|
+
};
|
|
208
|
+
dialog: {
|
|
209
|
+
default_confirm_button: string;
|
|
210
|
+
default_cancel_button: string;
|
|
211
|
+
default_title: string;
|
|
212
|
+
default_description: string;
|
|
213
|
+
};
|
|
214
|
+
times: {
|
|
215
|
+
tomorrow_at: string;
|
|
216
|
+
today_at: string;
|
|
217
|
+
yesterday_at: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
declare const extraDutchDictionary: {
|
|
222
|
+
'form-control-errors': {
|
|
223
|
+
unknown: string;
|
|
224
|
+
required: string;
|
|
225
|
+
pattern: string;
|
|
226
|
+
email: string;
|
|
227
|
+
emailTaken: string;
|
|
228
|
+
passwordMatch: string;
|
|
229
|
+
confirm: string;
|
|
230
|
+
fullNumber: string;
|
|
231
|
+
min: string;
|
|
232
|
+
max: string;
|
|
233
|
+
invalidFileType: string;
|
|
234
|
+
invalidFiles: string;
|
|
235
|
+
maxFileSize: string;
|
|
236
|
+
maxTotalFileSize: string;
|
|
237
|
+
minDate: string;
|
|
238
|
+
maxDate: string;
|
|
239
|
+
invalidDate: string;
|
|
240
|
+
minlength: string;
|
|
241
|
+
maxlength: string;
|
|
242
|
+
};
|
|
243
|
+
select: {
|
|
244
|
+
not_found_text: string;
|
|
245
|
+
clear_all_text: string;
|
|
246
|
+
loading_text: string;
|
|
247
|
+
type_to_search_text: string;
|
|
248
|
+
add_tag_text: string;
|
|
249
|
+
};
|
|
250
|
+
'multi-file-control': {
|
|
251
|
+
choose_file: string;
|
|
252
|
+
choose_file_text: string;
|
|
253
|
+
};
|
|
254
|
+
'image-control': {
|
|
255
|
+
button_label: string;
|
|
256
|
+
delete_label: string;
|
|
257
|
+
};
|
|
258
|
+
collection: {
|
|
259
|
+
search_label: string;
|
|
260
|
+
showing_label: string;
|
|
261
|
+
no_results_label: string;
|
|
262
|
+
empty_label: string;
|
|
263
|
+
error_label: string;
|
|
264
|
+
};
|
|
265
|
+
tables: {
|
|
266
|
+
search: string;
|
|
267
|
+
loading: string;
|
|
268
|
+
empty: string;
|
|
269
|
+
page: string;
|
|
270
|
+
error_datasource: string;
|
|
271
|
+
error_unauthorized: string;
|
|
272
|
+
error_forbidden: string;
|
|
273
|
+
error_not_found: string;
|
|
274
|
+
error_server: string;
|
|
275
|
+
error_down: string;
|
|
276
|
+
error_unknown: string;
|
|
277
|
+
};
|
|
278
|
+
'file-picker': {
|
|
279
|
+
choose: string;
|
|
280
|
+
remove: string;
|
|
281
|
+
drop: string;
|
|
282
|
+
};
|
|
283
|
+
dialog: {
|
|
284
|
+
default_confirm_button: string;
|
|
285
|
+
default_cancel_button: string;
|
|
286
|
+
default_title: string;
|
|
287
|
+
default_description: string;
|
|
288
|
+
};
|
|
289
|
+
times: {
|
|
290
|
+
tomorrow_at: string;
|
|
291
|
+
today_at: string;
|
|
292
|
+
yesterday_at: string;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
declare const extraPapiamentoDictionary: {
|
|
297
|
+
'form-control-errors': {
|
|
298
|
+
unknown: string;
|
|
299
|
+
required: string;
|
|
300
|
+
pattern: string;
|
|
301
|
+
email: string;
|
|
302
|
+
emailTaken: string;
|
|
303
|
+
passwordMatch: string;
|
|
304
|
+
confirm: string;
|
|
305
|
+
fullNumber: string;
|
|
306
|
+
min: string;
|
|
307
|
+
max: string;
|
|
308
|
+
invalidFileType: string;
|
|
309
|
+
invalidFiles: string;
|
|
310
|
+
maxFileSize: string;
|
|
311
|
+
maxTotalFileSize: string;
|
|
312
|
+
minDate: string;
|
|
313
|
+
maxDate: string;
|
|
314
|
+
invalidDate: string;
|
|
315
|
+
minlength: string;
|
|
316
|
+
maxlength: string;
|
|
317
|
+
};
|
|
318
|
+
select: {
|
|
319
|
+
not_found_text: string;
|
|
320
|
+
clear_all_text: string;
|
|
321
|
+
loading_text: string;
|
|
322
|
+
type_to_search_text: string;
|
|
323
|
+
add_tag_text: string;
|
|
324
|
+
};
|
|
325
|
+
'multi-file-control': {
|
|
326
|
+
choose_file: string;
|
|
327
|
+
choose_file_text: string;
|
|
328
|
+
};
|
|
329
|
+
'image-control': {
|
|
330
|
+
button_label: string;
|
|
331
|
+
delete_label: string;
|
|
332
|
+
};
|
|
333
|
+
collection: {
|
|
334
|
+
search_label: string;
|
|
335
|
+
showing_label: string;
|
|
336
|
+
no_results_label: string;
|
|
337
|
+
empty_label: string;
|
|
338
|
+
error_label: string;
|
|
339
|
+
};
|
|
340
|
+
tables: {
|
|
341
|
+
search: string;
|
|
342
|
+
loading: string;
|
|
343
|
+
empty: string;
|
|
344
|
+
page: string;
|
|
345
|
+
error_datasource: string;
|
|
346
|
+
error_unauthorized: string;
|
|
347
|
+
error_forbidden: string;
|
|
348
|
+
error_not_found: string;
|
|
349
|
+
error_server: string;
|
|
350
|
+
error_down: string;
|
|
351
|
+
error_unknown: string;
|
|
352
|
+
};
|
|
353
|
+
'file-picker': {
|
|
354
|
+
choose: string;
|
|
355
|
+
remove: string;
|
|
356
|
+
drop: string;
|
|
357
|
+
};
|
|
358
|
+
dialog: {
|
|
359
|
+
default_confirm_button: string;
|
|
360
|
+
default_cancel_button: string;
|
|
361
|
+
default_title: string;
|
|
362
|
+
default_description: string;
|
|
363
|
+
};
|
|
364
|
+
times: {
|
|
365
|
+
tomorrow_at: string;
|
|
366
|
+
today_at: string;
|
|
367
|
+
yesterday_at: string;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
declare const extraSpanishDictionary: {
|
|
372
|
+
'form-control-errors': {
|
|
373
|
+
unknown: string;
|
|
374
|
+
required: string;
|
|
375
|
+
pattern: string;
|
|
376
|
+
email: string;
|
|
377
|
+
emailTaken: string;
|
|
378
|
+
passwordMatch: string;
|
|
379
|
+
confirm: string;
|
|
380
|
+
fullNumber: string;
|
|
381
|
+
min: string;
|
|
382
|
+
max: string;
|
|
383
|
+
invalidFileType: string;
|
|
384
|
+
invalidFiles: string;
|
|
385
|
+
maxFileSize: string;
|
|
386
|
+
maxTotalFileSize: string;
|
|
387
|
+
minDate: string;
|
|
388
|
+
maxDate: string;
|
|
389
|
+
invalidDate: string;
|
|
390
|
+
minlength: string;
|
|
391
|
+
maxlength: string;
|
|
392
|
+
};
|
|
393
|
+
select: {
|
|
394
|
+
not_found_text: string;
|
|
395
|
+
clear_all_text: string;
|
|
396
|
+
loading_text: string;
|
|
397
|
+
type_to_search_text: string;
|
|
398
|
+
add_tag_text: string;
|
|
399
|
+
};
|
|
400
|
+
'multi-file-control': {
|
|
401
|
+
choose_file: string;
|
|
402
|
+
choose_file_text: string;
|
|
403
|
+
};
|
|
404
|
+
'image-control': {
|
|
405
|
+
button_label: string;
|
|
406
|
+
delete_label: string;
|
|
407
|
+
};
|
|
408
|
+
collection: {
|
|
409
|
+
search_label: string;
|
|
410
|
+
showing_label: string;
|
|
411
|
+
no_results_label: string;
|
|
412
|
+
empty_label: string;
|
|
413
|
+
error_label: string;
|
|
414
|
+
};
|
|
415
|
+
tables: {
|
|
416
|
+
search: string;
|
|
417
|
+
loading: string;
|
|
418
|
+
empty: string;
|
|
419
|
+
page: string;
|
|
420
|
+
error_datasource: string;
|
|
421
|
+
error_unauthorized: string;
|
|
422
|
+
error_forbidden: string;
|
|
423
|
+
error_not_found: string;
|
|
424
|
+
error_server: string;
|
|
425
|
+
error_down: string;
|
|
426
|
+
error_unknown: string;
|
|
427
|
+
};
|
|
428
|
+
'file-picker': {
|
|
429
|
+
choose: string;
|
|
430
|
+
remove: string;
|
|
431
|
+
drop: string;
|
|
432
|
+
};
|
|
433
|
+
dialog: {
|
|
434
|
+
default_confirm_button: string;
|
|
435
|
+
default_cancel_button: string;
|
|
436
|
+
default_title: string;
|
|
437
|
+
default_description: string;
|
|
438
|
+
};
|
|
439
|
+
times: {
|
|
440
|
+
tomorrow_at: string;
|
|
441
|
+
today_at: string;
|
|
442
|
+
yesterday_at: string;
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
declare class LocalizeMissingHandler implements LocalizeHandlerProtocol {
|
|
447
|
+
handle(params: LocalizeParams): string;
|
|
448
|
+
private log;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
declare abstract class LocalizeTransform {
|
|
452
|
+
abstract execute(value: string, data: LocalizeParams['data'], localize: Localize): string;
|
|
453
|
+
protected getMatches(value: string, substitutions: [string, string]): {
|
|
454
|
+
match: string;
|
|
455
|
+
token: string;
|
|
456
|
+
}[];
|
|
457
|
+
protected getSubstitutions(value: [string, string]): {
|
|
458
|
+
start: string;
|
|
459
|
+
end: string;
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
declare class LocalizePluralTransform extends LocalizeTransform {
|
|
464
|
+
protected readonly config?: LocalizeConfig;
|
|
465
|
+
protected readonly substitutions: [leftSubstitution: string, rightSubstitution: string];
|
|
466
|
+
protected readonly defaultAmount = "default";
|
|
467
|
+
protected readonly multiItemRegex: RegExp;
|
|
468
|
+
protected readonly singleItemRegex: RegExp;
|
|
469
|
+
execute(value: string, data: LocalizeParams['data'], _: Localize): string;
|
|
470
|
+
private extractAmount;
|
|
471
|
+
private parsePluralToken;
|
|
472
|
+
private splitMatches;
|
|
473
|
+
private getPluralObject;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
declare class LocalizeInterpolateTransform extends LocalizeTransform {
|
|
477
|
+
protected readonly config?: LocalizeConfig;
|
|
478
|
+
protected readonly functions?: LocalizeFunction[];
|
|
479
|
+
protected readonly substitutions: [leftSubstitution: string, rightSubstitution: string];
|
|
480
|
+
protected readonly functionsMap: LocalizeFunctionMap;
|
|
481
|
+
execute(value: string, data: LocalizeParams['data'], localize: Localize): string;
|
|
482
|
+
protected parseInterpolationToken(value: string, data: LocalizeParams['data'], localize: Localize): string;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
declare class LocalizeReferenceTransform extends LocalizeTransform {
|
|
486
|
+
protected readonly config?: LocalizeConfig;
|
|
487
|
+
protected readonly substitutions: [leftSubstitution: string, rightSubstitution: string];
|
|
488
|
+
execute(value: string, _: LocalizeParams['data'], localize: Localize): string;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
declare class BbLocalizeTemplate {
|
|
492
|
+
templateRef: TemplateRef<any>;
|
|
493
|
+
name: string | null;
|
|
494
|
+
constructor(templateRef: TemplateRef<any>);
|
|
495
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BbLocalizeTemplate, never>;
|
|
496
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BbLocalizeTemplate, "ng-template[bbLocalizeTemplate]", never, { "name": { "alias": "bbLocalizeTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
declare class BbLocalizeString implements AfterViewInit, OnDestroy {
|
|
500
|
+
private _changeDetection;
|
|
501
|
+
items?: QueryList<BbLocalizeTemplate>;
|
|
502
|
+
substitutions: [string, string];
|
|
503
|
+
components: (string | TemplateRef<any>)[];
|
|
504
|
+
private _subscription;
|
|
505
|
+
private _value;
|
|
506
|
+
set value(value: string | null);
|
|
507
|
+
get value(): string | null;
|
|
508
|
+
constructor(_changeDetection: ChangeDetectorRef);
|
|
509
|
+
ngAfterViewInit(): void;
|
|
510
|
+
ngOnDestroy(): void;
|
|
511
|
+
private observeItemChanges;
|
|
512
|
+
private revalidate;
|
|
513
|
+
private setComponents;
|
|
514
|
+
private getStringComponents;
|
|
515
|
+
private getSubstitutions;
|
|
516
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BbLocalizeString, never>;
|
|
517
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BbLocalizeString, "[bb-localize-string]", never, { "substitutions": { "alias": "substitutions"; "required": false; }; "value": { "alias": "bb-localize-string"; "required": false; }; }, {}, ["items"], never, true, never>;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
declare const LOCALIZE_FUNCTION: InjectionToken<LocalizeFunction[]>;
|
|
521
|
+
declare const LOCALIZE_CONFIG: InjectionToken<LocalizeConfig>;
|
|
522
|
+
declare const LOCALIZE_TRANSFORM: InjectionToken<LocalizeTransform[]>;
|
|
523
|
+
declare const LOCALIZE_MISSING_HANDLER: InjectionToken<LocalizeMissingHandler>;
|
|
524
|
+
declare const LOCALIZE_ID: InjectionToken<Observable<string>>;
|
|
525
|
+
|
|
526
|
+
declare class BbLocalize implements PipeTransform {
|
|
527
|
+
private _localize?;
|
|
528
|
+
constructor(_localize?: Localize);
|
|
529
|
+
transform(tokenOrParams: string | LocalizeParams, args?: LocalizeOptions): string;
|
|
530
|
+
private combineParamsWithOptions;
|
|
531
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BbLocalize, [{ optional: true; }]>;
|
|
532
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BbLocalize, "bbLocalize", true>;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
declare function provideLocalizeConfig(config: LocalizeConfig): EnvironmentProviders;
|
|
536
|
+
declare function getLocale(localize: Localize): string;
|
|
537
|
+
|
|
538
|
+
declare class LocalizeModule {
|
|
539
|
+
static forRoot(config: LocalizeConfig): ModuleWithProviders<LocalizeModule>;
|
|
540
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizeModule, never>;
|
|
541
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LocalizeModule, never, [typeof BbLocalize, typeof BbLocalizeString, typeof BbLocalizeTemplate], [typeof BbLocalize, typeof BbLocalizeString, typeof BbLocalizeTemplate]>;
|
|
542
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LocalizeModule>;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export { BbLocalize, BbLocalizeString, BbLocalizeTemplate, LOCALIZE_CONFIG, LOCALIZE_FUNCTION, LOCALIZE_ID, LOCALIZE_MISSING_HANDLER, LOCALIZE_TRANSFORM, Localize, LocalizeDateFunction, LocalizeDictionary, LocalizeDictionaryContext, LocalizeDictionaryData, LocalizeInterpolateTransform, LocalizeLowercaseFunction, LocalizeMissingHandler, LocalizeModule, LocalizePluralTransform, LocalizeReferenceTransform, LocalizeTransform, LocalizeUppercaseFunction, extraDutchDictionary, extraEnglishDictionary, extraPapiamentoDictionary, extraSpanishDictionary, getLocale, provideLocalizeConfig };
|
|
546
|
+
export type { LocalizeConfig, LocalizeConfigLanguage, LocalizeDictionaryDataValues, LocalizeFunction, LocalizeFunctionMap, LocalizeHandlerProtocol, LocalizeOptions, LocalizeOptionsData, LocalizeParams };
|
package/masking/index.d.ts
CHANGED
|
@@ -1,5 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import Inputmask from 'inputmask';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { OnInit, OnDestroy, NgZone, Renderer2, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor, Validator, NgControl, AbstractControl } from '@angular/forms';
|
|
5
|
+
import { Subscription } from 'rxjs';
|
|
6
|
+
import { Platform } from '@angular/cdk/platform';
|
|
7
|
+
import * as _bravobit_bb_foundation_masking from '@bravobit/bb-foundation/masking';
|
|
8
|
+
import { Localize } from '@bravobit/bb-foundation/localize';
|
|
9
|
+
|
|
10
|
+
type InputMaskOptions<T> = Inputmask.Options & {
|
|
11
|
+
parser?: (value: any) => T;
|
|
12
|
+
};
|
|
13
|
+
type CurrencyMaskOptions = {
|
|
14
|
+
symbol: string;
|
|
15
|
+
symbolFormat: 'wide' | 'narrow';
|
|
16
|
+
spacer: string;
|
|
17
|
+
digits: number;
|
|
18
|
+
digitsOptional: boolean;
|
|
19
|
+
decimalCharacter: string;
|
|
20
|
+
groupCharacter: string;
|
|
21
|
+
min: number;
|
|
22
|
+
max: number;
|
|
23
|
+
allowMinus: boolean;
|
|
24
|
+
nullable: boolean;
|
|
25
|
+
};
|
|
26
|
+
type DateMaskFormat = 'day-month-year' | 'month-day-year' | 'year-month-day' | 'year-day-month';
|
|
27
|
+
declare const createMask: <T>(options: string | InputMaskOptions<T>) => InputMaskOptions<T>;
|
|
28
|
+
|
|
29
|
+
declare class BbInputMask<T = any> implements OnInit, OnDestroy, ControlValueAccessor, Validator {
|
|
30
|
+
private _ngZone;
|
|
31
|
+
private _platform;
|
|
32
|
+
private _renderer;
|
|
33
|
+
private _elementRef;
|
|
34
|
+
private _control?;
|
|
35
|
+
set mask(mask: InputMaskOptions<T> | string | null | undefined);
|
|
36
|
+
inputMaskPlugin: Inputmask.Instance | null;
|
|
37
|
+
nativeInputElement: HTMLInputElement | null;
|
|
38
|
+
eventsSubscription: Subscription | null;
|
|
39
|
+
private _inputMaskOptions;
|
|
40
|
+
private _onChange;
|
|
41
|
+
constructor(_ngZone: NgZone, _platform: Platform, _renderer: Renderer2, _elementRef: ElementRef<HTMLInputElement>, _control?: NgControl);
|
|
42
|
+
onInput: (value: any) => void;
|
|
43
|
+
onTouched: () => void;
|
|
44
|
+
ngOnInit(): void;
|
|
45
|
+
ngOnDestroy(): void;
|
|
46
|
+
writeValue(value: string): void;
|
|
47
|
+
registerOnChange(fn: (value: T | null) => void): void;
|
|
48
|
+
registerOnTouched(fn: () => void): void;
|
|
49
|
+
setDisabledState(isDisabled: boolean): void;
|
|
50
|
+
validate: (control: AbstractControl) => {
|
|
51
|
+
inputMask: boolean;
|
|
52
|
+
};
|
|
53
|
+
private updateMask;
|
|
54
|
+
private createMask;
|
|
55
|
+
private destroyMask;
|
|
56
|
+
static ngAcceptInputType_bbInputMask: InputMaskOptions<any> | string | null | undefined;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BbInputMask<any>, [null, null, null, null, { optional: true; self: true; }]>;
|
|
58
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BbInputMask<any>, "input[bbInputMask],input[bbCurrencyMask],input[bbDateMask]", never, { "mask": { "alias": "bbInputMask"; "required": false; }; }, {}, never, never, true, never>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare class Masking {
|
|
62
|
+
private _localize?;
|
|
63
|
+
constructor(_localize?: Localize);
|
|
64
|
+
date(format: DateMaskFormat, separator?: string): _bravobit_bb_foundation_masking.InputMaskOptions<string>;
|
|
65
|
+
currency(code: string, options?: Partial<CurrencyMaskOptions>): _bravobit_bb_foundation_masking.InputMaskOptions<string | number>;
|
|
66
|
+
private getDateParts;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Masking, [{ optional: true; }]>;
|
|
68
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Masking>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
declare class BbCurrencyMask implements OnChanges {
|
|
72
|
+
private _masking;
|
|
73
|
+
private _inputMask;
|
|
74
|
+
currencyCode: string | null;
|
|
75
|
+
options: Partial<CurrencyMaskOptions> | null;
|
|
76
|
+
constructor(_masking: Masking, _inputMask: BbInputMask);
|
|
77
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
78
|
+
static ngAcceptInputType_bbCurrencyMask: string | null | undefined;
|
|
79
|
+
static ngAcceptInputType_bbCurrencyMaskOptions: Partial<CurrencyMaskOptions> | null | undefined;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BbCurrencyMask, [null, { self: true; }]>;
|
|
81
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BbCurrencyMask, "input[bbCurrencyMask]", never, { "currencyCode": { "alias": "bbCurrencyMask"; "required": false; }; "options": { "alias": "bbCurrencyMaskOptions"; "required": false; }; }, {}, never, never, true, never>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare class BbDateMask implements OnChanges {
|
|
85
|
+
private _masking;
|
|
86
|
+
private _inputMask;
|
|
87
|
+
format: DateMaskFormat | null;
|
|
88
|
+
separator: string | null;
|
|
89
|
+
constructor(_masking: Masking, _inputMask: BbInputMask);
|
|
90
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
91
|
+
static ngAcceptInputType_bbDateMask: DateMaskFormat | null | undefined;
|
|
92
|
+
static ngAcceptInputType_bbDateMaskSeparator: string | null | undefined;
|
|
93
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BbDateMask, [null, { self: true; }]>;
|
|
94
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BbDateMask, "input[bbDateMask]", never, { "format": { "alias": "bbDateMask"; "required": false; }; "separator": { "alias": "bbDateMaskSeparator"; "required": false; }; }, {}, never, never, true, never>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
declare class MaskingModule {
|
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaskingModule, never>;
|
|
99
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaskingModule, never, [typeof BbInputMask, typeof BbCurrencyMask, typeof BbDateMask], [typeof BbInputMask, typeof BbCurrencyMask, typeof BbDateMask]>;
|
|
100
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MaskingModule>;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export { BbCurrencyMask, BbDateMask, BbInputMask, Masking, MaskingModule, createMask };
|
|
104
|
+
export type { CurrencyMaskOptions, DateMaskFormat, InputMaskOptions };
|