ms-design-system 0.0.28 → 0.0.30
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/ms-design-system.mjs +234 -106
- package/fesm2022/ms-design-system.mjs.map +1 -1
- package/package.json +1 -1
- package/src/styles.scss +12 -4
- package/types/ms-design-system.d.ts +46 -18
package/package.json
CHANGED
package/src/styles.scss
CHANGED
|
@@ -1595,6 +1595,9 @@ ms-button .ms-btn-default {
|
|
|
1595
1595
|
.ms-checkmark {
|
|
1596
1596
|
color: #FFFFFF;
|
|
1597
1597
|
font-size: 13px !important;
|
|
1598
|
+
display: flex;
|
|
1599
|
+
align-items: center;
|
|
1600
|
+
margin-top: -2px;
|
|
1598
1601
|
// line-height: 1;
|
|
1599
1602
|
// width: 6.790122985839844px !important;
|
|
1600
1603
|
// height: 5.5px;
|
|
@@ -1796,25 +1799,30 @@ ms-button .ms-btn-default {
|
|
|
1796
1799
|
}
|
|
1797
1800
|
|
|
1798
1801
|
&:hover:not(.disabled) .ms-toggle-track {
|
|
1799
|
-
background: #
|
|
1802
|
+
background: #0084FF1A; // light blue hover
|
|
1803
|
+
background: var(--semantics-fill-status-info-secondary-disabled, #0084FF1A);
|
|
1804
|
+
|
|
1800
1805
|
}
|
|
1801
|
-
|
|
1806
|
+
|
|
1802
1807
|
.ms-radio-circle:focus {
|
|
1803
1808
|
// outline: 2px solid #B7DCFF;
|
|
1804
1809
|
box-shadow: 0px 0px 0px 0.91px var(--primitivesbrandblue-100);
|
|
1805
1810
|
border: 0.91px solid var(--semantics-border-brand-default, #0084FF);
|
|
1806
1811
|
outline-offset: 2px;
|
|
1807
1812
|
}
|
|
1808
|
-
|
|
1813
|
+
|
|
1809
1814
|
&.invalid {
|
|
1810
1815
|
.ms-toggle-track {
|
|
1811
1816
|
border: 1px solid red;
|
|
1812
1817
|
}
|
|
1813
1818
|
}
|
|
1814
|
-
|
|
1819
|
+
|
|
1815
1820
|
&.disabled {
|
|
1816
1821
|
cursor: not-allowed;
|
|
1817
1822
|
opacity: 0.6;
|
|
1823
|
+
.ms-toggle input:checked {
|
|
1824
|
+
background: #0084FF; // darker blue on hover
|
|
1825
|
+
}
|
|
1818
1826
|
|
|
1819
1827
|
.ms-label {
|
|
1820
1828
|
color: #999;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, OnInit, EventEmitter, ElementRef, SimpleChanges, ChangeDetectorRef, EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { OnChanges, OnInit, EventEmitter, ElementRef, SimpleChanges, ChangeDetectorRef, ViewContainerRef, ComponentFactoryResolver, EnvironmentProviders } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
4
|
import * as i1 from 'ng-inline-svg';
|
|
5
5
|
|
|
@@ -52,7 +52,6 @@ declare class MsDropdown {
|
|
|
52
52
|
text: string;
|
|
53
53
|
size: string;
|
|
54
54
|
variant: string;
|
|
55
|
-
radiussize: string;
|
|
56
55
|
isDisabled: boolean;
|
|
57
56
|
set items(value: DropdownItem[]);
|
|
58
57
|
icon?: string;
|
|
@@ -63,22 +62,15 @@ declare class MsDropdown {
|
|
|
63
62
|
btnMaxWidth: string;
|
|
64
63
|
closeOnSelect: boolean;
|
|
65
64
|
closeOnClickOutside: boolean;
|
|
66
|
-
autoClose: boolean;
|
|
67
65
|
selectedItem?: string;
|
|
66
|
+
showSelected: boolean;
|
|
68
67
|
allowMultiple: boolean;
|
|
69
|
-
showDivider: boolean;
|
|
70
|
-
dividerStyle: string;
|
|
71
|
-
dividerColor: string;
|
|
72
|
-
itemSpacing: string;
|
|
73
|
-
shadow: string;
|
|
74
|
-
backgroundColor: string;
|
|
75
68
|
textColor: string;
|
|
76
69
|
maxHeight: string;
|
|
77
70
|
scrollable: boolean;
|
|
78
71
|
loading: boolean;
|
|
79
72
|
error: boolean;
|
|
80
73
|
ariaLabel: string;
|
|
81
|
-
role: string;
|
|
82
74
|
searchable: boolean;
|
|
83
75
|
searchPlaceholder: string;
|
|
84
76
|
noResultsText: string;
|
|
@@ -90,10 +82,14 @@ declare class MsDropdown {
|
|
|
90
82
|
showFlagImage: boolean;
|
|
91
83
|
multiSelectDisplay: 'count' | 'text' | 'count+text' | 'tags' | 'none';
|
|
92
84
|
showTags: boolean;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
85
|
+
inputPlaceholder: string;
|
|
86
|
+
inputLabel: string;
|
|
87
|
+
inputErrorState: boolean;
|
|
88
|
+
inputWarningState: boolean;
|
|
89
|
+
inputFocusState: boolean;
|
|
90
|
+
required: boolean;
|
|
96
91
|
selectionChange: EventEmitter<DropdownItem | DropdownItem[]>;
|
|
92
|
+
validationTouched: boolean;
|
|
97
93
|
selectedValues: Set<any>;
|
|
98
94
|
selectedItems: DropdownItem[];
|
|
99
95
|
selectedItemObj?: DropdownItem;
|
|
@@ -103,12 +99,19 @@ declare class MsDropdown {
|
|
|
103
99
|
isOpen: boolean;
|
|
104
100
|
searchTerm: string;
|
|
105
101
|
onTriggerClick(): void;
|
|
102
|
+
tagInput: ElementRef<HTMLInputElement>;
|
|
103
|
+
isFocused: boolean;
|
|
104
|
+
hasError: boolean;
|
|
105
|
+
disabled: boolean;
|
|
106
|
+
focusInput(): void;
|
|
106
107
|
toggleDropdown(): void;
|
|
107
108
|
private cloneItems;
|
|
108
109
|
selectItem(item: DropdownItem): void;
|
|
109
110
|
toggleMultiSelect(item: DropdownItem): void;
|
|
110
111
|
private selectSingle;
|
|
111
112
|
get filteredItems(): DropdownItem[];
|
|
113
|
+
isSelectionRequired(): boolean;
|
|
114
|
+
onBlur(): void;
|
|
112
115
|
removeTag(item: DropdownItem, event: MouseEvent): void;
|
|
113
116
|
onDocumentClick(event: MouseEvent): void;
|
|
114
117
|
maxVisibleTags: number;
|
|
@@ -119,7 +122,7 @@ declare class MsDropdown {
|
|
|
119
122
|
toggleHiddenTags(): void;
|
|
120
123
|
close(): void;
|
|
121
124
|
static ɵfac: i0.ɵɵFactoryDeclaration<MsDropdown, never>;
|
|
122
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MsDropdown, "ms-dropdown", never, { "text": { "alias": "text"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "
|
|
125
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MsDropdown, "ms-dropdown", never, { "text": { "alias": "text"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "items": { "alias": "items"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "btnWidth": { "alias": "btnWidth"; "required": false; }; "btnMinWidth": { "alias": "btnMinWidth"; "required": false; }; "btnMaxWidth": { "alias": "btnMaxWidth"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "closeOnClickOutside": { "alias": "closeOnClickOutside"; "required": false; }; "selectedItem": { "alias": "selectedItem"; "required": false; }; "showSelected": { "alias": "showSelected"; "required": false; }; "allowMultiple": { "alias": "allowMultiple"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "error": { "alias": "error"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "noResultsText": { "alias": "noResultsText"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "dropdownMenuClass": { "alias": "dropdownMenuClass"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "fontWeight": { "alias": "fontWeight"; "required": false; }; "dropdownMenuWidth": { "alias": "dropdownMenuWidth"; "required": false; }; "showFlagImage": { "alias": "showFlagImage"; "required": false; }; "multiSelectDisplay": { "alias": "multiSelectDisplay"; "required": false; }; "showTags": { "alias": "showTags"; "required": false; }; "inputPlaceholder": { "alias": "inputPlaceholder"; "required": false; }; "inputLabel": { "alias": "inputLabel"; "required": false; }; "inputErrorState": { "alias": "inputErrorState"; "required": false; }; "inputWarningState": { "alias": "inputWarningState"; "required": false; }; "inputFocusState": { "alias": "inputFocusState"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
123
126
|
}
|
|
124
127
|
|
|
125
128
|
declare class MsCheckbox implements ControlValueAccessor, Validator {
|
|
@@ -313,6 +316,7 @@ declare class MsTextArea {
|
|
|
313
316
|
resize: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
314
317
|
scrollable: boolean;
|
|
315
318
|
showResizeIcon: boolean;
|
|
319
|
+
state?: string;
|
|
316
320
|
isDisabled: boolean;
|
|
317
321
|
showFormatOptions: boolean;
|
|
318
322
|
maxWidth: number;
|
|
@@ -367,7 +371,7 @@ declare class MsTextArea {
|
|
|
367
371
|
closeImageDropdown(): void;
|
|
368
372
|
insertImage(): void;
|
|
369
373
|
static ɵfac: i0.ɵɵFactoryDeclaration<MsTextArea, never>;
|
|
370
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MsTextArea, "ms-text-area", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "ms_rows": { "alias": "ms_rows"; "required": false; }; "ms_cols": { "alias": "ms_cols"; "required": false; }; "autoResize": { "alias": "autoResize"; "required": false; }; "resize": { "alias": "resize"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "showResizeIcon": { "alias": "showResizeIcon"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "showFormatOptions": { "alias": "showFormatOptions"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; }, {}, never, never, true, never>;
|
|
374
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MsTextArea, "ms-text-area", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "ms_rows": { "alias": "ms_rows"; "required": false; }; "ms_cols": { "alias": "ms_cols"; "required": false; }; "autoResize": { "alias": "autoResize"; "required": false; }; "resize": { "alias": "resize"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "showResizeIcon": { "alias": "showResizeIcon"; "required": false; }; "state": { "alias": "state"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "showFormatOptions": { "alias": "showFormatOptions"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; }, {}, never, never, true, never>;
|
|
371
375
|
}
|
|
372
376
|
|
|
373
377
|
declare class MsAvatar {
|
|
@@ -498,9 +502,16 @@ declare class MsSpinner {
|
|
|
498
502
|
static ɵcmp: i0.ɵɵComponentDeclaration<MsSpinner, "ms-spinner", never, { "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "htmlChange": "htmlChange"; }, never, never, true, never>;
|
|
499
503
|
}
|
|
500
504
|
|
|
505
|
+
type TooltipPosition = 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
501
506
|
declare class MsTooltip {
|
|
507
|
+
text: string;
|
|
508
|
+
position: TooltipPosition;
|
|
509
|
+
bgColor: string;
|
|
510
|
+
showArrow: boolean;
|
|
511
|
+
get title(): string;
|
|
512
|
+
get paragraphLines(): string[];
|
|
502
513
|
static ɵfac: i0.ɵɵFactoryDeclaration<MsTooltip, never>;
|
|
503
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MsTooltip, "ms-tooltip", never, {}, {}, never, never, true, never>;
|
|
514
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MsTooltip, "ms-tooltip", never, { "text": { "alias": "text"; "required": false; }; "position": { "alias": "position"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "showArrow": { "alias": "showArrow"; "required": false; }; }, {}, never, never, true, never>;
|
|
504
515
|
}
|
|
505
516
|
|
|
506
517
|
declare class MsFileUploader {
|
|
@@ -545,12 +556,29 @@ declare class MsFileUploader {
|
|
|
545
556
|
static ɵcmp: i0.ɵɵComponentDeclaration<MsFileUploader, "ms-file-uploader", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; }, {}, never, never, true, never>;
|
|
546
557
|
}
|
|
547
558
|
|
|
559
|
+
declare class MsTooltipDirective {
|
|
560
|
+
private el;
|
|
561
|
+
private vcr;
|
|
562
|
+
private cfr;
|
|
563
|
+
msTooltip: string;
|
|
564
|
+
position: 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
565
|
+
bgColor: string;
|
|
566
|
+
showArrow: boolean;
|
|
567
|
+
private tooltipRef;
|
|
568
|
+
constructor(el: ElementRef, vcr: ViewContainerRef, cfr: ComponentFactoryResolver);
|
|
569
|
+
onMouseEnter(): void;
|
|
570
|
+
onMouseLeave(): void;
|
|
571
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MsTooltipDirective, never>;
|
|
572
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MsTooltipDirective, "[msTooltip]", never, { "msTooltip": { "alias": "msTooltip"; "required": false; }; "position": { "alias": "position"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "showArrow": { "alias": "showArrow"; "required": false; }; }, {}, never, never, true, never>;
|
|
573
|
+
}
|
|
574
|
+
|
|
548
575
|
declare class MsDesignSystemModule {
|
|
549
576
|
static ɵfac: i0.ɵɵFactoryDeclaration<MsDesignSystemModule, never>;
|
|
550
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MsDesignSystemModule, never, [typeof i1.InlineSVGModule, typeof MsButton, typeof MsDropdown, typeof MsCheckbox, typeof MsBadge, typeof MsToggle, typeof MsRadioButton, typeof MsInputField, typeof MsTextArea, typeof MsAvatar, typeof MsSidebar, typeof MsTooltip, typeof MsPagination, typeof MsSpinner, typeof MsFileUploader], [typeof i1.InlineSVGModule, typeof MsButton, typeof MsDropdown, typeof MsCheckbox, typeof MsBadge, typeof MsToggle, typeof MsRadioButton, typeof MsInputField, typeof MsTextArea, typeof MsAvatar, typeof MsSidebar, typeof MsTooltip, typeof MsPagination, typeof MsSpinner, typeof MsFileUploader]>;
|
|
577
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MsDesignSystemModule, never, [typeof i1.InlineSVGModule, typeof MsButton, typeof MsDropdown, typeof MsCheckbox, typeof MsBadge, typeof MsToggle, typeof MsRadioButton, typeof MsInputField, typeof MsTextArea, typeof MsAvatar, typeof MsSidebar, typeof MsTooltip, typeof MsPagination, typeof MsSpinner, typeof MsFileUploader, typeof MsTooltipDirective], [typeof i1.InlineSVGModule, typeof MsButton, typeof MsDropdown, typeof MsCheckbox, typeof MsBadge, typeof MsToggle, typeof MsRadioButton, typeof MsInputField, typeof MsTextArea, typeof MsAvatar, typeof MsSidebar, typeof MsTooltip, typeof MsPagination, typeof MsSpinner, typeof MsFileUploader]>;
|
|
551
578
|
static ɵinj: i0.ɵɵInjectorDeclaration<MsDesignSystemModule>;
|
|
552
579
|
}
|
|
553
580
|
|
|
554
581
|
declare function provideMsDesignSystem(): EnvironmentProviders;
|
|
555
582
|
|
|
556
|
-
export { MS_SVG_PATH, MsAvatar, MsBadge, MsButton, MsCheckbox, MsDesignSystemModule, MsDropdown, MsFileUploader, MsInputField, MsPagination, MsRadioButton, MsSidebar, MsSpinner, MsTextArea, MsToggle, MsTooltip, provideMsDesignSystem };
|
|
583
|
+
export { MS_SVG_PATH, MsAvatar, MsBadge, MsButton, MsCheckbox, MsDesignSystemModule, MsDropdown, MsFileUploader, MsInputField, MsPagination, MsRadioButton, MsSidebar, MsSpinner, MsTextArea, MsToggle, MsTooltip, MsTooltipDirective, provideMsDesignSystem };
|
|
584
|
+
export type { TooltipPosition };
|