mapa-library-ui 0.0.21 → 0.0.23
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/esm2020/lib/core/elements/element-base.mjs +2 -1
- package/esm2020/lib/core/elements/element-search.mjs +2 -0
- package/esm2020/public-api.mjs +2 -1
- package/esm2020/src/lib/components/capability/lib/components/filters/src/filters.component.mjs +1 -1
- package/esm2020/src/lib/components/dropdown/dropdown.mjs +8 -0
- package/esm2020/src/lib/components/dropdown/lib/components/dropdown/public-api.mjs +6 -0
- package/esm2020/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.component.mjs +82 -0
- package/esm2020/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.module.mjs +63 -0
- package/esm2020/src/lib/components/dropdown/lib/core/elements/dropdown.mjs +8 -0
- package/esm2020/src/lib/components/dropdown/lib/core/elements/element-base.mjs +22 -0
- package/esm2020/src/lib/components/dropdown/lib/core/elements/element-search.mjs +2 -0
- package/esm2020/src/lib/components/dropdown/lib/core/interfaces/option.interface.mjs +2 -0
- package/esm2020/src/lib/components/dropdown/mapa-library-ui-src-lib-components-dropdown.mjs +2 -2
- package/esm2020/src/lib/components/filters/lib/components/filters/src/filters.component.mjs +1 -1
- package/esm2020/src/lib/components/input/src/input.component.mjs +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs +129 -36
- package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-filters.mjs +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-input.mjs +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
- package/fesm2015/mapa-library-ui.mjs +1 -0
- package/fesm2015/mapa-library-ui.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs +129 -34
- package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-filters.mjs +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-input.mjs +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
- package/fesm2020/mapa-library-ui.mjs +1 -0
- package/fesm2020/mapa-library-ui.mjs.map +1 -1
- package/lib/core/elements/element-base.d.ts +3 -0
- package/lib/core/elements/element-search.d.ts +6 -0
- package/mapa-library-ui-0.0.23.tgz +0 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/lib/components/dropdown/dropdown.d.ts +4 -0
- package/src/lib/components/dropdown/index.d.ts +1 -1
- package/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.component.d.ts +25 -0
- package/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.module.d.ts +13 -0
- package/src/lib/components/dropdown/lib/core/elements/dropdown.d.ts +4 -0
- package/src/lib/components/dropdown/lib/core/elements/element-base.d.ts +40 -0
- package/src/lib/components/dropdown/lib/core/elements/element-search.d.ts +6 -0
- package/src/lib/components/dropdown/lib/core/interfaces/option.interface.d.ts +4 -0
- package/esm2020/src/lib/components/dropdown/public-api.mjs +0 -6
- package/esm2020/src/lib/components/dropdown/src/dropdown.component.mjs +0 -26
- package/esm2020/src/lib/components/dropdown/src/dropdown.module.mjs +0 -36
- package/esm2020/src/lib/components/dropdown/src/option/option.component.mjs +0 -26
- package/mapa-library-ui-0.0.21.tgz +0 -0
- package/src/lib/components/dropdown/src/dropdown.component.d.ts +0 -12
- package/src/lib/components/dropdown/src/dropdown.module.d.ts +0 -12
- package/src/lib/components/dropdown/src/option/option.component.d.ts +0 -12
- /package/src/lib/components/dropdown/{public-api.d.ts → lib/components/dropdown/public-api.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapa-library-ui.mjs","sources":["../../../projects/mapa-library-ui/src/lib/core/elements/element-base.ts","../../../projects/mapa-library-ui/src/lib/core/elements/dropdown.ts","../../../projects/mapa-library-ui/src/lib/core/elements/input-text.ts","../../../projects/mapa-library-ui/src/lib/core/directives/mat-input-autosize.directive.ts","../../../projects/mapa-library-ui/src/lib/core/directives/custom-paginator.directive.ts","../../../projects/mapa-library-ui/src/public-api.ts","../../../projects/mapa-library-ui/src/mapa-library-ui.ts"],"sourcesContent":["import { ElementOption } from '../interfaces/option.interface';\n\nexport class ElementBase {\n value: string;\n key: string;\n label: string;\n required: boolean;\n order: number;\n controlType: string;\n type: string;\n placeholder?: string;\n hint?: string;\n prefix?: string;\n suffix?: string;\n autosize?: boolean;\n autosizeMinWidth?: string;\n autosizeMaxWidth?: string;\n options: ElementOption[];\n multiple?: boolean;\n\n constructor(\n options: {\n value?: string;\n key?: string;\n label?: string;\n required?: boolean;\n order?: number;\n controlType?: string;\n type?: string;\n placeholder?: string;\n hint?: string;\n prefix?: string;\n suffix?: string;\n autosize?: boolean;\n autosizeMinWidth?: string;\n autosizeMaxWidth?: string;\n options?: ElementOption[];\n multiple?: boolean;\n } = {}\n ) {\n this.value = options.value || '';\n this.key = options.key || '';\n this.label = options.label || '';\n this.required = !!options.required;\n this.order = options.order === undefined ? 1 : options.order;\n this.controlType = options.controlType || '';\n this.type = options.type || '';\n this.placeholder = options.placeholder || '';\n this.hint = options.hint || '';\n this.prefix = options.prefix || '';\n this.suffix = options.suffix || '';\n this.autosize = options.autosize || false;\n this.autosizeMinWidth = options.autosizeMinWidth || '212px';\n this.autosizeMaxWidth = options.autosizeMaxWidth || '400px';\n this.options = options.options || [];\n this.multiple = options.multiple || false;\n }\n}\n","import { ElementBase } from './element-base';\n\nexport class Dropdown extends ElementBase {\n override controlType = 'dropdown';\n}\n","import { ElementBase } from './element-base';\n\nexport class InputText extends ElementBase {\n override controlType = 'input';\n}\n","/*\n* Originally from: https://github.com/anotherkitten/mat-input-autosize\n* @author: Ellie Larson (anotherkitten)\n*/\n\nimport {\n AfterViewInit,\n Directive,\n ElementRef,\n Input,\n OnDestroy,\n Optional,\n Self,\n} from '@angular/core';\nimport { NgModel } from '@angular/forms';\nimport { MatInput } from '@angular/material/input';\nimport { Subscription } from 'rxjs';\n\n@Directive({\n selector: '[matInputAutosize]',\n standalone: true,\n})\nexport class MatInputAutosizeDirective implements AfterViewInit, OnDestroy {\n inputElement: HTMLInputElement;\n hiddenText!: Text;\n changeDetectSub!: Subscription;\n\n @Input() matInputAutosizeMaxWidth: any;\n @Input() matInputAutosizeMinWidth = '120px';\n @Input() matInputAutosizeFontStyle: any;\n\n constructor(\n el: ElementRef<HTMLInputElement>,\n @Self() private childMatInput: MatInput,\n @Optional() @Self() private childNgModel: NgModel\n ) {\n this.inputElement = el.nativeElement;\n }\n\n ngAfterViewInit(): void {\n this.checkErrors();\n this.overwriteParentWidth();\n this.createHiddenTextContainer();\n this.setOwnStyles();\n this.subscribeToChanges();\n }\n\n ngOnDestroy(): void {\n if (this.changeDetectSub) {\n this.changeDetectSub.unsubscribe();\n }\n }\n\n checkErrors(): void {\n if (!(this.inputElement instanceof HTMLInputElement)) {\n throw new Error('matInputAutosize directive must be on an input element');\n }\n\n if (!this.childMatInput) {\n throw new Error(\n 'Element with matInputAutosize directive must also have the matInput directive'\n );\n }\n }\n\n overwriteParentWidth(): void {\n Object.assign((this.inputElement.parentNode as HTMLElement).style, {\n width: '100%',\n });\n }\n\n createHiddenTextContainer(): void {\n const textContainer = document.createElement('div');\n Object.assign(textContainer.style, {\n display: 'inline-block',\n 'max-width': this.matInputAutosizeMaxWidth || null,\n 'min-width': this.matInputAutosizeMinWidth,\n font: this.matInputAutosizeFontStyle || null,\n visibility: 'hidden',\n 'white-space': 'pre',\n });\n this.inputElement.parentNode?.appendChild(textContainer);\n\n this.hiddenText = document.createTextNode(' ');\n textContainer.appendChild(this.hiddenText);\n }\n\n setOwnStyles(): void {\n Object.assign(this.inputElement.style, {\n position: 'absolute',\n left: '0',\n });\n }\n\n subscribeToChanges(): void {\n if (this.childNgModel) {\n this.changeDetectSub = this.childNgModel.control.valueChanges.subscribe(\n this.changeHiddenText\n );\n } else {\n this.inputElement.addEventListener('input', () =>\n this.changeHiddenText(this.inputElement.value)\n );\n }\n }\n\n changeHiddenText = (newValue: string): void => {\n if (this.hiddenText) {\n this.hiddenText.data = newValue + ' ';\n }\n };\n}\n","import {\n AfterViewInit,\n Directive,\n ElementRef,\n EventEmitter,\n Input,\n OnChanges,\n Output,\n Renderer2,\n SimpleChanges,\n} from \"@angular/core\";\nimport { MatPaginator } from \"@angular/material/paginator\";\nimport { map, startWith } from \"rxjs\";\n\n@Directive({\n selector: \"[appBubblePagination]\",\n standalone: true,\n})\nexport class BubblePaginationDirective implements AfterViewInit, OnChanges {\n @Output() pageIndexChangeEmitter: EventEmitter<number> = new EventEmitter<number>();\n @Input() showFirstButton = true;\n @Input() showLastButton = true;\n @Input() renderButtonsNumber = 2;\n @Input() appCustomLength: number = 0;\n @Input() hideDefaultArrows = false;\n private dotsEndRef!: HTMLElement;\n private dotsStartRef!: HTMLElement;\n private bubbleContainerRef!: HTMLElement;\n private buttonsRef: HTMLElement[] = [];\n\n constructor(\n private readonly matPag: MatPaginator,\n private elementRef: ElementRef,\n private ren: Renderer2\n ) {}\n\n ngAfterViewInit(): void {\n this.styleDefaultPagination();\n this.createBubbleDivRef();\n this.renderButtons();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (!changes?.[\"appCustomLength\"]?.firstChange) {\n this.removeButtons();\n this.switchPage(0);\n this.renderButtons();\n }\n }\n\n private renderButtons(): void {\n this.buildButtons();\n\n this.matPag.page\n .pipe(\n map((e) => [e.previousPageIndex ?? 0, e.pageIndex]),\n startWith([0, 0])\n )\n .subscribe(([prev, curr]) => {\n this.changeActiveButtonStyles(prev, curr);\n this.updateButtonsOnPageEvent();\n });\n }\n\n private changeActiveButtonStyles(previousIndex: number, newIndex: number) {\n const previouslyActive = this.buttonsRef[previousIndex];\n const currentActive = this.buttonsRef[newIndex];\n\n try {\n this.ren.removeClass(previouslyActive, \"g-bubble__active\");\n this.ren.addClass(currentActive, \"g-bubble__active\");\n } catch {}\n\n this.buttonsRef.forEach((button) =>\n this.ren.setStyle(button, \"display\", \"none\")\n );\n\n const renderElements = this.renderButtonsNumber;\n const endDots = newIndex < this.buttonsRef.length - renderElements - 1;\n const startDots = newIndex - renderElements > 0;\n\n const firstButton = this.buttonsRef[0];\n const lastButton = this.buttonsRef[this.buttonsRef.length - 1];\n\n try {\n if (this.showLastButton) {\n this.ren.setStyle(this.dotsEndRef, \"display\", endDots ? \"block\" : \"none\");\n this.ren.setStyle(lastButton, \"display\", endDots ? \"flex\" : \"none\");\n }\n } catch {}\n\n try {\n if (this.showFirstButton) {\n this.ren.setStyle(\n this.dotsStartRef,\n \"display\",\n startDots ? \"block\" : \"none\"\n );\n this.ren.setStyle(firstButton, \"display\", startDots ? \"flex\" : \"none\");\n }\n } catch {}\n\n const startingIndex = startDots ? newIndex - renderElements : 0;\n const endingIndex = endDots\n ? newIndex + renderElements\n : this.buttonsRef.length - 1;\n\n for (let i = startingIndex; i <= endingIndex; i++) {\n const button = this.buttonsRef[i];\n this.ren.setStyle(button, \"display\", \"flex\");\n }\n }\n\n private styleDefaultPagination() {\n const nativeElement = this.elementRef.nativeElement;\n const itemsPerPage = nativeElement.querySelector(\n \".mat-mdc-paginator-page-size\"\n );\n const howManyDisplayedEl = nativeElement.querySelector(\n \".mat-mdc-paginator-range-label\"\n );\n const previousButton = nativeElement.querySelector(\n \"button.mat-mdc-paginator-navigation-previous\"\n );\n const nextButtonDefault = nativeElement.querySelector(\n \"button.mat-mdc-paginator-navigation-next\"\n );\n\n if (this.hideDefaultArrows) {\n this.ren.setStyle(previousButton, \"display\", \"none\");\n this.ren.setStyle(nextButtonDefault, \"display\", \"none\");\n }\n }\n\n private createBubbleDivRef(): void {\n const actionContainer = this.elementRef.nativeElement.querySelector(\n \"div.mat-mdc-paginator-range-actions\"\n );\n const nextButtonDefault = this.elementRef.nativeElement.querySelector(\n \"button.mat-mdc-paginator-navigation-next\"\n );\n\n this.bubbleContainerRef = this.ren.createElement(\"div\") as HTMLElement;\n this.ren.addClass(this.bubbleContainerRef, \"g-bubble-container\");\n\n this.ren.insertBefore(\n actionContainer,\n this.bubbleContainerRef,\n nextButtonDefault\n );\n }\n\n private buildButtons(): void {\n const neededButtons = Math.ceil(\n this.appCustomLength / this.matPag.pageSize\n );\n\n if (neededButtons === 1) {\n this.ren.setStyle(this.elementRef.nativeElement, \"display\", \"none\");\n return;\n }\n\n this.buttonsRef = [this.createButton(0)];\n this.dotsStartRef = this.createDotsElement();\n\n for (let index = 1; index < neededButtons - 1; index++) {\n this.buttonsRef = [...this.buttonsRef, this.createButton(index)];\n }\n\n this.dotsEndRef = this.createDotsElement();\n\n this.buttonsRef = [\n ...this.buttonsRef,\n this.createButton(neededButtons - 1),\n ];\n }\n\n private removeButtons(): void {\n this.bubbleContainerRef.innerHTML = '';\n this.buttonsRef.forEach((button) => {\n this.ren.removeChild(this.bubbleContainerRef, button);\n });\n this.buttonsRef = [];\n this.buttonsRef.length = 0;\n }\n\n private createButton(i: number): HTMLElement {\n const bubbleButton = this.ren.createElement(\"div\");\n const text = this.ren.createText(String(i + 1));\n\n this.ren.addClass(bubbleButton, \"g-bubble\");\n this.ren.setStyle(bubbleButton, \"margin-right\", \"8px\");\n this.ren.appendChild(bubbleButton, text);\n\n this.ren.listen(bubbleButton, \"click\", () => {\n this.switchPage(i);\n });\n\n this.ren.appendChild(this.bubbleContainerRef, bubbleButton);\n this.ren.setStyle(bubbleButton, \"display\", \"none\");\n\n return bubbleButton;\n }\n\n private createDotsElement(): HTMLElement {\n const dotsEl = this.ren.createElement(\"span\");\n const dotsText = this.ren.createText(\".....\");\n\n this.ren.setStyle(dotsEl, \"font-size\", \"18px\");\n this.ren.setStyle(dotsEl, \"margin-right\", \"8px\");\n this.ren.setStyle(dotsEl, \"padding-top\", \"6px\");\n this.ren.setStyle(dotsEl, \"color\", \"#919191\");\n\n this.ren.appendChild(dotsEl, dotsText);\n this.ren.appendChild(this.bubbleContainerRef, dotsEl);\n this.ren.setStyle(dotsEl, \"display\", \"none\");\n\n return dotsEl;\n }\n\n private switchPage(i: number): void {\n const previousPageIndex = this.matPag.pageIndex;\n this.matPag.pageIndex = i;\n try {\n this.matPag[\"_emitPageEvent\"](previousPageIndex);\n } catch {}\n\n this.pageIndexChangeEmitter.emit(i);\n }\n\n private updateButtonsOnPageEvent(): void {\n const neededButtons = Math.ceil(\n this.appCustomLength / this.matPag.pageSize\n );\n if (neededButtons === this.buttonsRef.length) {\n return;\n }\n\n this.removeButtons();\n this.buildButtons();\n }\n}\n","/*\n * Public API Surface of mapa-library-ui\n */\n\nexport * from './lib/core/elements/element-base';\nexport * from './lib/core/elements/dropdown';\nexport * from './lib/core/elements/input-text';\n\nexport * from './lib/core/interfaces/option.interface';\n\nexport * from './lib/core/directives/mat-input-autosize.directive';\nexport * from './lib/core/directives/custom-paginator.directive';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;MAEa,WAAW,CAAA;AAkBtB,IAAA,WAAA,CACE,UAiBI,EAAE,EAAA;QAEN,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;AACnC,QAAA,IAAI,CAAC,KAAK,GAAG,OAAO,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"version":3,"file":"mapa-library-ui.mjs","sources":["../../../projects/mapa-library-ui/src/lib/core/elements/element-base.ts","../../../projects/mapa-library-ui/src/lib/core/elements/dropdown.ts","../../../projects/mapa-library-ui/src/lib/core/elements/input-text.ts","../../../projects/mapa-library-ui/src/lib/core/directives/mat-input-autosize.directive.ts","../../../projects/mapa-library-ui/src/lib/core/directives/custom-paginator.directive.ts","../../../projects/mapa-library-ui/src/public-api.ts","../../../projects/mapa-library-ui/src/mapa-library-ui.ts"],"sourcesContent":["import { ElementOption } from '../interfaces/option.interface';\nimport { ElementSearch } from './element-search';\n\nexport class ElementBase {\n value: string;\n key: string;\n label: string;\n required: boolean;\n order: number;\n controlType: string;\n type: string;\n placeholder?: string;\n hint?: string;\n prefix?: string;\n suffix?: string;\n autosize?: boolean;\n autosizeMinWidth?: string;\n autosizeMaxWidth?: string;\n options: ElementOption[];\n multiple?: boolean;\n search?: ElementSearch;\n \n constructor(\n options: {\n value?: string;\n key?: string;\n label?: string;\n required?: boolean;\n order?: number;\n controlType?: string;\n type?: string;\n placeholder?: string;\n hint?: string;\n prefix?: string;\n suffix?: string;\n autosize?: boolean;\n autosizeMinWidth?: string;\n autosizeMaxWidth?: string;\n options?: ElementOption[];\n multiple?: boolean;\n search?: ElementSearch;\n } = {}\n ) {\n this.value = options.value || '';\n this.key = options.key || '';\n this.label = options.label || '';\n this.required = !!options.required;\n this.order = options.order === undefined ? 1 : options.order;\n this.controlType = options.controlType || '';\n this.type = options.type || '';\n this.placeholder = options.placeholder || '';\n this.hint = options.hint || '';\n this.prefix = options.prefix || '';\n this.suffix = options.suffix || '';\n this.autosize = options.autosize || false;\n this.autosizeMinWidth = options.autosizeMinWidth || '212px';\n this.autosizeMaxWidth = options.autosizeMaxWidth || '400px';\n this.options = options.options || [];\n this.multiple = options.multiple || false;\n this.search = options.search || undefined;\n }\n}\n","import { ElementBase } from './element-base';\n\nexport class Dropdown extends ElementBase {\n override controlType = 'dropdown';\n}\n","import { ElementBase } from './element-base';\n\nexport class InputText extends ElementBase {\n override controlType = 'input';\n}\n","/*\n* Originally from: https://github.com/anotherkitten/mat-input-autosize\n* @author: Ellie Larson (anotherkitten)\n*/\n\nimport {\n AfterViewInit,\n Directive,\n ElementRef,\n Input,\n OnDestroy,\n Optional,\n Self,\n} from '@angular/core';\nimport { NgModel } from '@angular/forms';\nimport { MatInput } from '@angular/material/input';\nimport { Subscription } from 'rxjs';\n\n@Directive({\n selector: '[matInputAutosize]',\n standalone: true,\n})\nexport class MatInputAutosizeDirective implements AfterViewInit, OnDestroy {\n inputElement: HTMLInputElement;\n hiddenText!: Text;\n changeDetectSub!: Subscription;\n\n @Input() matInputAutosizeMaxWidth: any;\n @Input() matInputAutosizeMinWidth = '120px';\n @Input() matInputAutosizeFontStyle: any;\n\n constructor(\n el: ElementRef<HTMLInputElement>,\n @Self() private childMatInput: MatInput,\n @Optional() @Self() private childNgModel: NgModel\n ) {\n this.inputElement = el.nativeElement;\n }\n\n ngAfterViewInit(): void {\n this.checkErrors();\n this.overwriteParentWidth();\n this.createHiddenTextContainer();\n this.setOwnStyles();\n this.subscribeToChanges();\n }\n\n ngOnDestroy(): void {\n if (this.changeDetectSub) {\n this.changeDetectSub.unsubscribe();\n }\n }\n\n checkErrors(): void {\n if (!(this.inputElement instanceof HTMLInputElement)) {\n throw new Error('matInputAutosize directive must be on an input element');\n }\n\n if (!this.childMatInput) {\n throw new Error(\n 'Element with matInputAutosize directive must also have the matInput directive'\n );\n }\n }\n\n overwriteParentWidth(): void {\n Object.assign((this.inputElement.parentNode as HTMLElement).style, {\n width: '100%',\n });\n }\n\n createHiddenTextContainer(): void {\n const textContainer = document.createElement('div');\n Object.assign(textContainer.style, {\n display: 'inline-block',\n 'max-width': this.matInputAutosizeMaxWidth || null,\n 'min-width': this.matInputAutosizeMinWidth,\n font: this.matInputAutosizeFontStyle || null,\n visibility: 'hidden',\n 'white-space': 'pre',\n });\n this.inputElement.parentNode?.appendChild(textContainer);\n\n this.hiddenText = document.createTextNode(' ');\n textContainer.appendChild(this.hiddenText);\n }\n\n setOwnStyles(): void {\n Object.assign(this.inputElement.style, {\n position: 'absolute',\n left: '0',\n });\n }\n\n subscribeToChanges(): void {\n if (this.childNgModel) {\n this.changeDetectSub = this.childNgModel.control.valueChanges.subscribe(\n this.changeHiddenText\n );\n } else {\n this.inputElement.addEventListener('input', () =>\n this.changeHiddenText(this.inputElement.value)\n );\n }\n }\n\n changeHiddenText = (newValue: string): void => {\n if (this.hiddenText) {\n this.hiddenText.data = newValue + ' ';\n }\n };\n}\n","import {\n AfterViewInit,\n Directive,\n ElementRef,\n EventEmitter,\n Input,\n OnChanges,\n Output,\n Renderer2,\n SimpleChanges,\n} from \"@angular/core\";\nimport { MatPaginator } from \"@angular/material/paginator\";\nimport { map, startWith } from \"rxjs\";\n\n@Directive({\n selector: \"[appBubblePagination]\",\n standalone: true,\n})\nexport class BubblePaginationDirective implements AfterViewInit, OnChanges {\n @Output() pageIndexChangeEmitter: EventEmitter<number> = new EventEmitter<number>();\n @Input() showFirstButton = true;\n @Input() showLastButton = true;\n @Input() renderButtonsNumber = 2;\n @Input() appCustomLength: number = 0;\n @Input() hideDefaultArrows = false;\n private dotsEndRef!: HTMLElement;\n private dotsStartRef!: HTMLElement;\n private bubbleContainerRef!: HTMLElement;\n private buttonsRef: HTMLElement[] = [];\n\n constructor(\n private readonly matPag: MatPaginator,\n private elementRef: ElementRef,\n private ren: Renderer2\n ) {}\n\n ngAfterViewInit(): void {\n this.styleDefaultPagination();\n this.createBubbleDivRef();\n this.renderButtons();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (!changes?.[\"appCustomLength\"]?.firstChange) {\n this.removeButtons();\n this.switchPage(0);\n this.renderButtons();\n }\n }\n\n private renderButtons(): void {\n this.buildButtons();\n\n this.matPag.page\n .pipe(\n map((e) => [e.previousPageIndex ?? 0, e.pageIndex]),\n startWith([0, 0])\n )\n .subscribe(([prev, curr]) => {\n this.changeActiveButtonStyles(prev, curr);\n this.updateButtonsOnPageEvent();\n });\n }\n\n private changeActiveButtonStyles(previousIndex: number, newIndex: number) {\n const previouslyActive = this.buttonsRef[previousIndex];\n const currentActive = this.buttonsRef[newIndex];\n\n try {\n this.ren.removeClass(previouslyActive, \"g-bubble__active\");\n this.ren.addClass(currentActive, \"g-bubble__active\");\n } catch {}\n\n this.buttonsRef.forEach((button) =>\n this.ren.setStyle(button, \"display\", \"none\")\n );\n\n const renderElements = this.renderButtonsNumber;\n const endDots = newIndex < this.buttonsRef.length - renderElements - 1;\n const startDots = newIndex - renderElements > 0;\n\n const firstButton = this.buttonsRef[0];\n const lastButton = this.buttonsRef[this.buttonsRef.length - 1];\n\n try {\n if (this.showLastButton) {\n this.ren.setStyle(this.dotsEndRef, \"display\", endDots ? \"block\" : \"none\");\n this.ren.setStyle(lastButton, \"display\", endDots ? \"flex\" : \"none\");\n }\n } catch {}\n\n try {\n if (this.showFirstButton) {\n this.ren.setStyle(\n this.dotsStartRef,\n \"display\",\n startDots ? \"block\" : \"none\"\n );\n this.ren.setStyle(firstButton, \"display\", startDots ? \"flex\" : \"none\");\n }\n } catch {}\n\n const startingIndex = startDots ? newIndex - renderElements : 0;\n const endingIndex = endDots\n ? newIndex + renderElements\n : this.buttonsRef.length - 1;\n\n for (let i = startingIndex; i <= endingIndex; i++) {\n const button = this.buttonsRef[i];\n this.ren.setStyle(button, \"display\", \"flex\");\n }\n }\n\n private styleDefaultPagination() {\n const nativeElement = this.elementRef.nativeElement;\n const itemsPerPage = nativeElement.querySelector(\n \".mat-mdc-paginator-page-size\"\n );\n const howManyDisplayedEl = nativeElement.querySelector(\n \".mat-mdc-paginator-range-label\"\n );\n const previousButton = nativeElement.querySelector(\n \"button.mat-mdc-paginator-navigation-previous\"\n );\n const nextButtonDefault = nativeElement.querySelector(\n \"button.mat-mdc-paginator-navigation-next\"\n );\n\n if (this.hideDefaultArrows) {\n this.ren.setStyle(previousButton, \"display\", \"none\");\n this.ren.setStyle(nextButtonDefault, \"display\", \"none\");\n }\n }\n\n private createBubbleDivRef(): void {\n const actionContainer = this.elementRef.nativeElement.querySelector(\n \"div.mat-mdc-paginator-range-actions\"\n );\n const nextButtonDefault = this.elementRef.nativeElement.querySelector(\n \"button.mat-mdc-paginator-navigation-next\"\n );\n\n this.bubbleContainerRef = this.ren.createElement(\"div\") as HTMLElement;\n this.ren.addClass(this.bubbleContainerRef, \"g-bubble-container\");\n\n this.ren.insertBefore(\n actionContainer,\n this.bubbleContainerRef,\n nextButtonDefault\n );\n }\n\n private buildButtons(): void {\n const neededButtons = Math.ceil(\n this.appCustomLength / this.matPag.pageSize\n );\n\n if (neededButtons === 1) {\n this.ren.setStyle(this.elementRef.nativeElement, \"display\", \"none\");\n return;\n }\n\n this.buttonsRef = [this.createButton(0)];\n this.dotsStartRef = this.createDotsElement();\n\n for (let index = 1; index < neededButtons - 1; index++) {\n this.buttonsRef = [...this.buttonsRef, this.createButton(index)];\n }\n\n this.dotsEndRef = this.createDotsElement();\n\n this.buttonsRef = [\n ...this.buttonsRef,\n this.createButton(neededButtons - 1),\n ];\n }\n\n private removeButtons(): void {\n this.bubbleContainerRef.innerHTML = '';\n this.buttonsRef.forEach((button) => {\n this.ren.removeChild(this.bubbleContainerRef, button);\n });\n this.buttonsRef = [];\n this.buttonsRef.length = 0;\n }\n\n private createButton(i: number): HTMLElement {\n const bubbleButton = this.ren.createElement(\"div\");\n const text = this.ren.createText(String(i + 1));\n\n this.ren.addClass(bubbleButton, \"g-bubble\");\n this.ren.setStyle(bubbleButton, \"margin-right\", \"8px\");\n this.ren.appendChild(bubbleButton, text);\n\n this.ren.listen(bubbleButton, \"click\", () => {\n this.switchPage(i);\n });\n\n this.ren.appendChild(this.bubbleContainerRef, bubbleButton);\n this.ren.setStyle(bubbleButton, \"display\", \"none\");\n\n return bubbleButton;\n }\n\n private createDotsElement(): HTMLElement {\n const dotsEl = this.ren.createElement(\"span\");\n const dotsText = this.ren.createText(\".....\");\n\n this.ren.setStyle(dotsEl, \"font-size\", \"18px\");\n this.ren.setStyle(dotsEl, \"margin-right\", \"8px\");\n this.ren.setStyle(dotsEl, \"padding-top\", \"6px\");\n this.ren.setStyle(dotsEl, \"color\", \"#919191\");\n\n this.ren.appendChild(dotsEl, dotsText);\n this.ren.appendChild(this.bubbleContainerRef, dotsEl);\n this.ren.setStyle(dotsEl, \"display\", \"none\");\n\n return dotsEl;\n }\n\n private switchPage(i: number): void {\n const previousPageIndex = this.matPag.pageIndex;\n this.matPag.pageIndex = i;\n try {\n this.matPag[\"_emitPageEvent\"](previousPageIndex);\n } catch {}\n\n this.pageIndexChangeEmitter.emit(i);\n }\n\n private updateButtonsOnPageEvent(): void {\n const neededButtons = Math.ceil(\n this.appCustomLength / this.matPag.pageSize\n );\n if (neededButtons === this.buttonsRef.length) {\n return;\n }\n\n this.removeButtons();\n this.buildButtons();\n }\n}\n","/*\n * Public API Surface of mapa-library-ui\n */\n\nexport * from './lib/core/elements/element-search';\nexport * from './lib/core/elements/element-base';\nexport * from './lib/core/elements/dropdown';\nexport * from './lib/core/elements/input-text';\n\nexport * from './lib/core/interfaces/option.interface';\n\nexport * from './lib/core/directives/mat-input-autosize.directive';\nexport * from './lib/core/directives/custom-paginator.directive';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;MAGa,WAAW,CAAA;AAmBtB,IAAA,WAAA,CACE,UAkBI,EAAE,EAAA;QAEN,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;AACnC,QAAA,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,KAAK,SAAS,GAAG,CAAC,GAAG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AAEG;;;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ElementOption } from '../interfaces/option.interface';
|
|
2
|
+
import { ElementSearch } from './element-search';
|
|
2
3
|
export declare class ElementBase {
|
|
3
4
|
value: string;
|
|
4
5
|
key: string;
|
|
@@ -16,6 +17,7 @@ export declare class ElementBase {
|
|
|
16
17
|
autosizeMaxWidth?: string;
|
|
17
18
|
options: ElementOption[];
|
|
18
19
|
multiple?: boolean;
|
|
20
|
+
search?: ElementSearch;
|
|
19
21
|
constructor(options?: {
|
|
20
22
|
value?: string;
|
|
21
23
|
key?: string;
|
|
@@ -33,5 +35,6 @@ export declare class ElementBase {
|
|
|
33
35
|
autosizeMaxWidth?: string;
|
|
34
36
|
options?: ElementOption[];
|
|
35
37
|
multiple?: boolean;
|
|
38
|
+
search?: ElementSearch;
|
|
36
39
|
});
|
|
37
40
|
}
|
|
Binary file
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { Dropdown } from 'mapa-library-ui';
|
|
4
|
+
import { ReplaySubject } from 'rxjs/internal/ReplaySubject';
|
|
5
|
+
import { ElementOption } from '../../../core/interfaces/option.interface';
|
|
6
|
+
import { Subject } from 'rxjs/internal/Subject';
|
|
7
|
+
import { MatSelect } from '@angular/material/select';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class MapaDropdownComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
10
|
+
formControl: FormControl;
|
|
11
|
+
formControlSearch: FormControl;
|
|
12
|
+
element: Dropdown;
|
|
13
|
+
border: 'soft__border' | null | undefined;
|
|
14
|
+
dropdown: MatSelect;
|
|
15
|
+
filteredOptions: ReplaySubject<ElementOption[]>;
|
|
16
|
+
protected _onDestroy: Subject<void>;
|
|
17
|
+
constructor();
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
ngAfterViewInit(): void;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
protected setInitialValue(): void;
|
|
22
|
+
protected filterOptions(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownComponent, "mapa-dropdown", never, { "formControl": "formControl"; "formControlSearch": "formControlSearch"; "element": "element"; "border": "border"; }, {}, never, never, false, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./dropdown.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "@angular/material/list";
|
|
6
|
+
import * as i5 from "@angular/material/icon";
|
|
7
|
+
import * as i6 from "@angular/material/select";
|
|
8
|
+
import * as i7 from "ngx-mat-select-search";
|
|
9
|
+
export declare class MapaDropdownModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MapaDropdownModule, [typeof i1.MapaDropdownComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.MatListModule, typeof i5.MatIconModule, typeof i6.MatSelectModule, typeof i7.NgxMatSelectSearchModule], [typeof i1.MapaDropdownComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MapaDropdownModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ElementOption } from '../interfaces/option.interface';
|
|
2
|
+
import { ElementSearch } from './element-search';
|
|
3
|
+
export declare class ElementBase {
|
|
4
|
+
value: string;
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
required: boolean;
|
|
8
|
+
order: number;
|
|
9
|
+
controlType: string;
|
|
10
|
+
type: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
hint?: string;
|
|
13
|
+
prefix?: string;
|
|
14
|
+
suffix?: string;
|
|
15
|
+
autosize?: boolean;
|
|
16
|
+
autosizeMinWidth?: string;
|
|
17
|
+
autosizeMaxWidth?: string;
|
|
18
|
+
options: ElementOption[];
|
|
19
|
+
multiple?: boolean;
|
|
20
|
+
search?: ElementSearch;
|
|
21
|
+
constructor(options?: {
|
|
22
|
+
value?: string;
|
|
23
|
+
key?: string;
|
|
24
|
+
label?: string;
|
|
25
|
+
required?: boolean;
|
|
26
|
+
order?: number;
|
|
27
|
+
controlType?: string;
|
|
28
|
+
type?: string;
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
hint?: string;
|
|
31
|
+
prefix?: string;
|
|
32
|
+
suffix?: string;
|
|
33
|
+
autosize?: boolean;
|
|
34
|
+
autosizeMinWidth?: string;
|
|
35
|
+
autosizeMaxWidth?: string;
|
|
36
|
+
options?: ElementOption[];
|
|
37
|
+
multiple?: boolean;
|
|
38
|
+
search?: ElementSearch;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of mapa-library-ui dropdown
|
|
3
|
-
*/
|
|
4
|
-
export * from './src/dropdown.component';
|
|
5
|
-
export * from './src/dropdown.module';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21hcGEtbGlicmFyeS11aS9zcmMvbGliL2NvbXBvbmVudHMvZHJvcGRvd24vcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyx1QkFBdUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgbWFwYS1saWJyYXJ5LXVpIGRyb3Bkb3duXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9zcmMvZHJvcGRvd24uY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vc3JjL2Ryb3Bkb3duLm1vZHVsZSc7XG4iXX0=
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "@angular/material/icon";
|
|
5
|
-
import * as i3 from "./option/option.component";
|
|
6
|
-
export class MapaDropdownComponent {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.opened = false;
|
|
9
|
-
}
|
|
10
|
-
toggleOptions() {
|
|
11
|
-
this.opened = !this.opened;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
MapaDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
-
MapaDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaDropdownComponent, selector: "mapa-dropdown", inputs: { formControl: "formControl", element: "element", border: "border" }, ngImport: i0, template: "<div class=\"mapa-dropdown\">\n <label *ngIf=\"element.label\" class=\"mapa-dropdown__label\">\n {{ element.label }}\n </label>\n <span \n class=\"mapa-dropdown__content\"\n [class.soft__border]=\"border === 'soft__border'\"\n [class.mapa-dropdown__content--labeled]=\"!!element.label\"\n (click)=\"toggleOptions()\"\n >\n <span>\n <span class=\"mapa-dropdown__content--selected\" *ngIf=\"(formControl.value?.length || 0) > 0; else placeholder\">\n {{formControl.value?.[0] || ''}}\n <span class=\"mapa-dropdown__content--selected-others\" *ngIf=\"(formControl.value?.length || 0) > 1\">\n (+{{ (formControl.value?.length || 0) - 1 }}\n {{ formControl.value?.length === 2 ? \"outro\" : \"outros\" }})\n </span>\n </span>\n <ng-template #placeholder>\n <span class=\"mapa-dropdown__content--placeholder\">\n {{ element.placeholder || element.label }}\n </span>\n </ng-template>\n </span>\n <span>\n <mat-icon *ngIf=\"!opened\">keyboard_arrow_down</mat-icon>\n <mat-icon *ngIf=\"opened\">keyboard_arrow_up</mat-icon>\n </span>\n <div class=\"mapa-dropdown__options\" *ngIf=\"opened\">\n <mapa-option [control]=\"formControl\" [element]=\"element\"></mapa-option>\n </div>\n </span>\n</div>\n", styles: [".mapa-dropdown{max-width:min-content;min-width:235px}.mapa-dropdown .mat-icon{display:flex;justify-content:center;align-items:center}.mapa-dropdown__label{display:block;font-size:12px;font-style:normal;font-weight:600;line-height:16px;text-transform:uppercase;margin-bottom:16px}.mapa-dropdown__content{background:#fff;border-radius:10px;border:2px solid #a7aaad;display:flex;align-items:center;justify-content:space-between;position:relative;font-size:16px;font-style:normal;font-weight:400;line-height:24px;cursor:pointer;padding:0 16px;height:48px}.mapa-dropdown__content--labeled{height:40px}.mapa-dropdown__content.soft__border{border-radius:16px;border:1px solid #C3C4C7!important}.mapa-dropdown__content--selected{color:#000}.mapa-dropdown__content--selected-others,.mapa-dropdown__content--placeholder{color:#77838f}.mapa-dropdown__content ::ng-deep mapa-icon .mat-icon{height:18px!important}.mapa-dropdown__options{position:absolute;top:56px;left:0;width:100%;z-index:1}.mapa-dropdown__options ul{display:block;list-style-type:none;margin-block-start:0px;margin-block-end:0px;margin-inline-start:0px;margin-inline-end:0px;padding-inline-start:0px;background:#fff;border:1px solid #cdcdcd;border-radius:8px;box-shadow:0 4px 4px #00000021}.mapa-dropdown__options ul li{list-style:none;padding:4px 13px}.mapa-dropdown__options ul li:hover{background-color:#cdcdcd}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MapaOptionComponent, selector: "mapa-option", inputs: ["control", "element"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownComponent, decorators: [{
|
|
17
|
-
type: Component,
|
|
18
|
-
args: [{ selector: 'mapa-dropdown', encapsulation: ViewEncapsulation.None, template: "<div class=\"mapa-dropdown\">\n <label *ngIf=\"element.label\" class=\"mapa-dropdown__label\">\n {{ element.label }}\n </label>\n <span \n class=\"mapa-dropdown__content\"\n [class.soft__border]=\"border === 'soft__border'\"\n [class.mapa-dropdown__content--labeled]=\"!!element.label\"\n (click)=\"toggleOptions()\"\n >\n <span>\n <span class=\"mapa-dropdown__content--selected\" *ngIf=\"(formControl.value?.length || 0) > 0; else placeholder\">\n {{formControl.value?.[0] || ''}}\n <span class=\"mapa-dropdown__content--selected-others\" *ngIf=\"(formControl.value?.length || 0) > 1\">\n (+{{ (formControl.value?.length || 0) - 1 }}\n {{ formControl.value?.length === 2 ? \"outro\" : \"outros\" }})\n </span>\n </span>\n <ng-template #placeholder>\n <span class=\"mapa-dropdown__content--placeholder\">\n {{ element.placeholder || element.label }}\n </span>\n </ng-template>\n </span>\n <span>\n <mat-icon *ngIf=\"!opened\">keyboard_arrow_down</mat-icon>\n <mat-icon *ngIf=\"opened\">keyboard_arrow_up</mat-icon>\n </span>\n <div class=\"mapa-dropdown__options\" *ngIf=\"opened\">\n <mapa-option [control]=\"formControl\" [element]=\"element\"></mapa-option>\n </div>\n </span>\n</div>\n", styles: [".mapa-dropdown{max-width:min-content;min-width:235px}.mapa-dropdown .mat-icon{display:flex;justify-content:center;align-items:center}.mapa-dropdown__label{display:block;font-size:12px;font-style:normal;font-weight:600;line-height:16px;text-transform:uppercase;margin-bottom:16px}.mapa-dropdown__content{background:#fff;border-radius:10px;border:2px solid #a7aaad;display:flex;align-items:center;justify-content:space-between;position:relative;font-size:16px;font-style:normal;font-weight:400;line-height:24px;cursor:pointer;padding:0 16px;height:48px}.mapa-dropdown__content--labeled{height:40px}.mapa-dropdown__content.soft__border{border-radius:16px;border:1px solid #C3C4C7!important}.mapa-dropdown__content--selected{color:#000}.mapa-dropdown__content--selected-others,.mapa-dropdown__content--placeholder{color:#77838f}.mapa-dropdown__content ::ng-deep mapa-icon .mat-icon{height:18px!important}.mapa-dropdown__options{position:absolute;top:56px;left:0;width:100%;z-index:1}.mapa-dropdown__options ul{display:block;list-style-type:none;margin-block-start:0px;margin-block-end:0px;margin-inline-start:0px;margin-inline-end:0px;padding-inline-start:0px;background:#fff;border:1px solid #cdcdcd;border-radius:8px;box-shadow:0 4px 4px #00000021}.mapa-dropdown__options ul li{list-style:none;padding:4px 13px}.mapa-dropdown__options ul li:hover{background-color:#cdcdcd}\n"] }]
|
|
19
|
-
}], propDecorators: { formControl: [{
|
|
20
|
-
type: Input
|
|
21
|
-
}], element: [{
|
|
22
|
-
type: Input
|
|
23
|
-
}], border: [{
|
|
24
|
-
type: Input
|
|
25
|
-
}] } });
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbWFwYS1saWJyYXJ5LXVpL3NyYy9saWIvY29tcG9uZW50cy9kcm9wZG93bi9zcmMvZHJvcGRvd24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbWFwYS1saWJyYXJ5LXVpL3NyYy9saWIvY29tcG9uZW50cy9kcm9wZG93bi9zcmMvZHJvcGRvd24uY29tcG9uZW50Lmh0bW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90aGVyc1wiICpuZ0lmPVwiKGZvcm1Db250cm9sLnZhbHVlPy5sZW5ndGggfHwgMCkgPiAxXCI+XG4gICAgICAgICAgKCt7eyAoZm9ybUNvbnRyb2wudmFsdWU/Lmxlbmd0aCB8fCAwKSAtIDEgfX1cbiAgICAgICAgICB7eyBmb3JtQ29udHJvbC52YWx1ZT8ubGVuZ3RoID09PSAyID8gXCJvdXRyb1wiIDogXCJvdXRyb3NcIiB9fSlcbiAgICAgICAgPC9zcGFuPlxuICAgICAgPC9zcGFuPlxuICAgICAgPG5nLXRlbXBsYXRlICNwbGFjZWhvbGRlcj5cbiAgICAgICAgPHNwYW4gY2xhc3M9XCJtYXBhLWRyb3Bkb3duX19jb250ZW50LS1wbGFjZWhvbGRlclwiPlxuICAgICAgICAgIHt7IGVsZW1lbnQucGxhY2Vob2xkZXIgfHwgZWxlbWVudC5sYWJlbCB9fVxuICAgICAgICA8L3NwYW4+XG4gICAgICA8L25nLXRlbXBsYXRlPlxuICAgIDwvc3Bhbj5cbiAgICA8c3Bhbj5cbiAgICAgIDxtYXQtaWNvbiAqbmdJZj1cIiFvcGVuZWRcIj5rZXlib2FyZF9hcnJvd19kb3duPC9tYXQtaWNvbj5cbiAgICAgIDxtYXQtaWNvbiAqbmdJZj1cIm9wZW5lZFwiPmtleWJvYXJkX2Fycm93X3VwPC9tYXQtaWNvbj5cbiAgICA8L3NwYW4+XG4gICAgPGRpdiBjbGFzcz1cIm1hcGEtZHJvcGRvd25fX29wdGlvbnNcIiAqbmdJZj1cIm9wZW5lZFwiPlxuICAgICAgPG1hcGEtb3B0aW9uIFtjb250cm9sXT1cImZvcm1Db250cm9sXCIgW2VsZW1lbnRdPVwiZWxlbWVudFwiPjwvbWFwYS1vcHRpb24+XG4gICAgPC9kaXY+XG4gIDwvc3Bhbj5cbjwvZGl2PlxuIl19
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { MatListModule } from '@angular/material/list';
|
|
5
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
6
|
-
import { MapaDropdownComponent } from './dropdown.component';
|
|
7
|
-
import { MapaOptionComponent } from './option/option.component';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export class MapaDropdownModule {
|
|
10
|
-
}
|
|
11
|
-
MapaDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12
|
-
MapaDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownModule, declarations: [MapaDropdownComponent, MapaOptionComponent], imports: [CommonModule,
|
|
13
|
-
FormsModule,
|
|
14
|
-
ReactiveFormsModule,
|
|
15
|
-
MatListModule,
|
|
16
|
-
MatIconModule], exports: [MapaDropdownComponent] });
|
|
17
|
-
MapaDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownModule, imports: [CommonModule,
|
|
18
|
-
FormsModule,
|
|
19
|
-
ReactiveFormsModule,
|
|
20
|
-
MatListModule,
|
|
21
|
-
MatIconModule] });
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownModule, decorators: [{
|
|
23
|
-
type: NgModule,
|
|
24
|
-
args: [{
|
|
25
|
-
declarations: [MapaDropdownComponent, MapaOptionComponent],
|
|
26
|
-
exports: [MapaDropdownComponent],
|
|
27
|
-
imports: [
|
|
28
|
-
CommonModule,
|
|
29
|
-
FormsModule,
|
|
30
|
-
ReactiveFormsModule,
|
|
31
|
-
MatListModule,
|
|
32
|
-
MatIconModule,
|
|
33
|
-
],
|
|
34
|
-
}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W9kdWxlLFxuICAgIE1hdEljb25Nb2R1bGUsXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIE1hcGFEcm9wZG93bk1vZHVsZSB7fVxuIl19
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
export class MapaOptionComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.optionsFilter = this.element?.options;
|
|
7
|
-
}
|
|
8
|
-
emit(option) {
|
|
9
|
-
if (this.element?.multiple) {
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
this.control.setValue([option.value]);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
MapaOptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
-
MapaOptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaOptionComponent, selector: "mapa-option", inputs: { control: "control", element: "element" }, ngImport: i0, template: "<ul>\n <li *ngFor=\"let option of element.options; track option\" (click)=\"emit(option)\">{{ option.value }}</li>\n</ul>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaOptionComponent, decorators: [{
|
|
19
|
-
type: Component,
|
|
20
|
-
args: [{ selector: 'mapa-option', template: "<ul>\n <li *ngFor=\"let option of element.options; track option\" (click)=\"emit(option)\">{{ option.value }}</li>\n</ul>" }]
|
|
21
|
-
}], ctorParameters: function () { return []; }, propDecorators: { control: [{
|
|
22
|
-
type: Input
|
|
23
|
-
}], element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+0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { Dropdown } from 'mapa-library-ui';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MapaDropdownComponent {
|
|
5
|
-
formControl: FormControl;
|
|
6
|
-
element: Dropdown;
|
|
7
|
-
border: 'soft__border' | null | undefined;
|
|
8
|
-
opened: boolean;
|
|
9
|
-
toggleOptions(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDropdownComponent, "mapa-dropdown", never, { "formControl": "formControl"; "element": "element"; "border": "border"; }, {}, never, never, false, never>;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./dropdown.component";
|
|
3
|
-
import * as i2 from "./option/option.component";
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
|
-
import * as i4 from "@angular/forms";
|
|
6
|
-
import * as i5 from "@angular/material/list";
|
|
7
|
-
import * as i6 from "@angular/material/icon";
|
|
8
|
-
export declare class MapaDropdownModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapaDropdownModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MapaDropdownModule, [typeof i1.MapaDropdownComponent, typeof i2.MapaOptionComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.MatListModule, typeof i6.MatIconModule], [typeof i1.MapaDropdownComponent]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MapaDropdownModule>;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { Dropdown, ElementOption } from 'mapa-library-ui';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MapaOptionComponent {
|
|
5
|
-
control: FormControl;
|
|
6
|
-
element: Dropdown;
|
|
7
|
-
optionsFilter: ElementOption[];
|
|
8
|
-
constructor();
|
|
9
|
-
emit(option: ElementOption): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapaOptionComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MapaOptionComponent, "mapa-option", never, { "control": "control"; "element": "element"; }, {}, never, never, false, never>;
|
|
12
|
-
}
|
/package/src/lib/components/dropdown/{public-api.d.ts → lib/components/dropdown/public-api.d.ts}
RENAMED
|
File without changes
|