From aa7251f61fadc75b90b18e14608286405a30b671 Mon Sep 17 00:00:00 2001 From: Gabriel Nogueira Date: Mon, 27 Dec 2021 00:32:27 -0300 Subject: [PATCH] :wrench: ajuste na importacao de modulos --- design-system/documentation.json | 320 +++++++++--------- design-system/projects/lib/package.json | 2 +- .../multi-select/multi-select.module.ts | 6 +- 3 files changed, 163 insertions(+), 165 deletions(-) diff --git a/design-system/documentation.json b/design-system/documentation.json index d1afa10..fbb5cf6 100644 --- a/design-system/documentation.json +++ b/design-system/documentation.json @@ -203,10 +203,10 @@ }, { "name": "MultiSelectOption", - "id": "interface-MultiSelectOption-85fa84fe3b889aff6412f73da8cc4a39", + "id": "interface-MultiSelectOption-4f8173d2946f3d4bb3ef55d5f99b78c0", "file": "projects/lib/src/components/inputs/multi-select/multi-select.component.ts", "type": "interface", - "sourceCode": "import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnInit,\n Output,\n ViewChild\n} from '@angular/core';\nimport {FormControl} from '@angular/forms';\nimport {Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\nimport _ from 'lodash';\nimport {MAT_AUTOCOMPLETE_DEFAULT_OPTIONS, MatAutocompleteTrigger} from '@angular/material/autocomplete';\nimport {Sizes} from '../../../models/sizes';\n\nexport interface MultiSelectOption {\n label: string;\n value: any;\n thumbnail: string;\n}\n\n@Component({\n selector: 'pm-multi-select',\n templateUrl: './multi-select.component.html',\n styleUrls: ['./multi-select.component.scss'],\n providers: [\n {\n provide: MAT_AUTOCOMPLETE_DEFAULT_OPTIONS,\n useValue: {\n autoActiveFirstOption: false,\n overlayPanelClass: 'pm-multi-select-autocomplete-panel'\n }\n }\n ]\n})\nexport class MultiSelectComponent implements OnInit, AfterViewInit {\n\n @ViewChild('inputBox') inputBoxEl: ElementRef;\n @ViewChild('trigger') trigger: MatAutocompleteTrigger;\n @Output() selectedOptions = new EventEmitter();\n @Input() placeholder: string = '';\n @Input() options: MultiSelectOption[] = [];\n @Input() borderRadius: Sizes = Sizes.md;\n @Input() roundedThumbnail: boolean = true;\n myControl = new FormControl();\n _selectedOptions: MultiSelectOption[] = [];\n filteredOptions: Observable;\n\n constructor(\n private cdr: ChangeDetectorRef\n ) {\n }\n\n ngOnInit(): void {\n this.filteredOptions = this.myControl.valueChanges.pipe(\n startWith(''),\n map(value => (typeof value === 'string' ? value : `${value.label}`)),\n map(label => this._filter(label)),\n );\n }\n\n ngAfterViewInit(): void {\n this.clearInput();\n }\n\n displayFn(user: MultiSelectOption): string {\n return user && user.label ? user.label : '';\n }\n\n private _filter(label: string): MultiSelectOption[] {\n const filterValue = label.toLowerCase();\n\n return _.difference(\n this.options.filter(option => option.label.toLowerCase().includes(filterValue)),\n this._selectedOptions\n );\n }\n\n public selectOption(option: any): void {\n this._selectedOptions.push(option);\n this.selectedOptions.emit(this._selectedOptions);\n this.clearInput();\n }\n\n private clearInput(): void {\n this.myControl.setValue('');\n try { this.inputBoxEl.nativeElement.blur(); } catch (e) {}\n this.cdr.detectChanges();\n }\n\n public removeSelectedOption(option: MultiSelectOption): void {\n _.remove(this._selectedOptions, option);\n this.clearInput();\n }\n\n public isOptionSelected(option: MultiSelectOption): boolean {\n return !!this._selectedOptions.find(sOptions => _.isEqual(sOptions, option));\n }\n\n public openSelect(): void {\n this.trigger.openPanel();\n setTimeout(() => {\n try { this.inputBoxEl.nativeElement.focus(); } catch (e) {}\n }, 50);\n }\n\n public clearSelected(): void {\n this._selectedOptions = [];\n this.selectedOptions.emit(this._selectedOptions);\n this.clearInput();\n }\n\n}\n", + "sourceCode": "import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnInit,\n Output,\n ViewChild\n} from '@angular/core';\nimport {FormControl} from '@angular/forms';\nimport {Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\nimport _ from 'lodash';\nimport {MAT_AUTOCOMPLETE_DEFAULT_OPTIONS, MatAutocompleteTrigger} from '@angular/material/autocomplete';\nimport {Sizes} from '../../../models/sizes';\n\nexport interface MultiSelectOption {\n label: string;\n value: any;\n thumbnail: string;\n}\n\n@Component({\n selector: 'pm-multi-select',\n templateUrl: './multi-select.component.html',\n styleUrls: ['./multi-select.component.scss'],\n providers: [\n {\n provide: MAT_AUTOCOMPLETE_DEFAULT_OPTIONS,\n useValue: {\n autoActiveFirstOption: false,\n overlayPanelClass: 'pm-multi-select-autocomplete-panel'\n }\n }\n ]\n})\nexport class MultiSelectComponent implements OnInit, AfterViewInit {\n\n @ViewChild('inputBox') inputBoxEl: ElementRef;\n @ViewChild('trigger') trigger: MatAutocompleteTrigger;\n @Output() selectedOptions = new EventEmitter();\n @Input() placeholder: string = '';\n @Input() options: MultiSelectOption[] = [];\n @Input() borderRadius: Sizes = Sizes.md;\n @Input() roundedThumbnail: boolean = true;\n myControl = new FormControl();\n _selectedOptions: MultiSelectOption[] = [];\n filteredOptions: Observable;\n\n constructor(\n private cdr: ChangeDetectorRef\n ) {\n }\n\n ngOnInit(): void {\n this.filteredOptions = this.myControl.valueChanges.pipe(\n startWith(''),\n map(value => (typeof value === 'string' ? value : `${value.label}`)),\n map(label => this._filter(label)),\n );\n }\n\n ngAfterViewInit(): void {\n this.clearInput();\n }\n\n displayFn(user: MultiSelectOption): string {\n return user && user.label ? user.label : '';\n }\n\n private _filter(label: string): MultiSelectOption[] {\n const filterValue = label.toLowerCase();\n\n return _.difference(\n this.options.filter(option => option.label.toLowerCase().includes(filterValue)),\n this._selectedOptions\n );\n }\n\n public selectOption(option: any): void {\n this._selectedOptions.push(option);\n this.selectedOptions.emit(this._selectedOptions);\n this.clearInput();\n }\n\n private clearInput(): void {\n this.myControl.setValue('');\n try { this.inputBoxEl.nativeElement.blur(); } catch (e) {}\n this.cdr.detectChanges();\n }\n\n public removeSelectedOption(option: MultiSelectOption): void {\n _.remove(this._selectedOptions, option);\n this.clearInput();\n }\n\n public isOptionSelected(option: MultiSelectOption): boolean {\n return !!this._selectedOptions.find(sOptions => _.isEqual(sOptions, option));\n }\n\n public openSelect(): void {\n setTimeout(() => {\n try { this.inputBoxEl.nativeElement.focus(); } catch (e) {}\n }, 0);\n }\n\n public clearSelected(): void {\n this._selectedOptions = [];\n this.selectedOptions.emit(this._selectedOptions);\n this.clearInput();\n }\n\n}\n", "properties": [ { "name": "label", @@ -2937,7 +2937,7 @@ }, { "name": "MultiSelectComponent", - "id": "component-MultiSelectComponent-85fa84fe3b889aff6412f73da8cc4a39", + "id": "component-MultiSelectComponent-4f8173d2946f3d4bb3ef55d5f99b78c0", "file": "projects/lib/src/components/inputs/multi-select/multi-select.component.ts", "encapsulation": [], "entryComponents": [], @@ -3085,7 +3085,7 @@ "optional": false, "returnType": "void", "typeParameters": [], - "line": 110, + "line": 109, "modifierKind": [ 114 ] @@ -3220,11 +3220,11 @@ "description": "", "rawdescription": "", "type": "component", - "sourceCode": "import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnInit,\n Output,\n ViewChild\n} from '@angular/core';\nimport {FormControl} from '@angular/forms';\nimport {Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\nimport _ from 'lodash';\nimport {MAT_AUTOCOMPLETE_DEFAULT_OPTIONS, MatAutocompleteTrigger} from '@angular/material/autocomplete';\nimport {Sizes} from '../../../models/sizes';\n\nexport interface MultiSelectOption {\n label: string;\n value: any;\n thumbnail: string;\n}\n\n@Component({\n selector: 'pm-multi-select',\n templateUrl: './multi-select.component.html',\n styleUrls: ['./multi-select.component.scss'],\n providers: [\n {\n provide: MAT_AUTOCOMPLETE_DEFAULT_OPTIONS,\n useValue: {\n autoActiveFirstOption: false,\n overlayPanelClass: 'pm-multi-select-autocomplete-panel'\n }\n }\n ]\n})\nexport class MultiSelectComponent implements OnInit, AfterViewInit {\n\n @ViewChild('inputBox') inputBoxEl: ElementRef;\n @ViewChild('trigger') trigger: MatAutocompleteTrigger;\n @Output() selectedOptions = new EventEmitter();\n @Input() placeholder: string = '';\n @Input() options: MultiSelectOption[] = [];\n @Input() borderRadius: Sizes = Sizes.md;\n @Input() roundedThumbnail: boolean = true;\n myControl = new FormControl();\n _selectedOptions: MultiSelectOption[] = [];\n filteredOptions: Observable;\n\n constructor(\n private cdr: ChangeDetectorRef\n ) {\n }\n\n ngOnInit(): void {\n this.filteredOptions = this.myControl.valueChanges.pipe(\n startWith(''),\n map(value => (typeof value === 'string' ? value : `${value.label}`)),\n map(label => this._filter(label)),\n );\n }\n\n ngAfterViewInit(): void {\n this.clearInput();\n }\n\n displayFn(user: MultiSelectOption): string {\n return user && user.label ? user.label : '';\n }\n\n private _filter(label: string): MultiSelectOption[] {\n const filterValue = label.toLowerCase();\n\n return _.difference(\n this.options.filter(option => option.label.toLowerCase().includes(filterValue)),\n this._selectedOptions\n );\n }\n\n public selectOption(option: any): void {\n this._selectedOptions.push(option);\n this.selectedOptions.emit(this._selectedOptions);\n this.clearInput();\n }\n\n private clearInput(): void {\n this.myControl.setValue('');\n try { this.inputBoxEl.nativeElement.blur(); } catch (e) {}\n this.cdr.detectChanges();\n }\n\n public removeSelectedOption(option: MultiSelectOption): void {\n _.remove(this._selectedOptions, option);\n this.clearInput();\n }\n\n public isOptionSelected(option: MultiSelectOption): boolean {\n return !!this._selectedOptions.find(sOptions => _.isEqual(sOptions, option));\n }\n\n public openSelect(): void {\n this.trigger.openPanel();\n setTimeout(() => {\n try { this.inputBoxEl.nativeElement.focus(); } catch (e) {}\n }, 50);\n }\n\n public clearSelected(): void {\n this._selectedOptions = [];\n this.selectedOptions.emit(this._selectedOptions);\n this.clearInput();\n }\n\n}\n", + "sourceCode": "import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnInit,\n Output,\n ViewChild\n} from '@angular/core';\nimport {FormControl} from '@angular/forms';\nimport {Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\nimport _ from 'lodash';\nimport {MAT_AUTOCOMPLETE_DEFAULT_OPTIONS, MatAutocompleteTrigger} from '@angular/material/autocomplete';\nimport {Sizes} from '../../../models/sizes';\n\nexport interface MultiSelectOption {\n label: string;\n value: any;\n thumbnail: string;\n}\n\n@Component({\n selector: 'pm-multi-select',\n templateUrl: './multi-select.component.html',\n styleUrls: ['./multi-select.component.scss'],\n providers: [\n {\n provide: MAT_AUTOCOMPLETE_DEFAULT_OPTIONS,\n useValue: {\n autoActiveFirstOption: false,\n overlayPanelClass: 'pm-multi-select-autocomplete-panel'\n }\n }\n ]\n})\nexport class MultiSelectComponent implements OnInit, AfterViewInit {\n\n @ViewChild('inputBox') inputBoxEl: ElementRef;\n @ViewChild('trigger') trigger: MatAutocompleteTrigger;\n @Output() selectedOptions = new EventEmitter();\n @Input() placeholder: string = '';\n @Input() options: MultiSelectOption[] = [];\n @Input() borderRadius: Sizes = Sizes.md;\n @Input() roundedThumbnail: boolean = true;\n myControl = new FormControl();\n _selectedOptions: MultiSelectOption[] = [];\n filteredOptions: Observable;\n\n constructor(\n private cdr: ChangeDetectorRef\n ) {\n }\n\n ngOnInit(): void {\n this.filteredOptions = this.myControl.valueChanges.pipe(\n startWith(''),\n map(value => (typeof value === 'string' ? value : `${value.label}`)),\n map(label => this._filter(label)),\n );\n }\n\n ngAfterViewInit(): void {\n this.clearInput();\n }\n\n displayFn(user: MultiSelectOption): string {\n return user && user.label ? user.label : '';\n }\n\n private _filter(label: string): MultiSelectOption[] {\n const filterValue = label.toLowerCase();\n\n return _.difference(\n this.options.filter(option => option.label.toLowerCase().includes(filterValue)),\n this._selectedOptions\n );\n }\n\n public selectOption(option: any): void {\n this._selectedOptions.push(option);\n this.selectedOptions.emit(this._selectedOptions);\n this.clearInput();\n }\n\n private clearInput(): void {\n this.myControl.setValue('');\n try { this.inputBoxEl.nativeElement.blur(); } catch (e) {}\n this.cdr.detectChanges();\n }\n\n public removeSelectedOption(option: MultiSelectOption): void {\n _.remove(this._selectedOptions, option);\n this.clearInput();\n }\n\n public isOptionSelected(option: MultiSelectOption): boolean {\n return !!this._selectedOptions.find(sOptions => _.isEqual(sOptions, option));\n }\n\n public openSelect(): void {\n setTimeout(() => {\n try { this.inputBoxEl.nativeElement.focus(); } catch (e) {}\n }, 0);\n }\n\n public clearSelected(): void {\n this._selectedOptions = [];\n this.selectedOptions.emit(this._selectedOptions);\n this.clearInput();\n }\n\n}\n", "assetsDirs": [], "styleUrlsData": [ { - "data": "@import '../../../styles/default/mixins/buttons';\n\n.pm-multi-select {\n @include btn-styles(var(--color-light), var(--color-light-sat), false);\n\n form, input {\n width: -webkit-fill-available;\n }\n\n form {\n padding-top: 1px;\n }\n\n input {\n padding: 0.5em;\n background-color: transparent;\n\n color: var(--color-gray-darker) !important;\n }\n\n .chip-container {\n background-color: var(--color-light);\n border: 1px solid var(--color-light-states);\n border-radius: var(--border-radius-md);\n padding: 3px;\n color: var(--color-gray-dark);\n\n button {\n border: none !important;\n }\n }\n\n i {\n color: var(--color-light-states);\n right: 0.5em;\n height: 100%;\n display: flex;\n flex-direction: row;\n align-content: center;\n justify-content: center;\n margin-top: -4px;\n\n &:before {\n align-self: center;\n }\n }\n\n}\n\n::ng-deep {\n .pm-multi-select-autocomplete-panel {\n margin-left: -4px;\n\n * {\n box-shadow: none !important;\n }\n\n .mat-autocomplete-panel {\n background-color: var(--color-light);\n margin-top: -2px;\n }\n }\n\n .pm-multi-select-thumbnail-container {\n width: 25px;\n height: 25px;\n display: flex;\n justify-content: center;\n align-items: center;\n box-sizing: border-box;\n outline: none;\n flex: 0 0 auto;\n\n &.circular {\n border-radius: 50%;\n margin: 0;\n overflow: hidden;\n border: 1px solid var(--color-light-states);\n }\n\n img {\n object-fit: cover;\n }\n }\n}\n", + "data": "@import '../../../styles/default/mixins/buttons';\n\n.pm-multi-select {\n @include btn-styles(var(--color-light), var(--color-light-sat), false);\n\n form {\n padding-top: 1px;\n }\n\n input {\n padding: 0.5em;\n background-color: transparent;\n\n color: var(--color-gray-darker) !important;\n }\n\n .chip-container {\n background-color: var(--color-light);\n border: 1px solid var(--color-light-states);\n border-radius: var(--border-radius-md);\n padding: 3px;\n color: var(--color-gray-dark);\n\n button {\n border: none !important;\n }\n }\n\n i {\n color: var(--color-light-states);\n right: 0.5em;\n height: 100%;\n display: flex;\n flex-direction: row;\n align-content: center;\n justify-content: center;\n margin-top: -4px;\n\n &:before {\n align-self: center;\n }\n }\n\n}\n\n::ng-deep {\n .pm-multi-select-autocomplete-panel {\n margin-left: -4px;\n left: 20px !important;\n\n * {\n box-shadow: none !important;\n }\n\n .mat-autocomplete-panel {\n background-color: var(--color-light);\n margin-top: -2px;\n }\n }\n\n .pm-multi-select-thumbnail-container {\n width: 25px;\n height: 25px;\n display: flex;\n justify-content: center;\n align-items: center;\n box-sizing: border-box;\n outline: none;\n flex: 0 0 auto;\n\n &.circular {\n border-radius: 50%;\n margin: 0;\n overflow: hidden;\n border: 1px solid var(--color-light-states);\n }\n\n img {\n object-fit: cover;\n }\n }\n}\n", "styleUrl": "./multi-select.component.scss" } ], @@ -3253,7 +3253,7 @@ "OnInit", "AfterViewInit" ], - "templateData": "
\n
\n
\n
\n
\n \n

{{selected.label}}

\n \n
\n
\n
\n
\n \n\n \n \n \n
\n \n {{option.label}}\n
\n \n
\n
\n
\n \n
\n
\n\n\n
\n \n
\n
\n" + "templateData": "
\n
\n
\n
\n
\n \n

{{selected.label}}

\n \n
\n
\n
\n
\n \n\n \n \n \n
\n \n {{option.label}}\n
\n \n
\n
\n
\n \n
\n
\n\n\n
\n \n
\n
\n" }, { "name": "RadioButtonComponent", @@ -4898,25 +4898,25 @@ "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/cards/icon-card/icon-card.stories.ts", + "file": "projects/lib/src/components/cards/basic-card/basic-card.stories.ts", "type": "object", - "defaultValue": "{\n textPosition: 'center',\n paddingClass: 'p-3',\n hoverable: true,\n orientation: OrientationEnum.Y,\n iconClass: 'uil uil-star',\n title: '',\n subtitle: '',\n iconCardArray: [],\n}" + "defaultValue": "{\n hoverable: false,\n borderRadius: Sizes.md,\n paddingClass: 'p-3'\n}" }, { "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/containers/expansion-panel/expansion-panel.stories.ts", + "file": "projects/lib/src/components/cards/icon-card/icon-card.stories.ts", "type": "object", - "defaultValue": "{\n}" + "defaultValue": "{\n textPosition: 'center',\n paddingClass: 'p-3',\n hoverable: true,\n orientation: OrientationEnum.Y,\n iconClass: 'uil uil-star',\n title: '',\n subtitle: '',\n iconCardArray: [],\n}" }, { "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/cards/basic-card/basic-card.stories.ts", + "file": "projects/lib/src/components/containers/expansion-panel/expansion-panel.stories.ts", "type": "object", - "defaultValue": "{\n hoverable: false,\n borderRadius: Sizes.md,\n paddingClass: 'p-3'\n}" + "defaultValue": "{\n}" }, { "name": "defaultArgs", @@ -4930,81 +4930,81 @@ "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/inputs/checkbox/checkbox.stories.ts", + "file": "projects/lib/src/components/lists/grid-list/grid-list.stories.ts", "type": "object", - "defaultValue": "{\n checked: false,\n disabled: false,\n selectedItem: undefined,\n}" + "defaultValue": "{\n}" }, { "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/inputs/combo-box/combo-box.stories.ts", + "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", "type": "object", - "defaultValue": "{\n items: [],\n disabled: false,\n selectedItem: undefined\n}" + "defaultValue": "{\n showIndex: true,\n itemActionLabel: undefined,\n itemMainLabel: undefined,\n itemSubLabel: undefined,\n actions: undefined,\n itemList: undefined,\n roundedBorders: true,\n enableDragging: true,\n enableSelection: true,\n}" }, { "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/inputs/button/button.stories.ts", + "file": "projects/lib/src/components/lists/table-list/table-list.stories.ts", "type": "object", - "defaultValue": "{\n label: '',\n type: MainColors.default,\n busy: false,\n busyText: '',\n iconClass: '',\n iconPosition: 'start',\n outline: false,\n disabled: false,\n size: 'md',\n fillWidth: false\n}" + "defaultValue": "{\n columns: [],\n columnNames: [],\n imageColumns: [],\n imageHeight: '50px',\n showHeader: true,\n numberFormat: '1.2-2',\n numberPrefix: '',\n actionsTemplate: undefined,\n itemList: undefined,\n borderRadius: undefined,\n backgroundColor: undefined,\n expandedDetailTemplate: undefined,\n disableExpandedOnDisabledRow: true,\n expandedRow: undefined\n}" }, { "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/inputs/copy-content-input/copy-content-input.stories.ts", + "file": "projects/lib/src/components/inputs/checkbox/checkbox.stories.ts", "type": "object", - "defaultValue": "{\n disabled: false,\n text: '',\n copyCallback: undefined,\n fillHeight: false,\n btnColor: MainColors.primary,\n borderRadius: Sizes.md\n}" + "defaultValue": "{\n checked: false,\n disabled: false,\n selectedItem: undefined,\n}" }, { "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/inputs/dropdown-actions/dropdown-actions.stories.ts", + "file": "projects/lib/src/components/inputs/combo-box/combo-box.stories.ts", "type": "object", - "defaultValue": "{\n actions: []\n}" + "defaultValue": "{\n items: [],\n disabled: false,\n selectedItem: undefined\n}" }, { "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/inputs/multi-select/multi-select.stories.ts", + "file": "projects/lib/src/components/inputs/copy-content-input/copy-content-input.stories.ts", "type": "object", - "defaultValue": "{\n options: [],\n placeholder: '',\n borderRadius: Sizes.md,\n roundedThumbnail: true\n}" + "defaultValue": "{\n disabled: false,\n text: '',\n copyCallback: undefined,\n fillHeight: false,\n btnColor: MainColors.primary,\n borderRadius: Sizes.md\n}" }, { "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/inputs/radio-button/radio-button.stories.ts", + "file": "projects/lib/src/components/inputs/button/button.stories.ts", "type": "object", - "defaultValue": "{\n orientation: OrientationEnum.Y,\n values: [],\n disabled: false,\n selectedValue: undefined\n}" + "defaultValue": "{\n label: '',\n type: MainColors.default,\n busy: false,\n busyText: '',\n iconClass: '',\n iconPosition: 'start',\n outline: false,\n disabled: false,\n size: 'md',\n fillWidth: false\n}" }, { "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", + "file": "projects/lib/src/components/inputs/dropdown-actions/dropdown-actions.stories.ts", "type": "object", - "defaultValue": "{\n showIndex: true,\n itemActionLabel: undefined,\n itemMainLabel: undefined,\n itemSubLabel: undefined,\n actions: undefined,\n itemList: undefined,\n roundedBorders: true,\n enableDragging: true,\n enableSelection: true,\n}" + "defaultValue": "{\n actions: []\n}" }, { "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/lists/grid-list/grid-list.stories.ts", + "file": "projects/lib/src/components/inputs/multi-select/multi-select.stories.ts", "type": "object", - "defaultValue": "{\n}" + "defaultValue": "{\n options: [],\n placeholder: '',\n borderRadius: Sizes.md,\n roundedThumbnail: true\n}" }, { "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/lists/table-list/table-list.stories.ts", + "file": "projects/lib/src/components/inputs/radio-button/radio-button.stories.ts", "type": "object", - "defaultValue": "{\n columns: [],\n columnNames: [],\n imageColumns: [],\n imageHeight: '50px',\n showHeader: true,\n numberFormat: '1.2-2',\n numberPrefix: '',\n actionsTemplate: undefined,\n itemList: undefined,\n borderRadius: undefined,\n backgroundColor: undefined,\n expandedDetailTemplate: undefined,\n disableExpandedOnDisabledRow: true,\n expandedRow: undefined\n}" + "defaultValue": "{\n orientation: OrientationEnum.Y,\n values: [],\n disabled: false,\n selectedValue: undefined\n}" }, { "name": "defaultArgs", @@ -5325,6 +5325,14 @@ "type": "Story", "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" }, + { + "name": "Template", + "ctype": "miscellaneous", + "subtype": "variable", + "file": "projects/lib/src/components/cards/basic-card/basic-card.stories.ts", + "type": "Story", + "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" + }, { "name": "Template", "ctype": "miscellaneous", @@ -5345,17 +5353,33 @@ "name": "Template", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/cards/basic-card/basic-card.stories.ts", - "type": "Story", - "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" + "file": "projects/lib/src/components/containers/tabs/tabs.stories.ts", + "type": "Story", + "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" }, { "name": "Template", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/containers/tabs/tabs.stories.ts", - "type": "Story", - "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" + "file": "projects/lib/src/components/lists/grid-list/grid-list.stories.ts", + "type": "Story", + "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" + }, + { + "name": "Template", + "ctype": "miscellaneous", + "subtype": "variable", + "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", + "type": "Story", + "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" + }, + { + "name": "Template", + "ctype": "miscellaneous", + "subtype": "variable", + "file": "projects/lib/src/components/lists/table-list/table-list.stories.ts", + "type": "Story", + "defaultValue": "(args) => ({\n props: args,\n template: ``\n})" }, { "name": "Template", @@ -5377,17 +5401,17 @@ "name": "Template", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/inputs/button/button.stories.ts", - "type": "Story", - "defaultValue": "(args) => ({\n props: args,\n template: `\n \n Button Content\n \n `\n})" + "file": "projects/lib/src/components/inputs/copy-content-input/copy-content-input.stories.ts", + "type": "Story", + "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" }, { "name": "Template", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/inputs/copy-content-input/copy-content-input.stories.ts", - "type": "Story", - "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" + "file": "projects/lib/src/components/inputs/button/button.stories.ts", + "type": "Story", + "defaultValue": "(args) => ({\n props: args,\n template: `\n \n Button Content\n \n `\n})" }, { "name": "Template", @@ -5413,30 +5437,6 @@ "type": "Story", "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" }, - { - "name": "Template", - "ctype": "miscellaneous", - "subtype": "variable", - "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", - "type": "Story", - "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" - }, - { - "name": "Template", - "ctype": "miscellaneous", - "subtype": "variable", - "file": "projects/lib/src/components/lists/grid-list/grid-list.stories.ts", - "type": "Story", - "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" - }, - { - "name": "Template", - "ctype": "miscellaneous", - "subtype": "variable", - "file": "projects/lib/src/components/lists/table-list/table-list.stories.ts", - "type": "Story", - "defaultValue": "(args) => ({\n props: args,\n template: ``\n})" - }, { "name": "Template", "ctype": "miscellaneous", @@ -6026,6 +6026,32 @@ "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" } ], + "projects/lib/src/components/cards/basic-card/basic-card.stories.ts": [ + { + "name": "defaultArgs", + "ctype": "miscellaneous", + "subtype": "variable", + "file": "projects/lib/src/components/cards/basic-card/basic-card.stories.ts", + "type": "object", + "defaultValue": "{\n hoverable: false,\n borderRadius: Sizes.md,\n paddingClass: 'p-3'\n}" + }, + { + "name": "DefaultBasicCard", + "ctype": "miscellaneous", + "subtype": "variable", + "file": "projects/lib/src/components/cards/basic-card/basic-card.stories.ts", + "type": "", + "defaultValue": "Template.bind({})" + }, + { + "name": "Template", + "ctype": "miscellaneous", + "subtype": "variable", + "file": "projects/lib/src/components/cards/basic-card/basic-card.stories.ts", + "type": "Story", + "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" + } + ], "projects/lib/src/components/containers/expansion-panel/expansion-panel.stories.ts": [ { "name": "defaultArgs", @@ -6052,20 +6078,20 @@ "defaultValue": "(args) => ({\n props: args,\n template: `\n \n Conteúdo aqui\n \n `\n})" } ], - "projects/lib/src/components/cards/basic-card/basic-card.stories.ts": [ + "projects/lib/src/components/containers/tabs/tabs.stories.ts": [ { "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/cards/basic-card/basic-card.stories.ts", + "file": "projects/lib/src/components/containers/tabs/tabs.stories.ts", "type": "object", - "defaultValue": "{\n hoverable: false,\n borderRadius: Sizes.md,\n paddingClass: 'p-3'\n}" + "defaultValue": "{\n}" }, { - "name": "DefaultBasicCard", + "name": "DefaultTabs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/cards/basic-card/basic-card.stories.ts", + "file": "projects/lib/src/components/containers/tabs/tabs.stories.ts", "type": "", "defaultValue": "Template.bind({})" }, @@ -6073,35 +6099,85 @@ "name": "Template", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/cards/basic-card/basic-card.stories.ts", - "type": "Story", - "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" + "file": "projects/lib/src/components/containers/tabs/tabs.stories.ts", + "type": "Story", + "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" } ], - "projects/lib/src/components/containers/tabs/tabs.stories.ts": [ + "projects/lib/src/components/lists/grid-list/grid-list.stories.ts": [ { "name": "defaultArgs", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/containers/tabs/tabs.stories.ts", + "file": "projects/lib/src/components/lists/grid-list/grid-list.stories.ts", "type": "object", "defaultValue": "{\n}" }, { - "name": "DefaultTabs", + "name": "DefaultGridList", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/containers/tabs/tabs.stories.ts", + "file": "projects/lib/src/components/lists/grid-list/grid-list.stories.ts", "type": "", "defaultValue": "Template.bind({})" }, + { + "name": "getColor", + "ctype": "miscellaneous", + "subtype": "variable", + "file": "projects/lib/src/components/lists/grid-list/grid-list.stories.ts", + "type": "", + "defaultValue": "() => MainColors.primary" + }, { "name": "Template", "ctype": "miscellaneous", "subtype": "variable", - "file": "projects/lib/src/components/containers/tabs/tabs.stories.ts", - "type": "Story", - "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" + "file": "projects/lib/src/components/lists/grid-list/grid-list.stories.ts", + "type": "Story", + "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" + } + ], + "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts": [ + { + "name": "defaultArgs", + "ctype": "miscellaneous", + "subtype": "variable", + "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", + "type": "object", + "defaultValue": "{\n showIndex: true,\n itemActionLabel: undefined,\n itemMainLabel: undefined,\n itemSubLabel: undefined,\n actions: undefined,\n itemList: undefined,\n roundedBorders: true,\n enableDragging: true,\n enableSelection: true,\n}" + }, + { + "name": "DefaultDraggableList", + "ctype": "miscellaneous", + "subtype": "variable", + "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", + "type": "", + "defaultValue": "Template.bind({})" + }, + { + "name": "DisabledDragging", + "ctype": "miscellaneous", + "subtype": "variable", + "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", + "type": "", + "defaultValue": "Template.bind({})" + }, + { + "name": "NoIndexStringList", + "ctype": "miscellaneous", + "subtype": "variable", + "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", + "type": "", + "defaultValue": "Template.bind({})" + }, + { + "name": "Template", + "ctype": "miscellaneous", + "subtype": "variable", + "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", + "type": "Story", + "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" } ], "projects/lib/src/components/inputs/checkbox/checkbox.stories.ts": [ @@ -6292,82 +6368,6 @@ "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" } ], - "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts": [ - { - "name": "defaultArgs", - "ctype": "miscellaneous", - "subtype": "variable", - "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", - "type": "object", - "defaultValue": "{\n showIndex: true,\n itemActionLabel: undefined,\n itemMainLabel: undefined,\n itemSubLabel: undefined,\n actions: undefined,\n itemList: undefined,\n roundedBorders: true,\n enableDragging: true,\n enableSelection: true,\n}" - }, - { - "name": "DefaultDraggableList", - "ctype": "miscellaneous", - "subtype": "variable", - "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", - "type": "", - "defaultValue": "Template.bind({})" - }, - { - "name": "DisabledDragging", - "ctype": "miscellaneous", - "subtype": "variable", - "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", - "type": "", - "defaultValue": "Template.bind({})" - }, - { - "name": "NoIndexStringList", - "ctype": "miscellaneous", - "subtype": "variable", - "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", - "type": "", - "defaultValue": "Template.bind({})" - }, - { - "name": "Template", - "ctype": "miscellaneous", - "subtype": "variable", - "file": "projects/lib/src/components/lists/draggable-list/draggable-list.stories.ts", - "type": "Story", - "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" - } - ], - "projects/lib/src/components/lists/grid-list/grid-list.stories.ts": [ - { - "name": "defaultArgs", - "ctype": "miscellaneous", - "subtype": "variable", - "file": "projects/lib/src/components/lists/grid-list/grid-list.stories.ts", - "type": "object", - "defaultValue": "{\n}" - }, - { - "name": "DefaultGridList", - "ctype": "miscellaneous", - "subtype": "variable", - "file": "projects/lib/src/components/lists/grid-list/grid-list.stories.ts", - "type": "", - "defaultValue": "Template.bind({})" - }, - { - "name": "getColor", - "ctype": "miscellaneous", - "subtype": "variable", - "file": "projects/lib/src/components/lists/grid-list/grid-list.stories.ts", - "type": "", - "defaultValue": "() => MainColors.primary" - }, - { - "name": "Template", - "ctype": "miscellaneous", - "subtype": "variable", - "file": "projects/lib/src/components/lists/grid-list/grid-list.stories.ts", - "type": "Story", - "defaultValue": "(args) => ({\n props: args,\n template: `\n \n \n `\n})" - } - ], "projects/lib/src/components/navigation/stepper/stepper.stories.ts": [ { "name": "defaultArgs", diff --git a/design-system/projects/lib/package.json b/design-system/projects/lib/package.json index a1d3c03..f8e41a0 100644 --- a/design-system/projects/lib/package.json +++ b/design-system/projects/lib/package.json @@ -1,6 +1,6 @@ { "name": "@mprisma/components", - "version": "0.0.70", + "version": "0.0.71", "repository": { "type": "git", "url": "https://github.com/gabriel-gn/prisma-components.git" diff --git a/design-system/projects/lib/src/components/inputs/multi-select/multi-select.module.ts b/design-system/projects/lib/src/components/inputs/multi-select/multi-select.module.ts index e423353..4510ff5 100644 --- a/design-system/projects/lib/src/components/inputs/multi-select/multi-select.module.ts +++ b/design-system/projects/lib/src/components/inputs/multi-select/multi-select.module.ts @@ -2,10 +2,9 @@ import {NgModule} from '@angular/core'; import {MultiSelectComponent} from './multi-select.component'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; -import {BrowserModule} from '@angular/platform-browser'; -import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {MatAutocompleteModule} from '@angular/material/autocomplete'; import {MatInputModule} from '@angular/material/input'; +import {CommonModule} from '@angular/common'; @NgModule({ @@ -16,8 +15,7 @@ import {MatInputModule} from '@angular/material/input'; MultiSelectComponent ], imports: [ - BrowserAnimationsModule, - BrowserModule, + CommonModule, FormsModule, ReactiveFormsModule, MatAutocompleteModule,