@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
package/pagination.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { controlClassName as e } from "./control-attributes.js";
|
|
2
2
|
import { renderControl as t } from "./control-presentation.js";
|
|
3
|
-
import { t as n } from "./_chunks/control-
|
|
4
|
-
//#region
|
|
3
|
+
import { t as n } from "./_chunks/control-BRfF5DWQ.js";
|
|
4
|
+
//#region package/pagination.ts
|
|
5
5
|
function r(e, t, n = 5) {
|
|
6
6
|
let r = Math.max(0, Math.floor(t));
|
|
7
7
|
if (!Number.isFinite(r) || !r) return [];
|
|
@@ -92,22 +92,22 @@ var a = class {
|
|
|
92
92
|
let n = Math.max(0, this.totalPages - 1), r = Math.min(Math.max(0, e), n);
|
|
93
93
|
this.currentPage = r, this.refresh?.(), t && this.onPageChange(this.currentPage);
|
|
94
94
|
}
|
|
95
|
-
createButton(e, t, n) {
|
|
96
|
-
let
|
|
95
|
+
createButton(e, t, n, r) {
|
|
96
|
+
let a = {
|
|
97
97
|
first: "«",
|
|
98
98
|
previous: "‹",
|
|
99
99
|
next: "›",
|
|
100
100
|
last: "»"
|
|
101
|
-
}
|
|
101
|
+
}[r] === e ? {
|
|
102
102
|
first: "First page",
|
|
103
103
|
previous: "Previous page",
|
|
104
104
|
next: "Next page",
|
|
105
105
|
last: "Last page"
|
|
106
|
-
}[
|
|
106
|
+
}[r] : e;
|
|
107
107
|
return i(this.h, {
|
|
108
108
|
text: e,
|
|
109
|
-
label:
|
|
110
|
-
kind:
|
|
109
|
+
label: a,
|
|
110
|
+
kind: r,
|
|
111
111
|
disabled: n,
|
|
112
112
|
onClick: () => t.call(this)
|
|
113
113
|
});
|
|
@@ -118,9 +118,9 @@ var a = class {
|
|
|
118
118
|
if (this.config.navigation !== !1) {
|
|
119
119
|
if (t.push(...this.config.boundaryButtons === !1 ? [] : [this.createButton(this.locales.first, () => {
|
|
120
120
|
this.currentPage > 0 && this.setPage(0);
|
|
121
|
-
}, this.currentPage === 0)], this.createButton(this.locales.previous, () => {
|
|
121
|
+
}, this.currentPage === 0, "first")], this.createButton(this.locales.previous, () => {
|
|
122
122
|
this.currentPage > 0 && this.setPage(this.currentPage - 1);
|
|
123
|
-
}, this.currentPage === 0)), this.config.buttonCount) for (let n of r(this.currentPage, this.totalPages, this.config.buttonCount)) n === "ellipsis" ? t.push(e("span", {
|
|
123
|
+
}, this.currentPage === 0, "previous")), this.config.buttonCount) for (let n of r(this.currentPage, this.totalPages, this.config.buttonCount)) n === "ellipsis" ? t.push(e("span", {
|
|
124
124
|
class: "rv-pagination-ellipsis",
|
|
125
125
|
"aria-hidden": "true"
|
|
126
126
|
}, "…")) : t.push(i(e, {
|
|
@@ -132,9 +132,9 @@ var a = class {
|
|
|
132
132
|
}));
|
|
133
133
|
t.push(this.createButton(this.locales.next, () => {
|
|
134
134
|
this.currentPage < this.totalPages - 1 && this.setPage(this.currentPage + 1);
|
|
135
|
-
}, this.currentPage >= this.totalPages - 1), ...this.config.boundaryButtons === !1 ? [] : [this.createButton(this.locales.last, () => {
|
|
135
|
+
}, this.currentPage >= this.totalPages - 1, "next"), ...this.config.boundaryButtons === !1 ? [] : [this.createButton(this.locales.last, () => {
|
|
136
136
|
this.setPage(this.totalPages - 1);
|
|
137
|
-
}, this.currentPage >= this.totalPages - 1)]);
|
|
137
|
+
}, this.currentPage >= this.totalPages - 1, "last")]);
|
|
138
138
|
}
|
|
139
139
|
if (this.totalPages > 1) {
|
|
140
140
|
let n = [];
|
package/pdf-viewer/controller.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as PdfViewerController } from "../_chunks/controller-
|
|
1
|
+
export { t as PdfViewerController } from "../_chunks/controller-BbiQuRt-.js";
|
package/pdf-viewer/header.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
import { PdfViewerText } from './translations';
|
|
3
3
|
import { PdfViewerState } from './types';
|
|
4
|
-
export declare function PdfViewerHeader({ state, text, onCancelPrint, showDetails }: {
|
|
4
|
+
export declare function PdfViewerHeader({ state, text, onCancelPrint, showDetails, }: {
|
|
5
5
|
showDetails?: boolean;
|
|
6
6
|
state: Readonly<PdfViewerState>;
|
|
7
7
|
text: PdfViewerText;
|
package/pdf-viewer/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PdfViewerProps } from './component';
|
|
2
2
|
import { PdfViewerController } from './controller';
|
|
3
|
-
export { PdfViewer, defaultPdfViewerText, type PdfViewerProps, type PdfViewerText } from './component';
|
|
3
|
+
export { PdfViewer, defaultPdfViewerText, type PdfViewerProps, type PdfViewerText, } from './component';
|
|
4
4
|
export { PdfViewerController } from './controller';
|
|
5
5
|
export type * from './types';
|
|
6
6
|
/** Mount the shared viewer in a native host. Call destroy to unmount and release PDF resources. */
|
|
7
7
|
export declare function createPdfViewer(host: HTMLElement, options: PdfViewerProps): PdfViewerController;
|
|
8
8
|
export { PdfViewerToolbar, type PdfViewerToolbarProps } from './toolbar';
|
|
9
|
-
export type { PdfViewerButton, PdfViewerButtonOptions, PdfViewerToolbarOptions, PdfViewerToolbarConfig } from './toolbar-options';
|
|
9
|
+
export type { PdfViewerButton, PdfViewerButtonOptions, PdfViewerToolbarOptions, PdfViewerToolbarConfig, } from './toolbar-options';
|
package/pdf-viewer/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as e } from "../_chunks/preact.module-BBM36DnO.js";
|
|
2
2
|
import { renderPreactInto as t } from "../preact-mount.js";
|
|
3
|
-
import { i as n, n as r, r as i, t as a } from "../_chunks/component-
|
|
4
|
-
import { t as o } from "../_chunks/controller-
|
|
5
|
-
//#region
|
|
3
|
+
import { i as n, n as r, r as i, t as a } from "../_chunks/component-C3k_8uIq.js";
|
|
4
|
+
import { t as o } from "../_chunks/controller-BbiQuRt-.js";
|
|
5
|
+
//#region package/pdf-viewer/index.tsx
|
|
6
6
|
function s(n, i) {
|
|
7
7
|
let a = new o(i), s = a.destroy.bind(a), c = !1;
|
|
8
8
|
return a.destroy = () => {
|
|
@@ -2,7 +2,7 @@ import { h, RefObject } from '../_vendor/preact/src/index';
|
|
|
2
2
|
import { PdfViewerText } from './translations';
|
|
3
3
|
import { PdfViewerController } from './controller';
|
|
4
4
|
import { PdfViewerState } from './types';
|
|
5
|
-
export declare function PdfViewerSearchBar({ id, controller, state, text, onClose, inputRef: search }: {
|
|
5
|
+
export declare function PdfViewerSearchBar({ id, controller, state, text, onClose, inputRef: search, }: {
|
|
6
6
|
inputRef: RefObject<HTMLInputElement>;
|
|
7
7
|
id: string;
|
|
8
8
|
controller: PdfViewerController;
|
package/pdf-viewer/status.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { h } from '../_vendor/preact/src/index';
|
|
|
2
2
|
import { PdfViewerText } from './translations';
|
|
3
3
|
import { PdfViewerController } from './controller';
|
|
4
4
|
import { PdfViewerState } from './types';
|
|
5
|
-
export declare function PdfViewerStatus({ state, text, controller, canOpen, onOpen }: {
|
|
5
|
+
export declare function PdfViewerStatus({ state, text, controller, canOpen, onOpen, }: {
|
|
6
6
|
state: Readonly<PdfViewerState>;
|
|
7
7
|
text: PdfViewerText;
|
|
8
8
|
controller: PdfViewerController;
|
package/pdf-viewer/style.scss
CHANGED
|
@@ -13,11 +13,33 @@
|
|
|
13
13
|
color: var(--rv-ui-text);
|
|
14
14
|
font: inherit;
|
|
15
15
|
font-size: 13px;
|
|
16
|
-
&__header {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
&__header {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: 10px;
|
|
20
|
+
min-width: 0;
|
|
21
|
+
padding: 12px 16px;
|
|
22
|
+
border-bottom: 1px solid var(--rv-ui-border);
|
|
23
|
+
}
|
|
24
|
+
&__document-icon {
|
|
25
|
+
flex: 0 0 auto;
|
|
26
|
+
color: var(--rv-ui-accent-text);
|
|
27
|
+
}
|
|
28
|
+
&__filename {
|
|
29
|
+
min-width: 0;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
text-overflow: ellipsis;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
}
|
|
35
|
+
&__summary {
|
|
36
|
+
margin-inline-start: auto;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
color: var(--rv-ui-text-muted);
|
|
39
|
+
font-variant-numeric: tabular-nums;
|
|
40
|
+
}
|
|
41
|
+
&__toolbar.rv-toolbar,
|
|
42
|
+
&__search {
|
|
21
43
|
--rv-icon-size: 14px;
|
|
22
44
|
--rv-icon-button-size: 32px;
|
|
23
45
|
--rv-control-height: 32px;
|
|
@@ -33,47 +55,186 @@
|
|
|
33
55
|
line-height: 18px;
|
|
34
56
|
}
|
|
35
57
|
}
|
|
36
|
-
&__toolbar.rv-toolbar {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
&
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
&
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
&
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
&__toolbar.rv-toolbar {
|
|
59
|
+
width: 100%;
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
box-shadow: none;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-wrap: wrap;
|
|
64
|
+
gap: 4px 8px;
|
|
65
|
+
padding: 8px 12px;
|
|
66
|
+
border: 0;
|
|
67
|
+
border-bottom: 1px solid var(--rv-ui-border);
|
|
68
|
+
border-radius: 0;
|
|
69
|
+
}
|
|
70
|
+
&__toolbar.rv-toolbar .rv-toolbar-group {
|
|
71
|
+
align-items: center;
|
|
72
|
+
flex-wrap: nowrap;
|
|
73
|
+
gap: 4px;
|
|
74
|
+
padding-block: 0;
|
|
75
|
+
}
|
|
76
|
+
&__toolbar .rv-pagination {
|
|
77
|
+
font-size: inherit;
|
|
78
|
+
flex-wrap: nowrap;
|
|
79
|
+
}
|
|
80
|
+
&__zoom-select {
|
|
81
|
+
position: relative;
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
width: 112px;
|
|
85
|
+
height: 32px;
|
|
86
|
+
}
|
|
87
|
+
&__toolbar &__zoom-select .dropdown-container {
|
|
88
|
+
width: 100%;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
background-image: none;
|
|
91
|
+
}
|
|
92
|
+
&__toolbar .rv-pdf-viewer__page-input {
|
|
93
|
+
width: 54px;
|
|
94
|
+
min-width: 0;
|
|
95
|
+
text-align: center;
|
|
96
|
+
font-variant-numeric: tabular-nums;
|
|
97
|
+
}
|
|
98
|
+
&__page-count {
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
color: var(--rv-ui-text-muted);
|
|
101
|
+
font-variant-numeric: tabular-nums;
|
|
102
|
+
}
|
|
103
|
+
&__actions {
|
|
104
|
+
margin-inline-start: auto;
|
|
105
|
+
}
|
|
106
|
+
&__toolbar .rv-pdf-viewer__more {
|
|
107
|
+
display: none;
|
|
108
|
+
}
|
|
109
|
+
&__menu {
|
|
110
|
+
display: grid;
|
|
111
|
+
gap: 2px;
|
|
112
|
+
}
|
|
113
|
+
&__menu .rv-svg-icon {
|
|
114
|
+
flex: 0 0 auto;
|
|
115
|
+
}
|
|
116
|
+
&__search {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-wrap: wrap;
|
|
119
|
+
align-items: center;
|
|
120
|
+
gap: 6px;
|
|
121
|
+
padding: 8px 12px;
|
|
122
|
+
border-bottom: 1px solid var(--rv-ui-border);
|
|
123
|
+
}
|
|
124
|
+
&__search .rv-search-input {
|
|
125
|
+
flex: 1 1 180px;
|
|
126
|
+
min-width: 0;
|
|
127
|
+
}
|
|
128
|
+
&__find-controls {
|
|
129
|
+
display: flex;
|
|
130
|
+
flex: 0 0 auto;
|
|
131
|
+
align-items: center;
|
|
132
|
+
gap: 4px;
|
|
133
|
+
}
|
|
134
|
+
&__search .rv-control {
|
|
135
|
+
min-width: 0;
|
|
136
|
+
width: 100%;
|
|
137
|
+
}
|
|
138
|
+
&__matches {
|
|
139
|
+
color: var(--rv-ui-text-muted);
|
|
140
|
+
min-width: 64px;
|
|
141
|
+
margin-inline-end: auto;
|
|
142
|
+
font-size: 12px;
|
|
143
|
+
}
|
|
144
|
+
&__body {
|
|
145
|
+
position: relative;
|
|
146
|
+
flex: 1;
|
|
147
|
+
min-height: 0;
|
|
148
|
+
background: var(--rv-ui-canvas);
|
|
149
|
+
}
|
|
150
|
+
&__viewport {
|
|
151
|
+
position: absolute;
|
|
152
|
+
inset: 0;
|
|
153
|
+
overflow: auto;
|
|
154
|
+
overscroll-behavior: contain;
|
|
155
|
+
}
|
|
156
|
+
&__viewport:focus-visible {
|
|
157
|
+
outline: 2px solid var(--rv-ui-accent);
|
|
158
|
+
outline-offset: -2px;
|
|
159
|
+
}
|
|
160
|
+
&__viewport .pdfViewer {
|
|
161
|
+
padding-block: 16px;
|
|
162
|
+
}
|
|
163
|
+
&__viewport .pdfViewer .page {
|
|
164
|
+
background: white;
|
|
165
|
+
}
|
|
166
|
+
&__status {
|
|
167
|
+
position: absolute;
|
|
168
|
+
inset: 0;
|
|
169
|
+
display: flex;
|
|
170
|
+
flex-direction: column;
|
|
171
|
+
align-items: center;
|
|
172
|
+
justify-content: center;
|
|
173
|
+
gap: 12px;
|
|
174
|
+
padding: 24px;
|
|
175
|
+
text-align: center;
|
|
176
|
+
color: var(--rv-ui-text-muted);
|
|
177
|
+
overflow: auto;
|
|
178
|
+
}
|
|
179
|
+
&__status .rv-empty-state {
|
|
180
|
+
border: 0;
|
|
181
|
+
background: none;
|
|
182
|
+
}
|
|
183
|
+
&__status .rv-empty-state p {
|
|
184
|
+
margin: 10px 0 16px;
|
|
185
|
+
}
|
|
186
|
+
&__status .rv-alert {
|
|
187
|
+
max-width: 100%;
|
|
188
|
+
text-align: start;
|
|
189
|
+
overflow-wrap: anywhere;
|
|
190
|
+
}
|
|
191
|
+
&__status strong {
|
|
192
|
+
color: var(--rv-ui-text);
|
|
193
|
+
font-size: 16px;
|
|
194
|
+
font-weight: 500;
|
|
195
|
+
}
|
|
196
|
+
&__error {
|
|
197
|
+
padding: 8px 12px;
|
|
198
|
+
color: var(--rv-ui-danger);
|
|
199
|
+
background: var(--rv-ui-danger-surface);
|
|
200
|
+
}
|
|
63
201
|
@container (max-width: 560px) {
|
|
64
|
-
&__toolbar .rv-pdf-viewer__desktop-actions {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
&
|
|
68
|
-
|
|
69
|
-
|
|
202
|
+
&__toolbar .rv-pdf-viewer__desktop-actions {
|
|
203
|
+
display: none;
|
|
204
|
+
}
|
|
205
|
+
&__toolbar .rv-pdf-viewer__more {
|
|
206
|
+
display: flex;
|
|
207
|
+
margin-inline-start: auto;
|
|
208
|
+
}
|
|
209
|
+
&__search .rv-search-input {
|
|
210
|
+
flex-basis: 100%;
|
|
211
|
+
}
|
|
212
|
+
&__find-controls {
|
|
213
|
+
width: 100%;
|
|
214
|
+
}
|
|
215
|
+
&__status .rv-alert--with-actions {
|
|
216
|
+
grid-template-columns: minmax(0, 1fr);
|
|
217
|
+
row-gap: 12px;
|
|
218
|
+
}
|
|
219
|
+
&__status .rv-alert__actions {
|
|
220
|
+
flex-wrap: wrap;
|
|
221
|
+
}
|
|
70
222
|
}
|
|
71
223
|
@container (max-width: 360px) {
|
|
72
|
-
&__open-label {
|
|
224
|
+
&__open-label {
|
|
225
|
+
display: none;
|
|
226
|
+
}
|
|
73
227
|
}
|
|
74
228
|
@container (max-width: 480px) {
|
|
75
|
-
&__toolbar.rv-toolbar {
|
|
76
|
-
|
|
77
|
-
|
|
229
|
+
&__toolbar.rv-toolbar {
|
|
230
|
+
padding: 6px;
|
|
231
|
+
gap: 4px;
|
|
232
|
+
}
|
|
233
|
+
&__header {
|
|
234
|
+
padding: 10px;
|
|
235
|
+
}
|
|
236
|
+
&__summary {
|
|
237
|
+
font-size: 11px;
|
|
238
|
+
}
|
|
78
239
|
}
|
|
79
240
|
}
|
package/preact-mount.js
CHANGED
package/preact.d.ts
CHANGED
|
@@ -22,14 +22,8 @@ export * from './dialog/dialog.preact';
|
|
|
22
22
|
export * from './filter/filters/slider/preact';
|
|
23
23
|
export * from './filter/filters/slider/single';
|
|
24
24
|
export * from './controls';
|
|
25
|
-
export { SvgIcon as Icon } from './icons/icon';
|
|
26
|
-
export { FilterChip as RemovableChip } from './form-controls/presentation';
|
|
27
|
-
export { SingleValueSlider as Slider } from './filter/filters/slider/single';
|
|
28
|
-
export { PreactRangeSlider as RangeSlider } from './filter/filters/slider/preact';
|
|
29
|
-
export { SharedResourcePicker as ResourcePicker } from './resource-picker';
|
|
30
25
|
export * from './status-feedback';
|
|
31
26
|
export * from './pickers';
|
|
32
|
-
export { StatusFeedbackPanel as FeedbackPanel } from './status-feedback';
|
|
33
27
|
export * from './control-presentation';
|
|
34
28
|
export { Input } from './native-control';
|
|
35
29
|
export * from './distribution-chart';
|
|
@@ -50,13 +44,15 @@ export * from './rating-choice';
|
|
|
50
44
|
export * from './reorder-list';
|
|
51
45
|
export * from './timeline-track';
|
|
52
46
|
export * from './activity-message';
|
|
53
|
-
export { isUiMotionEnabled, getUiMotionDuration, inheritUiMotion, type UiMotionTiming } from './core/motion';
|
|
47
|
+
export { isUiMotionEnabled, getUiMotionDuration, inheritUiMotion, type UiMotionTiming, } from './core/motion';
|
|
54
48
|
export { badgeClassName, type BadgeOptions } from './badge';
|
|
55
49
|
export { AiTranslationProvider } from './ai/translation-context';
|
|
56
50
|
export * from './ai/translations';
|
|
57
|
-
export { PdfViewer, type PdfViewerProps, type PdfViewerText, defaultPdfViewerText } from './pdf-viewer/component';
|
|
58
|
-
export { PdfViewerToolbar, type PdfViewerToolbarProps } from './pdf-viewer/toolbar';
|
|
59
|
-
export type { PdfViewerButton, PdfViewerButtonOptions, PdfViewerToolbarOptions, PdfViewerToolbarConfig } from './pdf-viewer/toolbar-options';
|
|
51
|
+
export { PdfViewer, type PdfViewerProps, type PdfViewerText, defaultPdfViewerText, } from './pdf-viewer/component';
|
|
52
|
+
export { PdfViewerToolbar, type PdfViewerToolbarProps, } from './pdf-viewer/toolbar';
|
|
53
|
+
export type { PdfViewerButton, PdfViewerButtonOptions, PdfViewerToolbarOptions, PdfViewerToolbarConfig, } from './pdf-viewer/toolbar-options';
|
|
60
54
|
export * from './history-controls';
|
|
61
55
|
export * from './ai/chat';
|
|
62
56
|
export * from './icon-toolbar';
|
|
57
|
+
export * from './legend';
|
|
58
|
+
export * from './view-switcher';
|