@for-the-people-initiative/design-system 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +80 -0
- package/dist/css/theme-dark.css +7 -0
- package/dist/css/tokens.css +2315 -0
- package/dist/scss/_tokens.scss +2521 -0
- package/dist/ts/tokens.ts +2441 -0
- package/package.json +80 -0
- package/src/components/Accordion/Accordion.scss +118 -0
- package/src/components/Accordion/Accordion.vue +105 -0
- package/src/components/Accordion/AccordionTab.vue +79 -0
- package/src/components/Alert/Alert.scss +109 -0
- package/src/components/Alert/Alert.vue +79 -0
- package/src/components/AppBar/AppBar.scss +73 -0
- package/src/components/AppBar/AppBar.vue +49 -0
- package/src/components/AtmosphericBackground/AtmosphericBackground.vue +198 -0
- package/src/components/AutoComplete/AutoComplete.scss +282 -0
- package/src/components/AutoComplete/AutoComplete.vue +398 -0
- package/src/components/Avatar/Avatar.scss +191 -0
- package/src/components/Avatar/Avatar.vue +44 -0
- package/src/components/Badge/Badge.scss +84 -0
- package/src/components/Badge/Badge.vue +41 -0
- package/src/components/BlockUI/BlockUI.scss +85 -0
- package/src/components/BlockUI/BlockUI.vue +90 -0
- package/src/components/Breadcrumb/Breadcrumb.scss +84 -0
- package/src/components/Breadcrumb/Breadcrumb.vue +141 -0
- package/src/components/Button/Button.scss +254 -0
- package/src/components/Button/Button.vue +68 -0
- package/src/components/CTA/CTA.scss +92 -0
- package/src/components/CTA/CTA.vue +33 -0
- package/src/components/Calendar/Calendar.scss +330 -0
- package/src/components/Calendar/Calendar.vue +455 -0
- package/src/components/Card/Card.scss +66 -0
- package/src/components/Card/Card.vue +48 -0
- package/src/components/Carousel/Carousel.scss +121 -0
- package/src/components/Carousel/Carousel.vue +191 -0
- package/src/components/Chart/Chart.scss +109 -0
- package/src/components/Chart/Chart.vue +209 -0
- package/src/components/Checkbox/Checkbox.scss +148 -0
- package/src/components/Checkbox/Checkbox.vue +75 -0
- package/src/components/Chip/Chip.scss +83 -0
- package/src/components/Chip/Chip.vue +73 -0
- package/src/components/ColorPicker/ColorPicker.scss +244 -0
- package/src/components/ColorPicker/ColorPicker.vue +411 -0
- package/src/components/Column/Column.scss +87 -0
- package/src/components/Column/Column.vue +45 -0
- package/src/components/ColumnGroup/ColumnGroup.scss +41 -0
- package/src/components/ColumnGroup/ColumnGroup.vue +27 -0
- package/src/components/ColumnGroup/ColumnGroupRow.vue +18 -0
- package/src/components/CommandPalette/CommandPalette.scss +143 -0
- package/src/components/CommandPalette/CommandPalette.vue +165 -0
- package/src/components/ConfirmDialog/ConfirmDialog.scss +177 -0
- package/src/components/ConfirmDialog/ConfirmDialog.vue +162 -0
- package/src/components/ConfirmPopup/ConfirmPopup.scss +180 -0
- package/src/components/ConfirmPopup/ConfirmPopup.vue +185 -0
- package/src/components/ContextMenu/ContextMenu.scss +171 -0
- package/src/components/ContextMenu/ContextMenu.vue +383 -0
- package/src/components/DataTable/DataTable.scss +162 -0
- package/src/components/DataTable/DataTable.vue +225 -0
- package/src/components/DataView/DataView.scss +149 -0
- package/src/components/DataView/DataView.vue +172 -0
- package/src/components/DatePicker/DatePicker.scss +71 -0
- package/src/components/DatePicker/DatePicker.vue +121 -0
- package/src/components/Dialog/Dialog.scss +161 -0
- package/src/components/Dialog/Dialog.vue +245 -0
- package/src/components/Divider/Divider.scss +147 -0
- package/src/components/Divider/Divider.vue +49 -0
- package/src/components/Dock/Dock.scss +221 -0
- package/src/components/Dock/Dock.vue +107 -0
- package/src/components/Drawer/Drawer.scss +220 -0
- package/src/components/Drawer/Drawer.vue +137 -0
- package/src/components/Dropdown/Dropdown.scss +218 -0
- package/src/components/Dropdown/Dropdown.vue +313 -0
- package/src/components/Editor/Editor.scss +156 -0
- package/src/components/Editor/Editor.vue +253 -0
- package/src/components/FAQ/FAQ.scss +24 -0
- package/src/components/FAQ/FAQ.vue +28 -0
- package/src/components/FeatureGrid/FeatureGrid.scss +92 -0
- package/src/components/FeatureGrid/FeatureGrid.vue +39 -0
- package/src/components/FieldSet/FieldSet.scss +97 -0
- package/src/components/FieldSet/FieldSet.vue +70 -0
- package/src/components/FileUpload/FileUpload.scss +137 -0
- package/src/components/FileUpload/FileUpload.vue +183 -0
- package/src/components/Footer/Footer.scss +95 -0
- package/src/components/Footer/Footer.vue +59 -0
- package/src/components/Form/Form.scss +72 -0
- package/src/components/Form/Form.vue +30 -0
- package/src/components/Form/FormField.vue +42 -0
- package/src/components/Galleria/Galleria.scss +295 -0
- package/src/components/Galleria/Galleria.vue +274 -0
- package/src/components/Hero/Hero.scss +116 -0
- package/src/components/Hero/Hero.vue +57 -0
- package/src/components/Image/Image.scss +129 -0
- package/src/components/Image/Image.vue +117 -0
- package/src/components/ImageCompare/ImageCompare.scss +97 -0
- package/src/components/ImageCompare/ImageCompare.vue +66 -0
- package/src/components/InPlace/InPlace.scss +97 -0
- package/src/components/InPlace/InPlace.vue +107 -0
- package/src/components/InlineMessage/InlineMessage.scss +69 -0
- package/src/components/InlineMessage/InlineMessage.vue +47 -0
- package/src/components/InputChips/InputChips.scss +165 -0
- package/src/components/InputChips/InputChips.vue +169 -0
- package/src/components/InputGroup/InputGroup.scss +57 -0
- package/src/components/InputGroup/InputGroup.vue +22 -0
- package/src/components/InputGroupAddon/InputGroupAddon.scss +28 -0
- package/src/components/InputGroupAddon/InputGroupAddon.vue +22 -0
- package/src/components/InputIcon/InputIcon.scss +58 -0
- package/src/components/InputIcon/InputIcon.vue +28 -0
- package/src/components/InputMask/InputMask.scss +65 -0
- package/src/components/InputMask/InputMask.vue +268 -0
- package/src/components/InputNumber/InputNumber.scss +122 -0
- package/src/components/InputNumber/InputNumber.vue +150 -0
- package/src/components/InputOtp/InputOtp.scss +88 -0
- package/src/components/InputOtp/InputOtp.vue +230 -0
- package/src/components/InputSwitch/InputSwitch.scss +131 -0
- package/src/components/InputSwitch/InputSwitch.vue +49 -0
- package/src/components/InputText/InputText.scss +61 -0
- package/src/components/InputText/InputText.vue +71 -0
- package/src/components/Knob/Knob.scss +92 -0
- package/src/components/Knob/Knob.vue +252 -0
- package/src/components/ListBox/ListBox.scss +152 -0
- package/src/components/ListBox/ListBox.vue +198 -0
- package/src/components/LogoCloud/LogoCloud.scss +64 -0
- package/src/components/LogoCloud/LogoCloud.vue +35 -0
- package/src/components/MegaMenu/MegaMenu.scss +280 -0
- package/src/components/MegaMenu/MegaMenu.vue +218 -0
- package/src/components/Menu/Menu.scss +102 -0
- package/src/components/Menu/Menu.vue +221 -0
- package/src/components/MenuBar/MenuBar.scss +208 -0
- package/src/components/MenuBar/MenuBar.vue +306 -0
- package/src/components/Message/Message.scss +126 -0
- package/src/components/Message/Message.vue +99 -0
- package/src/components/MeterGroup/MeterGroup.scss +105 -0
- package/src/components/MeterGroup/MeterGroup.vue +73 -0
- package/src/components/MultiSelect/MultiSelect.scss +239 -0
- package/src/components/MultiSelect/MultiSelect.vue +296 -0
- package/src/components/OrderList/OrderList.scss +133 -0
- package/src/components/OrderList/OrderList.vue +267 -0
- package/src/components/OrganizationChart/OrganizationChart.scss +145 -0
- package/src/components/OrganizationChart/OrganizationChart.vue +220 -0
- package/src/components/OverlayPanel/OverlayPanel.scss +69 -0
- package/src/components/OverlayPanel/OverlayPanel.vue +180 -0
- package/src/components/Paginator/Paginator.scss +130 -0
- package/src/components/Paginator/Paginator.vue +212 -0
- package/src/components/Panel/Panel.scss +113 -0
- package/src/components/Panel/Panel.vue +89 -0
- package/src/components/PanelMenu/PanelMenu.scss +211 -0
- package/src/components/PanelMenu/PanelMenu.vue +295 -0
- package/src/components/ParticleBackground/ParticleBackground.vue +310 -0
- package/src/components/PickList/PickList.scss +126 -0
- package/src/components/PickList/PickList.vue +249 -0
- package/src/components/PopOver/PopOver.scss +112 -0
- package/src/components/PopOver/PopOver.vue +254 -0
- package/src/components/PricingTable/PricingCard.vue +33 -0
- package/src/components/PricingTable/PricingTable.scss +133 -0
- package/src/components/PricingTable/PricingTable.vue +21 -0
- package/src/components/ProgressBar/ProgressBar.scss +58 -0
- package/src/components/ProgressBar/ProgressBar.vue +48 -0
- package/src/components/ProgressSpinner/ProgressSpinner.scss +48 -0
- package/src/components/ProgressSpinner/ProgressSpinner.vue +53 -0
- package/src/components/RadioButton/RadioButton.scss +148 -0
- package/src/components/RadioButton/RadioButton.vue +52 -0
- package/src/components/Rating/Rating.scss +109 -0
- package/src/components/Rating/Rating.vue +136 -0
- package/src/components/Row/Row.scss +38 -0
- package/src/components/Row/Row.vue +30 -0
- package/src/components/ScrollPanel/ScrollPanel.scss +90 -0
- package/src/components/ScrollPanel/ScrollPanel.vue +284 -0
- package/src/components/ScrollTop/ScrollTop.scss +59 -0
- package/src/components/ScrollTop/ScrollTop.vue +99 -0
- package/src/components/Section/Section.scss +58 -0
- package/src/components/Section/Section.vue +39 -0
- package/src/components/Select/Select.scss +98 -0
- package/src/components/Select/Select.vue +92 -0
- package/src/components/SelectButton/SelectButton.scss +65 -0
- package/src/components/SelectButton/SelectButton.vue +144 -0
- package/src/components/Sidebar/Sidebar.scss +170 -0
- package/src/components/Sidebar/Sidebar.vue +137 -0
- package/src/components/Skeleton/Skeleton.scss +43 -0
- package/src/components/Skeleton/Skeleton.vue +57 -0
- package/src/components/Slider/Slider.scss +103 -0
- package/src/components/Slider/Slider.vue +65 -0
- package/src/components/SpeedDial/SpeedDial.scss +217 -0
- package/src/components/SpeedDial/SpeedDial.vue +196 -0
- package/src/components/SplitButton/SplitButton.scss +264 -0
- package/src/components/SplitButton/SplitButton.vue +172 -0
- package/src/components/Splitter/Splitter.scss +95 -0
- package/src/components/Splitter/Splitter.vue +191 -0
- package/src/components/Splitter/SplitterPanel.vue +125 -0
- package/src/components/Stats/Stats.scss +54 -0
- package/src/components/Stats/Stats.vue +28 -0
- package/src/components/Steps/Steps.scss +164 -0
- package/src/components/Steps/Steps.vue +100 -0
- package/src/components/TabMenu/TabMenu.scss +106 -0
- package/src/components/TabMenu/TabMenu.vue +174 -0
- package/src/components/Tabs/TabPanel.vue +41 -0
- package/src/components/Tabs/Tabs.scss +82 -0
- package/src/components/Tabs/Tabs.vue +162 -0
- package/src/components/Tag/Tag.scss +73 -0
- package/src/components/Tag/Tag.vue +37 -0
- package/src/components/Terminal/Terminal.scss +80 -0
- package/src/components/Terminal/Terminal.vue +113 -0
- package/src/components/Testimonial/Testimonial.scss +80 -0
- package/src/components/Testimonial/Testimonial.vue +29 -0
- package/src/components/Textarea/Textarea.scss +65 -0
- package/src/components/Textarea/Textarea.vue +101 -0
- package/src/components/TieredMenu/TieredMenu.scss +146 -0
- package/src/components/TieredMenu/TieredMenu.vue +270 -0
- package/src/components/TieredMenu/TieredMenuSub.vue +132 -0
- package/src/components/Timeline/Timeline.scss +190 -0
- package/src/components/Timeline/Timeline.vue +79 -0
- package/src/components/Toast/Toast.scss +284 -0
- package/src/components/Toast/Toast.vue +162 -0
- package/src/components/ToggleButton/ToggleButton.scss +99 -0
- package/src/components/ToggleButton/ToggleButton.vue +65 -0
- package/src/components/ToggleSwitch/ToggleSwitch.scss +68 -0
- package/src/components/ToggleSwitch/ToggleSwitch.vue +44 -0
- package/src/components/Toolbar/Toolbar.scss +37 -0
- package/src/components/Toolbar/Toolbar.vue +23 -0
- package/src/components/Tooltip/Tooltip.scss +114 -0
- package/src/components/Tooltip/Tooltip.vue +169 -0
- package/src/components/Tree/Tree.scss +164 -0
- package/src/components/Tree/Tree.vue +273 -0
- package/src/components/TreeSelect/TreeSelect.scss +238 -0
- package/src/components/TreeSelect/TreeSelect.vue +401 -0
- package/src/components/TreeTable/TreeTable.scss +172 -0
- package/src/components/TreeTable/TreeTable.vue +285 -0
- package/src/components/VirtualScroller/VirtualScroller.scss +107 -0
- package/src/components/VirtualScroller/VirtualScroller.vue +234 -0
- package/src/scss/fonts.scss +63 -0
- package/src/scss/mixins/accent-gradient.scss +43 -0
- package/src/scss/mixins/border.scss +28 -0
- package/src/scss/mixins/breakpoint.scss +80 -0
- package/src/scss/mixins/container.scss +33 -0
- package/src/scss/mixins/elevation.scss +43 -0
- package/src/scss/mixins/grid.scss +23 -0
- package/src/scss/mixins/levitation.scss +15 -0
- package/src/scss/mixins/list.scss +5 -0
- package/src/scss/mixins/surface-atmospheric.scss +93 -0
- package/src/scss/mixins/surface.scss +19 -0
- package/src/scss/mixins/typography.scss +91 -0
- package/src/scss/utility-classes/utility-classes-spacing.scss +34 -0
- package/src/scss/utility-classes/utility-classes-typography.scss +114 -0
- package/tokens/components/accordion.json +127 -0
- package/tokens/components/autocomplete.json +238 -0
- package/tokens/components/avatar.json +220 -0
- package/tokens/components/badge.json +119 -0
- package/tokens/components/block-ui.json +40 -0
- package/tokens/components/breadcrumb.json +57 -0
- package/tokens/components/button.json +395 -0
- package/tokens/components/calendar.json +260 -0
- package/tokens/components/card.json +157 -0
- package/tokens/components/carousel.json +154 -0
- package/tokens/components/chart.json +132 -0
- package/tokens/components/checkbox.json +130 -0
- package/tokens/components/chip.json +100 -0
- package/tokens/components/color-picker.json +196 -0
- package/tokens/components/column-group.json +45 -0
- package/tokens/components/column.json +109 -0
- package/tokens/components/confirm-dialog.json +141 -0
- package/tokens/components/confirm-popup.json +101 -0
- package/tokens/components/context-menu.json +168 -0
- package/tokens/components/data-table.json +157 -0
- package/tokens/components/data-view.json +172 -0
- package/tokens/components/dialog.json +151 -0
- package/tokens/components/divider.json +45 -0
- package/tokens/components/dock.json +173 -0
- package/tokens/components/drawer.json +163 -0
- package/tokens/components/dropdown.json +230 -0
- package/tokens/components/editor.json +170 -0
- package/tokens/components/field-set.json +115 -0
- package/tokens/components/file-upload.json +193 -0
- package/tokens/components/galleria.json +235 -0
- package/tokens/components/image-compare.json +74 -0
- package/tokens/components/image.json +71 -0
- package/tokens/components/in-place.json +100 -0
- package/tokens/components/inline-message.json +107 -0
- package/tokens/components/input-chips.json +187 -0
- package/tokens/components/input-group-addon.json +47 -0
- package/tokens/components/input-group.json +21 -0
- package/tokens/components/input-icon.json +38 -0
- package/tokens/components/input-mask.json +136 -0
- package/tokens/components/input-number.json +144 -0
- package/tokens/components/input-otp.json +138 -0
- package/tokens/components/input-switch.json +108 -0
- package/tokens/components/input-text.json +136 -0
- package/tokens/components/knob.json +119 -0
- package/tokens/components/listbox.json +166 -0
- package/tokens/components/mega-menu.json +283 -0
- package/tokens/components/menu.json +145 -0
- package/tokens/components/menubar.json +152 -0
- package/tokens/components/message.json +151 -0
- package/tokens/components/meter-group.json +108 -0
- package/tokens/components/multi-select.json +244 -0
- package/tokens/components/order-list.json +193 -0
- package/tokens/components/organization-chart.json +188 -0
- package/tokens/components/overlay-panel.json +94 -0
- package/tokens/components/paginator.json +186 -0
- package/tokens/components/panel.json +120 -0
- package/tokens/components/panelmenu.json +190 -0
- package/tokens/components/picklist.json +187 -0
- package/tokens/components/popover.json +65 -0
- package/tokens/components/progress-bar.json +33 -0
- package/tokens/components/progress-spinner.json +38 -0
- package/tokens/components/radio.json +125 -0
- package/tokens/components/rating.json +76 -0
- package/tokens/components/row.json +62 -0
- package/tokens/components/scroll-panel.json +69 -0
- package/tokens/components/scroll-top.json +84 -0
- package/tokens/components/select-button.json +145 -0
- package/tokens/components/select.json +190 -0
- package/tokens/components/sidebar.json +146 -0
- package/tokens/components/skeleton.json +26 -0
- package/tokens/components/slider.json +82 -0
- package/tokens/components/speed-dial.json +144 -0
- package/tokens/components/split-button.json +316 -0
- package/tokens/components/splitter.json +88 -0
- package/tokens/components/steps.json +154 -0
- package/tokens/components/tabmenu.json +103 -0
- package/tokens/components/tabs.json +97 -0
- package/tokens/components/tag.json +122 -0
- package/tokens/components/terminal.json +100 -0
- package/tokens/components/textarea.json +96 -0
- package/tokens/components/tieredmenu.json +142 -0
- package/tokens/components/timeline.json +129 -0
- package/tokens/components/toast.json +281 -0
- package/tokens/components/toggle-button.json +220 -0
- package/tokens/components/toggle-switch.json +95 -0
- package/tokens/components/toolbar.json +41 -0
- package/tokens/components/tooltip.json +60 -0
- package/tokens/components/tree-select.json +224 -0
- package/tokens/components/tree.json +153 -0
- package/tokens/components/treetable.json +155 -0
- package/tokens/components/virtualscroller.json +95 -0
- package/tokens/primitives/color.json +137 -0
- package/tokens/primitives/radius.json +12 -0
- package/tokens/primitives/shadow.json +29 -0
- package/tokens/primitives/spacing.json +15 -0
- package/tokens/semantics/color.json +81 -0
- package/tokens/semantics/radius.json +10 -0
- package/tokens/semantics/shadow.json +9 -0
- package/tokens/semantics/spacing.json +24 -0
- package/tokens/themes/dark.json +7 -0
- package/tokens/themes/light.json +7 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
@use "../../../dist/scss/tokens" as *;
|
|
2
|
+
|
|
3
|
+
$c: order-list;
|
|
4
|
+
|
|
5
|
+
.#{$c} {
|
|
6
|
+
display: flex;
|
|
7
|
+
gap: var(--inset-m, $inset-m);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.#{$c}__controls {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: var(--orderList-controls-gap, $orderList-controls-gap);
|
|
14
|
+
padding: var(--orderList-controls-padding, $orderList-controls-padding);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.#{$c}__btn {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
width: var(--orderList-button-size, $orderList-button-size);
|
|
22
|
+
height: var(--orderList-button-size, $orderList-button-size);
|
|
23
|
+
padding: 0;
|
|
24
|
+
border: none;
|
|
25
|
+
background-color: var(--orderList-button-background-default, $orderList-button-background-default);
|
|
26
|
+
border-radius: var(--orderList-button-radius, $orderList-button-radius);
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
transition: background-color var(--orderList-transition-duration, $orderList-transition-duration) ease;
|
|
29
|
+
|
|
30
|
+
svg {
|
|
31
|
+
width: 16px;
|
|
32
|
+
height: 16px;
|
|
33
|
+
color: var(--orderList-button-color-default, $orderList-button-color-default);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:hover:not(:disabled) {
|
|
37
|
+
background-color: var(--orderList-button-background-hover, $orderList-button-background-hover);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:disabled {
|
|
41
|
+
background-color: var(--orderList-button-background-disabled, $orderList-button-background-disabled);
|
|
42
|
+
cursor: not-allowed;
|
|
43
|
+
|
|
44
|
+
svg {
|
|
45
|
+
color: var(--orderList-button-color-disabled, $orderList-button-color-disabled);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.#{$c}__container {
|
|
51
|
+
flex: 1;
|
|
52
|
+
background-color: var(--orderList-background, $orderList-background);
|
|
53
|
+
border: var(--orderList-border-width, $orderList-border-width) solid var(--orderList-border-color, $orderList-border-color);
|
|
54
|
+
border-radius: var(--orderList-radius, $orderList-radius);
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.#{$c}__header {
|
|
59
|
+
padding: var(--orderList-header-padding, $orderList-header-padding);
|
|
60
|
+
background-color: var(--orderList-header-background, $orderList-header-background);
|
|
61
|
+
border-bottom: var(--orderList-border-width, $orderList-border-width) solid var(--orderList-header-borderColor, $orderList-header-borderColor);
|
|
62
|
+
font-size: var(--orderList-header-fontSize, $orderList-header-fontSize);
|
|
63
|
+
font-weight: var(--orderList-header-fontWeight, $orderList-header-fontWeight);
|
|
64
|
+
color: var(--orderList-header-color, $orderList-header-color);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.#{$c}__list {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
gap: var(--orderList-list-gap, $orderList-list-gap);
|
|
71
|
+
padding: var(--orderList-list-padding, $orderList-list-padding);
|
|
72
|
+
min-height: 200px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.#{$c}__item {
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: var(--inset-s, $inset-s);
|
|
79
|
+
padding: var(--orderList-item-padding, $orderList-item-padding);
|
|
80
|
+
background-color: var(--orderList-item-background-default, $orderList-item-background-default);
|
|
81
|
+
border: 1px solid var(--orderList-item-borderColor-default, $orderList-item-borderColor-default);
|
|
82
|
+
border-radius: var(--orderList-item-radius, $orderList-item-radius);
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
user-select: none;
|
|
85
|
+
transition: background-color var(--orderList-transition-duration, $orderList-transition-duration) ease,
|
|
86
|
+
border-color var(--orderList-transition-duration, $orderList-transition-duration) ease;
|
|
87
|
+
|
|
88
|
+
&:hover {
|
|
89
|
+
background-color: var(--orderList-item-background-hover, $orderList-item-background-hover);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&--selected {
|
|
93
|
+
background-color: var(--orderList-item-background-selected, $orderList-item-background-selected);
|
|
94
|
+
border-color: var(--orderList-item-borderColor-selected, $orderList-item-borderColor-selected);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&--dragging {
|
|
98
|
+
opacity: 0.5;
|
|
99
|
+
background-color: var(--orderList-item-background-dragging, $orderList-item-background-dragging);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.#{$c}__drag-handle {
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
cursor: grab;
|
|
108
|
+
flex-shrink: 0;
|
|
109
|
+
|
|
110
|
+
svg {
|
|
111
|
+
width: var(--orderList-dragHandle-size, $orderList-dragHandle-size);
|
|
112
|
+
height: var(--orderList-dragHandle-size, $orderList-dragHandle-size);
|
|
113
|
+
color: var(--orderList-dragHandle-color, $orderList-dragHandle-color);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:active {
|
|
117
|
+
cursor: grabbing;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.#{$c}__item-content {
|
|
122
|
+
flex: 1;
|
|
123
|
+
color: var(--orderList-item-color, $orderList-item-color);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.#{$c}__empty {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
padding: var(--inset-xl, $inset-xl);
|
|
131
|
+
color: var(--text-muted, $text-muted);
|
|
132
|
+
font-size: 14px;
|
|
133
|
+
}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="order-list">
|
|
3
|
+
<div class="order-list__controls">
|
|
4
|
+
<button
|
|
5
|
+
class="order-list__btn"
|
|
6
|
+
:disabled="!hasSelection || isFirstSelected"
|
|
7
|
+
type="button"
|
|
8
|
+
aria-label="Move to top"
|
|
9
|
+
@click="moveToTop"
|
|
10
|
+
>
|
|
11
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
12
|
+
<polyline points="17 11 12 6 7 11" />
|
|
13
|
+
<polyline points="17 18 12 13 7 18" />
|
|
14
|
+
</svg>
|
|
15
|
+
</button>
|
|
16
|
+
<button
|
|
17
|
+
class="order-list__btn"
|
|
18
|
+
:disabled="!hasSelection || isFirstSelected"
|
|
19
|
+
type="button"
|
|
20
|
+
aria-label="Move up"
|
|
21
|
+
@click="moveUp"
|
|
22
|
+
>
|
|
23
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
24
|
+
<polyline points="18 15 12 9 6 15" />
|
|
25
|
+
</svg>
|
|
26
|
+
</button>
|
|
27
|
+
<button
|
|
28
|
+
class="order-list__btn"
|
|
29
|
+
:disabled="!hasSelection || isLastSelected"
|
|
30
|
+
type="button"
|
|
31
|
+
aria-label="Move down"
|
|
32
|
+
@click="moveDown"
|
|
33
|
+
>
|
|
34
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
35
|
+
<polyline points="6 9 12 15 18 9" />
|
|
36
|
+
</svg>
|
|
37
|
+
</button>
|
|
38
|
+
<button
|
|
39
|
+
class="order-list__btn"
|
|
40
|
+
:disabled="!hasSelection || isLastSelected"
|
|
41
|
+
type="button"
|
|
42
|
+
aria-label="Move to bottom"
|
|
43
|
+
@click="moveToBottom"
|
|
44
|
+
>
|
|
45
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
46
|
+
<polyline points="7 13 12 18 17 13" />
|
|
47
|
+
<polyline points="7 6 12 11 17 6" />
|
|
48
|
+
</svg>
|
|
49
|
+
</button>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<div class="order-list__container">
|
|
53
|
+
<div v-if="$slots.header || header" class="order-list__header">
|
|
54
|
+
<slot name="header">
|
|
55
|
+
{{ header }}
|
|
56
|
+
</slot>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<div class="order-list__list">
|
|
60
|
+
<div
|
|
61
|
+
v-for="(item, index) in internalValue"
|
|
62
|
+
:key="getItemKey(item, index)"
|
|
63
|
+
class="order-list__item"
|
|
64
|
+
:class="{
|
|
65
|
+
'order-list__item--selected': isSelected(item),
|
|
66
|
+
'order-list__item--dragging': draggingIndex === index
|
|
67
|
+
}"
|
|
68
|
+
draggable="true"
|
|
69
|
+
@click="onItemClick(item, $event)"
|
|
70
|
+
@dragstart="onDragStart(index, $event)"
|
|
71
|
+
@dragover="onDragOver(index, $event)"
|
|
72
|
+
@dragend="onDragEnd"
|
|
73
|
+
@drop="onDrop(index, $event)"
|
|
74
|
+
>
|
|
75
|
+
<span class="order-list__drag-handle">
|
|
76
|
+
<svg viewBox="0 0 24 24" fill="currentColor">
|
|
77
|
+
<circle cx="9" cy="6" r="1.5" />
|
|
78
|
+
<circle cx="15" cy="6" r="1.5" />
|
|
79
|
+
<circle cx="9" cy="12" r="1.5" />
|
|
80
|
+
<circle cx="15" cy="12" r="1.5" />
|
|
81
|
+
<circle cx="9" cy="18" r="1.5" />
|
|
82
|
+
<circle cx="15" cy="18" r="1.5" />
|
|
83
|
+
</svg>
|
|
84
|
+
</span>
|
|
85
|
+
<div class="order-list__item-content">
|
|
86
|
+
<slot name="item" :item="item" :index="index">
|
|
87
|
+
{{ dataKey ? item[dataKey] : item }}
|
|
88
|
+
</slot>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
<div v-if="internalValue.length === 0" class="order-list__empty">
|
|
92
|
+
<slot name="empty">
|
|
93
|
+
No items
|
|
94
|
+
</slot>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</template>
|
|
100
|
+
|
|
101
|
+
<style src="./OrderList.scss"></style>
|
|
102
|
+
|
|
103
|
+
<script setup lang="ts">
|
|
104
|
+
import type { OrderListProps, OrderListEmits } from '../../types';
|
|
105
|
+
import { ref, computed, watch } from "vue";
|
|
106
|
+
|
|
107
|
+
const props = withDefaults(defineProps<OrderListProps>(), {
|
|
108
|
+
modelValue: () => [],
|
|
109
|
+
header: "",
|
|
110
|
+
dataKey: null,
|
|
111
|
+
itemKey: null,
|
|
112
|
+
multiple: false,
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
const emit = defineEmits(["update:modelValue", "reorder", "selection-change"]);
|
|
116
|
+
|
|
117
|
+
defineOptions({
|
|
118
|
+
name: "FtpOrderList",
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
const internalValue = ref([...props.modelValue]);
|
|
122
|
+
const selection = ref<any[]>([]);
|
|
123
|
+
const draggingIndex = ref(null);
|
|
124
|
+
|
|
125
|
+
watch(
|
|
126
|
+
() => props.modelValue,
|
|
127
|
+
(val) => {
|
|
128
|
+
internalValue.value = [...val];
|
|
129
|
+
},
|
|
130
|
+
{ deep: true }
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
const hasSelection = computed(() => selection.value.length > 0);
|
|
134
|
+
|
|
135
|
+
const selectedIndices = computed(() => {
|
|
136
|
+
return selection.value.map((item) => internalValue.value.indexOf(item));
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
const isFirstSelected = computed(() => {
|
|
140
|
+
if (!hasSelection.value) return false;
|
|
141
|
+
return Math.min(...selectedIndices.value) === 0;
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
const isLastSelected = computed(() => {
|
|
145
|
+
if (!hasSelection.value) return false;
|
|
146
|
+
return Math.max(...selectedIndices.value) === internalValue.value.length - 1;
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
const getItemKey = (item: any, index: any) => {
|
|
150
|
+
if (props.itemKey && typeof item === "object") {
|
|
151
|
+
return item[props.itemKey];
|
|
152
|
+
}
|
|
153
|
+
return index;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
const isSelected = (item: any) => {
|
|
157
|
+
return selection.value.includes(item);
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
const onItemClick = (item: any, event: any) => {
|
|
161
|
+
if (props.multiple && (event.ctrlKey || event.metaKey)) {
|
|
162
|
+
const index = selection.value.indexOf(item);
|
|
163
|
+
if (index > -1) {
|
|
164
|
+
selection.value.splice(index, 1);
|
|
165
|
+
} else {
|
|
166
|
+
selection.value.push(item);
|
|
167
|
+
}
|
|
168
|
+
} else {
|
|
169
|
+
selection.value = [item];
|
|
170
|
+
}
|
|
171
|
+
emit("selection-change", { selection: [...selection.value] });
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
const emitUpdate = () => {
|
|
175
|
+
emit("update:modelValue", [...internalValue.value]);
|
|
176
|
+
emit("reorder", { value: [...internalValue.value] });
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const moveUp = () => {
|
|
180
|
+
if (!hasSelection.value || isFirstSelected.value) return;
|
|
181
|
+
|
|
182
|
+
const indices = selectedIndices.value.sort((a, b) => a - b);
|
|
183
|
+
for (const index of indices) {
|
|
184
|
+
if (index > 0) {
|
|
185
|
+
const temp = internalValue.value[index];
|
|
186
|
+
internalValue.value[index] = internalValue.value[index - 1];
|
|
187
|
+
internalValue.value[index - 1] = temp;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
emitUpdate();
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
const moveDown = () => {
|
|
194
|
+
if (!hasSelection.value || isLastSelected.value) return;
|
|
195
|
+
|
|
196
|
+
const indices = selectedIndices.value.sort((a, b) => b - a);
|
|
197
|
+
for (const index of indices) {
|
|
198
|
+
if (index < internalValue.value.length - 1) {
|
|
199
|
+
const temp = internalValue.value[index];
|
|
200
|
+
internalValue.value[index] = internalValue.value[index + 1];
|
|
201
|
+
internalValue.value[index + 1] = temp;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
emitUpdate();
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
const moveToTop = () => {
|
|
208
|
+
if (!hasSelection.value || isFirstSelected.value) return;
|
|
209
|
+
|
|
210
|
+
const indices = selectedIndices.value.sort((a, b) => a - b);
|
|
211
|
+
const items = indices.map((i) => internalValue.value[i]);
|
|
212
|
+
|
|
213
|
+
// Remove selected items
|
|
214
|
+
for (let i = indices.length - 1; i >= 0; i--) {
|
|
215
|
+
internalValue.value.splice(indices[i], 1);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// Add them at the top
|
|
219
|
+
internalValue.value.unshift(...items);
|
|
220
|
+
emitUpdate();
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
const moveToBottom = () => {
|
|
224
|
+
if (!hasSelection.value || isLastSelected.value) return;
|
|
225
|
+
|
|
226
|
+
const indices = selectedIndices.value.sort((a, b) => b - a);
|
|
227
|
+
const items = indices.map((i) => internalValue.value[i]);
|
|
228
|
+
|
|
229
|
+
// Remove selected items
|
|
230
|
+
for (const index of indices) {
|
|
231
|
+
internalValue.value.splice(index, 1);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// Add them at the bottom
|
|
235
|
+
internalValue.value.push(...items.reverse());
|
|
236
|
+
emitUpdate();
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
const onDragStart = (index: any, event: any) => {
|
|
240
|
+
draggingIndex.value = index;
|
|
241
|
+
event.dataTransfer.effectAllowed = "move";
|
|
242
|
+
event.dataTransfer.setData("text/plain", index);
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
const onDragOver = (index: any, event: any) => {
|
|
246
|
+
event.preventDefault();
|
|
247
|
+
event.dataTransfer.dropEffect = "move";
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
const onDragEnd = () => {
|
|
251
|
+
draggingIndex.value = null;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
const onDrop = (targetIndex: any, event: any) => {
|
|
255
|
+
event.preventDefault();
|
|
256
|
+
const sourceIndex = draggingIndex.value;
|
|
257
|
+
|
|
258
|
+
if (sourceIndex === null || sourceIndex === targetIndex) return;
|
|
259
|
+
|
|
260
|
+
const item = internalValue.value[sourceIndex];
|
|
261
|
+
internalValue.value.splice(sourceIndex, 1);
|
|
262
|
+
internalValue.value.splice(targetIndex, 0, item);
|
|
263
|
+
|
|
264
|
+
draggingIndex.value = null;
|
|
265
|
+
emitUpdate();
|
|
266
|
+
};
|
|
267
|
+
</script>
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
@use "../../../dist/scss/tokens" as *;
|
|
2
|
+
|
|
3
|
+
$c: organization-chart;
|
|
4
|
+
|
|
5
|
+
.#{$c} {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
padding: var(--organizationChart-padding, $organizationChart-padding);
|
|
9
|
+
background-color: var(--organizationChart-background, $organizationChart-background);
|
|
10
|
+
overflow: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.#{$c}__node-wrapper {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: center;
|
|
17
|
+
position: relative;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.#{$c}__node {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
min-width: var(--organizationChart-node-minWidth, $organizationChart-node-minWidth);
|
|
25
|
+
padding: var(--organizationChart-node-padding, $organizationChart-node-padding);
|
|
26
|
+
background-color: var(--organizationChart-node-background-default, $organizationChart-node-background-default);
|
|
27
|
+
border: var(--organizationChart-node-border-width, $organizationChart-node-border-width) solid var(--organizationChart-node-border-color-default, $organizationChart-node-border-color-default);
|
|
28
|
+
border-radius: var(--organizationChart-node-radius, $organizationChart-node-radius);
|
|
29
|
+
box-shadow: var(--organizationChart-node-shadow-default, $organizationChart-node-shadow-default);
|
|
30
|
+
transition: background-color var(--organizationChart-transition-duration, $organizationChart-transition-duration) ease,
|
|
31
|
+
border-color var(--organizationChart-transition-duration, $organizationChart-transition-duration) ease,
|
|
32
|
+
box-shadow var(--organizationChart-transition-duration, $organizationChart-transition-duration) ease;
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
background-color: var(--organizationChart-node-background-hover, $organizationChart-node-background-hover);
|
|
36
|
+
border-color: var(--organizationChart-node-border-color-hover, $organizationChart-node-border-color-hover);
|
|
37
|
+
box-shadow: var(--organizationChart-node-shadow-hover, $organizationChart-node-shadow-hover);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&--selectable {
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&--selected {
|
|
45
|
+
background-color: var(--organizationChart-node-background-selected, $organizationChart-node-background-selected);
|
|
46
|
+
border-color: var(--organizationChart-node-border-color-selected, $organizationChart-node-border-color-selected);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.#{$c}__node-content {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: var(--organizationChart-nodeContent-gap, $organizationChart-nodeContent-gap);
|
|
55
|
+
text-align: center;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.#{$c}__node-title {
|
|
59
|
+
font-size: var(--organizationChart-nodeContent-title-fontSize, $organizationChart-nodeContent-title-fontSize);
|
|
60
|
+
font-weight: var(--organizationChart-nodeContent-title-fontWeight, $organizationChart-nodeContent-title-fontWeight);
|
|
61
|
+
color: var(--organizationChart-nodeContent-title-color, $organizationChart-nodeContent-title-color);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.#{$c}__node-subtitle {
|
|
65
|
+
font-size: var(--organizationChart-nodeContent-subtitle-fontSize, $organizationChart-nodeContent-subtitle-fontSize);
|
|
66
|
+
font-weight: var(--organizationChart-nodeContent-subtitle-fontWeight, $organizationChart-nodeContent-subtitle-fontWeight);
|
|
67
|
+
color: var(--organizationChart-nodeContent-subtitle-color, $organizationChart-nodeContent-subtitle-color);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.#{$c}__toggle {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
width: var(--organizationChart-toggleButton-size, $organizationChart-toggleButton-size);
|
|
75
|
+
height: var(--organizationChart-toggleButton-size, $organizationChart-toggleButton-size);
|
|
76
|
+
margin-top: var(--inset-xs, $inset-xs);
|
|
77
|
+
padding: 0;
|
|
78
|
+
border: 1px solid var(--organizationChart-toggleButton-borderColor, $organizationChart-toggleButton-borderColor);
|
|
79
|
+
background-color: var(--organizationChart-toggleButton-background, $organizationChart-toggleButton-background);
|
|
80
|
+
border-radius: var(--organizationChart-toggleButton-radius, $organizationChart-toggleButton-radius);
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
transition: background-color var(--organizationChart-transition-duration, $organizationChart-transition-duration) ease;
|
|
83
|
+
|
|
84
|
+
svg {
|
|
85
|
+
width: 12px;
|
|
86
|
+
height: 12px;
|
|
87
|
+
color: var(--organizationChart-toggleButton-color, $organizationChart-toggleButton-color);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:hover {
|
|
91
|
+
background-color: var(--surface-muted, $surface-muted);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.#{$c}__children {
|
|
96
|
+
display: flex;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
gap: var(--organizationChart-spacing-horizontal, $organizationChart-spacing-horizontal);
|
|
99
|
+
padding-top: var(--organizationChart-spacing-vertical, $organizationChart-spacing-vertical);
|
|
100
|
+
position: relative;
|
|
101
|
+
|
|
102
|
+
// Vertical connector from parent to horizontal line
|
|
103
|
+
&::before {
|
|
104
|
+
content: "";
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 0;
|
|
107
|
+
left: 50%;
|
|
108
|
+
width: var(--organizationChart-connector-width, $organizationChart-connector-width);
|
|
109
|
+
height: calc(var(--organizationChart-spacing-vertical, $organizationChart-spacing-vertical) / 2);
|
|
110
|
+
background-color: var(--organizationChart-connector-color, $organizationChart-connector-color);
|
|
111
|
+
transform: translateX(-50%);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// Horizontal connector line
|
|
115
|
+
&::after {
|
|
116
|
+
content: "";
|
|
117
|
+
position: absolute;
|
|
118
|
+
top: calc(var(--organizationChart-spacing-vertical, $organizationChart-spacing-vertical) / 2);
|
|
119
|
+
left: calc(50% / var(--organizationChart-children-count, 1));
|
|
120
|
+
right: calc(50% / var(--organizationChart-children-count, 1));
|
|
121
|
+
height: var(--organizationChart-connector-width, $organizationChart-connector-width);
|
|
122
|
+
background-color: var(--organizationChart-connector-color, $organizationChart-connector-color);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Child nodes vertical connectors
|
|
127
|
+
.#{$c}__children > .#{$c}__node-wrapper {
|
|
128
|
+
position: relative;
|
|
129
|
+
|
|
130
|
+
&::before {
|
|
131
|
+
content: "";
|
|
132
|
+
position: absolute;
|
|
133
|
+
top: calc(-1 * var(--organizationChart-spacing-vertical, $organizationChart-spacing-vertical) / 2);
|
|
134
|
+
left: 50%;
|
|
135
|
+
width: var(--organizationChart-connector-width, $organizationChart-connector-width);
|
|
136
|
+
height: calc(var(--organizationChart-spacing-vertical, $organizationChart-spacing-vertical) / 2);
|
|
137
|
+
background-color: var(--organizationChart-connector-color, $organizationChart-connector-color);
|
|
138
|
+
transform: translateX(-50%);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// Single child - no horizontal line needed
|
|
143
|
+
.#{$c}__children:has(> .#{$c}__node-wrapper:only-child)::after {
|
|
144
|
+
display: none;
|
|
145
|
+
}
|