ms-design-system 0.0.31 → 0.0.33
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 +155 -324
- package/fesm2022/ms-design-system.mjs.map +1 -1
- package/package.json +1 -1
- package/src/styles.scss +17 -10
- package/types/ms-design-system.d.ts +34 -18
package/package.json
CHANGED
package/src/styles.scss
CHANGED
|
@@ -1582,9 +1582,9 @@ ms-button .ms-btn-default {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
|
|
1584
1584
|
.ms-checkbox-box {
|
|
1585
|
-
width:
|
|
1586
|
-
height:
|
|
1587
|
-
border:
|
|
1585
|
+
width: 16px;
|
|
1586
|
+
height: 16px;
|
|
1587
|
+
border: 1px solid #CCCCCC;
|
|
1588
1588
|
border-radius: 4px;
|
|
1589
1589
|
display: grid;
|
|
1590
1590
|
place-items: center;
|
|
@@ -1597,7 +1597,7 @@ ms-button .ms-btn-default {
|
|
|
1597
1597
|
font-size: 13px !important;
|
|
1598
1598
|
display: flex;
|
|
1599
1599
|
align-items: center;
|
|
1600
|
-
margin-top: -
|
|
1600
|
+
margin-top: -3px;
|
|
1601
1601
|
// line-height: 1;
|
|
1602
1602
|
// width: 6.790122985839844px !important;
|
|
1603
1603
|
// height: 5.5px;
|
|
@@ -1799,8 +1799,10 @@ ms-button .ms-btn-default {
|
|
|
1799
1799
|
}
|
|
1800
1800
|
|
|
1801
1801
|
&:hover:not(.disabled) .ms-toggle-track {
|
|
1802
|
-
background: #0084FF1A; // light blue hover
|
|
1803
|
-
background: var(--semantics-fill-status-info-secondary-disabled, #0084FF1A);
|
|
1802
|
+
// background: #0084FF1A; // light blue hover
|
|
1803
|
+
// background: var(--semantics-fill-status-info-secondary-disabled, #0084FF1A);
|
|
1804
|
+
border: 0.91px solid var(--semantics-border-brand-default, #0084FF);
|
|
1805
|
+
|
|
1804
1806
|
|
|
1805
1807
|
}
|
|
1806
1808
|
|
|
@@ -1821,7 +1823,8 @@ ms-button .ms-btn-default {
|
|
|
1821
1823
|
cursor: not-allowed;
|
|
1822
1824
|
opacity: 0.6;
|
|
1823
1825
|
.ms-toggle input:checked {
|
|
1824
|
-
background: #0084FF; // darker blue on hover
|
|
1826
|
+
// background: #0084FF; // darker blue on hover
|
|
1827
|
+
background: var(--semantics-fill-status-info-secondary-disabled, #0084FF1A);
|
|
1825
1828
|
}
|
|
1826
1829
|
|
|
1827
1830
|
.ms-label {
|
|
@@ -1853,7 +1856,9 @@ ms-button .ms-btn-default {
|
|
|
1853
1856
|
}
|
|
1854
1857
|
|
|
1855
1858
|
.ms-toggle input:checked+.ms-toggle-track:hover {
|
|
1856
|
-
background: #006fd6; // darker blue on hover
|
|
1859
|
+
// background: #006fd6; // darker blue on hover
|
|
1860
|
+
border: 0.91px solid var(--semantics-border-brand-default, #0084FF);
|
|
1861
|
+
|
|
1857
1862
|
}
|
|
1858
1863
|
|
|
1859
1864
|
/* Focus State */
|
|
@@ -2007,7 +2012,7 @@ ms-button .ms-btn-default {
|
|
|
2007
2012
|
}
|
|
2008
2013
|
&.ms-error {
|
|
2009
2014
|
border-color: #DA3E37;
|
|
2010
|
-
background-color: #fbeaea;
|
|
2015
|
+
// background-color: #fbeaea;
|
|
2011
2016
|
box-shadow: 0px 0px 0px 1px #DA3E3740;
|
|
2012
2017
|
}
|
|
2013
2018
|
|
|
@@ -2401,12 +2406,14 @@ font-size: 8px !important;
|
|
|
2401
2406
|
white-space: nowrap;
|
|
2402
2407
|
text-decoration: ellipsis;
|
|
2403
2408
|
color: #292a2e;
|
|
2409
|
+
font-weight: 500 !important;
|
|
2404
2410
|
|
|
2405
2411
|
}
|
|
2406
2412
|
.ms-label-secondory{
|
|
2407
2413
|
white-space: nowrap;
|
|
2408
2414
|
text-decoration: ellipsis;
|
|
2409
2415
|
color: #6b6e76;
|
|
2416
|
+
font-size: 12px !important;
|
|
2410
2417
|
|
|
2411
2418
|
}
|
|
2412
2419
|
|
|
@@ -2551,7 +2558,7 @@ border-top-color: #F5F5F5;
|
|
|
2551
2558
|
// Error state
|
|
2552
2559
|
&.ms-error {
|
|
2553
2560
|
border-color: #d9534f;
|
|
2554
|
-
background-color: #fbeaea;
|
|
2561
|
+
// background-color: #fbeaea;
|
|
2555
2562
|
box-shadow: 0px 0px 0px 1px #DA3E3740;
|
|
2556
2563
|
}
|
|
2557
2564
|
|
|
@@ -271,13 +271,17 @@ declare class MsInputField implements ControlValueAccessor {
|
|
|
271
271
|
max?: number;
|
|
272
272
|
maxlength?: number;
|
|
273
273
|
minlength?: number;
|
|
274
|
-
step?:
|
|
274
|
+
step?: any | string;
|
|
275
275
|
pattern?: string;
|
|
276
276
|
inputmode?: 'text' | 'numeric' | 'decimal' | 'tel' | 'email' | 'url' | 'search';
|
|
277
277
|
loading: boolean;
|
|
278
|
-
value: i0.WritableSignal<string>;
|
|
279
278
|
hasError: i0.WritableSignal<boolean>;
|
|
280
279
|
isSuccess: i0.WritableSignal<boolean>;
|
|
280
|
+
fieldType: any;
|
|
281
|
+
value: string;
|
|
282
|
+
minValue: any;
|
|
283
|
+
maxValue: any;
|
|
284
|
+
prefix: string;
|
|
281
285
|
change: EventEmitter<Event>;
|
|
282
286
|
focus: EventEmitter<Event>;
|
|
283
287
|
blur: EventEmitter<Event>;
|
|
@@ -287,6 +291,10 @@ declare class MsInputField implements ControlValueAccessor {
|
|
|
287
291
|
private onTouched;
|
|
288
292
|
constructor(el: ElementRef);
|
|
289
293
|
ngOnInit(): void;
|
|
294
|
+
increment(): void;
|
|
295
|
+
decrement(): void;
|
|
296
|
+
onInputChange(event: any): void;
|
|
297
|
+
getNumValue(): number;
|
|
290
298
|
writeValue(val: any): void;
|
|
291
299
|
registerOnChange(fn: any): void;
|
|
292
300
|
registerOnTouched(fn: any): void;
|
|
@@ -294,7 +302,7 @@ declare class MsInputField implements ControlValueAccessor {
|
|
|
294
302
|
handleInput(event: Event): void;
|
|
295
303
|
handleBlur(event: Event): void;
|
|
296
304
|
static ɵfac: i0.ɵɵFactoryDeclaration<MsInputField, never>;
|
|
297
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MsInputField, "ms-input-field", never, { "type": { "alias": "type"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "state": { "alias": "state"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "step": { "alias": "step"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "inputmode": { "alias": "inputmode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, true, never>;
|
|
305
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MsInputField, "ms-input-field", never, { "type": { "alias": "type"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "state": { "alias": "state"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "step": { "alias": "step"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "inputmode": { "alias": "inputmode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "fieldType": { "alias": "fieldType"; "required": false; }; "value": { "alias": "value"; "required": false; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; }, {}, never, never, true, never>;
|
|
298
306
|
}
|
|
299
307
|
|
|
300
308
|
declare class MsTextArea {
|
|
@@ -445,21 +453,20 @@ declare class MsPagination {
|
|
|
445
453
|
interface SidebarItem {
|
|
446
454
|
id: string;
|
|
447
455
|
label: string;
|
|
448
|
-
|
|
449
|
-
}
|
|
450
|
-
interface SidebarSection {
|
|
451
|
-
title: string;
|
|
452
|
-
id: string;
|
|
453
|
-
icon: string;
|
|
454
|
-
items: SidebarItem[];
|
|
455
|
-
count?: number;
|
|
456
|
+
router: string;
|
|
456
457
|
}
|
|
457
458
|
declare const MS_SVG_PATH = "assets/ui-library/svg/";
|
|
458
459
|
declare class MsSidebar {
|
|
460
|
+
id?: string;
|
|
461
|
+
search: boolean;
|
|
462
|
+
setting: boolean;
|
|
463
|
+
userDetail: boolean;
|
|
464
|
+
badge: boolean;
|
|
465
|
+
details: any;
|
|
466
|
+
select: EventEmitter<Event>;
|
|
467
|
+
searchText: string;
|
|
468
|
+
filteredMenuData: any[];
|
|
459
469
|
isCollapsed: boolean;
|
|
460
|
-
openSections: {
|
|
461
|
-
[key: string]: boolean;
|
|
462
|
-
};
|
|
463
470
|
flyoutSectionId: string | null;
|
|
464
471
|
flyoutItems: SidebarItem[];
|
|
465
472
|
flyoutTop: number;
|
|
@@ -475,17 +482,26 @@ declare class MsSidebar {
|
|
|
475
482
|
private prevScrollTop;
|
|
476
483
|
get userInitials(): string;
|
|
477
484
|
getInitials(name: string): string;
|
|
478
|
-
|
|
485
|
+
selectedSectionId: any;
|
|
486
|
+
ngOnInit(): void;
|
|
479
487
|
toggleSidebar(): void;
|
|
480
|
-
toggleSection(
|
|
481
|
-
selectItem(
|
|
488
|
+
toggleSection(item: any, event?: any): void;
|
|
489
|
+
selectItem(item: any, detail: any): void;
|
|
482
490
|
toggleProfileFlyout(): void;
|
|
483
491
|
viewProfile(): void;
|
|
484
492
|
accountSettings(): void;
|
|
485
493
|
documentation(): void;
|
|
486
494
|
selectAccount(index: number): void;
|
|
495
|
+
filterMenu(): void;
|
|
496
|
+
rotate: {
|
|
497
|
+
[id: string]: boolean;
|
|
498
|
+
};
|
|
499
|
+
openSections: {
|
|
500
|
+
[id: string]: boolean;
|
|
501
|
+
};
|
|
502
|
+
rotating(data: any): void;
|
|
487
503
|
static ɵfac: i0.ɵɵFactoryDeclaration<MsSidebar, never>;
|
|
488
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MsSidebar, "ms-sidebar", never, {}, {}, never, never, true, never>;
|
|
504
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MsSidebar, "ms-sidebar", never, { "id": { "alias": "id"; "required": false; }; "search": { "alias": "search"; "required": false; }; "setting": { "alias": "setting"; "required": false; }; "userDetail": { "alias": "userDetail"; "required": false; }; "badge": { "alias": "badge"; "required": false; }; "details": { "alias": "details"; "required": false; }; }, { "select": "select"; }, never, never, true, never>;
|
|
489
505
|
}
|
|
490
506
|
|
|
491
507
|
declare class MsSpinner {
|