@muziehdesign/components 18.2.0-next.2192 → 18.2.0-next.2293
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/esm2022/lib/drawer/drawer-container.component.mjs +4 -4
- package/esm2022/lib/dropdown/dropdown-item.directive.mjs +28 -0
- package/esm2022/lib/dropdown/dropdown.component.mjs +27 -0
- package/esm2022/lib/dropdown/dropdown.module.mjs +17 -0
- package/esm2022/lib/filter/filter-option.model.mjs +2 -0
- package/esm2022/lib/filter/filter.component.mjs +42 -0
- package/esm2022/lib/options-filter/options-filter.component.mjs +66 -0
- package/esm2022/public-api.mjs +7 -1
- package/fesm2022/muziehdesign-components.mjs +164 -5
- package/fesm2022/muziehdesign-components.mjs.map +1 -1
- package/lib/dropdown/dropdown-item.directive.d.ts +9 -0
- package/lib/dropdown/dropdown.component.d.ts +9 -0
- package/lib/dropdown/dropdown.module.d.ts +8 -0
- package/lib/filter/filter-option.model.d.ts +5 -0
- package/lib/filter/filter.component.d.ts +16 -0
- package/lib/options-filter/options-filter.component.d.ts +27 -0
- package/package.json +6 -3
- package/public-api.d.ts +6 -0
- package/{design → styles/design}/_button.scss +8 -3
- package/styles/design/_dialog.scss +7 -0
- package/{design → styles/design}/_dropdown-menu.scss +4 -0
- package/{design → styles/design}/_form.scss +6 -7
- package/styles/mixins/_dialog.scss +24 -0
- package/{design/_mixins.scss → styles/mixins/_form.scss} +1 -1
- package/styles/mixins/_icon.scss +6 -0
- package/styles/mixins/_index.scss +2 -0
- package/styles/theme.scss +43 -0
- /package/{design → styles/design}/_accordion.scss +0 -0
- /package/{design → styles/design}/_alert.scss +0 -0
- /package/{design → styles/design}/_base.scss +0 -0
- /package/{design → styles/design}/_breadcrumb.scss +0 -0
- /package/{design/_cdk-overlay.css → styles/design/_cdk-overlay.scss} +0 -0
- /package/{design → styles/design}/_components.scss +0 -0
- /package/{design → styles/design}/_date-picker.scss +0 -0
- /package/{design → styles/design}/_dl.scss +0 -0
- /package/{design → styles/design}/_infinite-scroll.scss +0 -0
- /package/{design → styles/design}/_modal.scss +0 -0
- /package/{design → styles/design}/_muzieh.scss +0 -0
- /package/{design → styles/design}/_pagination.scss +0 -0
- /package/{design → styles/design}/_progress-bar.scss +0 -0
- /package/{design → styles/design}/_table.scss +0 -0
- /package/{design → styles/design}/_tabs.scss +0 -0
- /package/{design → styles/design}/_utilities.scss +0 -0
- /package/{design → styles/design}/_wizard.scss +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class MzDropdownComponent {
|
|
3
|
+
label: string;
|
|
4
|
+
open: boolean;
|
|
5
|
+
toggle(): void;
|
|
6
|
+
collapse(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDropdownComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzDropdownComponent, "mz-dropdown", never, { "label": { "alias": "label"; "required": false; }; "open": { "alias": "open"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./dropdown.component";
|
|
3
|
+
import * as i2 from "./dropdown-item.directive";
|
|
4
|
+
export declare class MzDropdownModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDropdownModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MzDropdownModule, never, [typeof i1.MzDropdownComponent, typeof i2.MzDropdownItemDirective], [typeof i1.MzDropdownComponent, typeof i2.MzDropdownItemDirective]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MzDropdownModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { NgForm } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FilterComponent implements AfterContentInit {
|
|
5
|
+
label: string;
|
|
6
|
+
menuForm: NgForm;
|
|
7
|
+
protected open: boolean;
|
|
8
|
+
private initialValues;
|
|
9
|
+
ngAfterContentInit(): void;
|
|
10
|
+
toggleOverlay(): void;
|
|
11
|
+
dismiss(): void;
|
|
12
|
+
clear(): void;
|
|
13
|
+
apply(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "mz-filter", never, { "label": { "alias": "label"; "required": false; }; }, {}, ["menuForm"], ["*"], true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FilterOptionModel } from '../filter/filter-option.model';
|
|
3
|
+
import { NgForm } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class OptionsFilterComponent {
|
|
6
|
+
options?: FilterOptionModel<string>[];
|
|
7
|
+
values: string[];
|
|
8
|
+
label: string;
|
|
9
|
+
change: EventEmitter<string | undefined>;
|
|
10
|
+
selected?: string;
|
|
11
|
+
form: NgForm;
|
|
12
|
+
protected open: boolean;
|
|
13
|
+
protected search: string;
|
|
14
|
+
get filterLabel(): string;
|
|
15
|
+
get filteredOptions(): FilterOptionModel<string>[];
|
|
16
|
+
apply(): void;
|
|
17
|
+
clear(): void;
|
|
18
|
+
toggleOverlay(): void;
|
|
19
|
+
dismiss(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptionsFilterComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OptionsFilterComponent, "mz-options-filter", never, { "options": { "alias": "options"; "required": false; }; "values": { "alias": "values"; "required": false; }; "label": { "alias": "label"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
22
|
+
}
|
|
23
|
+
export type OptionValueType = string | number | string[] | number[];
|
|
24
|
+
export type SelectOption = {
|
|
25
|
+
label: string;
|
|
26
|
+
value: OptionValueType;
|
|
27
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muziehdesign/components",
|
|
3
|
-
"version": "18.2.0-next.
|
|
3
|
+
"version": "18.2.0-next.2293",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^18.1.1",
|
|
6
6
|
"@angular/core": "^18.1.1",
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
|
-
"module": "fesm2022/muziehdesign-components.mjs",
|
|
14
|
-
"typings": "index.d.ts",
|
|
15
13
|
"exports": {
|
|
14
|
+
"./mixins": {
|
|
15
|
+
"sass": "./design/mixins/_index.scss"
|
|
16
|
+
},
|
|
16
17
|
"./package.json": {
|
|
17
18
|
"default": "./package.json"
|
|
18
19
|
},
|
|
@@ -23,5 +24,7 @@
|
|
|
23
24
|
"default": "./fesm2022/muziehdesign-components.mjs"
|
|
24
25
|
}
|
|
25
26
|
},
|
|
27
|
+
"module": "fesm2022/muziehdesign-components.mjs",
|
|
28
|
+
"typings": "index.d.ts",
|
|
26
29
|
"sideEffects": false
|
|
27
30
|
}
|
package/public-api.d.ts
CHANGED
|
@@ -32,3 +32,9 @@ export { SortEvent } from './lib/models/sort-event';
|
|
|
32
32
|
export { WizardStepLink } from './lib/models/wizard-step-link';
|
|
33
33
|
export { WizardProgressTrackerComponent } from './lib/wizard-progress-tracker/wizard-progress-tracker.component';
|
|
34
34
|
export { DrawerContainerComponent } from './lib/drawer/drawer-container.component';
|
|
35
|
+
export { MzDropdownComponent } from './lib/dropdown/dropdown.component';
|
|
36
|
+
export { MzDropdownItemDirective } from './lib/dropdown/dropdown-item.directive';
|
|
37
|
+
export { MzDropdownModule } from './lib/dropdown/dropdown.module';
|
|
38
|
+
export { FilterOptionModel } from './lib/filter/filter-option.model';
|
|
39
|
+
export { OptionsFilterComponent } from './lib/options-filter/options-filter.component';
|
|
40
|
+
export { FilterComponent } from './lib/filter/filter.component';
|
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.button-primary {
|
|
7
|
-
@apply text-white shadow-sm bg-blue-600 hover:bg-blue-700 active:bg-blue-
|
|
7
|
+
@apply text-white shadow-sm bg-blue-600 hover:bg-blue-700 active:bg-blue-800/95;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.button-secondary {
|
|
11
|
-
@apply text-secondary shadow-sm bg-gray-200 hover:bg-gray-300 active:bg-gray-
|
|
11
|
+
@apply text-secondary shadow-sm bg-gray-200 hover:bg-gray-300 active:bg-gray-400/65;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.button-secondary.active {
|
|
15
|
+
@apply bg-gray-400/65;
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
.button-danger {
|
|
@@ -32,7 +36,8 @@
|
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
.button-loading-overlay {
|
|
35
|
-
@apply absolute inset-0 flex items-center justify-center
|
|
39
|
+
@apply absolute inset-0 flex items-center justify-center z-10;
|
|
40
|
+
background-color: inherit;
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
.link-action {
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
@use "mixins" as
|
|
2
|
-
|
|
1
|
+
@use "./mixins/form" as form;
|
|
3
2
|
|
|
4
3
|
.form-input, .form-textarea, .form-select {
|
|
5
|
-
@include field-control();
|
|
4
|
+
@include form.field-control();
|
|
6
5
|
|
|
7
6
|
&:focus {
|
|
8
|
-
@include field-control-focused();
|
|
7
|
+
@include form.field-control-focused();
|
|
9
8
|
}
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
.input-group {
|
|
13
12
|
@apply flex gap-2 items-center;
|
|
14
|
-
@include field-control();
|
|
13
|
+
@include form.field-control();
|
|
15
14
|
|
|
16
15
|
&:focus-within {
|
|
17
|
-
@include field-control-focused();
|
|
16
|
+
@include form.field-control-focused();
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
.form-input {
|
|
@@ -36,7 +35,7 @@
|
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
.checkbox-label {
|
|
38
|
+
.checkbox-label, .radio-label {
|
|
40
39
|
@apply ml-2;
|
|
41
40
|
}
|
|
42
41
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@mixin dialog-content() {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
padding: 0.5rem 1rem 0 1rem;
|
|
5
|
+
height:100vh;
|
|
6
|
+
|
|
7
|
+
& > *:not(header, footer) {
|
|
8
|
+
flex-grow: 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
header, footer {
|
|
12
|
+
padding: 0.75rem 0;
|
|
13
|
+
position: sticky;
|
|
14
|
+
background-color: white;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
header {
|
|
18
|
+
top: 0px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
footer {
|
|
22
|
+
bottom: 0px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-primary: #1d4ed8;
|
|
3
|
+
--color-secondary: #374151;
|
|
4
|
+
--color-success: #15803d;
|
|
5
|
+
--color-danger: #b91c1c;
|
|
6
|
+
--color-warning: #a16207;
|
|
7
|
+
|
|
8
|
+
--color-neutral-50: #f9fafb;
|
|
9
|
+
--color-neutral-100: #f3f4f6;
|
|
10
|
+
--color-neutral-200: #e5e7eb;
|
|
11
|
+
--color-neutral-300: #d1d5db;
|
|
12
|
+
--color-neutral-400: #9ca3af;
|
|
13
|
+
--color-neutral-500: #6b7280;
|
|
14
|
+
--color-neutral-600: #4b5563;
|
|
15
|
+
--color-neutral-700: #374151;
|
|
16
|
+
--color-neutral-800: #1f2937;
|
|
17
|
+
--color-neutral-900: #111827;
|
|
18
|
+
--color-neutral-950: #030712;
|
|
19
|
+
|
|
20
|
+
--color-brand-50: #eff6ff;
|
|
21
|
+
--color-brand-100: #dbeafe;
|
|
22
|
+
--color-brand-200: #bfdbfe;
|
|
23
|
+
--color-brand-300: #93c5fd;
|
|
24
|
+
--color-brand-400: #60a5fa;
|
|
25
|
+
--color-brand-500: #3b82f6;
|
|
26
|
+
--color-brand-600: #2563eb;
|
|
27
|
+
--color-brand-700: #1d4ed8;
|
|
28
|
+
--color-brand-800: #1e40af;
|
|
29
|
+
--color-brand-900: #1e3a8a;
|
|
30
|
+
--color-brand-950: #172554;
|
|
31
|
+
|
|
32
|
+
--color-green-50: #f0fdf4;
|
|
33
|
+
--color-green-100: #dcfce7;
|
|
34
|
+
--color-green-200: #bbf7d0;
|
|
35
|
+
--color-green-300: #86efac;
|
|
36
|
+
--color-green-400: #4ade80;
|
|
37
|
+
--color-green-500: #22c55e;
|
|
38
|
+
--color-green-600: #16a34a;
|
|
39
|
+
--color-green-700: #15803d;
|
|
40
|
+
--color-green-800: #166534;
|
|
41
|
+
--color-green-900: #14532d;
|
|
42
|
+
--color-green-950: #052e16;
|
|
43
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|