@orangelogic/design-system 2.78.0 → 2.79.0
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/library/chunks/{AxisLabelRadial.BTpA5dYy.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
- package/library/chunks/{BaseColumnSeries.hIO71GLG.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
- package/library/chunks/{CandlestickSeries.w9C0GR9v.js → CandlestickSeries.CkXGtRWE.js} +2 -2
- package/library/chunks/{Circle.tOnnO-F-.js → Circle.DBa5Ok8V.js} +1 -1
- package/library/chunks/{ColumnSeries.Ckz75x1M.js → ColumnSeries.DGazbfza.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CCMTJT7K.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
- package/library/chunks/{EditableLabel.DPmicdjK.js → EditableLabel.BWeq6fgX.js} +1 -1
- package/library/chunks/{Gradient.BrDBLm8v.js → Gradient.CdcsPIru.js} +1 -1
- package/library/chunks/{LinearGradient.CxfXxvMw.js → LinearGradient.B1z9AGUt.js} +2 -2
- package/library/chunks/{Picture.BNASYM-P.js → Picture.YSPC0l0Q.js} +1 -1
- package/library/chunks/{Polygon.Dr-GV2hn.js → Polygon.BwMvXN2H.js} +1 -1
- package/library/chunks/{ProgressPie.4mPA6xqm.js → ProgressPie.DlCwXN17.js} +5 -5
- package/library/chunks/{RadialLabel.HfsGiN4x.js → RadialLabel.DyVOf2K8.js} +1 -1
- package/library/chunks/{Scrollbar.Bgg-RhjP.js → Scrollbar.BdZVb_Z-.js} +1 -1
- package/library/chunks/{Slice.Dm56LTKj.js → Slice.DiEswWa6.js} +1 -1
- package/library/chunks/{Slider.FKJwoPq2.js → Slider.C20No2z5.js} +1 -1
- package/library/chunks/{SpriteResizer.-qJDgug8.js → SpriteResizer.DFnmcy0h.js} +1 -1
- package/library/chunks/{Triangle.BECgi7mc.js → Triangle.BaOef7HV.js} +1 -1
- package/library/chunks/{ZoomTools.cgwuIB0e.js → ZoomTools.D5JPehoL.js} +1 -1
- package/library/chunks/{am-chart.oZVBmpnn.js → am-chart.H2jnOzFc.js} +253 -261
- package/library/chunks/{animation.DU8t6mrk.js → animation.7ifl4x2S.js} +3 -7
- package/library/chunks/{button.DS64Tr8Z.js → button.B-ktz-w4.js} +7 -40
- package/library/chunks/button.styles.CKqn956w.js +5 -0
- package/library/chunks/{color-swatch-group.C7T6-sY7.js → color-swatch-group.DvllHUil.js} +46 -216
- package/library/chunks/{color-swatch.BuUP5yG4.js → color-swatch.Bx-HOp9f.js} +18 -202
- package/library/chunks/{colorPicker.C4w_vDjh.js → colorPicker.06n6P3aK.js} +5 -5
- package/library/chunks/component.styles.CRO4Odto.js +5 -0
- package/library/chunks/confirm-popover.BbHneK19.js +121 -0
- package/library/chunks/{cropper.D1lO3pl-.js → cropper.DTokTzP9.js} +2533 -2904
- package/library/chunks/{dialog.BdXQkCKY.js → dialog.B1nzoJak.js} +40 -251
- package/library/chunks/dot-pagination.C26bQ3vy.js +204 -0
- package/library/chunks/{exporting.BdjsEGF8.js → exporting.Chnl3UWi.js} +2 -2
- package/library/chunks/file-on-demand.D_Mia7M9.js +1956 -0
- package/library/chunks/{flow.D0FqdfOy.js → flow.D2CqFQa7.js} +5 -5
- package/library/chunks/{folder-select.B2qxSKA5.js → folder-select.DOsefkAC.js} +20 -226
- package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
- package/library/chunks/{gantt.DfUM7Gvb.js → gantt.DSHD2gjO.js} +8 -8
- package/library/chunks/header.D68fIfe2.js +170 -0
- package/library/chunks/{hierarchy.5kfBCoGt.js → hierarchy.DwVsMmsP.js} +5 -5
- package/library/chunks/icon-button.BuhCp--_.js +149 -0
- package/library/chunks/iframe.BQFZQMTe.js +73 -0
- package/library/chunks/{image.DHBgKeJp.js → image.4eLWAZ3-.js} +16 -272
- package/library/chunks/{index.BkoLctE9.js → index.C9khsiad.js} +17 -17
- package/library/chunks/{json.BjaT7cyo.js → json.zyETMOw-.js} +3 -3
- package/library/chunks/{list-editor.DluUZa06.js → list-editor.DNa6ROgr.js} +45 -360
- package/library/chunks/{map.DbgNAGxD.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/option.DljDoFx4.js +123 -0
- package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
- package/library/chunks/{pagination.g4zErKN2.js → pagination.BiRyMwhM.js} +45 -141
- package/library/chunks/{percent.DO4FjAdu.js → percent.DuQwbCCg.js} +3 -3
- package/library/chunks/{radar.Dd5fJVMg.js → radar.FpYl3UH5.js} +4 -4
- package/library/chunks/{sliceGrouper.DA3aeuJ-.js → sliceGrouper.BsE7fGMt.js} +1 -1
- package/library/chunks/{stock.BfI5MUyK.js → stock.BR-ag4Pt.js} +9 -9
- package/library/chunks/{tab-group.Dg6a82ei.js → tab-group.9HbDE1AF.js} +30 -581
- package/library/chunks/{table.CcqrVieF.js → table.B8LpbiGE.js} +192 -2133
- package/library/chunks/{timeline.BxMLjB5J.js → timeline.DkzkmgEM.js} +5 -5
- package/library/chunks/{tree.OXvhEOjS.js → tree.q7xRVYyh.js} +31 -399
- package/library/chunks/typography.DJC_UXgs.js +52 -0
- package/library/chunks/{venn.CxFupTb9.js → venn.D739bOV3.js} +1 -1
- package/library/chunks/{wc.ThQubbN2.js → wc.DzW311D-.js} +1 -1
- package/library/chunks/{xy.q6e68du3.js → xy.DCRDfTsa.js} +10 -10
- package/library/components/alert.js +9 -177
- package/library/components/am-chart.js +2 -2
- package/library/components/animated-image.js +12 -100
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +7 -88
- package/library/components/asset-link-format.js +48 -626
- package/library/components/atoms.js +17 -17
- package/library/components/avatar.js +5 -94
- package/library/components/badge.js +11 -139
- package/library/components/bicolor-picker.js +4 -23
- package/library/components/border-input-group.js +4 -25
- package/library/components/breadcrumb-item.js +24 -155
- package/library/components/breadcrumb.js +3 -21
- package/library/components/button-group.js +3 -28
- package/library/components/button.js +3 -3
- package/library/components/card.js +4 -126
- package/library/components/checkbox.js +11 -252
- package/library/components/color-picker.js +54 -725
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +5 -5
- package/library/components/copy-button.js +9 -254
- package/library/components/corner-position-input-group.js +4 -57
- package/library/components/cropper.js +2 -2
- package/library/components/details.js +6 -152
- package/library/components/dialog.js +4 -4
- package/library/components/divider.js +5 -67
- package/library/components/dot-pagination.js +2 -2
- package/library/components/dot-status.js +25 -95
- package/library/components/drawer.js +8 -239
- package/library/components/dropdown.js +47 -149
- package/library/components/dynamic-select.js +7 -72
- package/library/components/e-chart.js +6 -49
- package/library/components/element-clamp.js +5 -78
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +3 -3
- package/library/components/format-date.js +2 -6
- package/library/components/format-time.js +2 -12
- package/library/components/grid-item.js +4 -171
- package/library/components/grid.js +5 -41
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/icon.js +8 -2448
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +7 -127
- package/library/components/image.js +2 -2
- package/library/components/include.js +2 -6
- package/library/components/input-group.js +4 -29
- package/library/components/input.js +21 -715
- package/library/components/line-clamp.js +7 -83
- package/library/components/list-editor.js +7 -7
- package/library/components/markdown.js +1 -3
- package/library/components/masonry.js +22 -221
- package/library/components/menu-item.js +9 -309
- package/library/components/menu-label.js +3 -20
- package/library/components/menu-section.js +3 -17
- package/library/components/menu.js +4 -112
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +2 -6
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +5 -16
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +204 -538
- package/library/components/position-picker.js +3 -93
- package/library/components/progress-bar.js +18 -135
- package/library/components/progress-ring.js +3 -94
- package/library/components/qr-code.js +4 -16
- package/library/components/radio-button.js +4 -24
- package/library/components/radio-card.js +7 -175
- package/library/components/radio-group.js +20 -151
- package/library/components/radio.js +13 -170
- package/library/components/range.js +120 -657
- package/library/components/rating.js +56 -236
- package/library/components/relative-time.js +2 -12
- package/library/components/resize-observer.js +3 -7
- package/library/components/select.js +225 -933
- package/library/components/shadow-input-group.js +5 -24
- package/library/components/share-option-list.js +18 -310
- package/library/components/sidebar.js +14 -220
- package/library/components/size-input-group.js +10 -75
- package/library/components/skeleton.js +7 -80
- package/library/components/space.js +6 -143
- package/library/components/spinner.js +6 -75
- package/library/components/split-panel.js +16 -123
- package/library/components/step.js +21 -272
- package/library/components/stepper-wizard.js +9 -43
- package/library/components/stepper.js +16 -33
- package/library/components/switch.js +11 -274
- package/library/components/tab-group.js +4 -4
- package/library/components/tab-panel.js +4 -31
- package/library/components/tab.js +9 -255
- package/library/components/table.js +6 -6
- package/library/components/tag.js +14 -165
- package/library/components/textarea.js +14 -363
- package/library/components/timecode.js +4 -23
- package/library/components/tooltip.js +8 -92
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +18 -117
- package/library/components/types.js +777 -12001
- package/library/components/typography.js +2 -2
- package/library/components/video.js +3522 -5919
- package/library/components/visually-hidden.js +3 -15
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
- package/library/packages/types/src/table.d.ts +2 -0
- package/library/react-web-component.d.ts +7 -3
- package/package.json +4 -1
- package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
- package/library/chunks/component.styles.DMSLciL5.js +0 -71
- package/library/chunks/confirm-popover.BNjRvnN0.js +0 -288
- package/library/chunks/dot-pagination.CIVxMAAS.js +0 -325
- package/library/chunks/file-on-demand.BTTdth3o.js +0 -3802
- package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
- package/library/chunks/header.m7v3M94Z.js +0 -777
- package/library/chunks/icon-button.C3eqeQl9.js +0 -683
- package/library/chunks/iframe.CNEyWhcM.js +0 -160
- package/library/chunks/option.Csqefux_.js +0 -296
- package/library/chunks/typography.oDzoLbZS.js +0 -149
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as a, C as k } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as S } from "../chunks/component.styles.
|
|
2
|
+
import { c as S } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as w } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { d as x, L as C } from "../chunks/i18n.BUW7B9hr.js";
|
|
5
5
|
import { H as _, g as M } from "../chunks/slot.j5oheLJC.js";
|
|
@@ -12,235 +12,7 @@ import P from "./icon.js";
|
|
|
12
12
|
import E from "./popup.js";
|
|
13
13
|
import z from "./spinner.js";
|
|
14
14
|
import { e as D, n as R } from "../chunks/ref.bzeTdX0K.js";
|
|
15
|
-
const $ = L
|
|
16
|
-
:host {
|
|
17
|
-
--submenu-offset: -2px;
|
|
18
|
-
--prefix-font-size: var(--cx-font-size-small);
|
|
19
|
-
--prefix-color: var(--cx-color-neutral-500);
|
|
20
|
-
--label-color: var(--cx-color-neutral);
|
|
21
|
-
--suffix-color: var(--cx-color-neutral);
|
|
22
|
-
--font-weight: var(--cx-font-weight-regular);
|
|
23
|
-
|
|
24
|
-
display: block;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
:host([inert]) {
|
|
28
|
-
display: none;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.menu-item {
|
|
32
|
-
position: relative;
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: stretch;
|
|
35
|
-
text-decoration: none;
|
|
36
|
-
font-family: var(--cx-font-sans);
|
|
37
|
-
font-size: var(--cx-font-size-small);
|
|
38
|
-
font-weight: var(--font-weight, var(--cx-font-weight-regular));
|
|
39
|
-
line-height: var(--cx-line-height-large);
|
|
40
|
-
letter-spacing: var(--cx-letter-spacing-normal);
|
|
41
|
-
color: var(--cx-color-neutral);
|
|
42
|
-
padding: var(--cx-spacing-x-small) var(--cx-spacing-small);
|
|
43
|
-
transition: var(--cx-transition-fast) fill;
|
|
44
|
-
background-color: var(--cx-menu-item-background-color, unset);
|
|
45
|
-
user-select: none;
|
|
46
|
-
-webkit-user-select: none;
|
|
47
|
-
white-space: nowrap;
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.menu-item.menu-item--disabled {
|
|
52
|
-
outline: none;
|
|
53
|
-
cursor: default;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.menu-item.menu-item--disabled .menu-item__label,
|
|
57
|
-
.menu-item.menu-item--disabled .menu-item__prefix,
|
|
58
|
-
.menu-item.menu-item--disabled .menu-item__chevron,
|
|
59
|
-
.menu-item.menu-item--disabled .menu-item__check {
|
|
60
|
-
opacity: 0.5;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.menu-item.menu-item--disabled .menu-item__suffix:not(:slotted(cx-tooltip)) {
|
|
64
|
-
opacity: 0.5;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.menu-item.menu-item--loading {
|
|
68
|
-
outline: none;
|
|
69
|
-
cursor: wait;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.menu-item.menu-item--loading *:not(cx-spinner) {
|
|
73
|
-
opacity: 0.5;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.menu-item--loading cx-spinner {
|
|
77
|
-
--indicator-color: currentColor;
|
|
78
|
-
--track-width: 1px;
|
|
79
|
-
position: absolute;
|
|
80
|
-
font-size: 0.75em;
|
|
81
|
-
top: calc(50% - 0.5em);
|
|
82
|
-
left: 0.65rem;
|
|
83
|
-
opacity: 1;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.menu-item .menu-item__label {
|
|
87
|
-
color: var(--label-color, var(--cx-color-neutral));
|
|
88
|
-
flex: 1 1 auto;
|
|
89
|
-
display: inline-block;
|
|
90
|
-
text-overflow: ellipsis;
|
|
91
|
-
overflow: hidden;
|
|
92
|
-
margin: auto;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.menu-item--checked .menu-item__label {
|
|
96
|
-
color: var(--cx-color-primary);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.menu-item .menu-item__prefix {
|
|
100
|
-
color: var(--prefix-color, var(--cx-color-neutral-500));
|
|
101
|
-
font-size: var(--prefix-font-size, var(--cx-font-size-small));
|
|
102
|
-
flex: 0 0 auto;
|
|
103
|
-
display: flex;
|
|
104
|
-
align-items: center;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.menu-item--checked {
|
|
108
|
-
--prefix-color: var(--cx-color-primary);
|
|
109
|
-
--suffix-color: var(--cx-color-primary);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.menu-item--checked .menu-item__check {
|
|
113
|
-
color: var(--cx-color-primary);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.menu-item .menu-item__prefix::slotted(*) {
|
|
117
|
-
margin-inline-end: var(--cx-spacing-x-small);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.menu-item .menu-item__suffix {
|
|
121
|
-
color: var(--suffix-color);
|
|
122
|
-
flex: 0 0 auto;
|
|
123
|
-
display: flex;
|
|
124
|
-
align-items: center;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.menu-item .menu-item__suffix::slotted(*) {
|
|
128
|
-
margin-inline-start: var(--cx-spacing-x-small);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* Safe triangle */
|
|
132
|
-
.menu-item--submenu-expanded::after {
|
|
133
|
-
content: '';
|
|
134
|
-
position: fixed;
|
|
135
|
-
z-index: calc(var(--cx-z-index-dropdown) - 1);
|
|
136
|
-
top: 0;
|
|
137
|
-
right: 0;
|
|
138
|
-
bottom: 0;
|
|
139
|
-
left: 0;
|
|
140
|
-
clip-path: polygon(
|
|
141
|
-
var(--safe-triangle-cursor-x, 0) var(--safe-triangle-cursor-y, 0),
|
|
142
|
-
var(--safe-triangle-submenu-start-x, 0)
|
|
143
|
-
var(--safe-triangle-submenu-start-y, 0),
|
|
144
|
-
var(--safe-triangle-submenu-end-x, 0)
|
|
145
|
-
var(--safe-triangle-submenu-end-y, 0)
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
@media (pointer: none), (pointer: coarse) {
|
|
150
|
-
.menu-item--submenu-expanded::after {
|
|
151
|
-
display: none;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
:host(:focus-visible) {
|
|
156
|
-
outline: var(--cx-focus-ring);
|
|
157
|
-
outline-offset: calc(-1 * var(--cx-focus-ring-width));
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
:host(:hover:not([aria-disabled='true'], :focus-visible, .disable-hover))
|
|
161
|
-
.menu-item,
|
|
162
|
-
.menu-item--submenu-expanded {
|
|
163
|
-
background-color: var(--cx-menu-item-background-color-hover);
|
|
164
|
-
color: var(--cx-color-neutral-1000);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
:host(:not([aria-disabled='true'])) .menu-item--active {
|
|
168
|
-
background-color: var(
|
|
169
|
-
--cx-menu-item-background-color-active,
|
|
170
|
-
var(--cx-menu-item-background-color-hover)
|
|
171
|
-
);
|
|
172
|
-
color: var(--cx-color-neutral-1000);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
:host(:hover:not([aria-disabled='true'], :focus-visible, .disable-hover))
|
|
176
|
-
.menu-item--active {
|
|
177
|
-
background-color: var(
|
|
178
|
-
--cx-menu-item-background-color-active-hover,
|
|
179
|
-
var(--cx-menu-item-background-color-active)
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
:host(:focus-visible) .menu-item {
|
|
184
|
-
outline: none;
|
|
185
|
-
background-color: var(--cx-menu-item-background-color-hover);
|
|
186
|
-
opacity: 1;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.menu-item .menu-item__check,
|
|
190
|
-
.menu-item .menu-item__chevron {
|
|
191
|
-
flex: 0 0 auto;
|
|
192
|
-
align-items: center;
|
|
193
|
-
justify-content: center;
|
|
194
|
-
width: 1.5em;
|
|
195
|
-
visibility: hidden;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.menu-item .menu-item__check {
|
|
199
|
-
display: var(--checked-icon-display, flex);
|
|
200
|
-
margin-right: var(--cx-spacing-2x-small);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.menu-item .menu-item__check--always-show {
|
|
204
|
-
visibility: visible;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.menu-item .menu-item__chevron {
|
|
208
|
-
display: var(--submenu-icon-display, flex);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.menu-item--checked .menu-item__check,
|
|
212
|
-
.menu-item--has-submenu .menu-item__chevron {
|
|
213
|
-
visibility: visible;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/* Add elevation and z-index to submenus */
|
|
217
|
-
cx-popup::part(popup) {
|
|
218
|
-
border: var(--cx-panel-border-width) solid var(--cx-popup-border-color);
|
|
219
|
-
border-radius: var(--cx-border-radius-large);
|
|
220
|
-
box-shadow: var(--cx-shadow-large);
|
|
221
|
-
z-index: var(--cx-z-index-dropdown);
|
|
222
|
-
margin-left: var(--submenu-offset, -2px);
|
|
223
|
-
overflow: hidden;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.menu-item--rtl cx-popup::part(popup) {
|
|
227
|
-
margin-left: calc(-1 * var(--submenu-offset));
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
@media (forced-colors: active) {
|
|
231
|
-
:host(:hover:not([aria-disabled='true'])) .menu-item,
|
|
232
|
-
:host(:focus-visible) .menu-item {
|
|
233
|
-
outline: dashed 1px SelectedItem;
|
|
234
|
-
outline-offset: -1px;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/* When users slot a menu, make sure it conforms to the popup's auto-size */
|
|
239
|
-
::slotted(cx-menu) {
|
|
240
|
-
max-width: var(--auto-size-available-width) !important;
|
|
241
|
-
max-height: var(--auto-size-available-height) !important;
|
|
242
|
-
}
|
|
243
|
-
`;
|
|
15
|
+
const $ = L`:host{--submenu-offset:-2px;--prefix-font-size:var(--cx-font-size-small);--prefix-color:var(--cx-color-neutral-500);--label-color:var(--cx-color-neutral);--suffix-color:var(--cx-color-neutral);--font-weight:var(--cx-font-weight-regular);display:block}:host([inert]){display:none}.menu-item{font-family:var(--cx-font-sans);font-size:var(--cx-font-size-small);font-weight:var(--font-weight,var(--cx-font-weight-regular));line-height:var(--cx-line-height-large);letter-spacing:var(--cx-letter-spacing-normal);color:var(--cx-color-neutral);padding:var(--cx-spacing-x-small) var(--cx-spacing-small);transition:var(--cx-transition-fast) fill;background-color:var(--cx-menu-item-background-color,unset);-webkit-user-select:none;user-select:none;white-space:nowrap;cursor:pointer;align-items:stretch;text-decoration:none;display:flex;position:relative}.menu-item.menu-item--disabled{cursor:default;outline:none}.menu-item.menu-item--disabled .menu-item__label,.menu-item.menu-item--disabled .menu-item__prefix,.menu-item.menu-item--disabled .menu-item__chevron,.menu-item.menu-item--disabled .menu-item__check{opacity:.5}.menu-item.menu-item--disabled .menu-item__suffix:not(:slotted(cx-tooltip)){opacity:.5}.menu-item.menu-item--loading{cursor:wait;outline:none}.menu-item.menu-item--loading :not(cx-spinner){opacity:.5}.menu-item--loading cx-spinner{--indicator-color:currentColor;--track-width:1px;opacity:1;font-size:.75em;position:absolute;top:calc(50% - .5em);left:.65rem}.menu-item .menu-item__label{color:var(--label-color,var(--cx-color-neutral));text-overflow:ellipsis;flex:auto;margin:auto;display:inline-block;overflow:hidden}.menu-item--checked .menu-item__label{color:var(--cx-color-primary)}.menu-item .menu-item__prefix{color:var(--prefix-color,var(--cx-color-neutral-500));font-size:var(--prefix-font-size,var(--cx-font-size-small));flex:none;align-items:center;display:flex}.menu-item--checked{--prefix-color:var(--cx-color-primary);--suffix-color:var(--cx-color-primary)}.menu-item--checked .menu-item__check{color:var(--cx-color-primary)}.menu-item .menu-item__prefix::slotted(*){margin-inline-end:var(--cx-spacing-x-small)}.menu-item .menu-item__suffix{color:var(--suffix-color);flex:none;align-items:center;display:flex}.menu-item .menu-item__suffix::slotted(*){margin-inline-start:var(--cx-spacing-x-small)}.menu-item--submenu-expanded:after{content:"";z-index:calc(var(--cx-z-index-dropdown) - 1);clip-path:polygon(var(--safe-triangle-cursor-x,0) var(--safe-triangle-cursor-y,0), var(--safe-triangle-submenu-start-x,0) var(--safe-triangle-submenu-start-y,0), var(--safe-triangle-submenu-end-x,0) var(--safe-triangle-submenu-end-y,0));position:fixed;inset:0}@media (pointer:none),(pointer:coarse){.menu-item--submenu-expanded:after{display:none}}:host(:focus-visible){outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}:host(:hover:not([aria-disabled=true],:focus-visible,.disable-hover)) .menu-item,.menu-item--submenu-expanded{background-color:var(--cx-menu-item-background-color-hover);color:var(--cx-color-neutral-1000)}:host(:not([aria-disabled=true])) .menu-item--active{background-color:var(--cx-menu-item-background-color-active,var(--cx-menu-item-background-color-hover));color:var(--cx-color-neutral-1000)}:host(:hover:not([aria-disabled=true],:focus-visible,.disable-hover)) .menu-item--active{background-color:var(--cx-menu-item-background-color-active-hover,var(--cx-menu-item-background-color-active))}:host(:focus-visible) .menu-item{background-color:var(--cx-menu-item-background-color-hover);opacity:1;outline:none}.menu-item .menu-item__check,.menu-item .menu-item__chevron{visibility:hidden;flex:none;justify-content:center;align-items:center;width:1.5em}.menu-item .menu-item__check{display:var(--checked-icon-display,flex);margin-right:var(--cx-spacing-2x-small)}.menu-item .menu-item__check--always-show{visibility:visible}.menu-item .menu-item__chevron{display:var(--submenu-icon-display,flex)}.menu-item--checked .menu-item__check,.menu-item--has-submenu .menu-item__chevron{visibility:visible}cx-popup::part(popup){border:var(--cx-panel-border-width) solid var(--cx-popup-border-color);border-radius:var(--cx-border-radius-large);box-shadow:var(--cx-shadow-large);z-index:var(--cx-z-index-dropdown);margin-left:var(--submenu-offset,-2px);overflow:hidden}.menu-item--rtl cx-popup::part(popup){margin-left:calc(-1 * var(--submenu-offset))}@media (forced-colors:active){:host(:hover:not([aria-disabled=true])) .menu-item,:host(:focus-visible) .menu-item{outline-offset:-1px;outline:1px dashed selecteditem}}::slotted(cx-menu){max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`;
|
|
244
16
|
class T {
|
|
245
17
|
constructor(e, n) {
|
|
246
18
|
this.popupRef = D(), this.parent = null, this.enableSubmenuTimer = -1, this.isHorizontalMenu = !1, this.isConnected = !1, this.isPopupConnected = !1, this.skidding = 0, this.submenuOpenDelay = 100, (this.host = e).addController(this), this.hasSlotController = n, this.handleMouseMove = this.handleMouseMove.bind(this), this.handleMouseOver = this.handleMouseOver.bind(this), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleClick = this.handleClick.bind(this), this.handleSubmenuIconClick = this.handleSubmenuIconClick.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.handleMouseLeave = this.handleMouseLeave.bind(this), this.handlePopupMouseover = this.handlePopupMouseover.bind(this), this.handlePopupReposition = this.handlePopupReposition.bind(this);
|
|
@@ -427,25 +199,7 @@ class T {
|
|
|
427
199
|
if (!this.hasSlotController.test("submenu"))
|
|
428
200
|
return null;
|
|
429
201
|
const n = this.host.submenuPlacement ?? (e ? "left-start" : "right-start");
|
|
430
|
-
return h
|
|
431
|
-
<cx-popup
|
|
432
|
-
${R(this.popupRef)}
|
|
433
|
-
placement=${n}
|
|
434
|
-
anchor="anchor"
|
|
435
|
-
part="submenu-popup"
|
|
436
|
-
flip
|
|
437
|
-
flip-fallback-strategy="best-fit"
|
|
438
|
-
skidding=${this.skidding}
|
|
439
|
-
strategy="overlay"
|
|
440
|
-
auto-size="both"
|
|
441
|
-
auto-size-padding="10"
|
|
442
|
-
?shift=${!!this.host.shiftBoundary}
|
|
443
|
-
.flipBoundary=${this.host.flipBoundary}
|
|
444
|
-
.shiftBoundary=${this.host.shiftBoundary}
|
|
445
|
-
>
|
|
446
|
-
<slot name="submenu"></slot>
|
|
447
|
-
</cx-popup>
|
|
448
|
-
`;
|
|
202
|
+
return h`<cx-popup ${R(this.popupRef)} placement=${n} anchor="anchor" part="submenu-popup" flip flip-fallback-strategy="best-fit" skidding=${this.skidding} strategy="overlay" auto-size="both" auto-size-padding="10" ?shift=${!!this.host.shiftBoundary} .flipBoundary=${this.host.flipBoundary} .shiftBoundary=${this.host.shiftBoundary}><slot name="submenu"></slot></cx-popup>`;
|
|
449
203
|
}
|
|
450
204
|
}
|
|
451
205
|
var O = Object.defineProperty, I = Object.getOwnPropertyDescriptor, s = (o, e, n, i) => {
|
|
@@ -521,11 +275,7 @@ let t = class extends k {
|
|
|
521
275
|
}
|
|
522
276
|
renderBase(o) {
|
|
523
277
|
const e = !!this.href, n = this.localize.dir() === "rtl", i = this.submenuController.isExpanded();
|
|
524
|
-
return e ? h
|
|
525
|
-
<a
|
|
526
|
-
id="anchor"
|
|
527
|
-
part="base"
|
|
528
|
-
class=${b({
|
|
278
|
+
return e ? h`<a id="anchor" part="base" class=${b({
|
|
529
279
|
"menu-item": !0,
|
|
530
280
|
"menu-item--active": this.active,
|
|
531
281
|
"menu-item--checkbox": this.type === "checkbox",
|
|
@@ -535,23 +285,7 @@ let t = class extends k {
|
|
|
535
285
|
"menu-item--loading": this.loading,
|
|
536
286
|
"menu-item--rtl": n,
|
|
537
287
|
"menu-item--submenu-expanded": i
|
|
538
|
-
})}
|
|
539
|
-
aria-haspopup=${this.isSubmenu()}
|
|
540
|
-
href=${m(this.href)}
|
|
541
|
-
target=${m(this.target)}
|
|
542
|
-
download=${m(this.download)}
|
|
543
|
-
rel=${m(this.rel)}
|
|
544
|
-
aria-label=${this.getTextLabel()}
|
|
545
|
-
?inert=${this.disabled}
|
|
546
|
-
@click=${this.handleAnchorClick}
|
|
547
|
-
>
|
|
548
|
-
${o}
|
|
549
|
-
</a>
|
|
550
|
-
` : h`
|
|
551
|
-
<div
|
|
552
|
-
id="anchor"
|
|
553
|
-
part="base"
|
|
554
|
-
class=${b({
|
|
288
|
+
})} aria-haspopup=${this.isSubmenu()} href=${m(this.href)} target=${m(this.target)} download=${m(this.download)} rel=${m(this.rel)} aria-label=${this.getTextLabel()} ?inert=${this.disabled} @click=${this.handleAnchorClick}>${o}</a>` : h`<div id="anchor" part="base" class=${b({
|
|
555
289
|
"menu-item": !0,
|
|
556
290
|
"menu-item--active": this.active,
|
|
557
291
|
"menu-item--checkbox": this.type === "checkbox",
|
|
@@ -561,50 +295,16 @@ let t = class extends k {
|
|
|
561
295
|
"menu-item--loading": this.loading,
|
|
562
296
|
"menu-item--rtl": n,
|
|
563
297
|
"menu-item--submenu-expanded": i
|
|
564
|
-
})}
|
|
565
|
-
aria-haspopup=${this.isSubmenu()}
|
|
566
|
-
aria-label=${this.getTextLabel()}
|
|
567
|
-
>
|
|
568
|
-
${o}
|
|
569
|
-
</div>
|
|
570
|
-
`;
|
|
298
|
+
})} aria-haspopup=${this.isSubmenu()} aria-label=${this.getTextLabel()}>${o}</div>`;
|
|
571
299
|
}
|
|
572
300
|
render() {
|
|
573
301
|
const o = this.localize.dir() === "rtl";
|
|
574
302
|
let e;
|
|
575
|
-
return this.submenuPlacement && (this.submenuPlacement.startsWith("top") || this.submenuPlacement.startsWith("bottom")) ? e = "keyboard_arrow_down" : e = o ? "chevron_left" : "chevron_right", this.renderBase(h
|
|
576
|
-
<slot
|
|
577
|
-
part="checked-icon"
|
|
578
|
-
name="checked-icon"
|
|
579
|
-
class=${b({
|
|
303
|
+
return this.submenuPlacement && (this.submenuPlacement.startsWith("top") || this.submenuPlacement.startsWith("bottom")) ? e = "keyboard_arrow_down" : e = o ? "chevron_left" : "chevron_right", this.renderBase(h`<slot part="checked-icon" name="checked-icon" class=${b({
|
|
580
304
|
"menu-item__check": !0,
|
|
581
305
|
"menu-item__check--always-show": this.alwaysShowCheckedIcon
|
|
582
|
-
})}
|
|
583
|
-
|
|
584
|
-
<cx-icon name="check"></cx-icon>
|
|
585
|
-
</slot>
|
|
586
|
-
|
|
587
|
-
<slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
|
|
588
|
-
|
|
589
|
-
<slot
|
|
590
|
-
part="label"
|
|
591
|
-
class="menu-item__label"
|
|
592
|
-
@slotchange=${this.handleDefaultSlotChange}
|
|
593
|
-
></slot>
|
|
594
|
-
|
|
595
|
-
<slot name="suffix" part="suffix" class="menu-item__suffix"></slot>
|
|
596
|
-
|
|
597
|
-
<slot name="submenu-icon" part="submenu-icon" class="menu-item__chevron">
|
|
598
|
-
<cx-icon name=${e} aria-hidden="true"></cx-icon>
|
|
599
|
-
</slot>
|
|
600
|
-
|
|
601
|
-
${this.submenuController.renderSubmenu()}
|
|
602
|
-
${this.loading ? h`
|
|
603
|
-
<cx-spinner
|
|
604
|
-
part="spinner"
|
|
605
|
-
exportparts="base:spinner__base"
|
|
606
|
-
></cx-spinner>
|
|
607
|
-
` : ""}
|
|
306
|
+
})}><cx-icon name="check"></cx-icon></slot><slot name="prefix" part="prefix" class="menu-item__prefix"></slot><slot part="label" class="menu-item__label" @slotchange=${this.handleDefaultSlotChange}></slot><slot name="suffix" part="suffix" class="menu-item__suffix"></slot><slot name="submenu-icon" part="submenu-icon" class="menu-item__chevron"><cx-icon name=${e} aria-hidden="true"></cx-icon></slot>${this.submenuController.renderSubmenu()}
|
|
307
|
+
${this.loading ? h`<cx-spinner part="spinner" exportparts="base:spinner__base"></cx-spinner>` : ""}
|
|
608
308
|
`);
|
|
609
309
|
}
|
|
610
310
|
};
|
|
@@ -1,25 +1,8 @@
|
|
|
1
1
|
import { C as c } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as i } from "../chunks/component.styles.
|
|
2
|
+
import { c as i } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as m } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { i as p, x } from "../chunks/lit-element.jLBm65_O.js";
|
|
5
|
-
const f = p
|
|
6
|
-
:host {
|
|
7
|
-
display: block;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.menu-label {
|
|
11
|
-
display: inline-block;
|
|
12
|
-
font-family: var(--cx-font-sans);
|
|
13
|
-
font-size: var(--cx-font-size-small);
|
|
14
|
-
font-weight: var(--cx-font-weight-medium);
|
|
15
|
-
line-height: var(--cx-line-height-large);
|
|
16
|
-
letter-spacing: var(--cx-letter-spacing-normal);
|
|
17
|
-
color: var(--cx-color-neutral-500);
|
|
18
|
-
padding: var(--cx-spacing-x-small) var(--cx-spacing-small);
|
|
19
|
-
user-select: none;
|
|
20
|
-
-webkit-user-select: none;
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
5
|
+
const f = p`:host{display:block}.menu-label{font-family:var(--cx-font-sans);font-size:var(--cx-font-size-small);font-weight:var(--cx-font-weight-medium);line-height:var(--cx-line-height-large);letter-spacing:var(--cx-letter-spacing-normal);color:var(--cx-color-neutral-500);padding:var(--cx-spacing-x-small) var(--cx-spacing-small);-webkit-user-select:none;user-select:none;display:inline-block}`;
|
|
23
6
|
var u = Object.getOwnPropertyDescriptor, v = (r, s, o, a) => {
|
|
24
7
|
for (var e = a > 1 ? void 0 : a ? u(s, o) : s, t = r.length - 1, n; t >= 0; t--)
|
|
25
8
|
(n = r[t]) && (e = n(e) || e);
|
|
@@ -27,7 +10,7 @@ var u = Object.getOwnPropertyDescriptor, v = (r, s, o, a) => {
|
|
|
27
10
|
};
|
|
28
11
|
let l = class extends c {
|
|
29
12
|
render() {
|
|
30
|
-
return x
|
|
13
|
+
return x`<slot part="base" class="menu-label"></slot>`;
|
|
31
14
|
}
|
|
32
15
|
};
|
|
33
16
|
l.styles = [i, f];
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
import { n as u, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as m } from "../chunks/component.styles.
|
|
2
|
+
import { c as m } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as h } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { i as p, E as d, x as c } from "../chunks/lit-element.jLBm65_O.js";
|
|
5
5
|
import { e as f } from "../chunks/query.BBf1UFkC.js";
|
|
6
6
|
import v from "./menu-label.js";
|
|
7
|
-
const C = p
|
|
8
|
-
:host {
|
|
9
|
-
display: block;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:host([inert]) {
|
|
13
|
-
display: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:host([is-empty]) {
|
|
17
|
-
display: none;
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
7
|
+
const C = p`:host{display:block}:host([inert]),:host([is-empty]){display:none}`;
|
|
20
8
|
var y = Object.defineProperty, x = Object.getOwnPropertyDescriptor, a = (n, t, r, l) => {
|
|
21
9
|
for (var e = l > 1 ? void 0 : l ? x(t, r) : t, i = n.length - 1, o; i >= 0; i--)
|
|
22
10
|
(o = n[i]) && (e = (l ? o(t, r, e) : o(e)) || e);
|
|
@@ -43,9 +31,7 @@ let s = class extends b {
|
|
|
43
31
|
}
|
|
44
32
|
render() {
|
|
45
33
|
return c`
|
|
46
|
-
${this.label.length > 0 ? c`<cx-menu-label part="label">${this.label}</cx-menu-label>` : d}
|
|
47
|
-
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
48
|
-
`;
|
|
34
|
+
${this.label.length > 0 ? c`<cx-menu-label part="label">${this.label}</cx-menu-label>` : d}<slot @slotchange=${this.handleSlotChange}></slot>`;
|
|
49
35
|
}
|
|
50
36
|
};
|
|
51
37
|
s.styles = [m, C];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as c, C as f } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as p } from "../chunks/component.styles.
|
|
2
|
+
import { c as p } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as b } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { L as g } from "../chunks/i18n.BUW7B9hr.js";
|
|
5
5
|
import { i as v, x as d } from "../chunks/lit-element.jLBm65_O.js";
|
|
@@ -7,93 +7,7 @@ import { r as y } from "../chunks/state.CSDxrqLd.js";
|
|
|
7
7
|
import { e as w } from "../chunks/query.BBf1UFkC.js";
|
|
8
8
|
import { n as x } from "../chunks/when.Dr1es41R.js";
|
|
9
9
|
import M from "./menu-item.js";
|
|
10
|
-
const k = v
|
|
11
|
-
:host {
|
|
12
|
-
display: block;
|
|
13
|
-
position: relative;
|
|
14
|
-
background: var(--cx-panel-background-color);
|
|
15
|
-
border: solid var(--cx-panel-border-width) var(--cx-panel-border-color);
|
|
16
|
-
border-radius: var(--cx-border-radius-large);
|
|
17
|
-
padding: var(--cx-spacing-x-small) 0;
|
|
18
|
-
overflow: auto;
|
|
19
|
-
|
|
20
|
-
--divider-color: var(--cx-panel-border-color);
|
|
21
|
-
--divider-width: var(--cx-panel-border-width);
|
|
22
|
-
--divider-spacing: var(--cx-spacing-x-small);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
:host([horizontal]) {
|
|
26
|
-
display: flex;
|
|
27
|
-
padding: 0 var(--cx-spacing-x-small);
|
|
28
|
-
flex-wrap: wrap;
|
|
29
|
-
justify-content: space-between;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
::slotted(cx-divider) {
|
|
33
|
-
--color: var(--divider-color);
|
|
34
|
-
--width: var(--divider-width);
|
|
35
|
-
--spacing: var(--divider-spacing);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
::slotted([data-alternating-grouping])::before {
|
|
39
|
-
content: ' ';
|
|
40
|
-
background-color: var(--divider-color);
|
|
41
|
-
|
|
42
|
-
display: block;
|
|
43
|
-
margin: var(--divider-spacing) 0;
|
|
44
|
-
height: var(--divider-width);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
::slotted([data-alternating-grouping='horizontal'])::before {
|
|
48
|
-
display: inline-block;
|
|
49
|
-
height: 100%;
|
|
50
|
-
margin: 0 var(--divider-spacing);
|
|
51
|
-
width: var(--divider-width);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
:host([horizontal]) ::slotted(cx-menu-section) {
|
|
55
|
-
display: flex;
|
|
56
|
-
flex-wrap: wrap;
|
|
57
|
-
justify-content: space-between;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
:host([horizontal]) ::slotted(cx-menu-item) {
|
|
61
|
-
display: flex;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
:host([variant='multiple']) {
|
|
65
|
-
position: relative;
|
|
66
|
-
overflow: hidden;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
:host([variant='multiple']) ::slotted(cx-menu[name]) {
|
|
70
|
-
opacity: 0;
|
|
71
|
-
pointer-events: none;
|
|
72
|
-
transform: translateX(-50%);
|
|
73
|
-
position: absolute;
|
|
74
|
-
top: 0;
|
|
75
|
-
left: 0;
|
|
76
|
-
border: none;
|
|
77
|
-
transition:
|
|
78
|
-
opacity var(--cx-transition-fast) ease-in-out,
|
|
79
|
-
transform var(--cx-transition-medium) ease-in-out;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
:host([variant='multiple']) ::slotted(cx-menu[active]) {
|
|
83
|
-
opacity: 1;
|
|
84
|
-
transform: translateX(0);
|
|
85
|
-
pointer-events: auto;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.back__button::part(checked-icon),
|
|
89
|
-
.back__button::part(submenu-icon) {
|
|
90
|
-
display: none;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.back__divider {
|
|
94
|
-
--spacing: var(--cx-spacing-x-small);
|
|
95
|
-
}
|
|
96
|
-
`;
|
|
10
|
+
const k = v`:host{background:var(--cx-panel-background-color);border:solid var(--cx-panel-border-width) var(--cx-panel-border-color);border-radius:var(--cx-border-radius-large);padding:var(--cx-spacing-x-small) 0;--divider-color:var(--cx-panel-border-color);--divider-width:var(--cx-panel-border-width);--divider-spacing:var(--cx-spacing-x-small);display:block;position:relative;overflow:auto}:host([horizontal]){padding:0 var(--cx-spacing-x-small);flex-wrap:wrap;justify-content:space-between;display:flex}::slotted(cx-divider){--color:var(--divider-color);--width:var(--divider-width);--spacing:var(--divider-spacing)}::slotted([data-alternating-grouping]):before{content:" ";background-color:var(--divider-color);margin:var(--divider-spacing) 0;height:var(--divider-width);display:block}::slotted([data-alternating-grouping=horizontal]):before{height:100%;margin:0 var(--divider-spacing);width:var(--divider-width);display:inline-block}:host([horizontal]) ::slotted(cx-menu-section){flex-wrap:wrap;justify-content:space-between;display:flex}:host([horizontal]) ::slotted(cx-menu-item){display:flex}:host([variant=multiple]){position:relative;overflow:hidden}:host([variant=multiple]) ::slotted(cx-menu[name]){opacity:0;pointer-events:none;transition:opacity var(--cx-transition-fast) ease-in-out, transform var(--cx-transition-medium) ease-in-out;border:none;position:absolute;top:0;left:0;transform:translate(-50%)}:host([variant=multiple]) ::slotted(cx-menu[active]){opacity:1;pointer-events:auto;transform:translate(0)}.back__button::part(checked-icon),.back__button::part(submenu-icon){display:none}.back__divider{--spacing:var(--cx-spacing-x-small)}`;
|
|
97
11
|
var A = Object.defineProperty, I = Object.getOwnPropertyDescriptor, u = (e, t, r, i) => {
|
|
98
12
|
for (var o = i > 1 ? void 0 : i ? I(t, r) : t, h = e.length - 1, n; h >= 0; h--)
|
|
99
13
|
(n = e[h]) && (o = (i ? n(t, r, o) : n(o)) || o);
|
|
@@ -353,31 +267,9 @@ let l = class extends f {
|
|
|
353
267
|
render() {
|
|
354
268
|
const e = x(
|
|
355
269
|
this.back,
|
|
356
|
-
() => d
|
|
357
|
-
<slot name="back-button" role="menuitem" menu=${this.back}>
|
|
358
|
-
<cx-menu-item
|
|
359
|
-
part="back-button"
|
|
360
|
-
class="back__button"
|
|
361
|
-
menu=${this.back}
|
|
362
|
-
>
|
|
363
|
-
<cx-icon slot="prefix" name="chevron_left"></cx-icon>
|
|
364
|
-
${this.localize.term("back")}
|
|
365
|
-
</cx-menu-item>
|
|
366
|
-
<cx-divider class="back__divider"></cx-divider>
|
|
367
|
-
</slot>
|
|
368
|
-
`
|
|
270
|
+
() => d`<slot name="back-button" role="menuitem" menu=${this.back}><cx-menu-item part="back-button" class="back__button" menu=${this.back}><cx-icon slot="prefix" name="chevron_left"></cx-icon>${this.localize.term("back")}</cx-menu-item><cx-divider class="back__divider"></cx-divider></slot>`
|
|
369
271
|
);
|
|
370
|
-
return this.variant === "multiple" ? d`${e}<slot
|
|
371
|
-
@slotchange=${this.handleSlotChange}
|
|
372
|
-
@click=${this.handleClick}
|
|
373
|
-
@keydown=${this.handleKeyDown}
|
|
374
|
-
@mousedown=${this.handleMouseDown}
|
|
375
|
-
></slot>` : d`${e}<slot
|
|
376
|
-
@slotchange=${this.handleSlotChange}
|
|
377
|
-
@click=${this.handleClick}
|
|
378
|
-
@keydown=${this.handleKeyDown}
|
|
379
|
-
@mousedown=${this.handleMouseDown}
|
|
380
|
-
></slot>`;
|
|
272
|
+
return this.variant === "multiple" ? d`${e}<slot @slotchange=${this.handleSlotChange} @click=${this.handleClick} @keydown=${this.handleKeyDown} @mousedown=${this.handleMouseDown}></slot>` : d`${e}<slot @slotchange=${this.handleSlotChange} @click=${this.handleClick} @keydown=${this.handleKeyDown} @mousedown=${this.handleMouseDown}></slot>`;
|
|
381
273
|
}
|
|
382
274
|
};
|
|
383
275
|
l.styles = [p, k];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { default as e } from "./bicolor-picker.js";
|
|
2
2
|
import { default as a } from "./border-input-group.js";
|
|
3
|
-
import { C as p } from "../chunks/color-swatch.
|
|
4
|
-
import { C } from "../chunks/confirm-popover.
|
|
3
|
+
import { C as p } from "../chunks/color-swatch.Bx-HOp9f.js";
|
|
4
|
+
import { C } from "../chunks/confirm-popover.BbHneK19.js";
|
|
5
5
|
import { default as u } from "./corner-position-input-group.js";
|
|
6
|
-
import { C as m } from "../chunks/cropper.
|
|
6
|
+
import { C as m } from "../chunks/cropper.DTokTzP9.js";
|
|
7
7
|
import { default as i } from "./dynamic-select.js";
|
|
8
|
-
import { C as c } from "../chunks/folder-select.
|
|
9
|
-
import { C as P } from "../chunks/list-editor.
|
|
8
|
+
import { C as c } from "../chunks/folder-select.DOsefkAC.js";
|
|
9
|
+
import { C as P } from "../chunks/list-editor.DNa6ROgr.js";
|
|
10
10
|
import { default as I } from "./masonry.js";
|
|
11
11
|
import { default as y } from "./padding-input-group.js";
|
|
12
12
|
import { default as w } from "./position-picker.js";
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { n as o, C as c } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as u } from "../chunks/component.styles.
|
|
2
|
+
import { c as u } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as p } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { w as l } from "../chunks/watch.BCJD77bD.js";
|
|
5
5
|
import { i as b, x as f } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
6
|
import { e as v } from "../chunks/query.BBf1UFkC.js";
|
|
7
|
-
const O = b
|
|
8
|
-
:host {
|
|
9
|
-
display: contents;
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
7
|
+
const O = b`:host{display:contents}`;
|
|
12
8
|
var m = Object.defineProperty, y = Object.getOwnPropertyDescriptor, e = (a, i, n, r) => {
|
|
13
9
|
for (var s = r > 1 ? void 0 : r ? y(i, n) : i, h = a.length - 1, d; h >= 0; h--)
|
|
14
10
|
(d = a[h]) && (s = (r ? d(i, n, s) : d(s)) || s);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import "../chunks/component.styles.
|
|
3
|
-
import { C } from "../chunks/option.
|
|
2
|
+
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
+
import { C } from "../chunks/option.DljDoFx4.js";
|
|
4
4
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import "../chunks/i18n.BUW7B9hr.js";
|
|
6
6
|
import "../chunks/watch.BCJD77bD.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as a } from "./asset-link-format.js";
|
|
2
|
-
import { C as t } from "../chunks/color-swatch-group.
|
|
3
|
-
import { C } from "../chunks/file-on-demand.
|
|
2
|
+
import { C as t } from "../chunks/color-swatch-group.DvllHUil.js";
|
|
3
|
+
import { C } from "../chunks/file-on-demand.D_Mia7M9.js";
|
|
4
4
|
export {
|
|
5
5
|
a as CxAssetLinkFormat,
|
|
6
6
|
t as CxColorSwatchGroup,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import i from "./input.js";
|
|
2
2
|
import l from "./input-group.js";
|
|
3
3
|
import { n as c, C as x } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
4
|
-
import { c as f } from "../chunks/component.styles.
|
|
4
|
+
import { c as f } from "../chunks/component.styles.CRO4Odto.js";
|
|
5
5
|
import { c as d } from "../chunks/custom-element.L4WJXn1j.js";
|
|
6
6
|
import { s as g } from "../chunks/parse.Cu5nBDTb.js";
|
|
7
7
|
import { i as h, x as u } from "../chunks/lit-element.jLBm65_O.js";
|
|
@@ -34,29 +34,18 @@ let s = class extends x {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return u`<cx-input-group @cx-change=${this.handleInputChange}
|
|
38
|
-
${v(
|
|
37
|
+
return u`<cx-input-group @cx-change=${this.handleInputChange}>${v(
|
|
39
38
|
["Top", "Right", "Bottom", "Left"],
|
|
40
39
|
(t) => t,
|
|
41
|
-
(t, e) => u`<cx-input
|
|
42
|
-
data-index=${e}
|
|
43
|
-
id=${t}
|
|
44
|
-
label=${t}
|
|
45
|
-
value=${this.value[e] ?? ""}
|
|
46
|
-
mask="numpx"
|
|
47
|
-
.maskBlocks=${{
|
|
40
|
+
(t, e) => u`<cx-input data-index=${e} id=${t} label=${t} value=${this.value[e] ?? ""} mask="numpx" .maskBlocks=${{
|
|
48
41
|
num: {
|
|
49
42
|
mask: Number,
|
|
50
43
|
min: 0,
|
|
51
44
|
scale: 0,
|
|
52
45
|
thousandsSeparator: ""
|
|
53
46
|
}
|
|
54
|
-
}}
|
|
55
|
-
|
|
56
|
-
>
|
|
57
|
-
</cx-input>`
|
|
58
|
-
)}
|
|
59
|
-
</cx-input-group>`;
|
|
47
|
+
}} .form=${this.closest("form")}></cx-input>`
|
|
48
|
+
)}</cx-input-group>`;
|
|
60
49
|
}
|
|
61
50
|
};
|
|
62
51
|
s.styles = [f, C];
|