{"version":3,"file":"fieldFilterContainer.obs.js","sources":["../../../Framework/Controls/fieldFilterContainer.obs"],"sourcesContent":["<!-- Copyright by the Spark Development Network; Licensed under the Rock Community License -->\n<template>\n <div class=\"row form-row field-criteria\">\n <div v-if=\"hasCompareColumn\" :class=\"compareColumnClass\">\n <span v-if=\"hasCompareLabel\" class=\"data-view-filter-label\">{{ compareLabel }}</span>\n <slot v-else name=\"compare\" />\n </div>\n\n <div :class=\"valueColumnClass\">\n <slot />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from \"vue\";\n import { PropType } from \"vue\";\n\n const props = defineProps({\n compareLabel: {\n type: String as PropType<string>\n },\n });\n\n const slots = useSlots();\n\n /** True if the compare column should be displayed. */\n const hasCompareColumn = computed((): boolean => !!slots.compare || !!props.compareLabel);\n\n /** True if we have a plain text label to display in the compare column. */\n const hasCompareLabel = computed((): boolean => !!props.compareLabel);\n\n /** The CSS class to use for the compare column width. */\n const compareColumnClass = computed((): string => {\n if (slots.compare) {\n return \"col-xs-12 col-md-4\";\n }\n else if (props.compareLabel) {\n return \"col-xs-12 col-md-2\";\n }\n else {\n return \"\";\n }\n });\n\n /** The CSS class to use for the value column width. */\n const valueColumnClass = computed((): string => {\n if (slots.compare) {\n return \"col-xs-12 col-md-8\";\n }\n else if (props.compareLabel) {\n return \"col-xs-12 col-md-10\";\n }\n else {\n return \"col-xs-12 col-md-12\";\n }\n });\n</script>\n"],"names":["props","__props","slots","useSlots","hasCompareColumn","computed","compare","compareLabel","hasCompareLabel","compareColumnClass","valueColumnClass"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAkBI,IAAMA,KAAK,GAAGC,OAIZ,CAAA;MAEF,IAAA,IAAMC,KAAK,GAAGC,QAAQ,EAAE,CAAA;MAGxB,IAAA,IAAMC,gBAAgB,GAAGC,QAAQ,CAAC,MAAe,CAAC,CAACH,KAAK,CAACI,OAAO,IAAI,CAAC,CAACN,KAAK,CAACO,YAAY,CAAC,CAAA;UAGzF,IAAMC,eAAe,GAAGH,QAAQ,CAAC,MAAe,CAAC,CAACL,KAAK,CAACO,YAAY,CAAC,CAAA;MAGrE,IAAA,IAAME,kBAAkB,GAAGJ,QAAQ,CAAC,MAAc;YAC9C,IAAIH,KAAK,CAACI,OAAO,EAAE;MACf,QAAA,OAAO,oBAAoB,CAAA;MAC/B,OAAC,MACI,IAAIN,KAAK,CAACO,YAAY,EAAE;MACzB,QAAA,OAAO,oBAAoB,CAAA;MAC/B,OAAC,MACI;MACD,QAAA,OAAO,EAAE,CAAA;MACb,OAAA;MACJ,KAAC,CAAC,CAAA;MAGF,IAAA,IAAMG,gBAAgB,GAAGL,QAAQ,CAAC,MAAc;YAC5C,IAAIH,KAAK,CAACI,OAAO,EAAE;MACf,QAAA,OAAO,oBAAoB,CAAA;MAC/B,OAAC,MACI,IAAIN,KAAK,CAACO,YAAY,EAAE;MACzB,QAAA,OAAO,qBAAqB,CAAA;MAChC,OAAC,MACI;MACD,QAAA,OAAO,qBAAqB,CAAA;MAChC,OAAA;MACJ,KAAC,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;"}