@revolist/ui 4.0.5-rc → 4.0.5
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/MIGRATION.md +36 -0
- package/OWNERSHIP.md +36 -36
- package/README.md +65 -408
- package/_button.scss +6 -2
- package/_chunks/{calendar-DsXIhybL.js → calendar-BQYQLu8Q.js} +5 -5
- package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
- package/_chunks/{chart-frame-CuZABXVI.js → chart-frame-GprenwEg.js} +17 -13
- package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
- package/_chunks/{choice-chips-BhP8MZjs.js → choice-chips-C5OxD0GV.js} +3 -3
- package/_chunks/{color-palette-DMJUChWC.js → color-palette-7siNch__.js} +3 -3
- package/_chunks/{color-picker-B4TQvxxB.js → color-picker-Cfc9eqZb.js} +4 -4
- package/_chunks/{component-qKctqdzk.js → component-C3k_8uIq.js} +44 -45
- package/_chunks/{component-metadata-BMOOmqx5.js → component-metadata-DlVkpW3h.js} +1 -9
- package/_chunks/{configurator-actions-C19O1rda.js → configurator-actions-vRnI54mO.js} +3 -3
- package/_chunks/{control-BkWukVt9.js → control-BRfF5DWQ.js} +32 -7
- package/_chunks/{controller-hRBm_Lfz.js → controller-BbiQuRt-.js} +5 -5
- package/_chunks/{controls-BLQnWEd7.js → controls-B3EgM_DS.js} +160 -132
- package/_chunks/{date-control-Cgw5PwlZ.js → date-control-87dcA5br.js} +5 -5
- package/_chunks/{date-time-B8rK5gpC.js → date-time-CfiFYodx.js} +316 -293
- package/_chunks/{delete-button-CW9vjLnk.js → delete-button-jneO24wa.js} +1 -1
- package/_chunks/dialog.parts-NqEEVc9P.js +131 -0
- package/_chunks/{duration-DwFXonEV.js → duration-BGZ_qJ99.js} +10 -7
- package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-Dyo-FMgD.js} +1 -1
- package/_chunks/{editor-popup-BaaxL89T.js → editor-popup-NNP9Fh9U.js} +12 -11
- package/_chunks/field-configurator-DPulsY3l.js +288 -0
- package/_chunks/{field-context-D57PnBbH.js → field-context-C4_WrO2z.js} +1 -1
- package/_chunks/{framework-mount--RTLIqE-.js → framework-mount-D4I8HpVp.js} +2 -2
- package/_chunks/{icon-toolbar-xbqa0hu9.js → icon-toolbar-BAAdEvr9.js} +41 -35
- package/_chunks/{icons-Ci5mADVc.js → icons-B4qN13Yj.js} +1 -1
- package/_chunks/{iso-B0YHBK7m.js → iso-CJQl2kmq.js} +1 -1
- package/_chunks/{model-mPO2tG2f.js → model-CFrBgRHm.js} +3 -3
- package/_chunks/mount-C8CnIW9k.js +267 -0
- package/_chunks/{native.view-ByyZ1CT5.js → native-CJm3eq3-.js} +1 -1
- package/_chunks/{native-control-DO0d1kgx.js → native-control-um1L1wgZ.js} +124 -111
- package/_chunks/{number-input-s9ddPwX6.js → number-input-CKiA4d1N.js} +4 -4
- package/_chunks/{picker-AY05b41W.js → picker-igNshTRC.js} +5 -5
- package/_chunks/{popup-UXGCiv3n.js → popup-DECYM9FI.js} +21 -10
- package/_chunks/{rating-choice-BEs_QFZC.js → rating-choice-CepVfGUq.js} +2 -2
- package/_chunks/{render-m5eMMwFR.js → render-bTk3curw.js} +2 -2
- package/_chunks/{reorder-list-A49l172e.js → reorder-list-B4w3aARt.js} +2 -2
- package/_chunks/{request-trail-DCOfa5zw.js → request-trail-B1zVRPEf.js} +151 -142
- package/_chunks/{rich-text-xfMWadGi.js → rich-text-Ci4d6dHn.js} +11 -11
- package/_chunks/selection-list-tooltips-m00U3L6z.js +42 -0
- package/_chunks/{title-tooltip-Cw6LOZhb.js → title-tooltip-ncldbUwS.js} +2 -2
- package/_chunks/{tooltip-D4xkio5G.js → tooltip-h-Z8yFBY.js} +2 -2
- package/_chunks/{tooltip-owner-DjdvqKzz.js → tooltip-owner-BYho-vJl.js} +1 -1
- package/_chunks/{tooltip-session-B6X6x8G_.js → tooltip-session-CBtRMBPr.js} +3 -3
- package/_chunks/{tooltip-text-BXsUEmBH.js → tooltip-text-BN5WdGHn.js} +2 -2
- package/_chunks/{top-layer-popup-CNSDdfJV.js → top-layer-popup-CKJ7VJOF.js} +3 -3
- package/_dialog.scss +57 -22
- package/_form.scss +71 -21
- package/_legend.scss +25 -7
- package/_variables.scss +34 -32
- package/_view-switcher.scss +6 -0
- package/activity-message.d.ts +1 -1
- package/activity-message.js +1 -1
- package/ai/_chat.scss +7 -0
- package/ai/_style.scss +27 -20
- package/ai/components.d.ts +3 -1
- package/ai/index.js +2 -2
- package/ai/mount.d.ts +15 -7
- package/ai/request-trail.d.ts +9 -3
- package/ai/results/_style.scss +3 -0
- package/ai/results/index.d.ts +1 -1
- package/ai/translations.d.ts +1 -1
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -7
- package/assignee/assignee.scss +28 -6
- package/assignee/index.js +6 -6
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +25 -2
- package/avatar/index.js +2 -2
- package/badge.d.ts +1 -1
- package/badge.js +1 -1
- package/badge.view.d.ts +1 -1
- package/brush-range/_brush-range.scss +55 -49
- package/brush-range/component.d.ts +1 -3
- package/brush-range/component.js +10 -11
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.js +2 -2
- package/buttons/remove-button.style.scss +1 -1
- package/buttons/svg-button.js +3 -3
- package/calendar/_calendar.scss +19 -23
- package/calendar/calendar.js +1 -1
- package/calendar/day.js +2 -2
- package/calendar/header.js +2 -3
- package/calendar/index.js +3 -3
- package/calendar/model.js +1 -1
- package/calendar/month-grid.js +2 -2
- package/calendar/translations.js +1 -1
- package/calendar/year-grid.js +2 -2
- package/cell-input.js +1 -1
- package/cell-input.scss +3 -7
- package/cell-visuals/badge.style.scss +6 -3
- package/cell-visuals/bar-chart.style.scss +2 -1
- package/cell-visuals/column-type.style.css +12 -0
- package/cell-visuals/index.js +1 -1
- package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
- package/cell-visuals/progress-line.style.scss +1 -4
- package/cell-visuals/sparkline.style.scss +2 -1
- package/cell-visuals/timeline.style.css +4 -2
- package/checkbox/checkbox.scss +6 -24
- package/checkbox/index.js +1 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/built-in-palettes.js +1 -1
- package/color-palette/chart-palettes.js +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-palette.style.scss +88 -25
- package/color-palette/color-picker.constants.js +1 -1
- package/color-palette/color-picker.js +2 -2
- package/color-palette/color-picker.style.scss +23 -10
- package/color-palette/common-palettes.d.ts +1 -1
- package/color-palette/common-palettes.js +2 -2
- package/color-palette/gantt-palettes.js +1 -1
- package/color-palette/native.d.ts +15 -2
- package/color-palette/palette.js +1 -1
- package/color-palette/pivot-palettes.js +1 -1
- package/color-palette/platform-palettes.js +1 -1
- package/color-palette/pro-palettes.js +1 -1
- package/color-palette/scheduler-palettes.js +1 -1
- package/component-catalog.d.ts +3 -6
- package/configurator-actions.d.ts +6 -6
- package/configurator-actions.js +1 -1
- package/configurator-aggregation-list.d.ts +1 -1
- package/configurator-aggregation-list.js +19 -17
- package/configurator-drop-zone.d.ts +3 -2
- package/configurator-drop-zone.js +34 -32
- package/configurator-focus.js +1 -1
- package/configurator-sections.d.ts +3 -3
- package/configurator-sections.js +1 -1
- package/control-attributes.js +1 -1
- package/control-presentation.d.ts +8 -2
- package/control-presentation.js +2 -2
- package/controls.d.ts +11 -0
- package/controls.js +4 -4
- package/core/anchored-popover.js +1 -1
- package/core/control-id.js +1 -1
- package/core/editor-popup-position.d.ts +6 -2
- package/core/editor-popup.d.ts +4 -0
- package/core/editor-popup.js +1 -1
- package/core/motion.js +1 -1
- package/{_chunks/popover-controller-D-AvKQ7B.js → core/popover-controller.js} +8 -8
- package/core/selection-list-tooltips.d.ts +2 -0
- package/core/tooltip.d.ts +1 -1
- package/core/top-layer-popup.d.ts +1 -1
- package/core/top-layer-popup.js +1 -1
- package/date-time/attach.d.ts +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +4 -2
- package/date-time/index.js +1 -1
- package/date-time/style.scss +206 -46
- package/date-time/time-selection.d.ts +1 -1
- package/date-time/types.d.ts +5 -1
- package/dialog/dialog-action-footer.d.ts +17 -2
- package/dialog/dialog.dom.d.ts +15 -2
- package/dialog/dialog.dom.js +3 -3
- package/dialog/dialog.drag.js +1 -1
- package/dialog/dialog.parts.d.ts +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.js +1 -1
- package/distribution-chart/_distribution-chart.scss +115 -23
- package/distribution-chart/area-chart.js +2 -2
- package/distribution-chart/bar-chart.js +2 -2
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/index.js +1 -1
- package/distribution-chart/line-chart.js +2 -2
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/dropdown.service.js +1 -1
- package/dropdown/dropdown.types.d.ts +1 -1
- package/dropdown/editor-dropdown.style.scss +19 -9
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.d.ts +5 -0
- package/dropdown/lookup-field.js +3 -3
- package/dropdown/popup.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +2 -2
- package/editor-layout/index.d.ts +4 -4
- package/editor-layout/index.js +40 -35
- package/editor-layout/style.scss +82 -18
- package/favicon.svg +9 -0
- package/field-configurator.d.ts +22 -3
- package/field-configurator.js +1 -1
- package/field-reorder.hook.js +1 -1
- package/field-reorder.js +1 -1
- package/filter/filters/slider/_single-slider.scss +57 -38
- package/filter/filters/slider/_slider.scss +41 -16
- package/filter/filters/slider/component.js +1 -1
- package/filter/filters/slider/control.js +1 -1
- package/filter/filters/slider/inputs.js +1 -1
- package/filter/filters/slider/logic.js +1 -1
- package/filter/filters/slider/preact.js +1 -1
- package/filter/filters/slider/runtime.js +3 -3
- package/filter/filters/slider/single.js +2 -2
- package/filter-badge.js +2 -2
- package/filter-controls.d.ts +0 -1
- package/filter-controls.js +6 -7
- package/form-controls/index.d.ts +10 -2
- package/form-controls/index.js +3 -3
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +2 -2
- package/formatting/index.d.ts +1 -1
- package/formatting/index.js +7 -7
- package/formatting/styles.scss +13 -11
- package/framework.js +201 -205
- package/history-controls.js +1 -1
- package/html-controls.js +1 -1
- package/icon-toolbar.d.ts +6 -2
- package/icon-toolbar.js +1 -1
- package/icons/icon.d.ts +1 -1
- package/icons/icon.js +1 -1
- package/legend.d.ts +1 -1
- package/legend.js +1 -1
- package/masked-input/index.js +4 -4
- package/native-control.js +1 -1
- package/native-controls.d.ts +54 -2
- package/native-styles.css +1 -1
- package/native-styles.scss +6 -2
- package/native.d.ts +3 -3
- package/native.js +35 -35
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +49 -1
- package/pagination.js +12 -12
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.d.ts +2 -2
- package/pdf-viewer/index.js +3 -3
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/style.scss +203 -42
- package/preact-mount.js +1 -1
- package/preact.d.ts +6 -10
- package/preact.js +108 -70
- package/progress/_bar.scss +9 -3
- package/progress/_circular.scss +2 -1
- package/progress/bar.js +1 -1
- package/progress/circular.js +1 -1
- package/progress/range.js +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +4 -2
- package/react-control.d.ts +2 -0
- package/react-control.js +3 -3
- package/react.d.ts +2 -8
- package/react.js +55 -56
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/reorder-list.scss +59 -17
- package/resource-picker/resource-picker-avatar.js +1 -1
- package/resource-picker/resource-picker-option.js +1 -1
- package/resource-picker/resource-picker-popup.js +2 -2
- package/resource-picker/resource-picker.js +74 -72
- package/resource-picker/resource-picker.scss +62 -34
- package/resource-picker/resource-picker.utils.js +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/style.scss +203 -49
- package/rich-text/toolbar.d.ts +1 -1
- package/robots.txt +4 -0
- package/search-input/index.js +2 -2
- package/search-input/native.d.ts +21 -2
- package/segmented-switch/index.js +1 -1
- package/select.js +1 -1
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/status-feedback/badge.js +2 -2
- package/status-feedback/exit-snapshot.js +2 -2
- package/status-feedback/header.js +2 -2
- package/status-feedback/icons.js +1 -1
- package/status-feedback/index.js +1 -1
- package/status-feedback/item.js +2 -2
- package/status-feedback/motion.js +1 -1
- package/status-feedback/placement.js +1 -1
- package/status-feedback/popover.js +2 -2
- package/status-feedback/render.js +1 -1
- package/status-feedback/status-feedback.scss +124 -35
- package/styles/_activity-message.scss +24 -7
- package/styles/_alert.scss +78 -17
- package/styles/_cell-editor-frame.scss +11 -0
- package/styles/_compositions.scss +399 -79
- package/styles/_control.scss +30 -8
- package/styles/_disclosure.scss +15 -5
- package/styles/_editor-counter.scss +16 -6
- package/styles/_editor-slider.scss +8 -4
- package/styles/_field-configurator.scss +194 -42
- package/styles/_fields-grid.scss +18 -4
- package/styles/_filter-controls.scss +10 -2
- package/styles/_icon-action.scss +48 -15
- package/styles/_loading.scss +12 -3
- package/styles/_motion.scss +32 -9
- package/styles/_palette.scss +0 -24
- package/styles/_primitives.scss +348 -96
- package/styles/_theme.scss +130 -86
- package/styles/_thresholds.scss +28 -25
- package/styles/_time-grid.scss +8 -3
- package/styles/_tokens.scss +6 -1
- package/styles/color-roles.js +1 -1
- package/styles/configurator-actions.scss +126 -26
- package/styles/pagination.css +213 -0
- package/styles/{legacy-rating.css → rating.css} +8 -3
- package/styles.css +1 -1
- package/styles.scss +3 -5
- package/surfaces.d.ts +37 -4
- package/surfaces.js +8 -8
- package/svelte/UiComponent.svelte +44 -11
- package/svelte-control.js +1 -1
- package/svelte.d.ts +1 -1
- package/svelte.js +5 -5
- package/switch/index.js +2 -2
- package/time-grid.d.ts +0 -1
- package/time-grid.js +6 -6
- package/timeline-track/_style.scss +96 -24
- package/timeline-track/index.js +3 -3
- package/timeline-track/model.js +1 -1
- package/ui.css +1 -1
- package/view-switcher.d.ts +23 -0
- package/vue-badge.js +1 -1
- package/vue-control.js +1 -1
- package/vue-segmented-switch.js +1 -1
- package/vue.d.ts +5 -23
- package/vue.js +84 -91
- package/_chunks/badge.view-D30pMUfi.js +0 -14
- package/_chunks/chevron-right-sxHQMSkq.js +0 -4
- package/_chunks/dialog.parts-BSbvnEwX.js +0 -134
- package/_chunks/field-configurator-1eQP0tKy.js +0 -223
- package/_chunks/mount-D1i5DLRn.js +0 -266
- package/_shared/data-query/binding.d.ts +0 -30
- package/_shared/data-query/blocks.d.ts +0 -30
- package/_shared/data-query/commands.d.ts +0 -47
- package/_shared/data-query/contracts.d.ts +0 -106
- package/_shared/data-query/cursor-reader.d.ts +0 -25
- package/_shared/data-query/direct-binding.d.ts +0 -3
- package/_shared/data-query/index.d.ts +0 -23
- package/_shared/data-query/infinite-binding.d.ts +0 -18
- package/_shared/data-query/keys.d.ts +0 -9
- package/_shared/data-query/limiter.d.ts +0 -12
- package/_shared/data-query/load-options.d.ts +0 -25
- package/_shared/data-query/materialize.d.ts +0 -2
- package/_shared/data-query/policy.d.ts +0 -14
- package/_shared/data-query/provider-queries.d.ts +0 -22
- package/_shared/data-query/reader.d.ts +0 -23
- package/_shared/data-query/remote-load.d.ts +0 -7
- package/_shared/data-query/source.d.ts +0 -40
- package/avatar/index.view.d.ts +0 -25
- package/color-palette/native.view.d.ts +0 -15
- package/control-presentation.view.d.ts +0 -8
- package/dialog/dialog-action-footer.view.d.ts +0 -20
- package/dialog/dialog.dom.view.d.ts +0 -15
- package/form-controls/index.view.d.ts +0 -10
- package/formatting/control-tooltip.d.ts +0 -2
- package/native-controls.view.d.ts +0 -54
- package/search-input/native.view.d.ts +0 -21
- package/styles/legacy-pagination.css +0 -129
- package/surfaces.view.d.ts +0 -33
|
@@ -113,15 +113,21 @@
|
|
|
113
113
|
gap: 0;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
revo-grid
|
|
116
|
+
revo-grid
|
|
117
|
+
.rv-context-menu
|
|
118
|
+
.rv-color-palette-menu__swatch-item[aria-checked='true'] {
|
|
117
119
|
min-height: 32px;
|
|
118
120
|
margin: 0;
|
|
119
121
|
padding: 2px;
|
|
120
122
|
background: transparent;
|
|
121
123
|
}
|
|
122
124
|
|
|
123
|
-
revo-grid
|
|
124
|
-
|
|
125
|
+
revo-grid
|
|
126
|
+
.rv-context-menu
|
|
127
|
+
.rv-color-palette-menu__swatch-item[aria-checked='true']:hover,
|
|
128
|
+
revo-grid
|
|
129
|
+
.rv-context-menu
|
|
130
|
+
.rv-color-palette-menu__swatch-item[aria-checked='true']:focus-visible {
|
|
125
131
|
background: var(--rv-context-menu-hover-bg-color, #eef1f5);
|
|
126
132
|
}
|
|
127
133
|
|
|
@@ -209,9 +215,13 @@ revo-grid .rv-context-menu .rv-color-palette-menu__swatch-item[aria-checked='tru
|
|
|
209
215
|
grid-template-columns: repeat(5, 28px);
|
|
210
216
|
gap: 12px 18px;
|
|
211
217
|
}
|
|
212
|
-
.rv-color-palette__swatches {
|
|
218
|
+
.rv-color-palette__swatches {
|
|
219
|
+
display: contents;
|
|
220
|
+
}
|
|
213
221
|
.rv-color-palette__swatch,
|
|
214
|
-
.rv-color-palette-menu__swatch {
|
|
222
|
+
.rv-color-palette-menu__swatch {
|
|
223
|
+
border-radius: 8px;
|
|
224
|
+
}
|
|
215
225
|
.rv-color-palette__swatch[aria-checked='true'] {
|
|
216
226
|
border-color: var(--rv-color-palette-surface);
|
|
217
227
|
outline: 2px solid var(--rv-color-palette-accent);
|
|
@@ -222,46 +232,99 @@ revo-grid .rv-context-menu .rv-color-palette-menu__swatch-item[aria-checked='tru
|
|
|
222
232
|
}
|
|
223
233
|
.rv-color-palette__default {
|
|
224
234
|
position: relative;
|
|
225
|
-
width: 28px;
|
|
226
|
-
|
|
235
|
+
width: 28px;
|
|
236
|
+
height: 28px;
|
|
237
|
+
min-height: 28px;
|
|
238
|
+
padding: 0;
|
|
239
|
+
border-radius: 8px;
|
|
227
240
|
background: var(--rv-color-palette-surface);
|
|
228
241
|
&::before {
|
|
229
|
-
content: '';
|
|
230
|
-
|
|
242
|
+
content: '';
|
|
243
|
+
position: absolute;
|
|
244
|
+
inset: 3px;
|
|
245
|
+
background: linear-gradient(
|
|
246
|
+
45deg,
|
|
247
|
+
transparent calc(50% - 1px),
|
|
248
|
+
var(--rv-color-palette-border) 50%,
|
|
249
|
+
transparent calc(50% + 1px)
|
|
250
|
+
);
|
|
231
251
|
}
|
|
232
|
-
&[aria-checked='true'] {
|
|
252
|
+
&[aria-checked='true'] {
|
|
253
|
+
outline: 2px solid var(--rv-color-palette-accent);
|
|
254
|
+
outline-offset: 2px;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
.rv-color-palette__default-check {
|
|
258
|
+
display: none;
|
|
233
259
|
}
|
|
234
|
-
.rv-color-palette__default-check { display: none; }
|
|
235
260
|
.rv-color-palette__default-label {
|
|
236
|
-
position: absolute;
|
|
237
|
-
|
|
261
|
+
position: absolute;
|
|
262
|
+
width: 1px;
|
|
263
|
+
height: 1px;
|
|
264
|
+
padding: 0;
|
|
265
|
+
margin: -1px;
|
|
266
|
+
overflow: hidden;
|
|
267
|
+
clip-path: inset(50%);
|
|
268
|
+
white-space: nowrap;
|
|
238
269
|
}
|
|
239
270
|
@media (max-width: 520px) {
|
|
240
|
-
.rv-color-palette {
|
|
241
|
-
|
|
271
|
+
.rv-color-palette {
|
|
272
|
+
grid-template-columns: repeat(5, 32px);
|
|
273
|
+
}
|
|
274
|
+
.rv-color-palette__default {
|
|
275
|
+
width: 32px;
|
|
276
|
+
height: 32px;
|
|
277
|
+
min-height: 32px;
|
|
278
|
+
}
|
|
242
279
|
}
|
|
243
280
|
|
|
244
281
|
.rv-color-palette-menu[aria-expanded='true'] > .rv-context-menu__submenu {
|
|
245
|
-
grid-template-columns: repeat(5, 32px);
|
|
282
|
+
grid-template-columns: repeat(5, 32px);
|
|
283
|
+
gap: 10px 14px;
|
|
284
|
+
width: 242px;
|
|
246
285
|
}
|
|
247
286
|
.rv-color-palette-menu__default-item {
|
|
248
|
-
grid-column: auto;
|
|
249
|
-
|
|
287
|
+
grid-column: auto;
|
|
288
|
+
width: 32px;
|
|
289
|
+
min-width: 32px;
|
|
290
|
+
min-height: 32px;
|
|
291
|
+
margin: 0;
|
|
292
|
+
padding: 2px !important;
|
|
293
|
+
background: transparent;
|
|
250
294
|
}
|
|
251
295
|
.rv-color-palette-menu__default-content {
|
|
252
|
-
position: relative;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
296
|
+
position: relative;
|
|
297
|
+
width: 28px;
|
|
298
|
+
height: 28px;
|
|
299
|
+
border: 1px solid var(--rv-ui-border);
|
|
300
|
+
border-radius: 8px;
|
|
301
|
+
box-sizing: border-box;
|
|
302
|
+
&::before {
|
|
303
|
+
content: '';
|
|
304
|
+
position: absolute;
|
|
305
|
+
inset: 3px;
|
|
306
|
+
background: linear-gradient(
|
|
307
|
+
45deg,
|
|
308
|
+
transparent calc(50% - 1px),
|
|
309
|
+
var(--rv-ui-border) 50%,
|
|
310
|
+
transparent calc(50% + 1px)
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
> span {
|
|
314
|
+
display: none;
|
|
315
|
+
}
|
|
256
316
|
}
|
|
257
|
-
.rv-color-palette-menu__default-item[aria-checked='true']
|
|
258
|
-
|
|
317
|
+
.rv-color-palette-menu__default-item[aria-checked='true']
|
|
318
|
+
.rv-color-palette-menu__default-content {
|
|
319
|
+
outline: 2px solid var(--rv-ui-accent);
|
|
320
|
+
outline-offset: 2px;
|
|
259
321
|
}
|
|
260
322
|
|
|
261
323
|
// Swatch fills and checked outlines remain exact; soften only hover borders/disabled state.
|
|
262
324
|
.rv-color-palette__swatch,
|
|
263
325
|
.rv-color-palette__default {
|
|
264
326
|
transition:
|
|
265
|
-
border-color var(--rv-ui-motion-fast, 120ms)
|
|
327
|
+
border-color var(--rv-ui-motion-fast, 120ms)
|
|
328
|
+
var(--rv-ui-motion-ease, ease-out),
|
|
266
329
|
opacity var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out);
|
|
267
330
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { commonColors as e } from "./common-palettes.js";
|
|
2
|
-
//#region
|
|
2
|
+
//#region package/color-palette/color-picker.constants.ts
|
|
3
3
|
var t = e.blue600, n = 7;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { t as COLOR_PICKER_DEFAULT_COLOR, n as COLOR_PICKER_HEX_LENGTH };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e } from "../_chunks/color-palette-
|
|
2
|
-
import { t } from "../_chunks/color-picker-
|
|
1
|
+
import { n as e } from "../_chunks/color-palette-7siNch__.js";
|
|
2
|
+
import { t } from "../_chunks/color-picker-Cfc9eqZb.js";
|
|
3
3
|
export { t as ColorPicker, e as normalizeHexColor };
|
|
@@ -58,8 +58,11 @@
|
|
|
58
58
|
height: 14px;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.rv-format-color-picker__trigger-swatch--empty
|
|
62
|
-
.rv-format-color-
|
|
61
|
+
.rv-format-color-picker__trigger-swatch--empty
|
|
62
|
+
.rv-format-color-picker__empty-icon,
|
|
63
|
+
.rv-format-color-picker__trigger-swatch--empty
|
|
64
|
+
.rv-format-color-picker__empty-icon
|
|
65
|
+
svg {
|
|
63
66
|
display: inline-flex;
|
|
64
67
|
}
|
|
65
68
|
|
|
@@ -86,14 +89,18 @@
|
|
|
86
89
|
max-height: calc(100dvh - 24px);
|
|
87
90
|
margin: 6px 0 0;
|
|
88
91
|
padding: 12px;
|
|
89
|
-
border: 1px solid
|
|
92
|
+
border: 1px solid
|
|
93
|
+
var(--rv-format-divider, var(--rv-dialog-border, var(--rv-ui-border)));
|
|
90
94
|
border-radius: 10px;
|
|
91
95
|
background: var(--rv-dialog-bg, var(--rv-ui-surface-elevated));
|
|
92
96
|
color: var(--rv-dialog-color, var(--rv-ui-text));
|
|
93
97
|
box-shadow: 0 16px 36px var(--rv-ui-shadow);
|
|
94
98
|
overflow: auto;
|
|
95
99
|
scrollbar-gutter: stable;
|
|
96
|
-
position-try-fallbacks:
|
|
100
|
+
position-try-fallbacks:
|
|
101
|
+
flip-block,
|
|
102
|
+
flip-inline,
|
|
103
|
+
flip-block flip-inline;
|
|
97
104
|
}
|
|
98
105
|
|
|
99
106
|
.rv-format-color-picker__custom-action {
|
|
@@ -106,7 +113,8 @@
|
|
|
106
113
|
margin: 12px -12px -12px;
|
|
107
114
|
padding: 9px 12px;
|
|
108
115
|
border: 0;
|
|
109
|
-
border-top: 1px solid
|
|
116
|
+
border-top: 1px solid
|
|
117
|
+
var(--rv-format-divider, var(--rv-dialog-border, var(--rv-ui-border)));
|
|
110
118
|
border-radius: 0 0 10px 10px;
|
|
111
119
|
background: transparent;
|
|
112
120
|
color: var(--rv-ui-accent-text, var(--rv-ui-accent));
|
|
@@ -166,26 +174,31 @@
|
|
|
166
174
|
.rv-format-color-picker__custom-action:disabled,
|
|
167
175
|
.rv-format-color-picker__native:disabled {
|
|
168
176
|
cursor: default;
|
|
169
|
-
opacity: .55;
|
|
177
|
+
opacity: 0.55;
|
|
170
178
|
}
|
|
171
179
|
|
|
172
180
|
.rv-format-color-picker__custom-controls[data-selection-only] {
|
|
173
181
|
grid-template-columns: minmax(0, 1fr);
|
|
174
182
|
}
|
|
175
183
|
|
|
176
|
-
.rv-format-color-picker__custom-controls[data-selection-only]
|
|
184
|
+
.rv-format-color-picker__custom-controls[data-selection-only]
|
|
185
|
+
.rv-format-color-picker__native {
|
|
177
186
|
width: 100%;
|
|
178
187
|
}
|
|
179
188
|
|
|
180
189
|
@media (max-width: 520px) {
|
|
181
|
-
.rv-format-color-picker__popover {
|
|
190
|
+
.rv-format-color-picker__popover {
|
|
191
|
+
min-width: 258px;
|
|
192
|
+
}
|
|
182
193
|
}
|
|
183
194
|
|
|
184
195
|
.rv-format-color-picker__trigger,
|
|
185
196
|
.rv-format-color-picker__custom-action {
|
|
186
197
|
transition:
|
|
187
|
-
background-color var(--rv-ui-motion-fast, 120ms)
|
|
188
|
-
|
|
198
|
+
background-color var(--rv-ui-motion-fast, 120ms)
|
|
199
|
+
var(--rv-ui-motion-ease, ease-out),
|
|
200
|
+
border-color var(--rv-ui-motion-fast, 120ms)
|
|
201
|
+
var(--rv-ui-motion-ease, ease-out),
|
|
189
202
|
opacity var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out);
|
|
190
203
|
}
|
|
191
204
|
|
|
@@ -737,5 +737,5 @@ export declare const commonPalettes: readonly [{
|
|
|
737
737
|
readonly colors: {
|
|
738
738
|
[k: string]: "linear-gradient(135deg, #7dd3fc, #2563eb)" | "linear-gradient(135deg, #facc15, #b45309)" | "linear-gradient(135deg, #f9a8d4, #be185d)" | "linear-gradient(135deg, #a5b4fc, #4f46e5)" | "linear-gradient(135deg, #86efac, #15803d)" | "linear-gradient(135deg, #fda4af, #be123c)" | "linear-gradient(135deg, #c4b5fd, #7c3aed)" | "linear-gradient(135deg, #fdba74, #c2410c)";
|
|
739
739
|
};
|
|
740
|
-
readonly consumers: readonly ["packages/ui/src/avatar/index.
|
|
740
|
+
readonly consumers: readonly ["packages/ui/package/src/avatar/index.tsx", "packages/ui/package/src/avatar/avatar.style.scss"];
|
|
741
741
|
}];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region package/color-palette/common-palettes.ts
|
|
2
2
|
var e = {
|
|
3
3
|
black: "#000000",
|
|
4
4
|
hex0003: "#0003",
|
|
@@ -380,7 +380,7 @@ var e = {
|
|
|
380
380
|
title: "Avatar backgrounds",
|
|
381
381
|
usage: "Indexed avatar gradients shared by runtime background helpers and avatar styles.",
|
|
382
382
|
colors: Object.fromEntries(t.map((e, t) => [String(t), e])),
|
|
383
|
-
consumers: ["packages/ui/src/avatar/index.
|
|
383
|
+
consumers: ["packages/ui/package/src/avatar/index.tsx", "packages/ui/package/src/avatar/avatar.style.scss"]
|
|
384
384
|
}];
|
|
385
385
|
//#endregion
|
|
386
386
|
export { t as AVATAR_CELL_BACKGROUNDS, e as commonColors, n as commonPalettes };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { commonColors as e } from "./common-palettes.js";
|
|
2
|
-
//#region
|
|
2
|
+
//#region package/color-palette/gantt-palettes.ts
|
|
3
3
|
var t = { "rv-panel-accent": e.hex3f8f7d }, n = {
|
|
4
4
|
"neutral-text": e.hex475569,
|
|
5
5
|
"complete-text": e.hex047857,
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export interface NativeColorPickerProps {
|
|
2
|
+
label: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
optional?: boolean;
|
|
6
|
+
defaultLabel: string;
|
|
7
|
+
customLabel: string;
|
|
8
|
+
invalidColor?: string;
|
|
9
|
+
colorLabels: Readonly<Record<string, string>>;
|
|
10
|
+
onChange(value: string | undefined): void;
|
|
11
|
+
}
|
|
12
|
+
/** Native mount API; palette markup and interaction belong to ColorPicker. */
|
|
13
|
+
export declare function mountColorPicker(host: HTMLElement, props: NativeColorPickerProps): {
|
|
14
|
+
destroy(): void;
|
|
15
|
+
};
|
package/color-palette/palette.js
CHANGED
package/component-catalog.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LookupField } from './dropdown/lookup-field';
|
|
1
2
|
import { NumberDraft as PreactNumberDraft } from './number-input/index';
|
|
2
3
|
import { MaskedDraft as PreactMaskedDraft } from './masked-input/index';
|
|
3
4
|
import { DurationField as PreactDurationField, DurationDraft as PreactDurationDraft } from './duration/index';
|
|
@@ -27,12 +28,6 @@ export declare const uiComponents: {
|
|
|
27
28
|
readonly AiChangePreview: typeof ui.AiChangePreview;
|
|
28
29
|
readonly AiAssistant: typeof ui.AiAssistant;
|
|
29
30
|
readonly AiRequestTrail: typeof ui.AiRequestTrail;
|
|
30
|
-
readonly Icon: typeof ui.SvgIcon;
|
|
31
|
-
readonly RemovableChip: typeof ui.FilterChip;
|
|
32
|
-
readonly Slider: typeof ui.SingleValueSlider;
|
|
33
|
-
readonly RangeSlider: typeof ui.PreactRangeSlider;
|
|
34
|
-
readonly ResourcePicker: typeof ui.SharedResourcePicker;
|
|
35
|
-
readonly FeedbackPanel: typeof ui.StatusFeedbackPanel;
|
|
36
31
|
readonly Input: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<Omit<import("./_vendor/preact/src/index").JSX.InputHTMLAttributes<HTMLInputElement>, "ref" | "className" | "class"> & {
|
|
37
32
|
class?: import("./_vendor/preact/src/index").JSX.Signalish<string | undefined> | Record<string, boolean | undefined>;
|
|
38
33
|
className?: import("./_vendor/preact/src/index").JSX.Signalish<string | undefined>;
|
|
@@ -106,6 +101,8 @@ export declare const uiComponents: {
|
|
|
106
101
|
readonly FieldError: typeof ui.FieldError;
|
|
107
102
|
readonly FormSection: typeof ui.FormSection;
|
|
108
103
|
readonly Disclosure: typeof ui.Disclosure;
|
|
104
|
+
readonly CollapsibleSection: typeof ui.CollapsibleSection;
|
|
105
|
+
readonly LookupField: typeof LookupField;
|
|
109
106
|
readonly Panel: typeof ui.Panel;
|
|
110
107
|
readonly Toolbar: typeof ui.Toolbar;
|
|
111
108
|
readonly ToolbarGroup: typeof ui.ToolbarGroup;
|
|
@@ -28,7 +28,7 @@ export declare function ConfiguratorActionButton({ text, icon, explanation, chec
|
|
|
28
28
|
export declare function ConfiguratorActionIcon({ svg }: {
|
|
29
29
|
svg: string;
|
|
30
30
|
}): h.JSX.Element;
|
|
31
|
-
export declare function ConfiguratorZoneActions({ add, clear, children }: {
|
|
31
|
+
export declare function ConfiguratorZoneActions({ add, clear, children, }: {
|
|
32
32
|
add: ComponentProps<typeof ConfiguratorActionTrigger>;
|
|
33
33
|
clear?: ComponentProps<typeof ConfiguratorRemoveButton>;
|
|
34
34
|
children?: ComponentChildren;
|
|
@@ -36,19 +36,19 @@ export declare function ConfiguratorZoneActions({ add, clear, children }: {
|
|
|
36
36
|
export declare function ConfiguratorFilterStatus({ label }: {
|
|
37
37
|
label: string;
|
|
38
38
|
}): h.JSX.Element;
|
|
39
|
-
export declare function ConfiguratorFieldCaption({ children, annotation }: {
|
|
39
|
+
export declare function ConfiguratorFieldCaption({ children, annotation, }: {
|
|
40
40
|
children: ComponentChildren;
|
|
41
41
|
annotation?: string;
|
|
42
42
|
}): h.JSX.Element;
|
|
43
|
-
export declare function ConfiguratorHint({ children }: {
|
|
43
|
+
export declare function ConfiguratorHint({ children, }: {
|
|
44
44
|
children: ComponentChildren;
|
|
45
45
|
}): h.JSX.Element;
|
|
46
46
|
export declare function ConfiguratorFieldSearch(props: ComponentProps<typeof SearchInput>): h.JSX.Element;
|
|
47
|
-
export declare function ConfiguratorFieldPicker({ children, emptyText }: {
|
|
47
|
+
export declare function ConfiguratorFieldPicker({ children, emptyText, }: {
|
|
48
48
|
children?: ComponentChildren;
|
|
49
49
|
emptyText?: string;
|
|
50
50
|
}): h.JSX.Element;
|
|
51
|
-
export declare function ConfiguratorActionGroup({ section, children }: {
|
|
51
|
+
export declare function ConfiguratorActionGroup({ section, children, }: {
|
|
52
52
|
section: 'settings' | 'layout' | 'removal';
|
|
53
53
|
children: ComponentChildren;
|
|
54
54
|
}): h.JSX.Element | null;
|
|
@@ -61,7 +61,7 @@ export declare function ConfiguratorActionPanel({ title, accessibleLabel, header
|
|
|
61
61
|
children: ComponentChildren;
|
|
62
62
|
}): h.JSX.Element;
|
|
63
63
|
/** Field identity shared by grid and report authoring controls. */
|
|
64
|
-
export declare function ConfiguratorFieldTypeIcon({ field }: {
|
|
64
|
+
export declare function ConfiguratorFieldTypeIcon({ field, }: {
|
|
65
65
|
field?: import('./configurator-field-icon').ConfiguratorFieldMetadata;
|
|
66
66
|
}): h.JSX.Element;
|
|
67
67
|
export {};
|
package/configurator-actions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CONFIGURATOR_AREA_ICONS, n as ConfiguratorActionButton, r as ConfiguratorActionGroup, i as ConfiguratorActionIcon, a as ConfiguratorActionPanel, o as ConfiguratorActionTrigger, s as ConfiguratorFieldCaption, c as ConfiguratorFieldPicker, l as ConfiguratorFieldSearch, u as ConfiguratorFieldTypeIcon, d as ConfiguratorFilterStatus, f as ConfiguratorHint, p as ConfiguratorRemoveButton, m as ConfiguratorZoneActions, h as renderConfiguratorActionTrigger } from "./_chunks/configurator-actions-
|
|
1
|
+
export { t as CONFIGURATOR_AREA_ICONS, n as ConfiguratorActionButton, r as ConfiguratorActionGroup, i as ConfiguratorActionIcon, a as ConfiguratorActionPanel, o as ConfiguratorActionTrigger, s as ConfiguratorFieldCaption, c as ConfiguratorFieldPicker, l as ConfiguratorFieldSearch, u as ConfiguratorFieldTypeIcon, d as ConfiguratorFilterStatus, f as ConfiguratorHint, p as ConfiguratorRemoveButton, m as ConfiguratorZoneActions, h as renderConfiguratorActionTrigger } from "./_chunks/configurator-actions-vRnI54mO.js";
|
|
@@ -5,7 +5,7 @@ export interface AggregationListLabels {
|
|
|
5
5
|
measureCurrentUnavailable: (operation: string) => string;
|
|
6
6
|
}
|
|
7
7
|
/** Arrow keys explore choices; Enter/Space commit through the existing configuration owner. */
|
|
8
|
-
export declare function ConfiguratorAggregationList({ value, aggregators, i18n, disabled, onChange }: {
|
|
8
|
+
export declare function ConfiguratorAggregationList({ value, aggregators, i18n, disabled, onChange, }: {
|
|
9
9
|
value: string;
|
|
10
10
|
aggregators: string[];
|
|
11
11
|
i18n: AggregationListLabels;
|
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
import { i as e } from "./_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { t as n } from "./_chunks/native-control-
|
|
3
|
+
import { t as n } from "./_chunks/native-control-um1L1wgZ.js";
|
|
4
|
+
import { t as r } from "./_chunks/selection-list-tooltips-m00U3L6z.js";
|
|
4
5
|
import "./_chunks/check-BwI7iCAm.js";
|
|
5
|
-
import { t as
|
|
6
|
-
//#region
|
|
7
|
-
function
|
|
8
|
-
let
|
|
6
|
+
import { t as i } from "./_chunks/calculator-CDWOuAcp.js";
|
|
7
|
+
//#region package/configurator-aggregation-list.tsx
|
|
8
|
+
function a({ value: a, aggregators: o, i18n: s, disabled: c, onChange: l }) {
|
|
9
|
+
let u = r("[role=\"menuitemradio\"]"), d = o.includes(a) ? o : [a, ...o], [f, p] = e(), m = f && o.includes(f) ? f : o.includes(a) ? a : o[0];
|
|
9
10
|
return /* @__PURE__ */ t("section", {
|
|
10
11
|
className: "pivot-aggregation-menu",
|
|
11
12
|
children: [/* @__PURE__ */ t("div", {
|
|
12
13
|
className: "pivot-aggregation-heading",
|
|
13
|
-
children:
|
|
14
|
+
children: s.measureAggregation
|
|
14
15
|
}), /* @__PURE__ */ t("div", {
|
|
16
|
+
ref: u,
|
|
15
17
|
role: "menu",
|
|
16
|
-
"aria-label":
|
|
17
|
-
children:
|
|
18
|
+
"aria-label": s.measureAggregation,
|
|
19
|
+
children: d.map((e) => /* @__PURE__ */ t(n, {
|
|
18
20
|
type: "button",
|
|
19
21
|
role: "menuitemradio",
|
|
20
22
|
className: "rv-btn pivot-aggregation-option",
|
|
21
23
|
"data-value": e,
|
|
22
|
-
"aria-checked": e ===
|
|
23
|
-
disabled:
|
|
24
|
-
tabIndex: !
|
|
25
|
-
onFocus: () =>
|
|
24
|
+
"aria-checked": e === a,
|
|
25
|
+
disabled: c || !o.includes(e),
|
|
26
|
+
tabIndex: !c && e === m ? 0 : -1,
|
|
27
|
+
onFocus: () => p(e),
|
|
26
28
|
onKeyDown: (e) => {
|
|
27
29
|
if (![
|
|
28
30
|
"ArrowUp",
|
|
@@ -36,18 +38,18 @@ function i({ value: i, aggregators: a, i18n: o, disabled: s, onChange: c }) {
|
|
|
36
38
|
let t = [...e.currentTarget.parentElement.querySelectorAll("button:not(:disabled)")], n = t.indexOf(e.currentTarget);
|
|
37
39
|
t[e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : (n + (e.key === "ArrowUp" || e.key === "ArrowLeft" ? -1 : 1) + t.length) % t.length]?.focus();
|
|
38
40
|
},
|
|
39
|
-
onClick: (t) =>
|
|
41
|
+
onClick: (t) => l(e, t.currentTarget),
|
|
40
42
|
children: [
|
|
41
43
|
/* @__PURE__ */ t("span", {
|
|
42
44
|
className: "pivot-field-action-symbol",
|
|
43
45
|
"aria-hidden": "true",
|
|
44
|
-
dangerouslySetInnerHTML: { __html:
|
|
46
|
+
dangerouslySetInnerHTML: { __html: i }
|
|
45
47
|
}),
|
|
46
48
|
/* @__PURE__ */ t("span", {
|
|
47
49
|
className: "pivot-aggregation-name",
|
|
48
|
-
children:
|
|
50
|
+
children: o.includes(e) ? s.aggregationNames[e] ?? e : s.measureCurrentUnavailable(e)
|
|
49
51
|
}),
|
|
50
|
-
e ===
|
|
52
|
+
e === a && /* @__PURE__ */ t("span", {
|
|
51
53
|
className: "pivot-aggregation-check",
|
|
52
54
|
"aria-hidden": "true",
|
|
53
55
|
dangerouslySetInnerHTML: { __html: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z\"/></svg>" }
|
|
@@ -58,4 +60,4 @@ function i({ value: i, aggregators: a, i18n: o, disabled: s, onChange: c }) {
|
|
|
58
60
|
});
|
|
59
61
|
}
|
|
60
62
|
//#endregion
|
|
61
|
-
export {
|
|
63
|
+
export { a as ConfiguratorAggregationList };
|
|
@@ -4,6 +4,7 @@ export interface ConfiguratorDropZoneProps<Prop extends string | number, Field e
|
|
|
4
4
|
name?: string;
|
|
5
5
|
}, Area extends string> {
|
|
6
6
|
label?: string;
|
|
7
|
+
id?: string;
|
|
7
8
|
footer?: ComponentChildren;
|
|
8
9
|
removeLabel?: (index: number, prop: Prop) => string;
|
|
9
10
|
title: string | JSX.Element;
|
|
@@ -12,7 +13,7 @@ export interface ConfiguratorDropZoneProps<Prop extends string | number, Field e
|
|
|
12
13
|
allowFieldRemoving?: boolean;
|
|
13
14
|
panel: Area;
|
|
14
15
|
items: Prop[];
|
|
15
|
-
/** Optional stable identities for repeated measure instances; other zones
|
|
16
|
+
/** Optional stable identities for repeated measure instances; other zones use their field identities. */
|
|
16
17
|
itemKeys?: readonly (string | number)[];
|
|
17
18
|
dimensions: ReadonlyMap<Prop, Field>;
|
|
18
19
|
placeholder?: string;
|
|
@@ -35,4 +36,4 @@ export interface ConfiguratorDropZoneProps<Prop extends string | number, Field e
|
|
|
35
36
|
export declare function ConfiguratorDropZone<Prop extends string | number, Field extends {
|
|
36
37
|
prop: Prop;
|
|
37
38
|
name?: string;
|
|
38
|
-
}, Area extends string>({ title, label, footer, removeLabel, headerActions, renderActions, allowFieldRemoving, panel, items, itemKeys, dimensions, placeholder, i18n, renderItem, onRemove, onDrop, onDragOver, canDrop, onDragEnter, onItemDragStart, onItemDragEnd, allowFieldDragging, dragActive, renderIcon, }: ConfiguratorDropZoneProps<Prop, Field, Area>): h.JSX.Element;
|
|
39
|
+
}, Area extends string>({ title, label, id, footer, removeLabel, headerActions, renderActions, allowFieldRemoving, panel, items, itemKeys, dimensions, placeholder, i18n, renderItem, onRemove, onDrop, onDragOver, canDrop, onDragEnter, onItemDragStart, onItemDragEnd, allowFieldDragging, dragActive, renderIcon, }: ConfiguratorDropZoneProps<Prop, Field, Area>): h.JSX.Element;
|
|
@@ -1,63 +1,65 @@
|
|
|
1
1
|
import { i as e } from "./_chunks/preact.module-BBM36DnO.js";
|
|
2
2
|
import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { a as n, f as r, o as i, p as a, v as o } from "./_chunks/field-configurator-
|
|
3
|
+
import { a as n, f as r, o as i, p as a, v as o } from "./_chunks/field-configurator-DPulsY3l.js";
|
|
4
4
|
import { useFieldDropTarget as s } from "./field-reorder.hook.js";
|
|
5
|
-
//#region
|
|
6
|
-
function c({ title: c, label: l,
|
|
7
|
-
let
|
|
8
|
-
enabled:
|
|
9
|
-
active:
|
|
10
|
-
canDrop:
|
|
11
|
-
onDragOver:
|
|
12
|
-
onDrop: (e, t) =>
|
|
5
|
+
//#region package/configurator-drop-zone.tsx
|
|
6
|
+
function c({ title: c, label: l, id: u, footer: d, removeLabel: f, headerActions: p, renderActions: m, allowFieldRemoving: h = !0, panel: g, items: _, itemKeys: v, dimensions: y, placeholder: b, i18n: x, renderItem: S, onRemove: C, onDrop: w, onDragOver: T, canDrop: E = () => !0, onDragEnter: D, onItemDragStart: O, onItemDragEnd: k, allowFieldDragging: A = !0, dragActive: j, renderIcon: M }) {
|
|
7
|
+
let N = _.length === 0, P = s(_.length, {
|
|
8
|
+
enabled: A,
|
|
9
|
+
active: j,
|
|
10
|
+
canDrop: E,
|
|
11
|
+
onDragOver: T,
|
|
12
|
+
onDrop: (e, t) => w(g, e, t)
|
|
13
13
|
});
|
|
14
14
|
return /* @__PURE__ */ t(i, {
|
|
15
|
-
...
|
|
15
|
+
...P.list,
|
|
16
|
+
id: u,
|
|
17
|
+
tabIndex: u ? -1 : void 0,
|
|
16
18
|
className: "pivot-layout-zone",
|
|
17
19
|
"aria-label": l,
|
|
18
|
-
"data-pivot-area":
|
|
20
|
+
"data-pivot-area": g,
|
|
19
21
|
heading: c,
|
|
20
22
|
headingClassName: "zone-title",
|
|
21
|
-
actions:
|
|
23
|
+
actions: p,
|
|
22
24
|
children: [/* @__PURE__ */ t(r, {
|
|
23
|
-
empty:
|
|
24
|
-
placeholder:
|
|
25
|
-
className: `min-h-[3rem] overflow-auto grow panel-card ${
|
|
26
|
-
...
|
|
27
|
-
onDragEnter:
|
|
28
|
-
children:
|
|
29
|
-
let s =
|
|
25
|
+
empty: N,
|
|
26
|
+
placeholder: b ?? x.dragHere,
|
|
27
|
+
className: `min-h-[3rem] overflow-auto grow panel-card ${N ? "empty" : ""} ${P.isOver ? "drag-over" : ""}`,
|
|
28
|
+
...P.list,
|
|
29
|
+
onDragEnter: D,
|
|
30
|
+
children: _.map((r, i) => {
|
|
31
|
+
let s = y.get(r), l = P.position(i);
|
|
30
32
|
return /* @__PURE__ */ t(o, {
|
|
31
|
-
...
|
|
32
|
-
draggable:
|
|
33
|
+
...P.row(i),
|
|
34
|
+
draggable: A,
|
|
33
35
|
onDragStart: (e) => {
|
|
34
|
-
|
|
36
|
+
A ? (e.dataTransfer?.setData("text/plain", String(r)), e.dataTransfer && (e.dataTransfer.effectAllowed = "move"), P.start(i), O(i, r, e)) : e.preventDefault();
|
|
35
37
|
},
|
|
36
38
|
onDragEnd: () => {
|
|
37
|
-
|
|
39
|
+
P.clear(), k();
|
|
38
40
|
},
|
|
39
41
|
indicator: l && /* @__PURE__ */ t(n, {
|
|
40
42
|
position: l,
|
|
41
|
-
index:
|
|
43
|
+
index: P.boundary ?? void 0,
|
|
42
44
|
className: `pivot-zone-drop-divider ${l}`
|
|
43
45
|
}),
|
|
44
46
|
contentClassName: "pivot-dimension-cell",
|
|
45
|
-
icon:
|
|
47
|
+
icon: M?.(s),
|
|
46
48
|
label: /* @__PURE__ */ t("span", {
|
|
47
49
|
className: "pivot-zone-field-caption flex grow",
|
|
48
|
-
children:
|
|
50
|
+
children: S?.(i, s) ?? s?.name ?? r
|
|
49
51
|
}),
|
|
50
|
-
actions: /* @__PURE__ */ t(e, { children: [
|
|
52
|
+
actions: /* @__PURE__ */ t(e, { children: [m?.(i, r), h && /* @__PURE__ */ t(a, {
|
|
51
53
|
className: "pivot-remove-button",
|
|
52
|
-
onClick: () =>
|
|
54
|
+
onClick: () => C(i),
|
|
53
55
|
locale: {
|
|
54
|
-
title:
|
|
55
|
-
ariaLabel:
|
|
56
|
+
title: f?.(i, r) ?? x.remove,
|
|
57
|
+
ariaLabel: f?.(i, r) ?? x.remove
|
|
56
58
|
}
|
|
57
59
|
})] })
|
|
58
|
-
},
|
|
60
|
+
}, v?.[i] ?? `${c}-${i}`);
|
|
59
61
|
})
|
|
60
|
-
}),
|
|
62
|
+
}), d]
|
|
61
63
|
});
|
|
62
64
|
}
|
|
63
65
|
//#endregion
|
package/configurator-focus.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e, t } from "./_chunks/hooks.module-CG3gN83z.js";
|
|
2
|
-
//#region
|
|
2
|
+
//#region package/configurator-focus.ts
|
|
3
3
|
var n = () => {};
|
|
4
4
|
function r(e, t) {
|
|
5
5
|
if (!e.isConnected || !t?.isConnected || e.ownerDocument !== t.ownerDocument) return !1;
|