46 lines
1.5 KiB
JavaScript
46 lines
1.5 KiB
JavaScript
import { style } from '@primeuix/styles/organizationchart';
|
|
import BaseStyle from '@primevue/core/base/style';
|
|
|
|
var classes = {
|
|
root: 'p-organizationchart p-component',
|
|
table: 'p-organizationchart-table',
|
|
node: function node(_ref) {
|
|
var instance = _ref.instance;
|
|
return ['p-organizationchart-node', {
|
|
'p-organizationchart-node-selectable': instance.selectable,
|
|
'p-organizationchart-node-selected': instance.selected
|
|
}];
|
|
},
|
|
nodeToggleButton: function nodeToggleButton(_ref2) {
|
|
var instance = _ref2.instance;
|
|
return ['p-organizationchart-node-toggle-button', {
|
|
'p-disabled': !instance.selectable
|
|
}];
|
|
},
|
|
nodeToggleButtonIcon: 'p-organizationchart-node-toggle-button-icon',
|
|
connectors: 'p-organizationchart-connectors',
|
|
connectorDown: 'p-organizationchart-connector-down',
|
|
connectorLeft: function connectorLeft(_ref3) {
|
|
var index = _ref3.index;
|
|
return ['p-organizationchart-connector-left', {
|
|
'p-organizationchart-connector-top': !(index === 0)
|
|
}];
|
|
},
|
|
connectorRight: function connectorRight(_ref4) {
|
|
var props = _ref4.props,
|
|
index = _ref4.index;
|
|
return ['p-organizationchart-connector-right', {
|
|
'p-organizationchart-connector-top': !(index === props.node.children.length - 1)
|
|
}];
|
|
},
|
|
nodeChildren: 'p-organizationchart-node-children'
|
|
};
|
|
var OrganizationChartStyle = BaseStyle.extend({
|
|
name: 'organizationchart',
|
|
style: style,
|
|
classes: classes
|
|
});
|
|
|
|
export { OrganizationChartStyle as default };
|
|
//# sourceMappingURL=index.mjs.map
|