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 3.28 kB
{"version":3,"file":"index.mjs","sources":["../../../src/tree/style/TreeStyle.js"],"sourcesContent":["import { style } from '@primeuix/styles/tree';\nimport BaseStyle from '@primevue/core/base/style';\n\nconst classes = {\n root: ({ props }) => [\n 'p-tree p-component',\n {\n 'p-tree-selectable': props.selectionMode != null,\n 'p-tree-loading': props.loading,\n 'p-tree-flex-scrollable': props.scrollHeight === 'flex'\n }\n ],\n mask: 'p-tree-mask p-overlay-mask',\n loadingIcon: 'p-tree-loading-icon',\n pcFilterContainer: 'p-tree-filter',\n pcFilterInput: 'p-tree-filter-input',\n wrapper: 'p-tree-root', //TODO: discuss\n rootChildren: 'p-tree-root-children',\n node: ({ instance }) => ['p-tree-node', { 'p-tree-node-leaf': instance.leaf }],\n nodeContent: ({ instance }) => [\n 'p-tree-node-content',\n instance.node.styleClass,\n {\n 'p-tree-node-selectable': instance.selectable,\n 'p-tree-node-selected': instance.checkboxMode && instance.$parentInstance.highlightOnSelect ? instance.checked : instance.selected\n }\n ],\n nodeToggleButton: 'p-tree-node-toggle-button',\n nodeToggleIcon: 'p-tree-node-toggle-icon',\n nodeCheckbox: 'p-tree-node-checkbox',\n nodeIcon: 'p-tree-node-icon',\n nodeLabel: 'p-tree-node-label',\n nodeChildren: 'p-tree-node-children'\n};\n\nexport default BaseStyle.extend({\n name: 'tree',\n style,\n classes\n});\n"],"names":["classes","root","_ref","props","selectionMode","loading","scrollHeight","mask","loadingIcon","pcFilterContainer","pcFilterInput","wrapper","rootChildren","node","_ref2","instance","leaf","nodeContent","_ref3","styleClass","selectable","checkboxMode","$parentInstance","highlightOnSelect","checked","selected","nodeToggleButton","nodeToggleIcon","nodeCheckbox","nodeIcon","nodeLabel","nodeChildren","BaseStyle","extend","name","style"],"mappings":";;;AAGA,IAAMA,OAA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