{"version":3,"file":"obliczeniowo-elementary-color-key-legend.mjs","sources":["../../../../projects/components/color-key-legend/components/color-key-legend/color-key-legend.component.ts","../../../../projects/components/color-key-legend/components/color-key-legend/color-key-legend.component.html","../../../../projects/components/color-key-legend/color-key-legend.module.ts","../../../../projects/components/color-key-legend/obliczeniowo-elementary-color-key-legend.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\r\n\r\nimport { keys } from '@obliczeniowo/elementary/objects';\r\n\r\nexport interface LegendKey {\r\n  color: string;\r\n  count: number;\r\n}\r\n\r\n@Component({\r\n    selector: 'obl-color-key-legend',\r\n    templateUrl: './color-key-legend.component.html',\r\n    styleUrls: ['./color-key-legend.component.scss'],\r\n    standalone: false\r\n})\r\nexport class ColorKeyLegendComponent {\r\n  keys = input<{ [key: string]: LegendKey }>();\r\n\r\n  keysArray(): string[] {\r\n    return keys(this.keys() || {});\r\n  }\r\n}\r\n","@for (key of keysArray(); track $index) {\r\n  <div class=\"record\">\r\n    <div class=\"key\" [style.background]=\"keys()?.[key]?.color || undefined\"></div>\r\n    <span>{{key}}</span>: <span>{{ keys()?.[key]?.count || ''}}</span>\r\n  </div>\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ColorKeyLegendComponent } from './components/color-key-legend/color-key-legend.component';\r\n\r\n@NgModule({\r\n  declarations: [\r\n    ColorKeyLegendComponent\r\n  ],\r\n  imports: [\r\n    CommonModule\r\n  ],\r\n  exports: [\r\n    ColorKeyLegendComponent\r\n  ]\r\n})\r\nexport class ColorKeyLegendModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAea,uBAAuB,CAAA;IAClC,IAAI,GAAG,KAAK,EAAgC;IAE5C,SAAS,GAAA;QACP,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;;uGAJrB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA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