@cuby-ui/core 0.0.163 → 0.0.165
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 +24 -24
- package/components/accordion/accordion-item/accordion-item.component.d.ts +11 -11
- package/components/accordion/accordion.component.d.ts +5 -5
- package/components/accordion/accordion.module.d.ts +11 -11
- package/components/accordion/index.d.ts +3 -3
- package/components/alert/alert.component.d.ts +13 -13
- package/components/alert/alert.interfaces.d.ts +9 -9
- package/components/alert/alert.module.d.ts +11 -11
- package/components/alert/alert.service.d.ts +7 -7
- package/components/alert/alert.tokens.d.ts +15 -15
- package/components/alert/alert.types.d.ts +3 -3
- package/components/alert/alerts.component.d.ts +17 -17
- package/components/alert/index.d.ts +8 -8
- package/components/badge/badge.component.d.ts +10 -10
- package/components/badge/badge.module.d.ts +8 -8
- package/components/badge/badge.options.d.ts +8 -8
- package/components/badge/index.d.ts +2 -2
- package/components/banner/banner.component.d.ts +21 -21
- package/components/banner/banner.module.d.ts +11 -11
- package/components/banner/banner.options.d.ts +13 -13
- package/components/banner/index.d.ts +3 -3
- package/components/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +6 -6
- package/components/breadcrumbs/breadcrumbs.component.d.ts +7 -7
- package/components/breadcrumbs/breadcrumbs.module.d.ts +10 -10
- package/components/breadcrumbs/index.d.ts +3 -3
- package/components/button/button.component.d.ts +30 -30
- package/components/button/button.module.d.ts +9 -9
- package/components/button/button.options.d.ts +9 -9
- package/components/button/index.d.ts +3 -3
- package/components/button-group/button-group.component.d.ts +5 -5
- package/components/button-group/button-group.module.d.ts +7 -7
- package/components/button-group/index.d.ts +2 -2
- package/components/checkbox/checkbox.component.d.ts +5 -5
- package/components/checkbox/checkbox.module.d.ts +7 -7
- package/components/checkbox/index.d.ts +2 -2
- package/components/context-menu/context-menu.component.d.ts +39 -39
- package/components/context-menu/context-menu.module.d.ts +9 -9
- package/components/context-menu/index.d.ts +2 -2
- package/components/dialog/dialog-actions/dialog-actions.component.d.ts +5 -5
- package/components/dialog/dialog-header/dialog-header.component.d.ts +13 -13
- package/components/dialog/dialog.component.d.ts +33 -33
- package/components/dialog/dialog.interfaces.d.ts +10 -10
- package/components/dialog/dialog.module.d.ts +14 -14
- package/components/dialog/dialog.service.d.ts +7 -7
- package/components/dialog/dialog.tokens.d.ts +8 -8
- package/components/dialog/dialogs.component.d.ts +18 -18
- package/components/dialog/index.d.ts +8 -8
- package/components/form-field/form-field.component.d.ts +5 -5
- package/components/form-field/form-field.module.d.ts +7 -7
- package/components/form-field/index.d.ts +2 -2
- package/components/hint/hint.component.d.ts +7 -7
- package/components/hint/hint.module.d.ts +7 -7
- package/components/hint/index.d.ts +2 -2
- package/components/icon-button/icon-button.component.d.ts +13 -13
- package/components/icon-button/icon-button.module.d.ts +9 -9
- package/components/icon-button/index.d.ts +2 -2
- package/components/index.d.ts +26 -26
- package/components/input-number/index.d.ts +2 -2
- package/components/input-number/input-number.component.d.ts +55 -55
- package/components/input-number/input-number.module.d.ts +11 -11
- package/components/input-number/input-number.options.d.ts +9 -9
- package/components/input-password/index.d.ts +2 -2
- package/components/input-password/input-password.component.d.ts +31 -31
- package/components/input-password/input-password.module.d.ts +11 -11
- package/components/input-text/index.d.ts +2 -2
- package/components/input-text/input-text.component.d.ts +31 -31
- package/components/input-text/input-text.module.d.ts +11 -11
- package/components/input-time/index.d.ts +3 -3
- package/components/input-time/input-time.component.d.ts +36 -36
- package/components/input-time/input-time.module.d.ts +12 -12
- package/components/input-time/input-time.options.d.ts +7 -7
- package/components/label/index.d.ts +2 -2
- package/components/label/label.component.d.ts +6 -6
- package/components/label/label.module.d.ts +8 -8
- package/components/notification/index.d.ts +3 -3
- package/components/notification/notification.component.d.ts +13 -13
- package/components/notification/notification.module.d.ts +10 -10
- package/components/notification/notification.options.d.ts +13 -13
- package/components/radio/index.d.ts +2 -2
- package/components/radio/radio.component.d.ts +5 -5
- package/components/radio/radio.module.d.ts +7 -7
- package/components/root/index.d.ts +3 -3
- package/components/root/root.component.d.ts +11 -11
- package/components/root/root.module.d.ts +10 -10
- package/components/root/root.options.d.ts +1 -1
- package/components/select/index.d.ts +2 -2
- package/components/select/select.component.d.ts +52 -52
- package/components/select/select.module.d.ts +10 -10
- package/components/svg/index.d.ts +2 -2
- package/components/svg/svg.component.d.ts +16 -16
- package/components/svg/svg.module.d.ts +8 -8
- package/components/tabs/index.d.ts +3 -3
- package/components/tabs/tab/index.d.ts +1 -1
- package/components/tabs/tab/tab.component.d.ts +8 -8
- package/components/tabs/tabs.component.d.ts +16 -16
- package/components/tabs/tabs.module.d.ts +8 -8
- package/components/textarea/index.d.ts +2 -2
- package/components/textarea/textarea.component.d.ts +10 -10
- package/components/textarea/textarea.module.d.ts +7 -7
- package/components/toggle/index.d.ts +2 -2
- package/components/toggle/toggle.component.d.ts +5 -5
- package/components/toggle/toggle.module.d.ts +7 -7
- package/directives/index.d.ts +1 -1
- package/directives/text-field-controller/index.d.ts +8 -8
- package/directives/text-field-controller/text-field-controller.module.d.ts +11 -11
- package/directives/text-field-controller/text-field-controller.provider.d.ts +4 -4
- package/directives/text-field-controller/text-field-icon-left.directive.d.ts +9 -9
- package/directives/text-field-controller/text-field-id.directive.d.ts +8 -8
- package/directives/text-field-controller/text-field-is-error.directive.d.ts +8 -8
- package/directives/text-field-controller/text-field-placeholder.directive.d.ts +8 -8
- package/directives/text-field-controller/text-field-size.directive.d.ts +9 -9
- package/directives/text-field-controller/text-field.controller.d.ts +20 -20
- package/esm2020/components/accordion/accordion-item/accordion-item.component.mjs +28 -28
- package/esm2020/components/accordion/accordion.component.mjs +11 -11
- package/esm2020/components/accordion/accordion.module.mjs +37 -37
- package/esm2020/components/accordion/index.mjs +4 -4
- package/esm2020/components/alert/alert.component.mjs +36 -36
- package/esm2020/components/alert/alert.interfaces.mjs +2 -2
- package/esm2020/components/alert/alert.module.mjs +40 -40
- package/esm2020/components/alert/alert.service.mjs +17 -17
- package/esm2020/components/alert/alert.tokens.mjs +19 -19
- package/esm2020/components/alert/alert.types.mjs +2 -2
- package/esm2020/components/alert/alerts.component.mjs +36 -36
- package/esm2020/components/alert/index.mjs +9 -9
- package/esm2020/components/badge/badge.component.mjs +31 -31
- package/esm2020/components/badge/badge.module.mjs +18 -18
- package/esm2020/components/badge/badge.options.mjs +8 -8
- package/esm2020/components/badge/index.mjs +3 -3
- package/esm2020/components/banner/banner.component.mjs +68 -68
- package/esm2020/components/banner/banner.module.mjs +31 -31
- package/esm2020/components/banner/banner.options.mjs +6 -6
- package/esm2020/components/banner/index.mjs +4 -4
- package/esm2020/components/breadcrumbs/breadcrumb/breadcrumb.component.mjs +16 -16
- package/esm2020/components/breadcrumbs/breadcrumbs.component.mjs +17 -17
- package/esm2020/components/breadcrumbs/breadcrumbs.module.mjs +33 -33
- package/esm2020/components/breadcrumbs/index.mjs +4 -4
- package/esm2020/components/button/button.component.mjs +104 -104
- package/esm2020/components/button/button.module.mjs +24 -24
- package/esm2020/components/button/button.options.mjs +10 -10
- package/esm2020/components/button/index.mjs +4 -4
- package/esm2020/components/button-group/button-group.component.mjs +11 -11
- package/esm2020/components/button-group/button-group.module.mjs +16 -16
- package/esm2020/components/button-group/index.mjs +3 -3
- package/esm2020/components/checkbox/checkbox.component.mjs +11 -11
- package/esm2020/components/checkbox/checkbox.module.mjs +16 -16
- package/esm2020/components/checkbox/index.mjs +3 -3
- package/esm2020/components/context-menu/context-menu.component.mjs +146 -146
- package/esm2020/components/context-menu/context-menu.module.mjs +24 -24
- package/esm2020/components/context-menu/index.mjs +3 -3
- package/esm2020/components/dialog/dialog-actions/dialog-actions.component.mjs +11 -11
- package/esm2020/components/dialog/dialog-header/dialog-header.component.mjs +28 -28
- package/esm2020/components/dialog/dialog.component.mjs +64 -64
- package/esm2020/components/dialog/dialog.interfaces.mjs +2 -2
- package/esm2020/components/dialog/dialog.module.mjs +50 -50
- package/esm2020/components/dialog/dialog.service.mjs +17 -17
- package/esm2020/components/dialog/dialog.tokens.mjs +11 -11
- package/esm2020/components/dialog/dialogs.component.mjs +51 -51
- package/esm2020/components/dialog/index.mjs +9 -9
- package/esm2020/components/form-field/form-field.component.mjs +11 -11
- package/esm2020/components/form-field/form-field.module.mjs +16 -16
- package/esm2020/components/form-field/index.mjs +3 -3
- package/esm2020/components/hint/hint.component.mjs +19 -19
- package/esm2020/components/hint/hint.module.mjs +16 -16
- package/esm2020/components/hint/index.mjs +3 -3
- package/esm2020/components/icon-button/icon-button.component.mjs +32 -32
- package/esm2020/components/icon-button/icon-button.module.mjs +24 -24
- package/esm2020/components/icon-button/index.mjs +3 -3
- package/esm2020/components/index.mjs +27 -27
- package/esm2020/components/input-number/index.mjs +3 -3
- package/esm2020/components/input-number/input-number.component.mjs +204 -204
- package/esm2020/components/input-number/input-number.module.mjs +33 -33
- package/esm2020/components/input-number/input-number.options.mjs +11 -11
- package/esm2020/components/input-password/index.mjs +3 -3
- package/esm2020/components/input-password/input-password.component.mjs +89 -89
- package/esm2020/components/input-password/input-password.module.mjs +33 -33
- package/esm2020/components/input-text/index.mjs +3 -3
- package/esm2020/components/input-text/input-text.component.mjs +87 -87
- package/esm2020/components/input-text/input-text.module.mjs +33 -33
- package/esm2020/components/input-time/index.mjs +4 -4
- package/esm2020/components/input-time/input-time.component.mjs +99 -99
- package/esm2020/components/input-time/input-time.module.mjs +36 -36
- package/esm2020/components/input-time/input-time.options.mjs +8 -8
- package/esm2020/components/label/index.mjs +3 -3
- package/esm2020/components/label/label.component.mjs +17 -17
- package/esm2020/components/label/label.module.mjs +18 -18
- package/esm2020/components/notification/index.mjs +4 -4
- package/esm2020/components/notification/notification.component.mjs +51 -51
- package/esm2020/components/notification/notification.module.mjs +27 -27
- package/esm2020/components/notification/notification.options.mjs +6 -6
- package/esm2020/components/radio/index.mjs +3 -3
- package/esm2020/components/radio/radio.component.mjs +11 -11
- package/esm2020/components/radio/radio.module.mjs +16 -16
- package/esm2020/components/root/index.mjs +4 -4
- package/esm2020/components/root/root.component.mjs +31 -31
- package/esm2020/components/root/root.module.mjs +28 -28
- package/esm2020/components/root/root.options.mjs +1 -1
- package/esm2020/components/select/index.mjs +3 -3
- package/esm2020/components/select/select.component.mjs +167 -167
- package/esm2020/components/select/select.module.mjs +29 -29
- package/esm2020/components/svg/index.mjs +3 -3
- package/esm2020/components/svg/svg.component.mjs +50 -50
- package/esm2020/components/svg/svg.module.mjs +18 -18
- package/esm2020/components/tabs/index.mjs +4 -4
- package/esm2020/components/tabs/tab/index.mjs +1 -1
- package/esm2020/components/tabs/tab/tab.component.mjs +21 -21
- package/esm2020/components/tabs/tabs.component.mjs +49 -49
- package/esm2020/components/tabs/tabs.module.mjs +18 -18
- package/esm2020/components/textarea/index.mjs +3 -3
- package/esm2020/components/textarea/textarea.component.mjs +35 -35
- package/esm2020/components/textarea/textarea.module.mjs +16 -16
- package/esm2020/components/toggle/index.mjs +3 -3
- package/esm2020/components/toggle/toggle.component.mjs +11 -11
- package/esm2020/components/toggle/toggle.module.mjs +16 -16
- package/esm2020/cuby-ui-core.mjs +4 -4
- package/esm2020/directives/index.mjs +2 -2
- package/esm2020/directives/text-field-controller/index.mjs +9 -9
- package/esm2020/directives/text-field-controller/text-field-controller.module.mjs +40 -40
- package/esm2020/directives/text-field-controller/text-field-controller.provider.mjs +24 -24
- package/esm2020/directives/text-field-controller/text-field-icon-left.directive.mjs +21 -21
- package/esm2020/directives/text-field-controller/text-field-id.directive.mjs +21 -21
- package/esm2020/directives/text-field-controller/text-field-is-error.directive.mjs +24 -24
- package/esm2020/directives/text-field-controller/text-field-placeholder.directive.mjs +21 -21
- package/esm2020/directives/text-field-controller/text-field-size.directive.mjs +24 -24
- package/esm2020/directives/text-field-controller/text-field.controller.mjs +25 -25
- package/esm2020/index.mjs +7 -7
- package/esm2020/interfaces/context-menu-item.mjs +2 -2
- package/esm2020/interfaces/index.mjs +3 -3
- package/esm2020/interfaces/option.mjs +2 -2
- package/esm2020/services/index.mjs +3 -3
- package/esm2020/services/theme.options.mjs +6 -6
- package/esm2020/services/theme.service.mjs +30 -30
- package/esm2020/types/appearance.mjs +2 -2
- package/esm2020/types/hint-type.mjs +2 -2
- package/esm2020/types/index.mjs +8 -8
- package/esm2020/types/position.mjs +2 -2
- package/esm2020/types/resizing.mjs +2 -2
- package/esm2020/types/shape.mjs +2 -2
- package/esm2020/types/size.mjs +2 -2
- package/esm2020/types/status.mjs +2 -2
- package/esm2020/utils/format/index.mjs +3 -3
- package/esm2020/utils/format/remove-spaces.mjs +4 -4
- package/esm2020/utils/format/replace.mjs +5 -5
- package/esm2020/utils/index.mjs +2 -2
- package/fesm2015/cuby-ui-core.mjs +2162 -2162
- package/fesm2015/cuby-ui-core.mjs.map +1 -1
- package/fesm2020/cuby-ui-core.mjs +2160 -2160
- package/fesm2020/cuby-ui-core.mjs.map +1 -1
- package/fonts/Inter-Bold.svg +25443 -25443
- package/fonts/Inter-Medium.svg +25400 -25400
- package/fonts/Inter-Regular.svg +24341 -24341
- package/fonts/Inter-SemiBold.svg +25459 -25459
- package/index.d.ts +6 -6
- package/interfaces/context-menu-item.d.ts +7 -7
- package/interfaces/index.d.ts +2 -2
- package/interfaces/option.d.ts +5 -5
- package/package.json +3 -3
- package/services/index.d.ts +2 -2
- package/services/theme.options.d.ts +5 -5
- package/services/theme.service.d.ts +12 -12
- package/styles/fonts.scss +51 -51
- package/styles/global.scss +9 -9
- package/styles/mixins/buttons.scss +13 -13
- package/styles/mixins/headings.scss +115 -115
- package/styles/mixins/inputs.scss +91 -91
- package/styles/mixins/lists.scss +5 -5
- package/styles/mixins/paddings.scss +35 -35
- package/styles/mixins/shadows.scss +38 -38
- package/styles/mixins/texts.scss +225 -225
- package/styles/theme.scss +385 -385
- package/styles/variables/colors.scss +253 -253
- package/types/appearance.d.ts +8 -8
- package/types/hint-type.d.ts +1 -1
- package/types/index.d.ts +7 -7
- package/types/position.d.ts +2 -2
- package/types/resizing.d.ts +2 -2
- package/types/shape.d.ts +1 -1
- package/types/size.d.ts +4 -4
- package/types/status.d.ts +1 -1
- package/utils/format/index.d.ts +2 -2
- package/utils/format/remove-spaces.d.ts +1 -1
- package/utils/format/replace.d.ts +1 -1
- package/utils/index.d.ts +1 -1
package/components/index.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export * from './accordion';
|
|
2
|
-
export * from './alert';
|
|
3
|
-
export * from './badge';
|
|
4
|
-
export * from './banner';
|
|
5
|
-
export * from './breadcrumbs';
|
|
6
|
-
export * from './button';
|
|
7
|
-
export * from './button-group';
|
|
8
|
-
export * from './checkbox';
|
|
9
|
-
export * from './context-menu';
|
|
10
|
-
export * from './dialog';
|
|
11
|
-
export * from './form-field';
|
|
12
|
-
export * from './hint';
|
|
13
|
-
export * from './icon-button';
|
|
14
|
-
export * from './input-number';
|
|
15
|
-
export * from './input-password';
|
|
16
|
-
export * from './input-text';
|
|
17
|
-
export * from './input-time';
|
|
18
|
-
export * from './label';
|
|
19
|
-
export * from './notification';
|
|
20
|
-
export * from './radio';
|
|
21
|
-
export * from './root';
|
|
22
|
-
export * from './select';
|
|
23
|
-
export * from './svg';
|
|
24
|
-
export * from './tabs';
|
|
25
|
-
export * from './textarea';
|
|
26
|
-
export * from './toggle';
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './alert';
|
|
3
|
+
export * from './badge';
|
|
4
|
+
export * from './banner';
|
|
5
|
+
export * from './breadcrumbs';
|
|
6
|
+
export * from './button';
|
|
7
|
+
export * from './button-group';
|
|
8
|
+
export * from './checkbox';
|
|
9
|
+
export * from './context-menu';
|
|
10
|
+
export * from './dialog';
|
|
11
|
+
export * from './form-field';
|
|
12
|
+
export * from './hint';
|
|
13
|
+
export * from './icon-button';
|
|
14
|
+
export * from './input-number';
|
|
15
|
+
export * from './input-password';
|
|
16
|
+
export * from './input-text';
|
|
17
|
+
export * from './input-time';
|
|
18
|
+
export * from './label';
|
|
19
|
+
export * from './notification';
|
|
20
|
+
export * from './radio';
|
|
21
|
+
export * from './root';
|
|
22
|
+
export * from './select';
|
|
23
|
+
export * from './svg';
|
|
24
|
+
export * from './tabs';
|
|
25
|
+
export * from './textarea';
|
|
26
|
+
export * from './toggle';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './input-number.component';
|
|
2
|
-
export * from './input-number.module';
|
|
1
|
+
export * from './input-number.component';
|
|
2
|
+
export * from './input-number.module';
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import type { ElementRef } from '@angular/core';
|
|
2
|
-
import type { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import type { CuiNullable, CuiOnChange, CuiOnTouched } from '@cuby-ui/cdk';
|
|
4
|
-
import type { CuiIcon } from '@cuby-ui/icons';
|
|
5
|
-
import { CuiInputNumberOptions } from './input-number.options';
|
|
6
|
-
import { CuiSizeMd, CuiSizeSm } from '../../types';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class CuiInputNumberComponent implements CuiInputNumberOptions, ControlValueAccessor {
|
|
9
|
-
private readonly changeDetectorRef;
|
|
10
|
-
private readonly cuiTextFieldController;
|
|
11
|
-
private readonly cuiInputNumberOptions;
|
|
12
|
-
protected readonly MIN_JS_NUMBER: number;
|
|
13
|
-
protected readonly MAX_JS_NUMBER: number;
|
|
14
|
-
protected readonly INPUT_VALUE_REGEX: RegExp;
|
|
15
|
-
protected readonly INTERVAL_BETWEEN_SPACES = 3;
|
|
16
|
-
protected formattedValue: string;
|
|
17
|
-
protected _min: number;
|
|
18
|
-
protected _max: number;
|
|
19
|
-
protected value: CuiNullable<string>;
|
|
20
|
-
protected onChange: CuiOnChange<number>;
|
|
21
|
-
protected onTouched: CuiOnTouched;
|
|
22
|
-
step: number;
|
|
23
|
-
precision: number;
|
|
24
|
-
set min(min: number);
|
|
25
|
-
set max(max: number);
|
|
26
|
-
protected isDisabled: boolean;
|
|
27
|
-
protected input: ElementRef<HTMLInputElement>;
|
|
28
|
-
protected get id(): string | undefined;
|
|
29
|
-
protected get placeholder(): string | undefined;
|
|
30
|
-
protected get iconLeft(): CuiIcon | string | undefined;
|
|
31
|
-
protected get size(): CuiSizeSm | CuiSizeMd;
|
|
32
|
-
protected get isError(): boolean;
|
|
33
|
-
writeValue(value: CuiNullable<number>): void;
|
|
34
|
-
registerOnChange(fn: CuiOnChange<number>): void;
|
|
35
|
-
registerOnTouched(fn: CuiOnTouched): void;
|
|
36
|
-
setDisabledState(isDisabled: boolean): void;
|
|
37
|
-
protected onInput(event: Event): void;
|
|
38
|
-
protected onArrowUp(): void;
|
|
39
|
-
protected onArrowDown(): void;
|
|
40
|
-
protected onFocus(): void;
|
|
41
|
-
private isInputValueCorrect;
|
|
42
|
-
private isInputValueValid;
|
|
43
|
-
private isNumberValid;
|
|
44
|
-
private isPrecisionCountCorrect;
|
|
45
|
-
private parseValue;
|
|
46
|
-
private formatValue;
|
|
47
|
-
private insertSpacesWithInterval;
|
|
48
|
-
private changeModel;
|
|
49
|
-
private increaseByStep;
|
|
50
|
-
private decreaseByStep;
|
|
51
|
-
private calculateValidMinValue;
|
|
52
|
-
private calculateValidMaxValue;
|
|
53
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputNumberComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiInputNumberComponent, "cui-input-number", never, { "step": "step"; "precision": "precision"; "min": "min"; "max": "max"; }, {}, never, never, false, never>;
|
|
55
|
-
}
|
|
1
|
+
import type { ElementRef } from '@angular/core';
|
|
2
|
+
import type { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import type { CuiNullable, CuiOnChange, CuiOnTouched } from '@cuby-ui/cdk';
|
|
4
|
+
import type { CuiIcon } from '@cuby-ui/icons';
|
|
5
|
+
import { CuiInputNumberOptions } from './input-number.options';
|
|
6
|
+
import { CuiSizeMd, CuiSizeSm } from '../../types';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class CuiInputNumberComponent implements CuiInputNumberOptions, ControlValueAccessor {
|
|
9
|
+
private readonly changeDetectorRef;
|
|
10
|
+
private readonly cuiTextFieldController;
|
|
11
|
+
private readonly cuiInputNumberOptions;
|
|
12
|
+
protected readonly MIN_JS_NUMBER: number;
|
|
13
|
+
protected readonly MAX_JS_NUMBER: number;
|
|
14
|
+
protected readonly INPUT_VALUE_REGEX: RegExp;
|
|
15
|
+
protected readonly INTERVAL_BETWEEN_SPACES = 3;
|
|
16
|
+
protected formattedValue: string;
|
|
17
|
+
protected _min: number;
|
|
18
|
+
protected _max: number;
|
|
19
|
+
protected value: CuiNullable<string>;
|
|
20
|
+
protected onChange: CuiOnChange<number>;
|
|
21
|
+
protected onTouched: CuiOnTouched;
|
|
22
|
+
step: number;
|
|
23
|
+
precision: number;
|
|
24
|
+
set min(min: number);
|
|
25
|
+
set max(max: number);
|
|
26
|
+
protected isDisabled: boolean;
|
|
27
|
+
protected input: ElementRef<HTMLInputElement>;
|
|
28
|
+
protected get id(): string | undefined;
|
|
29
|
+
protected get placeholder(): string | undefined;
|
|
30
|
+
protected get iconLeft(): CuiIcon | string | undefined;
|
|
31
|
+
protected get size(): CuiSizeSm | CuiSizeMd;
|
|
32
|
+
protected get isError(): boolean;
|
|
33
|
+
writeValue(value: CuiNullable<number>): void;
|
|
34
|
+
registerOnChange(fn: CuiOnChange<number>): void;
|
|
35
|
+
registerOnTouched(fn: CuiOnTouched): void;
|
|
36
|
+
setDisabledState(isDisabled: boolean): void;
|
|
37
|
+
protected onInput(event: Event): void;
|
|
38
|
+
protected onArrowUp(): void;
|
|
39
|
+
protected onArrowDown(): void;
|
|
40
|
+
protected onFocus(): void;
|
|
41
|
+
private isInputValueCorrect;
|
|
42
|
+
private isInputValueValid;
|
|
43
|
+
private isNumberValid;
|
|
44
|
+
private isPrecisionCountCorrect;
|
|
45
|
+
private parseValue;
|
|
46
|
+
private formatValue;
|
|
47
|
+
private insertSpacesWithInterval;
|
|
48
|
+
private changeModel;
|
|
49
|
+
private increaseByStep;
|
|
50
|
+
private decreaseByStep;
|
|
51
|
+
private calculateValidMinValue;
|
|
52
|
+
private calculateValidMaxValue;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputNumberComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CuiInputNumberComponent, "cui-input-number", never, { "step": "step"; "precision": "precision"; "min": "min"; "max": "max"; }, {}, never, never, false, never>;
|
|
55
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./input-number.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "../svg/svg.module";
|
|
6
|
-
import * as i5 from "../../directives/text-field-controller/text-field-controller.module";
|
|
7
|
-
export declare class CuiInputNumberModule {
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputNumberModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CuiInputNumberModule, [typeof i1.CuiInputNumberComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.CuiSvgModule], [typeof i1.CuiInputNumberComponent, typeof i5.CuiTextFieldControllerModule]>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CuiInputNumberModule>;
|
|
11
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./input-number.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../svg/svg.module";
|
|
6
|
+
import * as i5 from "../../directives/text-field-controller/text-field-controller.module";
|
|
7
|
+
export declare class CuiInputNumberModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputNumberModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CuiInputNumberModule, [typeof i1.CuiInputNumberComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.CuiSvgModule], [typeof i1.CuiInputNumberComponent, typeof i5.CuiTextFieldControllerModule]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CuiInputNumberModule>;
|
|
11
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export interface CuiInputNumberOptions {
|
|
3
|
-
readonly min: number;
|
|
4
|
-
readonly max: number;
|
|
5
|
-
readonly step: number;
|
|
6
|
-
readonly precision: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const CUI_INPUT_NUMBER_DEFAULT_OPTIONS: CuiInputNumberOptions;
|
|
9
|
-
export declare const CUI_INPUT_NUMBER_OPTIONS: InjectionToken<CuiInputNumberOptions>;
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export interface CuiInputNumberOptions {
|
|
3
|
+
readonly min: number;
|
|
4
|
+
readonly max: number;
|
|
5
|
+
readonly step: number;
|
|
6
|
+
readonly precision: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const CUI_INPUT_NUMBER_DEFAULT_OPTIONS: CuiInputNumberOptions;
|
|
9
|
+
export declare const CUI_INPUT_NUMBER_OPTIONS: InjectionToken<CuiInputNumberOptions>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './input-password.component';
|
|
2
|
-
export * from './input-password.module';
|
|
1
|
+
export * from './input-password.component';
|
|
2
|
+
export * from './input-password.module';
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import type { ControlValueAccessor } from '@angular/forms';
|
|
2
|
-
import type { CuiInputType, CuiNullable, CuiOnChange, CuiOnTouched } from '@cuby-ui/cdk';
|
|
3
|
-
import type { CuiIcon } from '@cuby-ui/icons';
|
|
4
|
-
import { CuiSizeMd, CuiSizeSm } from '../../types';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class CuiInputPasswordComponent implements ControlValueAccessor {
|
|
7
|
-
private readonly changeDetectorRef;
|
|
8
|
-
private readonly cuiTextFieldController;
|
|
9
|
-
protected isPasswordHidden: boolean;
|
|
10
|
-
protected value: CuiNullable<string>;
|
|
11
|
-
protected onChange: CuiOnChange<string>;
|
|
12
|
-
protected onTouched: CuiOnTouched;
|
|
13
|
-
protected isDisabled: boolean;
|
|
14
|
-
protected get id(): string | undefined;
|
|
15
|
-
protected get placeholder(): string | undefined;
|
|
16
|
-
protected get iconLeft(): CuiIcon | string | undefined;
|
|
17
|
-
protected get isToggleButtonShown(): boolean;
|
|
18
|
-
protected get icon(): CuiIcon;
|
|
19
|
-
protected get type(): CuiInputType;
|
|
20
|
-
protected get buttonTitle(): string;
|
|
21
|
-
protected get size(): CuiSizeSm | CuiSizeMd;
|
|
22
|
-
protected get isError(): boolean;
|
|
23
|
-
writeValue(value: CuiNullable<string>): void;
|
|
24
|
-
registerOnChange(fn: CuiOnChange<string>): void;
|
|
25
|
-
registerOnTouched(fn: CuiOnTouched): void;
|
|
26
|
-
setDisabledState(isDisabled: boolean): void;
|
|
27
|
-
protected onInput({ target }: Event): void;
|
|
28
|
-
protected onTogglePasswordVisibility(): void;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputPasswordComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiInputPasswordComponent, "cui-input-password", never, {}, {}, never, never, false, never>;
|
|
31
|
-
}
|
|
1
|
+
import type { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import type { CuiInputType, CuiNullable, CuiOnChange, CuiOnTouched } from '@cuby-ui/cdk';
|
|
3
|
+
import type { CuiIcon } from '@cuby-ui/icons';
|
|
4
|
+
import { CuiSizeMd, CuiSizeSm } from '../../types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CuiInputPasswordComponent implements ControlValueAccessor {
|
|
7
|
+
private readonly changeDetectorRef;
|
|
8
|
+
private readonly cuiTextFieldController;
|
|
9
|
+
protected isPasswordHidden: boolean;
|
|
10
|
+
protected value: CuiNullable<string>;
|
|
11
|
+
protected onChange: CuiOnChange<string>;
|
|
12
|
+
protected onTouched: CuiOnTouched;
|
|
13
|
+
protected isDisabled: boolean;
|
|
14
|
+
protected get id(): string | undefined;
|
|
15
|
+
protected get placeholder(): string | undefined;
|
|
16
|
+
protected get iconLeft(): CuiIcon | string | undefined;
|
|
17
|
+
protected get isToggleButtonShown(): boolean;
|
|
18
|
+
protected get icon(): CuiIcon;
|
|
19
|
+
protected get type(): CuiInputType;
|
|
20
|
+
protected get buttonTitle(): string;
|
|
21
|
+
protected get size(): CuiSizeSm | CuiSizeMd;
|
|
22
|
+
protected get isError(): boolean;
|
|
23
|
+
writeValue(value: CuiNullable<string>): void;
|
|
24
|
+
registerOnChange(fn: CuiOnChange<string>): void;
|
|
25
|
+
registerOnTouched(fn: CuiOnTouched): void;
|
|
26
|
+
setDisabledState(isDisabled: boolean): void;
|
|
27
|
+
protected onInput({ target }: Event): void;
|
|
28
|
+
protected onTogglePasswordVisibility(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputPasswordComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CuiInputPasswordComponent, "cui-input-password", never, {}, {}, never, never, false, never>;
|
|
31
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./input-password.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "../svg/svg.module";
|
|
6
|
-
import * as i5 from "../../directives/text-field-controller/text-field-controller.module";
|
|
7
|
-
export declare class CuiInputPasswordModule {
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputPasswordModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CuiInputPasswordModule, [typeof i1.CuiInputPasswordComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.CuiSvgModule], [typeof i1.CuiInputPasswordComponent, typeof i5.CuiTextFieldControllerModule]>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CuiInputPasswordModule>;
|
|
11
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./input-password.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../svg/svg.module";
|
|
6
|
+
import * as i5 from "../../directives/text-field-controller/text-field-controller.module";
|
|
7
|
+
export declare class CuiInputPasswordModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputPasswordModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CuiInputPasswordModule, [typeof i1.CuiInputPasswordComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.CuiSvgModule], [typeof i1.CuiInputPasswordComponent, typeof i5.CuiTextFieldControllerModule]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CuiInputPasswordModule>;
|
|
11
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './input-text.component';
|
|
2
|
-
export * from './input-text.module';
|
|
1
|
+
export * from './input-text.component';
|
|
2
|
+
export * from './input-text.module';
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import type { ElementRef } from '@angular/core';
|
|
2
|
-
import type { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import type { CuiOnChange, CuiOnTouched, CuiNullable } from '@cuby-ui/cdk';
|
|
4
|
-
import type { CuiIcon } from '@cuby-ui/icons';
|
|
5
|
-
import { CuiSizeMd, CuiSizeSm } from '../../types';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class CuiInputTextComponent implements ControlValueAccessor {
|
|
8
|
-
private readonly changeDetectorRef;
|
|
9
|
-
private readonly cuiTextFieldController;
|
|
10
|
-
protected value: CuiNullable<string>;
|
|
11
|
-
protected onChange: CuiOnChange<string>;
|
|
12
|
-
protected onTouched: CuiOnTouched;
|
|
13
|
-
protected isDisabled: boolean;
|
|
14
|
-
protected input: ElementRef<HTMLInputElement>;
|
|
15
|
-
protected get id(): string | undefined;
|
|
16
|
-
protected get placeholder(): string | undefined;
|
|
17
|
-
protected get iconLeft(): CuiIcon | string | undefined;
|
|
18
|
-
protected get isClearButtonHidden(): boolean;
|
|
19
|
-
protected get size(): CuiSizeSm | CuiSizeMd;
|
|
20
|
-
protected get isError(): boolean;
|
|
21
|
-
writeValue(value: CuiNullable<string>): void;
|
|
22
|
-
registerOnChange(fn: CuiOnChange<string>): void;
|
|
23
|
-
registerOnTouched(fn: CuiOnTouched): void;
|
|
24
|
-
setDisabledState(isDisabled: boolean): void;
|
|
25
|
-
protected onInput({ target }: Event): void;
|
|
26
|
-
protected onClear(): void;
|
|
27
|
-
protected onFocus(): void;
|
|
28
|
-
private changeModel;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputTextComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiInputTextComponent, "cui-input-text", never, {}, {}, never, never, false, never>;
|
|
31
|
-
}
|
|
1
|
+
import type { ElementRef } from '@angular/core';
|
|
2
|
+
import type { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import type { CuiOnChange, CuiOnTouched, CuiNullable } from '@cuby-ui/cdk';
|
|
4
|
+
import type { CuiIcon } from '@cuby-ui/icons';
|
|
5
|
+
import { CuiSizeMd, CuiSizeSm } from '../../types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class CuiInputTextComponent implements ControlValueAccessor {
|
|
8
|
+
private readonly changeDetectorRef;
|
|
9
|
+
private readonly cuiTextFieldController;
|
|
10
|
+
protected value: CuiNullable<string>;
|
|
11
|
+
protected onChange: CuiOnChange<string>;
|
|
12
|
+
protected onTouched: CuiOnTouched;
|
|
13
|
+
protected isDisabled: boolean;
|
|
14
|
+
protected input: ElementRef<HTMLInputElement>;
|
|
15
|
+
protected get id(): string | undefined;
|
|
16
|
+
protected get placeholder(): string | undefined;
|
|
17
|
+
protected get iconLeft(): CuiIcon | string | undefined;
|
|
18
|
+
protected get isClearButtonHidden(): boolean;
|
|
19
|
+
protected get size(): CuiSizeSm | CuiSizeMd;
|
|
20
|
+
protected get isError(): boolean;
|
|
21
|
+
writeValue(value: CuiNullable<string>): void;
|
|
22
|
+
registerOnChange(fn: CuiOnChange<string>): void;
|
|
23
|
+
registerOnTouched(fn: CuiOnTouched): void;
|
|
24
|
+
setDisabledState(isDisabled: boolean): void;
|
|
25
|
+
protected onInput({ target }: Event): void;
|
|
26
|
+
protected onClear(): void;
|
|
27
|
+
protected onFocus(): void;
|
|
28
|
+
private changeModel;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputTextComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CuiInputTextComponent, "cui-input-text", never, {}, {}, never, never, false, never>;
|
|
31
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./input-text.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "../svg/svg.module";
|
|
6
|
-
import * as i5 from "../../directives/text-field-controller/text-field-controller.module";
|
|
7
|
-
export declare class CuiInputModule {
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CuiInputModule, [typeof i1.CuiInputTextComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.CuiSvgModule], [typeof i1.CuiInputTextComponent, typeof i5.CuiTextFieldControllerModule]>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CuiInputModule>;
|
|
11
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./input-text.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../svg/svg.module";
|
|
6
|
+
import * as i5 from "../../directives/text-field-controller/text-field-controller.module";
|
|
7
|
+
export declare class CuiInputModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CuiInputModule, [typeof i1.CuiInputTextComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.CuiSvgModule], [typeof i1.CuiInputTextComponent, typeof i5.CuiTextFieldControllerModule]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CuiInputModule>;
|
|
11
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './input-time.component';
|
|
2
|
-
export * from './input-time.module';
|
|
3
|
-
export * from './input-time.options';
|
|
1
|
+
export * from './input-time.component';
|
|
2
|
+
export * from './input-time.module';
|
|
3
|
+
export * from './input-time.options';
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import type { ElementRef } from '@angular/core';
|
|
2
|
-
import type { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import type { MaskitoOptions } from '@maskito/core';
|
|
4
|
-
import type { CuiNullable, CuiOnChange, CuiOnTouched } from '@cuby-ui/cdk';
|
|
5
|
-
import { CuiTime } from '@cuby-ui/cdk';
|
|
6
|
-
import { CuiInputTimeOptions } from './input-time.options';
|
|
7
|
-
import type { CuiSizeMd, CuiSizeSm } from '../../types';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class CuiInputTimeComponent implements CuiInputTimeOptions, ControlValueAccessor {
|
|
10
|
-
private readonly changeDetectorRef;
|
|
11
|
-
private readonly cuiTextFieldController;
|
|
12
|
-
private readonly options;
|
|
13
|
-
protected _mode: import("@cuby-ui/cdk").CuiTimeMode;
|
|
14
|
-
protected maskOptions: MaskitoOptions;
|
|
15
|
-
protected defaultPlaceholder: string;
|
|
16
|
-
protected value: CuiNullable<CuiTime>;
|
|
17
|
-
protected onChange: CuiOnChange<CuiNullable<CuiTime>>;
|
|
18
|
-
protected onTouched: CuiOnTouched;
|
|
19
|
-
set mode(value: CuiInputTimeOptions['mode']);
|
|
20
|
-
protected isDisabled: boolean;
|
|
21
|
-
protected input: ElementRef<HTMLInputElement>;
|
|
22
|
-
protected get id(): string | undefined;
|
|
23
|
-
protected get placeholder(): string | undefined;
|
|
24
|
-
get computedValue(): string;
|
|
25
|
-
protected get size(): CuiSizeSm | CuiSizeMd;
|
|
26
|
-
protected get isError(): boolean;
|
|
27
|
-
writeValue(value: CuiNullable<CuiTime>): void;
|
|
28
|
-
registerOnChange(fn: CuiOnChange<CuiNullable<CuiTime>>): void;
|
|
29
|
-
registerOnTouched(fn: CuiOnTouched): void;
|
|
30
|
-
setDisabledState(isDisabled: boolean): void;
|
|
31
|
-
protected onInput(event: Event): void;
|
|
32
|
-
protected onFocus(): void;
|
|
33
|
-
private generateMask;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputTimeComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiInputTimeComponent, "cui-input-time", never, { "mode": "mode"; }, {}, never, never, false, never>;
|
|
36
|
-
}
|
|
1
|
+
import type { ElementRef } from '@angular/core';
|
|
2
|
+
import type { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import type { MaskitoOptions } from '@maskito/core';
|
|
4
|
+
import type { CuiNullable, CuiOnChange, CuiOnTouched } from '@cuby-ui/cdk';
|
|
5
|
+
import { CuiTime } from '@cuby-ui/cdk';
|
|
6
|
+
import { CuiInputTimeOptions } from './input-time.options';
|
|
7
|
+
import type { CuiSizeMd, CuiSizeSm } from '../../types';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class CuiInputTimeComponent implements CuiInputTimeOptions, ControlValueAccessor {
|
|
10
|
+
private readonly changeDetectorRef;
|
|
11
|
+
private readonly cuiTextFieldController;
|
|
12
|
+
private readonly options;
|
|
13
|
+
protected _mode: import("@cuby-ui/cdk").CuiTimeMode;
|
|
14
|
+
protected maskOptions: MaskitoOptions;
|
|
15
|
+
protected defaultPlaceholder: string;
|
|
16
|
+
protected value: CuiNullable<CuiTime>;
|
|
17
|
+
protected onChange: CuiOnChange<CuiNullable<CuiTime>>;
|
|
18
|
+
protected onTouched: CuiOnTouched;
|
|
19
|
+
set mode(value: CuiInputTimeOptions['mode']);
|
|
20
|
+
protected isDisabled: boolean;
|
|
21
|
+
protected input: ElementRef<HTMLInputElement>;
|
|
22
|
+
protected get id(): string | undefined;
|
|
23
|
+
protected get placeholder(): string | undefined;
|
|
24
|
+
get computedValue(): string;
|
|
25
|
+
protected get size(): CuiSizeSm | CuiSizeMd;
|
|
26
|
+
protected get isError(): boolean;
|
|
27
|
+
writeValue(value: CuiNullable<CuiTime>): void;
|
|
28
|
+
registerOnChange(fn: CuiOnChange<CuiNullable<CuiTime>>): void;
|
|
29
|
+
registerOnTouched(fn: CuiOnTouched): void;
|
|
30
|
+
setDisabledState(isDisabled: boolean): void;
|
|
31
|
+
protected onInput(event: Event): void;
|
|
32
|
+
protected onFocus(): void;
|
|
33
|
+
private generateMask;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputTimeComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CuiInputTimeComponent, "cui-input-time", never, { "mode": "mode"; }, {}, never, never, false, never>;
|
|
36
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./input-time.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "@maskito/angular";
|
|
6
|
-
import * as i5 from "../svg/svg.module";
|
|
7
|
-
import * as i6 from "../../directives/text-field-controller/text-field-controller.module";
|
|
8
|
-
export declare class CuiInputTimeModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputTimeModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CuiInputTimeModule, [typeof i1.CuiInputTimeComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MaskitoDirective, typeof i5.CuiSvgModule], [typeof i1.CuiInputTimeComponent, typeof i6.CuiTextFieldControllerModule]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CuiInputTimeModule>;
|
|
12
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./input-time.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "@maskito/angular";
|
|
6
|
+
import * as i5 from "../svg/svg.module";
|
|
7
|
+
import * as i6 from "../../directives/text-field-controller/text-field-controller.module";
|
|
8
|
+
export declare class CuiInputTimeModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiInputTimeModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CuiInputTimeModule, [typeof i1.CuiInputTimeComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MaskitoDirective, typeof i5.CuiSvgModule], [typeof i1.CuiInputTimeComponent, typeof i6.CuiTextFieldControllerModule]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CuiInputTimeModule>;
|
|
12
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import type { CuiTimeMode } from '@cuby-ui/cdk';
|
|
3
|
-
export interface CuiInputTimeOptions {
|
|
4
|
-
readonly mode: CuiTimeMode;
|
|
5
|
-
}
|
|
6
|
-
export declare const CUI_INPUT_TIME_DEFAULT_OPTIONS: CuiInputTimeOptions;
|
|
7
|
-
export declare const CUI_INPUT_TIME_OPTIONS: InjectionToken<CuiInputTimeOptions>;
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import type { CuiTimeMode } from '@cuby-ui/cdk';
|
|
3
|
+
export interface CuiInputTimeOptions {
|
|
4
|
+
readonly mode: CuiTimeMode;
|
|
5
|
+
}
|
|
6
|
+
export declare const CUI_INPUT_TIME_DEFAULT_OPTIONS: CuiInputTimeOptions;
|
|
7
|
+
export declare const CUI_INPUT_TIME_OPTIONS: InjectionToken<CuiInputTimeOptions>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './label.component';
|
|
2
|
-
export * from './label.module';
|
|
1
|
+
export * from './label.component';
|
|
2
|
+
export * from './label.module';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CuiLabelComponent {
|
|
3
|
-
isRequired: boolean;
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiLabelComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiLabelComponent, "label[cuiLabel]", never, { "isRequired": "isRequired"; }, {}, never, ["*"], false, never>;
|
|
6
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CuiLabelComponent {
|
|
3
|
+
isRequired: boolean;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiLabelComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CuiLabelComponent, "label[cuiLabel]", never, { "isRequired": "isRequired"; }, {}, never, ["*"], false, never>;
|
|
6
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./label.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
export declare class CuiLabelModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiLabelModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CuiLabelModule, [typeof i1.CuiLabelComponent], [typeof i2.CommonModule], [typeof i1.CuiLabelComponent]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CuiLabelModule>;
|
|
8
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./label.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class CuiLabelModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiLabelModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CuiLabelModule, [typeof i1.CuiLabelComponent], [typeof i2.CommonModule], [typeof i1.CuiLabelComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CuiLabelModule>;
|
|
8
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './notification.component';
|
|
2
|
-
export * from './notification.module';
|
|
3
|
-
export * from './notification.options';
|
|
1
|
+
export * from './notification.component';
|
|
2
|
+
export * from './notification.module';
|
|
3
|
+
export * from './notification.options';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import type { CuiNotificationIconOptions, CuiNotificationOptions } from './notification.options';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CuiNotificationComponent implements CuiNotificationOptions {
|
|
5
|
-
private readonly cuiNotificationOptions;
|
|
6
|
-
protected readonly ICON_OPTIONS: CuiNotificationIconOptions;
|
|
7
|
-
status: import("@cuby-ui/core").CuiStatus;
|
|
8
|
-
isCloseable: boolean;
|
|
9
|
-
readonly closed: EventEmitter<void>;
|
|
10
|
-
protected onClose(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiNotificationComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiNotificationComponent, "cui-notification", never, { "status": "status"; "isCloseable": "isCloseable"; }, { "closed": "closed"; }, never, ["*"], false, never>;
|
|
13
|
-
}
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import type { CuiNotificationIconOptions, CuiNotificationOptions } from './notification.options';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CuiNotificationComponent implements CuiNotificationOptions {
|
|
5
|
+
private readonly cuiNotificationOptions;
|
|
6
|
+
protected readonly ICON_OPTIONS: CuiNotificationIconOptions;
|
|
7
|
+
status: import("@cuby-ui/core").CuiStatus;
|
|
8
|
+
isCloseable: boolean;
|
|
9
|
+
readonly closed: EventEmitter<void>;
|
|
10
|
+
protected onClose(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiNotificationComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CuiNotificationComponent, "cui-notification", never, { "status": "status"; "isCloseable": "isCloseable"; }, { "closed": "closed"; }, never, ["*"], false, never>;
|
|
13
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./notification.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@cuby-ui/cdk";
|
|
5
|
-
import * as i4 from "../svg/svg.module";
|
|
6
|
-
export declare class CuiNotificationModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiNotificationModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CuiNotificationModule, [typeof i1.CuiNotificationComponent], [typeof i2.CommonModule, typeof i3.CuiLetDirective, typeof i4.CuiSvgModule], [typeof i1.CuiNotificationComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CuiNotificationModule>;
|
|
10
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./notification.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@cuby-ui/cdk";
|
|
5
|
+
import * as i4 from "../svg/svg.module";
|
|
6
|
+
export declare class CuiNotificationModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiNotificationModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CuiNotificationModule, [typeof i1.CuiNotificationComponent], [typeof i2.CommonModule, typeof i3.CuiLetDirective, typeof i4.CuiSvgModule], [typeof i1.CuiNotificationComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CuiNotificationModule>;
|
|
10
|
+
}
|