@kms-ngx-ui/presentational 20.2.2 → 20.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/kms-ngx-ui-presentational.mjs +18 -1
- package/fesm2022/kms-ngx-ui-presentational.mjs.map +1 -1
- package/index.d.ts +11 -3
- package/package.json +1 -1
- package/src/assets/llms.txt +8 -0
- package/src/lib/ui/molecules/inline-alert/inline-alert.component.scss +81 -0
- package/src/styles/styles.scss +2 -0
package/index.d.ts
CHANGED
|
@@ -1542,6 +1542,14 @@ declare class IconComponent {
|
|
|
1542
1542
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconComponent, "kms-icon", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconClass": { "alias": "iconClass"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "dontUseSprite": { "alias": "dontUseSprite"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1543
1543
|
}
|
|
1544
1544
|
|
|
1545
|
+
type InlineAlertType = 'warning' | 'error' | 'info' | 'success';
|
|
1546
|
+
declare class InlineAlertComponent {
|
|
1547
|
+
type: _angular_core.InputSignal<InlineAlertType>;
|
|
1548
|
+
icon: _angular_core.InputSignal<string>;
|
|
1549
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InlineAlertComponent, never>;
|
|
1550
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InlineAlertComponent, "kms-inline-alert", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1545
1553
|
type DateRangeValue = {
|
|
1546
1554
|
start: Date | null;
|
|
1547
1555
|
end: Date | null;
|
|
@@ -1591,7 +1599,7 @@ declare class DateInputComponent implements ControlValueAccessor {
|
|
|
1591
1599
|
|
|
1592
1600
|
declare class KmsUiPresentationalModule {
|
|
1593
1601
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KmsUiPresentationalModule, never>;
|
|
1594
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<KmsUiPresentationalModule, [typeof BackToTopComponent, typeof CheckboxComponent, typeof ColorInputComponent, typeof DropdownFromDataComponent, typeof EnumRadiogroupComponent, typeof FileInputComponent, typeof FlyoutComponent, typeof ConfirmationDialogComponent, typeof ImageSliderComponent, typeof KMSAccordionItemComponent, typeof KmsUiPresentationalComponent, typeof LoaderComponent, typeof MapComponent, typeof RadioButtonComponent, typeof RadioGroupComponent, typeof SalutationDropdownComponent, typeof SalutationRadiogroupComponent, typeof SlideToggleComponent, typeof TimeInputComponent, typeof TooltipIconComponent, typeof YesNoRadiogroupComponent, typeof PasswordComponent, typeof SliderComponent, typeof CardComponent, typeof ButtonComponent, typeof NumericInputComponent, typeof GenericFormComponent, typeof FormSectionComponent, typeof FormFieldComponent, typeof FormActionsComponent, typeof DynamicFieldDirective, typeof TextInputComponent], [typeof i8.CommonModule, typeof i34.DragDropModule, typeof i35.MatCheckboxModule, typeof i36.MatButtonModule, typeof i37.MatRadioModule, typeof i38.MatDialogModule, typeof i39.FormsModule, typeof i39.ReactiveFormsModule, typeof i40.MatFormFieldModule, typeof i41.MatInputModule, typeof i42.MatMenuModule, typeof CustomPipesModule, typeof i44.GoogleMapsModule, typeof i45.MatExpansionModule, typeof i46.MatSelectModule, typeof i47.NgxMatSelectSearchModule, typeof i48.MatProgressSpinnerModule, typeof DirectivesModule, typeof i50.MatSlideToggleModule, typeof i51.TranslateModule, typeof i52.MatTooltipModule, typeof i53.NgxSliderModule, typeof i54.MatAutocompleteModule, typeof i55.MatListModule, typeof i56.MatCardModule, typeof i57.MatDatepickerModule, typeof i58.MatNativeDateModule, typeof IconComponent, typeof DateInputComponent], [typeof BackToTopComponent, typeof CheckboxComponent, typeof ColorInputComponent, typeof DropdownFromDataComponent, typeof EnumRadiogroupComponent, typeof RadioGroupComponent, typeof FileInputComponent, typeof FlyoutComponent, typeof ConfirmationDialogComponent, typeof IconComponent, typeof ImageSliderComponent, typeof KMSAccordionItemComponent, typeof KmsUiPresentationalComponent, typeof LoaderComponent, typeof MapComponent, typeof RadioButtonComponent, typeof SalutationDropdownComponent, typeof SalutationRadiogroupComponent, typeof SlideToggleComponent, typeof TimeInputComponent, typeof TooltipIconComponent, typeof YesNoRadiogroupComponent, typeof PasswordComponent, typeof SliderComponent, typeof CardComponent, typeof ButtonComponent, typeof NumericInputComponent, typeof GenericFormComponent, typeof FormSectionComponent, typeof FormActionsComponent, typeof DynamicFieldDirective, typeof DateInputComponent, typeof TextInputComponent]>;
|
|
1602
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<KmsUiPresentationalModule, [typeof BackToTopComponent, typeof CheckboxComponent, typeof ColorInputComponent, typeof DropdownFromDataComponent, typeof EnumRadiogroupComponent, typeof FileInputComponent, typeof FlyoutComponent, typeof ConfirmationDialogComponent, typeof ImageSliderComponent, typeof KMSAccordionItemComponent, typeof KmsUiPresentationalComponent, typeof LoaderComponent, typeof MapComponent, typeof RadioButtonComponent, typeof RadioGroupComponent, typeof SalutationDropdownComponent, typeof SalutationRadiogroupComponent, typeof SlideToggleComponent, typeof TimeInputComponent, typeof TooltipIconComponent, typeof YesNoRadiogroupComponent, typeof PasswordComponent, typeof SliderComponent, typeof CardComponent, typeof ButtonComponent, typeof NumericInputComponent, typeof GenericFormComponent, typeof FormSectionComponent, typeof FormFieldComponent, typeof FormActionsComponent, typeof DynamicFieldDirective, typeof TextInputComponent], [typeof i8.CommonModule, typeof i34.DragDropModule, typeof i35.MatCheckboxModule, typeof i36.MatButtonModule, typeof i37.MatRadioModule, typeof i38.MatDialogModule, typeof i39.FormsModule, typeof i39.ReactiveFormsModule, typeof i40.MatFormFieldModule, typeof i41.MatInputModule, typeof i42.MatMenuModule, typeof CustomPipesModule, typeof i44.GoogleMapsModule, typeof i45.MatExpansionModule, typeof i46.MatSelectModule, typeof i47.NgxMatSelectSearchModule, typeof i48.MatProgressSpinnerModule, typeof DirectivesModule, typeof i50.MatSlideToggleModule, typeof i51.TranslateModule, typeof i52.MatTooltipModule, typeof i53.NgxSliderModule, typeof i54.MatAutocompleteModule, typeof i55.MatListModule, typeof i56.MatCardModule, typeof i57.MatDatepickerModule, typeof i58.MatNativeDateModule, typeof IconComponent, typeof InlineAlertComponent, typeof DateInputComponent], [typeof BackToTopComponent, typeof CheckboxComponent, typeof ColorInputComponent, typeof DropdownFromDataComponent, typeof EnumRadiogroupComponent, typeof RadioGroupComponent, typeof FileInputComponent, typeof FlyoutComponent, typeof ConfirmationDialogComponent, typeof IconComponent, typeof ImageSliderComponent, typeof InlineAlertComponent, typeof KMSAccordionItemComponent, typeof KmsUiPresentationalComponent, typeof LoaderComponent, typeof MapComponent, typeof RadioButtonComponent, typeof SalutationDropdownComponent, typeof SalutationRadiogroupComponent, typeof SlideToggleComponent, typeof TimeInputComponent, typeof TooltipIconComponent, typeof YesNoRadiogroupComponent, typeof PasswordComponent, typeof SliderComponent, typeof CardComponent, typeof ButtonComponent, typeof NumericInputComponent, typeof GenericFormComponent, typeof FormSectionComponent, typeof FormActionsComponent, typeof DynamicFieldDirective, typeof DateInputComponent, typeof TextInputComponent]>;
|
|
1595
1603
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<KmsUiPresentationalModule>;
|
|
1596
1604
|
}
|
|
1597
1605
|
|
|
@@ -1829,5 +1837,5 @@ declare class FieldRegistryService {
|
|
|
1829
1837
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FieldRegistryService>;
|
|
1830
1838
|
}
|
|
1831
1839
|
|
|
1832
|
-
export { BackToTopComponent, Breakpoint, ButtonAppearance, ButtonComponent, ButtonResponseType, CardComponent, CheckboxComponent, Color, ColorInputComponent, ConfirmationDialogComponent, CustomPipesModule, DateInputComponent, DirectivesModule, DropdownFromDataComponent, DynamicFieldDirective, EnumRadiogroupComponent, FieldRegistryService, FieldType, FileInputComponent, FlyoutComponent, FormActionsComponent, FormFieldComponent, FormLayout, FormParentComponent, FormSectionComponent, GenericFormComponent, GenericFormModule, GenericFormService, GetMaxHeightDirective, IconComponent, IconSizePx, IconSizesArr, ImageSliderComponent, ImageSnippet$1 as ImageSnippet, ImageSourceType$1 as ImageSourceType, IntegerCurrency, KMSAccordionItemComponent, KeyValuePair, KmsUiPresentationalComponent, KmsUiPresentationalModule, KmsUiPresentationalService, LabelValuePair, LoaderComponent, MapComponent, Marker, MarkerLabel, MarkerOptions, NumericInputComponent, PasswordComponent, RadioButtonComponent, RadioButtonSize, RadioGroupComponent, SafeHtmlPipe, SafeResourceUrlPipe, SafeUrlPipe, SalutationDropdownComponent, SalutationEnum, SalutationRadiogroupComponent, SanitizeNullPipe, SimpleBreakpoint, SlideToggleComponent, SliderComponent, StylingTheme, SwipeDirective, TextInputComponent, TextValuePair, TextValuePairArray, TimeDirective, TimeInputComponent, TooltipDirective, TooltipIconComponent, TrimPipe, TypeofPipe, ViewportService, WindowDimensions, YesNoRadiogroupComponent, noSpecialCharsOnly, noWhitespaceOnly };
|
|
1833
|
-
export type { AsyncValidatorConfig, AutocompleteFieldOptions, CounterFieldOptions, DateFieldOptions, DateRangeFieldOptions, DateRangeValue, DialogConfig, DialogData, DisabledConfig, ErrorDisplayConfig, ErrorDisplayStrategy, FieldAffixConfig, FieldConfig, FieldTypeOptions, FormActionsConfig, FormSectionConfig, GenericFormConfig, GenericFormState, GridAlign, GridVerticalAlign, NullAble, NumberFieldOptions, PasswordFieldOptions, RadioGroupFieldOptions, RadiobuttonInterface, SelectFieldOptions, SelectTranslation, TextareaFieldOptions, TimeFieldOptions, ValidatorConfig };
|
|
1840
|
+
export { BackToTopComponent, Breakpoint, ButtonAppearance, ButtonComponent, ButtonResponseType, CardComponent, CheckboxComponent, Color, ColorInputComponent, ConfirmationDialogComponent, CustomPipesModule, DateInputComponent, DirectivesModule, DropdownFromDataComponent, DynamicFieldDirective, EnumRadiogroupComponent, FieldRegistryService, FieldType, FileInputComponent, FlyoutComponent, FormActionsComponent, FormFieldComponent, FormLayout, FormParentComponent, FormSectionComponent, GenericFormComponent, GenericFormModule, GenericFormService, GetMaxHeightDirective, IconComponent, IconSizePx, IconSizesArr, ImageSliderComponent, ImageSnippet$1 as ImageSnippet, ImageSourceType$1 as ImageSourceType, InlineAlertComponent, IntegerCurrency, KMSAccordionItemComponent, KeyValuePair, KmsUiPresentationalComponent, KmsUiPresentationalModule, KmsUiPresentationalService, LabelValuePair, LoaderComponent, MapComponent, Marker, MarkerLabel, MarkerOptions, NumericInputComponent, PasswordComponent, RadioButtonComponent, RadioButtonSize, RadioGroupComponent, SafeHtmlPipe, SafeResourceUrlPipe, SafeUrlPipe, SalutationDropdownComponent, SalutationEnum, SalutationRadiogroupComponent, SanitizeNullPipe, SimpleBreakpoint, SlideToggleComponent, SliderComponent, StylingTheme, SwipeDirective, TextInputComponent, TextValuePair, TextValuePairArray, TimeDirective, TimeInputComponent, TooltipDirective, TooltipIconComponent, TrimPipe, TypeofPipe, ViewportService, WindowDimensions, YesNoRadiogroupComponent, noSpecialCharsOnly, noWhitespaceOnly };
|
|
1841
|
+
export type { AsyncValidatorConfig, AutocompleteFieldOptions, CounterFieldOptions, DateFieldOptions, DateRangeFieldOptions, DateRangeValue, DialogConfig, DialogData, DisabledConfig, ErrorDisplayConfig, ErrorDisplayStrategy, FieldAffixConfig, FieldConfig, FieldTypeOptions, FormActionsConfig, FormSectionConfig, GenericFormConfig, GenericFormState, GridAlign, GridVerticalAlign, InlineAlertType, NullAble, NumberFieldOptions, PasswordFieldOptions, RadioGroupFieldOptions, RadiobuttonInterface, SelectFieldOptions, SelectTranslation, TextareaFieldOptions, TimeFieldOptions, ValidatorConfig };
|
package/package.json
CHANGED
package/src/assets/llms.txt
CHANGED
|
@@ -278,6 +278,14 @@ A confirmation dialog component
|
|
|
278
278
|
| `deleteImageEvent` | `EventEmitter<number>` |
|
|
279
279
|
| `orderChanged` | `EventEmitter<ImageSnippet[]>` |
|
|
280
280
|
|
|
281
|
+
### `<kms-inline-alert>` — InlineAlertComponent
|
|
282
|
+
|
|
283
|
+
**Inputs:**
|
|
284
|
+
| Name | Type | Default | Description |
|
|
285
|
+
|------|------|---------|-------------|
|
|
286
|
+
| `icon` | `string` | `'warning'` | |
|
|
287
|
+
| `type` | `InlineAlertType` | `'warning'` | |
|
|
288
|
+
|
|
281
289
|
### `<kms-accordion-item>` — KMSAccordionItemComponent
|
|
282
290
|
A generic dialog component
|
|
283
291
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
@mixin inline-alert-theme() {
|
|
2
|
+
.inline-alert {
|
|
3
|
+
--kms-inline-alert-warning-bg: color-mix(
|
|
4
|
+
in srgb,
|
|
5
|
+
var(--kms-alert) 20%,
|
|
6
|
+
transparent
|
|
7
|
+
);
|
|
8
|
+
--kms-inline-alert-warning-border: var(--kms-alert);
|
|
9
|
+
--kms-inline-alert-error-bg: color-mix(
|
|
10
|
+
in srgb,
|
|
11
|
+
var(--kms-error) 10%,
|
|
12
|
+
transparent
|
|
13
|
+
);
|
|
14
|
+
--kms-inline-alert-error-border: var(--kms-error);
|
|
15
|
+
--kms-inline-alert-info-bg: color-mix(
|
|
16
|
+
in srgb,
|
|
17
|
+
var(--kms-primary-100) 10%,
|
|
18
|
+
transparent
|
|
19
|
+
);
|
|
20
|
+
--kms-inline-alert-info-border: var(--kms-primary-100);
|
|
21
|
+
--kms-inline-alert-success-bg: color-mix(
|
|
22
|
+
in srgb,
|
|
23
|
+
var(--kms-success) 10%,
|
|
24
|
+
transparent
|
|
25
|
+
);
|
|
26
|
+
--kms-inline-alert-success-border: var(--kms-success);
|
|
27
|
+
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: $base-spacing;
|
|
31
|
+
padding: $base-spacing $base-spacing * 2;
|
|
32
|
+
border-left: 3px solid;
|
|
33
|
+
border-radius: var(--kms-border-radius);
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
color: var(--kms-tertiary-100);
|
|
36
|
+
|
|
37
|
+
&--warning {
|
|
38
|
+
background-color: var(--kms-inline-alert-warning-bg);
|
|
39
|
+
border-left-color: var(--kms-inline-alert-warning-border);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&--error {
|
|
43
|
+
background-color: var(--kms-inline-alert-error-bg);
|
|
44
|
+
border-left-color: var(--kms-inline-alert-error-border);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&--info {
|
|
48
|
+
background-color: var(--kms-inline-alert-info-bg);
|
|
49
|
+
border-left-color: var(--kms-inline-alert-info-border);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&--success {
|
|
53
|
+
background-color: var(--kms-inline-alert-success-bg);
|
|
54
|
+
border-left-color: var(--kms-inline-alert-success-border);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__icon {
|
|
58
|
+
flex-shrink: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&--warning &__icon .icon {
|
|
62
|
+
color: var(--kms-inline-alert-warning-border) !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&--error &__icon .icon {
|
|
66
|
+
color: var(--kms-inline-alert-error-border) !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&--info &__icon .icon {
|
|
70
|
+
color: var(--kms-inline-alert-info-border) !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&--success &__icon .icon {
|
|
74
|
+
color: var(--kms-inline-alert-success-border) !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&__content {
|
|
78
|
+
flex: 1;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
package/src/styles/styles.scss
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
@import '../lib/ui/molecules/confirmation-dialog/confirmation-dialog.component';
|
|
27
27
|
@import '../lib/ui/molecules/file-input/file-input.component';
|
|
28
28
|
@import '../lib/ui/molecules/image-slider/image-slider.component';
|
|
29
|
+
@import '../lib/ui/molecules/inline-alert/inline-alert.component';
|
|
29
30
|
@import '../lib/ui/molecules/kms-accordion-item/kms-accordion-item.component';
|
|
30
31
|
@import '../lib/ui/molecules/numeric-input/numeric-input.component';
|
|
31
32
|
@import '../lib/ui/molecules/password/password.component.scss';
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
@include file-input-theme();
|
|
47
48
|
@include confirmation-dialog-component-theme();
|
|
48
49
|
@include icon-theme();
|
|
50
|
+
@include inline-alert-theme();
|
|
49
51
|
@include image-slider-theme();
|
|
50
52
|
@include kms-accordion-item-theme();
|
|
51
53
|
@include kms-radiogroup();
|