claude-web/node_modules/primevue/inputchips/index.mjs.map

1 line
34 KiB
Plaintext
Raw Normal View History

2026-02-23 02:23:38 +00:00
{"version":3,"file":"index.mjs","sources":["../../src/inputchips/BaseInputChips.vue","../../src/inputchips/InputChips.vue","../../src/inputchips/InputChips.vue?vue&type=template&id=f3d6e23a&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport InputChipsStyle from 'primevue/inputchips/style';\n\nexport default {\n name: 'BaseInputChips',\n extends: BaseComponent,\n props: {\n modelValue: {\n type: Array,\n default: null\n },\n max: {\n type: Number,\n default: null\n },\n separator: {\n type: [String, Object],\n default: null\n },\n addOnBlur: {\n type: Boolean,\n default: null\n },\n allowDuplicate: {\n type: Boolean,\n default: true\n },\n placeholder: {\n type: String,\n default: null\n },\n variant: {\n type: String,\n default: null\n },\n invalid: {\n type: Boolean,\n default: false\n },\n disabled: {\n type: Boolean,\n default: false\n },\n inputId: {\n type: String,\n default: null\n },\n inputClass: {\n type: [String, Object],\n default: null\n },\n inputStyle: {\n type: Object,\n default: null\n },\n inputProps: {\n type: null,\n default: null\n },\n removeTokenIcon: {\n type: String,\n default: undefined\n },\n chipIcon: {\n type: String,\n default: undefined\n },\n ariaLabelledby: {\n type: String,\n default: null\n },\n ariaLabel: {\n type: String,\n default: null\n }\n },\n style: InputChipsStyle,\n provide() {\n return {\n $pcInputChips: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <div :class=\"cx('root')\" v-bind=\"ptmi('root')\">\n <ul\n ref=\"container\"\n :class=\"cx('input')\"\n tabindex=\"-1\"\n role=\"listbox\"\n aria-orientation=\"horizontal\"\n :aria-labelledby=\"ariaLabelledby\"\n :aria-label=\"ariaLabel\"\n :aria-activedescendant=\"focused ? focusedOptionId : undefined\"\n @click=\"onWrapperClick()\"\n @focus=\"onContainerFocus\"\n @blur=\"onContainerBlur\"\n @keydown=\"onContainerKeyDown\"\n v-bind=\"ptm('input')\"\n >\n <li\n v-for=\"(val, i) of modelValue\"\n :key=\"`${i}_${val}`\"\n :id=\"$id + '_inputchips_item_' + i\"\n role=\"option\"\n :class=\"cx('chipItem', { index: i })\"\n :aria-label=\"val\"\n :aria-selected=\"true\"\n :aria-setsize=\"modelValue.length\"\n :aria-posinset=\"i + 1\"\n v-bind=\"ptm('chipItem')\"\n :data-p-focused=\"focusedIndex === i\"\n >\n <slot name=\"chip\" :class=\"cx('pcChip')\" :index=\"i\" :value=\"val\" :removeCallback=\"(event) => removeOption(event, i)\">\n <!-- TODO: removetokenicon and removeTokenIcon deprecated since v4.0. Use chipicon slot and chipIcon prop-->\n <Chip :class=\"cx('pcChip')\" :label=\"val\" :removeIcon=\"chipIcon || removeTokenIcon\" removable :unstyled=\"unstyled\" @remove=\"removeItem($event, i)\" :pt=\"ptm('pcChip')\">\n <template #removeicon>\n <slot :name=\"$slots.chipicon ? 'chipicon' : 'removetokenicon'\" :class=\"cx('chipIcon')\" :index=\"i\" :removeCallback=\"(event) => removeItem(event, i)\" />\n </template>\n </