mis-crystal-design-system 2.1.3 → 2.2.3
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/async-search-dropdown/async-dropdown.component.d.ts +60 -0
- package/async-search-dropdown/async-dropdown.module.d.ts +2 -0
- package/async-search-dropdown/index.d.ts +1 -0
- package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.d.ts +4 -0
- package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.metadata.json +1 -0
- package/async-search-dropdown/package.json +11 -0
- package/async-search-dropdown/public_api.d.ts +2 -0
- package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js +211 -0
- package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-button.umd.js +60 -2
- package/bundles/mis-crystal-design-system-button.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-button.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-button.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-datepicker.umd.js +3 -1
- package/bundles/mis-crystal-design-system-datepicker.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-datepicker.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-datepicker.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-input.umd.js +111 -0
- package/bundles/mis-crystal-design-system-input.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-input.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-input.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-modal.umd.js +165 -0
- package/bundles/mis-crystal-design-system-modal.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-modal.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-modal.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-table.umd.js +6 -4
- package/bundles/mis-crystal-design-system-table.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-table.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-table.umd.min.js.map +1 -1
- package/button/button.directive.d.ts +12 -0
- package/button/button.directive.scss +69 -0
- package/button/mis-crystal-design-system-button.d.ts +1 -0
- package/button/mis-crystal-design-system-button.metadata.json +1 -1
- package/datepicker/mis-crystal-design-system-datepicker.metadata.json +1 -1
- package/esm2015/async-search-dropdown/async-dropdown.component.js +176 -0
- package/esm2015/async-search-dropdown/async-dropdown.module.js +15 -0
- package/esm2015/async-search-dropdown/index.js +2 -0
- package/esm2015/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.js +5 -0
- package/esm2015/async-search-dropdown/public_api.js +3 -0
- package/esm2015/button/button.directive.js +57 -0
- package/esm2015/button/button.module.js +4 -3
- package/esm2015/button/mis-crystal-design-system-button.js +2 -1
- package/esm2015/datepicker/bs-datepicker.module.js +6 -2
- package/esm2015/input/directives/input/input.directive.js +38 -0
- package/esm2015/input/index.js +2 -0
- package/esm2015/input/mis-crystal-design-system-input.js +5 -0
- package/esm2015/input/mis-input.component.js +40 -0
- package/esm2015/input/mis-input.module.js +15 -0
- package/esm2015/input/public_api.js +4 -0
- package/esm2015/modal/index.js +2 -0
- package/esm2015/modal/mis-crystal-design-system-modal.js +6 -0
- package/esm2015/modal/modal-constants.js +4 -0
- package/esm2015/modal/modal-ref.js +16 -0
- package/esm2015/modal/modal.module.js +32 -0
- package/esm2015/modal/modal.service.js +72 -0
- package/esm2015/modal/module-wrapper/module-wrapper.component.js +33 -0
- package/esm2015/modal/public_api.js +5 -0
- package/esm2015/table/filter/filter.component.js +5 -3
- package/esm2015/table/table.component.js +3 -3
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.js +194 -0
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-button.js +60 -4
- package/fesm2015/mis-crystal-design-system-button.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-datepicker.js +3 -1
- package/fesm2015/mis-crystal-design-system-datepicker.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-input.js +94 -0
- package/fesm2015/mis-crystal-design-system-input.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-modal.js +151 -0
- package/fesm2015/mis-crystal-design-system-modal.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-table.js +6 -4
- package/fesm2015/mis-crystal-design-system-table.js.map +1 -1
- package/input/directives/input/input.directive.d.ts +15 -0
- package/input/index.d.ts +1 -0
- package/input/mis-crystal-design-system-input.d.ts +4 -0
- package/input/mis-crystal-design-system-input.metadata.json +1 -0
- package/input/mis-input.component.d.ts +15 -0
- package/input/mis-input.module.d.ts +2 -0
- package/input/package.json +11 -0
- package/input/public_api.d.ts +3 -0
- package/modal/index.d.ts +1 -0
- package/modal/mis-crystal-design-system-modal.d.ts +5 -0
- package/modal/mis-crystal-design-system-modal.metadata.json +1 -0
- package/modal/modal-constants.d.ts +3 -0
- package/modal/modal-ref.d.ts +9 -0
- package/modal/modal.module.d.ts +5 -0
- package/modal/modal.scss +9 -0
- package/modal/modal.service.d.ts +22 -0
- package/modal/module-wrapper/module-wrapper.component.d.ts +9 -0
- package/modal/package.json +11 -0
- package/modal/public_api.d.ts +4 -0
- package/package.json +1 -1
- package/table/mis-crystal-design-system-table.metadata.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
|
|
1
|
+
import { EventEmitter, Component, Input, Output, Directive, ElementRef, Renderer2, HostBinding, NgModule } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
|
|
4
4
|
class ButtonComponent {
|
|
@@ -43,6 +43,62 @@ ButtonComponent.propDecorators = {
|
|
|
43
43
|
click: [{ type: Output }]
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
+
class ButtonDirective {
|
|
47
|
+
constructor(el, renderer) {
|
|
48
|
+
this.el = el;
|
|
49
|
+
this.renderer = renderer;
|
|
50
|
+
this.type = 'none';
|
|
51
|
+
this.size = 'md';
|
|
52
|
+
this.elementClass = 'mis-btn';
|
|
53
|
+
}
|
|
54
|
+
ngAfterViewInit() {
|
|
55
|
+
this.bindTypeClass();
|
|
56
|
+
this.bindSizeClass();
|
|
57
|
+
}
|
|
58
|
+
bindTypeClass() {
|
|
59
|
+
let className = '';
|
|
60
|
+
switch (this.type) {
|
|
61
|
+
case 'primary':
|
|
62
|
+
className = 'mis-primary';
|
|
63
|
+
break;
|
|
64
|
+
case 'outline':
|
|
65
|
+
className = 'mis-outline';
|
|
66
|
+
break;
|
|
67
|
+
default:
|
|
68
|
+
className = 'mis-none';
|
|
69
|
+
}
|
|
70
|
+
this.renderer.addClass(this.el.nativeElement, className);
|
|
71
|
+
}
|
|
72
|
+
bindSizeClass() {
|
|
73
|
+
let className = '';
|
|
74
|
+
switch (this.size) {
|
|
75
|
+
case 'lg':
|
|
76
|
+
className = 'mis-btn-lg';
|
|
77
|
+
break;
|
|
78
|
+
case 'sm':
|
|
79
|
+
className = 'mis-btn-sm';
|
|
80
|
+
break;
|
|
81
|
+
default:
|
|
82
|
+
className = 'mis-btn-md';
|
|
83
|
+
}
|
|
84
|
+
this.renderer.addClass(this.el.nativeElement, className);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
ButtonDirective.decorators = [
|
|
88
|
+
{ type: Directive, args: [{
|
|
89
|
+
selector: '[mis-button]',
|
|
90
|
+
},] }
|
|
91
|
+
];
|
|
92
|
+
ButtonDirective.ctorParameters = () => [
|
|
93
|
+
{ type: ElementRef },
|
|
94
|
+
{ type: Renderer2 }
|
|
95
|
+
];
|
|
96
|
+
ButtonDirective.propDecorators = {
|
|
97
|
+
type: [{ type: Input }],
|
|
98
|
+
size: [{ type: Input }],
|
|
99
|
+
elementClass: [{ type: HostBinding, args: ['class',] }]
|
|
100
|
+
};
|
|
101
|
+
|
|
46
102
|
class ButtonModule {
|
|
47
103
|
static forRoot() {
|
|
48
104
|
return { ngModule: ButtonModule, providers: [] };
|
|
@@ -50,9 +106,9 @@ class ButtonModule {
|
|
|
50
106
|
}
|
|
51
107
|
ButtonModule.decorators = [
|
|
52
108
|
{ type: NgModule, args: [{
|
|
53
|
-
declarations: [ButtonComponent],
|
|
109
|
+
declarations: [ButtonComponent, ButtonDirective],
|
|
54
110
|
imports: [CommonModule],
|
|
55
|
-
exports: [ButtonComponent]
|
|
111
|
+
exports: [ButtonComponent, ButtonDirective]
|
|
56
112
|
},] }
|
|
57
113
|
];
|
|
58
114
|
|
|
@@ -60,5 +116,5 @@ ButtonModule.decorators = [
|
|
|
60
116
|
* Generated bundle index. Do not edit.
|
|
61
117
|
*/
|
|
62
118
|
|
|
63
|
-
export { ButtonComponent, ButtonModule };
|
|
119
|
+
export { ButtonComponent, ButtonModule, ButtonDirective as ɵa };
|
|
64
120
|
//# sourceMappingURL=mis-crystal-design-system-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-button.js","sources":["../../../projects/mis-components/button/button.component.ts","../../../projects/mis-components/button/button.module.ts","../../../projects/mis-components/button/mis-crystal-design-system-button.ts"],"sourcesContent":["import {Component, Input, OnInit, Output, EventEmitter, ContentChild, TemplateRef} from '@angular/core';\n\n@Component({\n selector: 'mis-button',\n templateUrl: './button.component.html',\n styleUrls: ['./button.component.scss']\n})\nexport class ButtonComponent implements OnInit{\n\n @Input() name: string = 'Enabled'\n @Input() type: 'Solid' | 'Outline' | 'Text' = 'Solid'\n @Input() size: 'Small' | 'Medium' | 'Large' | 'Small-M' | 'Large-M' = 'Medium'\n @Input() width: string = ''\n\n @Input() showIcon: boolean = false\n @Input() iconUrl: string = ''\n @Input() iconPosition: 'Left' | 'Right' = 'Left'\n\n @Input() disabled: boolean = false\n @Input() disableLeftBorderRadius: boolean = false\n @Input() disableRightBorderRadius: boolean = false\n\n /** Emits event when button is clicked */\n @Output() click = new EventEmitter<any>()\n\n constructor(){}\n\n ngOnInit(){}\n\n onClick(event){\n this.click.emit(event)\n }\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { CommonModule } from '@angular/common';\
|
|
1
|
+
{"version":3,"file":"mis-crystal-design-system-button.js","sources":["../../../projects/mis-components/button/button.component.ts","../../../projects/mis-components/button/button.directive.ts","../../../projects/mis-components/button/button.module.ts","../../../projects/mis-components/button/mis-crystal-design-system-button.ts"],"sourcesContent":["import {Component, Input, OnInit, Output, EventEmitter, ContentChild, TemplateRef} from '@angular/core';\n\n@Component({\n selector: 'mis-button',\n templateUrl: './button.component.html',\n styleUrls: ['./button.component.scss']\n})\nexport class ButtonComponent implements OnInit{\n\n @Input() name: string = 'Enabled'\n @Input() type: 'Solid' | 'Outline' | 'Text' = 'Solid'\n @Input() size: 'Small' | 'Medium' | 'Large' | 'Small-M' | 'Large-M' = 'Medium'\n @Input() width: string = ''\n\n @Input() showIcon: boolean = false\n @Input() iconUrl: string = ''\n @Input() iconPosition: 'Left' | 'Right' = 'Left'\n\n @Input() disabled: boolean = false\n @Input() disableLeftBorderRadius: boolean = false\n @Input() disableRightBorderRadius: boolean = false\n\n /** Emits event when button is clicked */\n @Output() click = new EventEmitter<any>()\n\n constructor(){}\n\n ngOnInit(){}\n\n onClick(event){\n this.click.emit(event)\n }\n}\n","import {\n AfterViewInit,\n Directive,\n ElementRef,\n HostBinding,\n Input,\n Renderer2,\n} from '@angular/core';\n\n@Directive({\n selector: '[mis-button]',\n})\nexport class ButtonDirective implements AfterViewInit {\n @Input() type: 'primary' | 'outline' | 'none' = 'none';\n @Input() size: 'sm' | 'md' | 'lg' = 'md';\n @HostBinding('class') elementClass = 'mis-btn';\n\n constructor(private el: ElementRef, private renderer: Renderer2) { }\n\n ngAfterViewInit(): void {\n this.bindTypeClass();\n this.bindSizeClass();\n }\n\n private bindTypeClass(): void {\n let className = '';\n switch (this.type) {\n case 'primary':\n className = 'mis-primary';\n break;\n case 'outline':\n className = 'mis-outline';\n break;\n default:\n className = 'mis-none';\n }\n this.renderer.addClass(this.el.nativeElement, className);\n }\n\n private bindSizeClass(): void {\n let className = '';\n switch (this.size) {\n case 'lg':\n className = 'mis-btn-lg';\n break;\n case 'sm':\n className = 'mis-btn-sm';\n break;\n default:\n className = 'mis-btn-md';\n }\n this.renderer.addClass(this.el.nativeElement, className);\n }\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ButtonDirective } from './button.directive';\nimport { ButtonComponent } from './button.component';\n\n@NgModule({\n declarations: [ButtonComponent, ButtonDirective],\n imports: [CommonModule],\n exports: [ButtonComponent, ButtonDirective]\n})\nexport class ButtonModule {\n static forRoot(): ModuleWithProviders<ButtonModule> {\n return { ngModule: ButtonModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {ButtonDirective as ɵa} from './button.directive';"],"names":[],"mappings":";;;MAOa,eAAe;IAkB1B;QAhBS,SAAI,GAAW,SAAS,CAAA;QACxB,SAAI,GAAiC,OAAO,CAAA;QAC5C,SAAI,GAAyD,QAAQ,CAAA;QACrE,UAAK,GAAW,EAAE,CAAA;QAElB,aAAQ,GAAY,KAAK,CAAA;QACzB,YAAO,GAAW,EAAE,CAAA;QACpB,iBAAY,GAAqB,MAAM,CAAA;QAEvC,aAAQ,GAAY,KAAK,CAAA;QACzB,4BAAuB,GAAY,KAAK,CAAA;QACxC,6BAAwB,GAAY,KAAK,CAAA;;QAGxC,UAAK,GAAG,IAAI,YAAY,EAAO,CAAA;KAE1B;IAEf,QAAQ,MAAI;IAEZ,OAAO,CAAC,KAAK;QACX,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;KACvB;;;YA7BF,SAAS,SAAC;gBACT,QAAQ,EAAE,YAAY;gBACtB,m9BAAsC;;aAEvC;;;;mBAGE,KAAK;mBACL,KAAK;mBACL,KAAK;oBACL,KAAK;uBAEL,KAAK;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O,OAAO;QACZ,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;KAClD;;;YARF,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;gBAChD,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;aAC5C;;;ACTD;;;;;;"}
|
|
@@ -12628,7 +12628,9 @@ class MisDatePickerModule {
|
|
|
12628
12628
|
MisDatePickerStore,
|
|
12629
12629
|
MisDatePickerActions,
|
|
12630
12630
|
MisDatePickerEffects,
|
|
12631
|
-
BsLocaleService
|
|
12631
|
+
BsLocaleService,
|
|
12632
|
+
MisDatePickerConfig,
|
|
12633
|
+
MisDateRangePickerConfig
|
|
12632
12634
|
]
|
|
12633
12635
|
};
|
|
12634
12636
|
}
|