UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

1 lines 4.62 kB
{"version":3,"file":"index.mjs","sources":["../../../src/carousel/style/CarouselStyle.js"],"sourcesContent":["import { style } from '@primeuix/styles/carousel';\nimport BaseStyle from '@primevue/core/base/style';\n\nconst classes = {\n root: ({ instance }) => [\n 'p-carousel p-component',\n {\n 'p-carousel-vertical': instance.isVertical(),\n 'p-carousel-horizontal': !instance.isVertical()\n }\n ],\n header: 'p-carousel-header',\n contentContainer: 'p-carousel-content-container',\n content: 'p-carousel-content',\n pcPrevButton: ({ instance }) => [\n 'p-carousel-prev-button',\n {\n 'p-disabled': instance.backwardIsDisabled\n }\n ],\n viewport: 'p-carousel-viewport',\n itemList: 'p-carousel-item-list',\n itemClone: ({ index, value, totalShiftedItems, d_numVisible }) => [\n 'p-carousel-item p-carousel-item-clone',\n {\n 'p-carousel-item-active': totalShiftedItems * -1 === value.length + d_numVisible,\n 'p-carousel-item-start': index === 0,\n 'p-carousel-item-end': value.slice(-1 * d_numVisible).length - 1 === index\n }\n ],\n item: ({ instance, index }) => [\n 'p-carousel-item',\n {\n 'p-carousel-item-active': instance.firstIndex() <= index && instance.lastIndex() >= index,\n 'p-carousel-item-start': instance.firstIndex() === index,\n 'p-carousel-item-end': instance.lastIndex() === index\n }\n ],\n pcNextButton: ({ instance }) => [\n 'p-carousel-next-button',\n {\n 'p-disabled': instance.forwardIsDisabled\n }\n ],\n indicatorList: 'p-carousel-indicator-list',\n indicator: ({ instance, index }) => [\n 'p-carousel-indicator',\n {\n 'p-carousel-indicator-active': instance.d_page === index\n }\n ],\n indicatorButton: 'p-carousel-indicator-button',\n footer: 'p-carousel-footer'\n};\n\nexport default BaseStyle.extend({\n name: 'carousel',\n style,\n classes\n});\n"],"names":["classes","root","_ref","instance","isVertical","header","contentContainer","content","pcPrevButton","_ref2","backwardIsDisabled","viewport","itemList","itemClone","_ref3","index","value","totalShiftedItems","d_numVisible","length","slice","item","_ref4","firstIndex","lastIndex","pcNextButton","_ref5","forwardIsDisabled","indicatorList","indicator","_ref6","d_page","indicatorButton","footer","BaseStyle","extend","name","style"],"mappings":";;;AAGA,IAAMA,OAAO,GAAG;AACZC,EAAAA,IAAI,EAAE,SAANA,IAAIA,CAAAC,IAAA,EAAA;AAAA,IAAA,IAAKC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAA,OAAO,CACpB,wBAAwB,EACxB;AACI,MAAA,qBAAqB,EAAEA,QAAQ,CAACC,UAAU,EAAE;AAC5C,MAAA,uBAAuB,EAAE,CAACD,QAAQ,CAACC,UAAU;AACjD,KAAC,CACJ;AAAA,GAAA;AACDC,EAAAA,MAAM,EAAE,mBAAmB;AAC3BC,EAAAA,gBAAgB,EAAE,8BAA8B;AAChDC,EAAAA,OAAO,EAAE,oBAAoB;AAC7BC,EAAAA,YAAY,EAAE,SAAdA,YAAYA,CAAAC,KAAA,EAAA;AAAA,IAAA,IAAKN,QAAQ,GAAAM,KAAA,CAARN,QAAQ;IAAA,OAAO,CAC5B,wBAAwB,EACxB;MACI,YAAY,EAAEA,QAAQ,CAACO;AAC3B,KAAC,CACJ;AAAA,GAAA;AACDC,EAAAA,QAAQ,EAAE,qBAAqB;AAC/BC,EAAAA,QAAQ,EAAE,sBAAsB;AAChCC,EAAAA,SAAS,EAAE,SAAXA,SAASA,CAAAC,KAAA,EAAA;AAAA,IAAA,IAAKC,KAAK,GAAAD,KAAA,CAALC,KAAK;MAAEC,KAAK,GAAAF,KAAA,CAALE,KAAK;MAAEC,iBAAiB,GAAAH,KAAA,CAAjBG,iBAAiB;MAAEC,YAAY,GAAAJ,KAAA,CAAZI,YAAY;IAAA,OAAO,CAC9D,uCAAuC,EACvC;MACI,wBAAwB,EAAED,iBAAiB,GAAG,EAAE,KAAKD,KAAK,CAACG,MAAM,GAAGD,YAAY;MAChF,uBAAuB,EAAEH,KAAK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