@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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import type { CuiSizeMd, CuiSizeSm } from '../../types';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare const CUI_TEXT_FIELD_SIZE: InjectionToken<CuiTextFieldSizeDirective>;
|
|
5
|
-
export declare class CuiTextFieldSizeDirective {
|
|
6
|
-
size: CuiSizeSm | CuiSizeMd;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CuiTextFieldSizeDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CuiTextFieldSizeDirective, "[cuiTextFieldSize]", never, { "size": "cuiTextFieldSize"; }, {}, never, never, false, never>;
|
|
9
|
-
}
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import type { CuiSizeMd, CuiSizeSm } from '../../types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare const CUI_TEXT_FIELD_SIZE: InjectionToken<CuiTextFieldSizeDirective>;
|
|
5
|
+
export declare class CuiTextFieldSizeDirective {
|
|
6
|
+
size: CuiSizeSm | CuiSizeMd;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiTextFieldSizeDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CuiTextFieldSizeDirective, "[cuiTextFieldSize]", never, { "size": "cuiTextFieldSize"; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import type { CuiIcon } from '@cuby-ui/icons';
|
|
2
|
-
import type { CuiTextFieldSizeDirective } from './text-field-size.directive';
|
|
3
|
-
import type { CuiTextFieldIdDirective } from './text-field-id.directive';
|
|
4
|
-
import type { CuiTextFieldIconLeftDirective } from './text-field-icon-left.directive';
|
|
5
|
-
import type { CuiTextFieldPlaceholderDirective } from './text-field-placeholder.directive';
|
|
6
|
-
import type { CuiTextFieldIsErrorDirective } from './text-field-is-error.directive';
|
|
7
|
-
import type { CuiSizeMd, CuiSizeSm } from '../../types';
|
|
8
|
-
export declare class CuiTextFieldController {
|
|
9
|
-
private readonly iconLeftDirective;
|
|
10
|
-
private readonly idDirective;
|
|
11
|
-
private readonly isErrorDirective;
|
|
12
|
-
private readonly placeholderDirective;
|
|
13
|
-
private readonly sizeDirective;
|
|
14
|
-
constructor(iconLeftDirective: CuiTextFieldIconLeftDirective, idDirective: CuiTextFieldIdDirective, isErrorDirective: CuiTextFieldIsErrorDirective, placeholderDirective: CuiTextFieldPlaceholderDirective, sizeDirective: CuiTextFieldSizeDirective);
|
|
15
|
-
get iconLeft(): CuiIcon | string | undefined;
|
|
16
|
-
get id(): string | undefined;
|
|
17
|
-
get isError(): boolean;
|
|
18
|
-
get placeholder(): string | undefined;
|
|
19
|
-
get size(): CuiSizeSm | CuiSizeMd;
|
|
20
|
-
}
|
|
1
|
+
import type { CuiIcon } from '@cuby-ui/icons';
|
|
2
|
+
import type { CuiTextFieldSizeDirective } from './text-field-size.directive';
|
|
3
|
+
import type { CuiTextFieldIdDirective } from './text-field-id.directive';
|
|
4
|
+
import type { CuiTextFieldIconLeftDirective } from './text-field-icon-left.directive';
|
|
5
|
+
import type { CuiTextFieldPlaceholderDirective } from './text-field-placeholder.directive';
|
|
6
|
+
import type { CuiTextFieldIsErrorDirective } from './text-field-is-error.directive';
|
|
7
|
+
import type { CuiSizeMd, CuiSizeSm } from '../../types';
|
|
8
|
+
export declare class CuiTextFieldController {
|
|
9
|
+
private readonly iconLeftDirective;
|
|
10
|
+
private readonly idDirective;
|
|
11
|
+
private readonly isErrorDirective;
|
|
12
|
+
private readonly placeholderDirective;
|
|
13
|
+
private readonly sizeDirective;
|
|
14
|
+
constructor(iconLeftDirective: CuiTextFieldIconLeftDirective, idDirective: CuiTextFieldIdDirective, isErrorDirective: CuiTextFieldIsErrorDirective, placeholderDirective: CuiTextFieldPlaceholderDirective, sizeDirective: CuiTextFieldSizeDirective);
|
|
15
|
+
get iconLeft(): CuiIcon | string | undefined;
|
|
16
|
+
get id(): string | undefined;
|
|
17
|
+
get isError(): boolean;
|
|
18
|
+
get placeholder(): string | undefined;
|
|
19
|
+
get size(): CuiSizeSm | CuiSizeMd;
|
|
20
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "../../button/button.component";
|
|
5
|
-
export class CuiAccordionItemComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.isOpen = true;
|
|
8
|
-
this.isOpenChange = new EventEmitter();
|
|
9
|
-
}
|
|
10
|
-
get buttonIcon() {
|
|
11
|
-
return this.isOpen ? 'cuiIconChevronDown' : 'cuiIconChevronRight';
|
|
12
|
-
}
|
|
13
|
-
onRowToggle() {
|
|
14
|
-
this.isOpen = !this.isOpen;
|
|
15
|
-
this.isOpenChange.emit(this.isOpen);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
CuiAccordionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
-
CuiAccordionItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CuiAccordionItemComponent, selector: "cui-accordion-item", inputs: { isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngImport: i0, template: "<header class=\"c-header\">\
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionItemComponent, decorators: [{
|
|
21
|
-
type: Component,
|
|
22
|
-
args: [{ selector: 'cui-accordion-item', changeDetection: ChangeDetectionStrategy.OnPush, template: "<header class=\"c-header\">\
|
|
23
|
-
}], propDecorators: { isOpen: [{
|
|
24
|
-
type: Input
|
|
25
|
-
}], isOpenChange: [{
|
|
26
|
-
type: Output
|
|
27
|
-
}] } });
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "../../button/button.component";
|
|
5
|
+
export class CuiAccordionItemComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.isOpen = true;
|
|
8
|
+
this.isOpenChange = new EventEmitter();
|
|
9
|
+
}
|
|
10
|
+
get buttonIcon() {
|
|
11
|
+
return this.isOpen ? 'cuiIconChevronDown' : 'cuiIconChevronRight';
|
|
12
|
+
}
|
|
13
|
+
onRowToggle() {
|
|
14
|
+
this.isOpen = !this.isOpen;
|
|
15
|
+
this.isOpenChange.emit(this.isOpen);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
CuiAccordionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
+
CuiAccordionItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CuiAccordionItemComponent, selector: "cui-accordion-item", inputs: { isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngImport: i0, template: "<header class=\"c-header\">\n <button\n cuiButton\n appearance=\"ghost\"\n size=\"xxs\"\n [icon]=\"buttonIcon\"\n (click)=\"onRowToggle()\"\n ></button>\n <div class=\"c-header__wrapper\">\n <ng-content></ng-content>\n </div>\n</header>\n<div *ngIf=\"isOpen\">\n <ng-content select=\"[cuiAccordionItemContent]\"></ng-content>\n</div>\n", styles: [":host{padding:16px;display:flex;flex-direction:column;gap:8px;background:var(--cui-base-10);border-radius:8px}.c-header{font-weight:400;font-size:12px;line-height:14px;display:flex;align-items:center;gap:8px;color:var(--cui-base-900);font-family:var(--cui-main-font);text-transform:uppercase}.c-header__wrapper{width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.CuiButtonComponent, selector: "button[cuiButton], a[cuiButton]", inputs: ["shape", "disabled", "isLoaderShown", "icon", "iconRight", "appearance", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionItemComponent, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{ selector: 'cui-accordion-item', changeDetection: ChangeDetectionStrategy.OnPush, template: "<header class=\"c-header\">\n <button\n cuiButton\n appearance=\"ghost\"\n size=\"xxs\"\n [icon]=\"buttonIcon\"\n (click)=\"onRowToggle()\"\n ></button>\n <div class=\"c-header__wrapper\">\n <ng-content></ng-content>\n </div>\n</header>\n<div *ngIf=\"isOpen\">\n <ng-content select=\"[cuiAccordionItemContent]\"></ng-content>\n</div>\n", styles: [":host{padding:16px;display:flex;flex-direction:column;gap:8px;background:var(--cui-base-10);border-radius:8px}.c-header{font-weight:400;font-size:12px;line-height:14px;display:flex;align-items:center;gap:8px;color:var(--cui-base-900);font-family:var(--cui-main-font);text-transform:uppercase}.c-header__wrapper{width:100%}\n"] }]
|
|
23
|
+
}], propDecorators: { isOpen: [{
|
|
24
|
+
type: Input
|
|
25
|
+
}], isOpenChange: [{
|
|
26
|
+
type: Output
|
|
27
|
+
}] } });
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLWl0ZW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sYXNzPVwiYy1oZWFkZXJcIj5cbiAgPGJ1dHRvblxuICAgIGN1aUJ1dHRvblxuICAgIGFwcGVhcmFuY2U9XCJnaG9zdFwiXG4gICAgc2l6ZT1cInh4c1wiXG4gICAgW2ljb25dPVwiYnV0dG9uSWNvblwiXG4gICAgKGNsaWNrKT1cIm9uUm93VG9nZ2xlKClcIlxuICA+PC9idXR0b24+XG4gIDxkaXYgY2xhc3M9XCJjLWhlYWRlcl9fd3JhcHBlclwiPlxuICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiAgPC9kaXY+XG48L2hlYWRlcj5cbjxkaXYgKm5nSWY9XCJpc09wZW5cIj5cbiAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiW2N1aUFjY29yZGlvbkl0ZW1Db250ZW50XVwiPjwvbmctY29udGVudD5cbjwvZGl2PlxuIl19
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class CuiAccordionComponent {
|
|
4
|
-
}
|
|
5
|
-
CuiAccordionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
-
CuiAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CuiAccordionComponent, selector: "cui-accordion", ngImport: i0, template: "<ng-content select=\"cui-accordion-item\"></ng-content>\
|
|
7
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionComponent, decorators: [{
|
|
8
|
-
type: Component,
|
|
9
|
-
args: [{ selector: 'cui-accordion', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content select=\"cui-accordion-item\"></ng-content>\
|
|
10
|
-
}] });
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class CuiAccordionComponent {
|
|
4
|
+
}
|
|
5
|
+
CuiAccordionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
+
CuiAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CuiAccordionComponent, selector: "cui-accordion", ngImport: i0, template: "<ng-content select=\"cui-accordion-item\"></ng-content>\n", styles: [":host{display:flex;flex-direction:column;gap:16px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionComponent, decorators: [{
|
|
8
|
+
type: Component,
|
|
9
|
+
args: [{ selector: 'cui-accordion', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content select=\"cui-accordion-item\"></ng-content>\n", styles: [":host{display:flex;flex-direction:column;gap:16px}\n"] }]
|
|
10
|
+
}] });
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvY29tcG9uZW50cy9hY2NvcmRpb24vYWNjb3JkaW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvY29tcG9uZW50cy9hY2NvcmRpb24vYWNjb3JkaW9uLnRlbXBsYXRlLmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFRbkUsTUFBTSxPQUFPLHFCQUFxQjs7bUhBQXJCLHFCQUFxQjt1R0FBckIscUJBQXFCLHFEQ1JsQywyREFDQTs0RkRPYSxxQkFBcUI7a0JBTmpDLFNBQVM7K0JBQ0UsZUFBZSxtQkFHUix1QkFBdUIsQ0FBQyxNQUFNIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3ksIENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdjdWktYWNjb3JkaW9uJyxcbiAgdGVtcGxhdGVVcmw6ICcuL2FjY29yZGlvbi50ZW1wbGF0ZS5odG1sJyxcbiAgc3R5bGVVcmxzOiBbJy4vYWNjb3JkaW9uLnN0eWxlLnNjc3MnXSxcbiAgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2hcbn0pXG5leHBvcnQgY2xhc3MgQ3VpQWNjb3JkaW9uQ29tcG9uZW50IHtcbn1cbiIsIjxuZy1jb250ZW50IHNlbGVjdD1cImN1aS1hY2NvcmRpb24taXRlbVwiPjwvbmctY29udGVudD5cbiJdfQ==
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { CuiAccordionComponent } from './accordion.component';
|
|
4
|
-
import { CuiAccordionItemComponent } from './accordion-item/accordion-item.component';
|
|
5
|
-
import { CuiSvgModule } from '../svg';
|
|
6
|
-
import { CuiButtonModule } from '../button';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export class CuiAccordionModule {
|
|
9
|
-
}
|
|
10
|
-
CuiAccordionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
-
CuiAccordionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionModule, declarations: [CuiAccordionComponent,
|
|
12
|
-
CuiAccordionItemComponent], imports: [CommonModule,
|
|
13
|
-
CuiSvgModule,
|
|
14
|
-
CuiButtonModule], exports: [CuiAccordionComponent,
|
|
15
|
-
CuiAccordionItemComponent] });
|
|
16
|
-
CuiAccordionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionModule, imports: [CommonModule,
|
|
17
|
-
CuiSvgModule,
|
|
18
|
-
CuiButtonModule] });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionModule, decorators: [{
|
|
20
|
-
type: NgModule,
|
|
21
|
-
args: [{
|
|
22
|
-
imports: [
|
|
23
|
-
CommonModule,
|
|
24
|
-
CuiSvgModule,
|
|
25
|
-
CuiButtonModule,
|
|
26
|
-
],
|
|
27
|
-
declarations: [
|
|
28
|
-
CuiAccordionComponent,
|
|
29
|
-
CuiAccordionItemComponent
|
|
30
|
-
],
|
|
31
|
-
exports: [
|
|
32
|
-
CuiAccordionComponent,
|
|
33
|
-
CuiAccordionItemComponent
|
|
34
|
-
]
|
|
35
|
-
}]
|
|
36
|
-
}] });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { CuiAccordionComponent } from './accordion.component';
|
|
4
|
+
import { CuiAccordionItemComponent } from './accordion-item/accordion-item.component';
|
|
5
|
+
import { CuiSvgModule } from '../svg';
|
|
6
|
+
import { CuiButtonModule } from '../button';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class CuiAccordionModule {
|
|
9
|
+
}
|
|
10
|
+
CuiAccordionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
+
CuiAccordionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionModule, declarations: [CuiAccordionComponent,
|
|
12
|
+
CuiAccordionItemComponent], imports: [CommonModule,
|
|
13
|
+
CuiSvgModule,
|
|
14
|
+
CuiButtonModule], exports: [CuiAccordionComponent,
|
|
15
|
+
CuiAccordionItemComponent] });
|
|
16
|
+
CuiAccordionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionModule, imports: [CommonModule,
|
|
17
|
+
CuiSvgModule,
|
|
18
|
+
CuiButtonModule] });
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAccordionModule, decorators: [{
|
|
20
|
+
type: NgModule,
|
|
21
|
+
args: [{
|
|
22
|
+
imports: [
|
|
23
|
+
CommonModule,
|
|
24
|
+
CuiSvgModule,
|
|
25
|
+
CuiButtonModule,
|
|
26
|
+
],
|
|
27
|
+
declarations: [
|
|
28
|
+
CuiAccordionComponent,
|
|
29
|
+
CuiAccordionItemComponent
|
|
30
|
+
],
|
|
31
|
+
exports: [
|
|
32
|
+
CuiAccordionComponent,
|
|
33
|
+
CuiAccordionItemComponent
|
|
34
|
+
]
|
|
35
|
+
}]
|
|
36
|
+
}] });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvY29tcG9uZW50cy9hY2Nvcm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VsYXIvY29tbW9uJztcblxuaW1wb3J0IHsgQ3VpQWNjb3JkaW9uQ29tcG9uZW50IH0gZnJvbSAnLi9hY2NvcmRpb24uY29tcG9uZW50JztcbmltcG9ydCB7IEN1aUFjY29yZGlvbkl0ZW1Db21wb25lbnQgfSBmcm9tICcuL2FjY29yZGlvbi1pdGVtL2FjY29yZGlvbi1pdGVtLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBDdWlTdmdNb2R1bGUgfSBmcm9tICcuLi9zdmcnO1xuaW1wb3J0IHsgQ3VpQnV0dG9uTW9kdWxlIH0gZnJvbSAnLi4vYnV0dG9uJztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBDdWlTdmdNb2R1bGUsXG4gICAgQ3VpQnV0dG9uTW9kdWxlLFxuICBdLFxuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBDdWlBY2NvcmRpb25Db21wb25lbnQsXG4gICAgQ3VpQWNjb3JkaW9uSXRlbUNvbXBvbmVudFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgQ3VpQWNjb3JkaW9uQ29tcG9uZW50LFxuICAgIEN1aUFjY29yZGlvbkl0ZW1Db21wb25lbnRcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBDdWlBY2NvcmRpb25Nb2R1bGUge1xufVxuIl19
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './accordion.component';
|
|
2
|
-
export * from './accordion.module';
|
|
3
|
-
export * from './accordion-item/accordion-item.component';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './accordion.component';
|
|
2
|
+
export * from './accordion.module';
|
|
3
|
+
export * from './accordion-item/accordion-item.component';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2NvbXBvbmVudHMvYWNjb3JkaW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLDJDQUEyQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hY2NvcmRpb24uY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vYWNjb3JkaW9uLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2FjY29yZGlvbi1pdGVtL2FjY29yZGlvbi1pdGVtLmNvbXBvbmVudCc7XG5cbiJdfQ==
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, inject, HostBinding } from '@angular/core';
|
|
2
|
-
import { CUI_ALERT_CONTEXT } from './alert.tokens';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
import * as i2 from "../notification/notification.component";
|
|
6
|
-
export class CuiAlertComponent {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.context = inject(CUI_ALERT_CONTEXT);
|
|
9
|
-
this.AUTO_CLOSE_DURATION_IN_MILLISECONDS = 3000;
|
|
10
|
-
}
|
|
11
|
-
get resizing() {
|
|
12
|
-
return this.context.resizing;
|
|
13
|
-
}
|
|
14
|
-
ngOnInit() {
|
|
15
|
-
this.initAutoClose();
|
|
16
|
-
}
|
|
17
|
-
onClosed() {
|
|
18
|
-
this.context.$implicit.complete();
|
|
19
|
-
}
|
|
20
|
-
initAutoClose() {
|
|
21
|
-
if (!this.context.needAutoClose) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
setTimeout(this.onClosed.bind(this), this.AUTO_CLOSE_DURATION_IN_MILLISECONDS);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
CuiAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
-
CuiAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CuiAlertComponent, selector: "cui-alert", host: { properties: { "attr.data-resizing": "this.resizing" } }, ngImport: i0, template: "<cui-notification\
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertComponent, decorators: [{
|
|
30
|
-
type: Component,
|
|
31
|
-
args: [{ selector: 'cui-alert', changeDetection: ChangeDetectionStrategy.OnPush, template: "<cui-notification\
|
|
32
|
-
}], propDecorators: { resizing: [{
|
|
33
|
-
type: HostBinding,
|
|
34
|
-
args: ['attr.data-resizing']
|
|
35
|
-
}] } });
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { ChangeDetectionStrategy, Component, inject, HostBinding } from '@angular/core';
|
|
2
|
+
import { CUI_ALERT_CONTEXT } from './alert.tokens';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "../notification/notification.component";
|
|
6
|
+
export class CuiAlertComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.context = inject(CUI_ALERT_CONTEXT);
|
|
9
|
+
this.AUTO_CLOSE_DURATION_IN_MILLISECONDS = 3000;
|
|
10
|
+
}
|
|
11
|
+
get resizing() {
|
|
12
|
+
return this.context.resizing;
|
|
13
|
+
}
|
|
14
|
+
ngOnInit() {
|
|
15
|
+
this.initAutoClose();
|
|
16
|
+
}
|
|
17
|
+
onClosed() {
|
|
18
|
+
this.context.$implicit.complete();
|
|
19
|
+
}
|
|
20
|
+
initAutoClose() {
|
|
21
|
+
if (!this.context.needAutoClose) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
setTimeout(this.onClosed.bind(this), this.AUTO_CLOSE_DURATION_IN_MILLISECONDS);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
CuiAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
CuiAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CuiAlertComponent, selector: "cui-alert", host: { properties: { "attr.data-resizing": "this.resizing" } }, ngImport: i0, template: "<cui-notification\n [status]=\"context.status\"\n [isCloseable]=\"context.isCloseable\"\n (closed)=\"onClosed()\"\n>\n <h2\n *ngIf=\"context.label\"\n class=\"c-heading\"\n >\n {{ context.label }}\n </h2>\n {{ context.content }}\n</cui-notification>\n", styles: [":host{font-weight:400;font-size:14px;line-height:20px;max-width:470px}:host[data-resizing=hug]{width:-moz-fit-content;width:fit-content}:host[data-resizing=fixed]{width:470px}.c-heading{font-weight:500;font-size:14px;line-height:20px;margin:0 0 8px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.CuiNotificationComponent, selector: "cui-notification", inputs: ["status", "isCloseable"], outputs: ["closed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: 'cui-alert', changeDetection: ChangeDetectionStrategy.OnPush, template: "<cui-notification\n [status]=\"context.status\"\n [isCloseable]=\"context.isCloseable\"\n (closed)=\"onClosed()\"\n>\n <h2\n *ngIf=\"context.label\"\n class=\"c-heading\"\n >\n {{ context.label }}\n </h2>\n {{ context.content }}\n</cui-notification>\n", styles: [":host{font-weight:400;font-size:14px;line-height:20px;max-width:470px}:host[data-resizing=hug]{width:-moz-fit-content;width:fit-content}:host[data-resizing=fixed]{width:470px}.c-heading{font-weight:500;font-size:14px;line-height:20px;margin:0 0 8px}\n"] }]
|
|
32
|
+
}], propDecorators: { resizing: [{
|
|
33
|
+
type: HostBinding,
|
|
34
|
+
args: ['attr.data-resizing']
|
|
35
|
+
}] } });
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9jb21wb25lbnRzL2FsZXJ0L2FsZXJ0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvY29tcG9uZW50cy9hbGVydC9hbGVydC50ZW1wbGF0ZS5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLFdBQVcsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV4RixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7OztBQVNuRCxNQUFNLE9BQU8saUJBQWlCO0lBTjlCO1FBT3FCLFlBQU8sR0FBRyxNQUFNLENBQUMsaUJBQWlCLENBQUMsQ0FBQztRQUVwQyx3Q0FBbUMsR0FBRyxJQUFJLENBQUM7S0FzQi9EO0lBcEJDLElBQ2MsUUFBUTtRQUNwQixPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsUUFBUSxDQUFDO0lBQy9CLENBQUM7SUFFTSxRQUFRO1FBQ2IsSUFBSSxDQUFDLGFBQWEsRUFBRSxDQUFDO0lBQ3ZCLENBQUM7SUFFUyxRQUFRO1FBQ2hCLElBQUksQ0FBQyxPQUFPLENBQUMsU0FBUyxDQUFDLFFB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t7IGNvbnRleHQubGFiZWwgfX1cbiAgPC9oMj5cbiAge3sgY29udGV4dC5jb250ZW50IH19XG48L2N1aS1ub3RpZmljYXRpb24+XG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvY29tcG9uZW50cy9hbGVydC9hbGVydC5pbnRlcmZhY2VzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEN1aUFsZXJ0UG9zaXRpb24sIEN1aUFsZXJ0UmVzaXppbmcgfSBmcm9tICcuL2FsZXJ0LnR5cGVzJztcbmltcG9ydCB0eXBlIHsgQ3VpTm90aWZpY2F0aW9uT3B0aW9ucyB9IGZyb20gJy4uL25vdGlmaWNhdGlvbic7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQ3VpQWxlcnRPcHRpb25zIGV4dGVuZHMgQ3VpTm90aWZpY2F0aW9uT3B0aW9ucyB7XG4gIHJlYWRvbmx5IGxhYmVsOiBzdHJpbmc7XG4gIHJlYWRvbmx5IG5lZWRBdXRvQ2xvc2U6IGJvb2xlYW47XG4gIHJlYWRvbmx5IGlzQ2xvc2VhYmxlOiBib29sZWFuO1xuICByZWFkb25seSBwb3NpdGlvbjogQ3VpQWxlcnRQb3NpdGlvbjtcbiAgcmVhZG9ubHkgcmVzaXppbmc6IEN1aUFsZXJ0UmVzaXppbmc7XG59XG4iXX0=
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { CuiFilterPipe, CuiLetDirective } from '@cuby-ui/cdk';
|
|
4
|
-
import { CuiAlertComponent } from './alert.component';
|
|
5
|
-
import { CuiAlertsComponent } from './alerts.component';
|
|
6
|
-
import { CuiNotificationModule } from '../notification';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export class CuiAlertModule {
|
|
9
|
-
}
|
|
10
|
-
CuiAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
-
CuiAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertModule, declarations: [CuiAlertComponent,
|
|
12
|
-
CuiAlertsComponent], imports: [CommonModule,
|
|
13
|
-
CuiFilterPipe,
|
|
14
|
-
CuiNotificationModule,
|
|
15
|
-
CuiLetDirective], exports: [CuiAlertComponent,
|
|
16
|
-
CuiAlertComponent,
|
|
17
|
-
CuiAlertsComponent] });
|
|
18
|
-
CuiAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertModule, imports: [CommonModule,
|
|
19
|
-
CuiNotificationModule] });
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertModule, decorators: [{
|
|
21
|
-
type: NgModule,
|
|
22
|
-
args: [{
|
|
23
|
-
imports: [
|
|
24
|
-
CommonModule,
|
|
25
|
-
CuiFilterPipe,
|
|
26
|
-
CuiNotificationModule,
|
|
27
|
-
CuiLetDirective
|
|
28
|
-
],
|
|
29
|
-
declarations: [
|
|
30
|
-
CuiAlertComponent,
|
|
31
|
-
CuiAlertsComponent
|
|
32
|
-
],
|
|
33
|
-
exports: [
|
|
34
|
-
CuiAlertComponent,
|
|
35
|
-
CuiAlertComponent,
|
|
36
|
-
CuiAlertsComponent
|
|
37
|
-
]
|
|
38
|
-
}]
|
|
39
|
-
}] });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { CuiFilterPipe, CuiLetDirective } from '@cuby-ui/cdk';
|
|
4
|
+
import { CuiAlertComponent } from './alert.component';
|
|
5
|
+
import { CuiAlertsComponent } from './alerts.component';
|
|
6
|
+
import { CuiNotificationModule } from '../notification';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class CuiAlertModule {
|
|
9
|
+
}
|
|
10
|
+
CuiAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
+
CuiAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertModule, declarations: [CuiAlertComponent,
|
|
12
|
+
CuiAlertsComponent], imports: [CommonModule,
|
|
13
|
+
CuiFilterPipe,
|
|
14
|
+
CuiNotificationModule,
|
|
15
|
+
CuiLetDirective], exports: [CuiAlertComponent,
|
|
16
|
+
CuiAlertComponent,
|
|
17
|
+
CuiAlertsComponent] });
|
|
18
|
+
CuiAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertModule, imports: [CommonModule,
|
|
19
|
+
CuiNotificationModule] });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertModule, decorators: [{
|
|
21
|
+
type: NgModule,
|
|
22
|
+
args: [{
|
|
23
|
+
imports: [
|
|
24
|
+
CommonModule,
|
|
25
|
+
CuiFilterPipe,
|
|
26
|
+
CuiNotificationModule,
|
|
27
|
+
CuiLetDirective
|
|
28
|
+
],
|
|
29
|
+
declarations: [
|
|
30
|
+
CuiAlertComponent,
|
|
31
|
+
CuiAlertsComponent
|
|
32
|
+
],
|
|
33
|
+
exports: [
|
|
34
|
+
CuiAlertComponent,
|
|
35
|
+
CuiAlertComponent,
|
|
36
|
+
CuiAlertsComponent
|
|
37
|
+
]
|
|
38
|
+
}]
|
|
39
|
+
}] });
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9jb21wb25lbnRzL2FsZXJ0L2FsZXJ0Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsYUFBYSxFQUFFLGVBQWUsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUU5RCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUN0RCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUN4RCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7QUFtQnhELE1BQU0sT0FBTyxjQUFjOzs0R0FBZCxjQUFjOzZHQUFkLGNBQWMsaUJBVHZCLGlCQUFpQjtRQUNqQixrQkFBa0IsYUFQbEIsWUFBWTtRQUNaLGFBQWE7UUFDYixxQkFBcUI7UUFDckIsZUFBZSxhQU9mLGlCQUFpQjtRQUNqQixpQkFBaUI7UUFDakIsa0JBQWtCOzZHQUdULGNBQWMsWUFmdkIsWUFBWTtRQUVaLHFCQU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WxlcnRDb21wb25lbnQsXG4gICAgQ3VpQWxlcnRDb21wb25lbnQsXG4gICAgQ3VpQWxlcnRzQ29tcG9uZW50XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgQ3VpQWxlcnRNb2R1bGUge1xufVxuIl19
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { inject, Injectable } from '@angular/core';
|
|
2
|
-
import { CuiPopoverService } from '@cuby-ui/cdk';
|
|
3
|
-
import { CUI_ALERT_OPTIONS, CUI_ALERTS } from './alert.tokens';
|
|
4
|
-
import { CuiAlertComponent } from './alert.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class CuiAlertService extends CuiPopoverService {
|
|
7
|
-
}
|
|
8
|
-
CuiAlertService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9
|
-
CuiAlertService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertService, providedIn: 'root', useFactory: () => new CuiAlertService(CUI_ALERTS, CuiAlertComponent, inject(CUI_ALERT_OPTIONS)) });
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertService, decorators: [{
|
|
11
|
-
type: Injectable,
|
|
12
|
-
args: [{
|
|
13
|
-
providedIn: 'root',
|
|
14
|
-
useFactory: () => new CuiAlertService(CUI_ALERTS, CuiAlertComponent, inject(CUI_ALERT_OPTIONS))
|
|
15
|
-
}]
|
|
16
|
-
}] });
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { inject, Injectable } from '@angular/core';
|
|
2
|
+
import { CuiPopoverService } from '@cuby-ui/cdk';
|
|
3
|
+
import { CUI_ALERT_OPTIONS, CUI_ALERTS } from './alert.tokens';
|
|
4
|
+
import { CuiAlertComponent } from './alert.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class CuiAlertService extends CuiPopoverService {
|
|
7
|
+
}
|
|
8
|
+
CuiAlertService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9
|
+
CuiAlertService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertService, providedIn: 'root', useFactory: () => new CuiAlertService(CUI_ALERTS, CuiAlertComponent, inject(CUI_ALERT_OPTIONS)) });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuiAlertService, decorators: [{
|
|
11
|
+
type: Injectable,
|
|
12
|
+
args: [{
|
|
13
|
+
providedIn: 'root',
|
|
14
|
+
useFactory: () => new CuiAlertService(CUI_ALERTS, CuiAlertComponent, inject(CUI_ALERT_OPTIONS))
|
|
15
|
+
}]
|
|
16
|
+
}] });
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvcmUvY29tcG9uZW50cy9hbGVydC9hbGVydC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUVqRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDL0QsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0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GV4dGVuZHMgQ3VpUG9wb3ZlclNlcnZpY2U8Q3VpQWxlcnRPcHRpb25zPiB7XG59XG4iXX0=
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { inject, InjectionToken } from '@angular/core';
|
|
2
|
-
import { cuiCreateTokenFromFactory } from '@cuby-ui/cdk';
|
|
3
|
-
import { cuiCreateToken } from '@cuby-ui/cdk';
|
|
4
|
-
import { BehaviorSubject } from 'rxjs';
|
|
5
|
-
import { CUI_NOTIFICATION_OPTIONS } from '../notification/notification.options';
|
|
6
|
-
export const CUI_ALERTS = cuiCreateToken(new BehaviorSubject([]));
|
|
7
|
-
export const CUI_ALERT_DEFAULT_OPTIONS = {
|
|
8
|
-
label: '',
|
|
9
|
-
needAutoClose: true,
|
|
10
|
-
isCloseable: true,
|
|
11
|
-
position: 'right',
|
|
12
|
-
resizing: 'fixed'
|
|
13
|
-
};
|
|
14
|
-
export const CUI_ALERT_OPTIONS = cuiCreateTokenFromFactory(() => ({
|
|
15
|
-
...CUI_ALERT_DEFAULT_OPTIONS,
|
|
16
|
-
...inject(CUI_NOTIFICATION_OPTIONS)
|
|
17
|
-
}));
|
|
18
|
-
export const CUI_ALERT_CONTEXT = new InjectionToken('');
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { inject, InjectionToken } from '@angular/core';
|
|
2
|
+
import { cuiCreateTokenFromFactory } from '@cuby-ui/cdk';
|
|
3
|
+
import { cuiCreateToken } from '@cuby-ui/cdk';
|
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
|
5
|
+
import { CUI_NOTIFICATION_OPTIONS } from '../notification/notification.options';
|
|
6
|
+
export const CUI_ALERTS = cuiCreateToken(new BehaviorSubject([]));
|
|
7
|
+
export const CUI_ALERT_DEFAULT_OPTIONS = {
|
|
8
|
+
label: '',
|
|
9
|
+
needAutoClose: true,
|
|
10
|
+
isCloseable: true,
|
|
11
|
+
position: 'right',
|
|
12
|
+
resizing: 'fixed'
|
|
13
|
+
};
|
|
14
|
+
export const CUI_ALERT_OPTIONS = cuiCreateTokenFromFactory(() => ({
|
|
15
|
+
...CUI_ALERT_DEFAULT_OPTIONS,
|
|
16
|
+
...inject(CUI_NOTIFICATION_OPTIONS)
|
|
17
|
+
}));
|
|
18
|
+
export const CUI_ALERT_CONTEXT = new InjectionToken('');
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQudG9rZW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9jb21wb25lbnRzL2FsZXJ0L2FsZXJ0LnRva2Vucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN2RCxPQUFPLEVBQUUseUJBQXlCLEVBQWMsTUFBTSxjQUFjLENBQUM7QUFDckUsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUM5QyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBR3ZDLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBRWhGLE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRyxjQUFjLENBQ3RDLElBQUksZUFBZSxDQUE2QyxFQUFFLENBQUMsQ0FDcEUsQ0FBQztBQUVGLE1BQU0sQ0FBQyxNQUFNLHlCQUF5QixHQUFvQztJQUN4RSxLQUFLLEVBQUUsRUFBRTtJQUNULGFBQWEsRUFBRSxJQUFJO0lBQ25CLFdBQVcsRUFBRSxJQUFJO0lBQ2pCLFFBQVEsRUFBRSxPQUFPO0lBQ2pCLFFBQVEsRUFBRSxPQUFPO0NBQ2xCLENBQUM7QUFFRixNQUFNLENBQUMsTUFBTSxpQkFBa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1ZSxcbiAgaXNDbG9zZWFibGU6IHRydWUsXG4gIHBvc2l0aW9uOiAncmlnaHQnLFxuICByZXNpemluZzogJ2ZpeGVkJ1xufTtcblxuZXhwb3J0IGNvbnN0IENVSV9BTEVSVF9PUFRJT05TID0gY3VpQ3JlYXRlVG9rZW5Gcm9tRmFjdG9yeShcbiAgKCkgPT4gKHtcbiAgICAuLi5DVUlfQUxFUlRfREVGQVVMVF9PUFRJT05TLFxuICAgIC4uLmluamVjdChDVUlfTk9USUZJQ0FUSU9OX09QVElPTlMpXG4gIH0pXG4pO1xuXG5leHBvcnQgY29uc3QgQ1VJX0FMRVJUX0NPTlRFWFQgPSBuZXcgSW5qZWN0aW9uVG9rZW48Q3VpUG9wb3ZlcjxDdWlBbGVydE9wdGlvbnM+PignJyk7XG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQudHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2NvbXBvbmVudHMvYWxlcnQvYWxlcnQudHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgQ3VpUG9zaXRpb25DZW50ZXIsIEN1aVBvc2l0aW9uUmlnaHQsIEN1aVJlc2l6aW5nRml4ZWQsIEN1aVJlc2l6aW5nSHVnIH0gZnJvbSAnLi4vLi4vdHlwZXMnO1xuXG5leHBvcnQgdHlwZSBDdWlBbGVydFBvc2l0aW9uID0gQ3VpUG9zaXRpb25DZW50ZXIgfCBDdWlQb3NpdGlvblJpZ2h0O1xuXG5leHBvcnQgdHlwZSBDdWlBbGVydFJlc2l6aW5nID0gQ3VpUmVzaXppbmdIdWcgfCBDdWlSZXNpemluZ0ZpeGVkO1xuIl19
|