@prolibu-suite/cobalt-core 0.10.3 → 0.11.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/custom-elements.json +4385 -389
- package/dist/cjs/co-accordion.cjs.entry.js +3 -3
- package/dist/cjs/co-action-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-app-shell.cjs.entry.js +3 -3
- package/dist/cjs/co-audio-player.cjs.entry.js +4 -4
- package/dist/cjs/co-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/co-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/co-avatar.cjs.entry.js +7 -4
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +5 -5
- package/dist/cjs/co-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/co-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/co-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-button.cjs.entry.js +9 -7
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +4 -4
- package/dist/cjs/co-calendar_3.cjs.entry.js +72 -27
- package/dist/cjs/co-card.cjs.entry.js +3 -3
- package/dist/cjs/co-carousel-item.cjs.entry.js +2 -2
- package/dist/cjs/co-carousel.cjs.entry.js +3 -3
- package/dist/cjs/co-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/co-checkbox.cjs.entry.js +13 -5
- package/dist/cjs/co-chip_2.cjs.entry.js +28 -6
- package/dist/cjs/co-color-area.cjs.entry.js +169 -0
- package/dist/cjs/co-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/co-color-slider.cjs.entry.js +189 -0
- package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-combobox.cjs.entry.js +5 -5
- package/dist/cjs/co-command-search.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +3 -3
- package/dist/cjs/co-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range.cjs.entry.js +2 -2
- package/dist/cjs/co-date-time-picker.cjs.entry.js +4 -4
- package/dist/cjs/co-document-editor.cjs.entry.js +1161 -0
- package/dist/cjs/co-drive-card.cjs.entry.js +2 -2
- package/dist/cjs/co-drop-zone.cjs.entry.js +2 -2
- package/dist/cjs/co-emoji-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/co-event-calendar.cjs.entry.js +3 -3
- package/dist/cjs/co-event-popover.cjs.entry.js +3 -3
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +8 -8
- package/dist/cjs/co-file-type-tile.cjs.entry.js +3 -3
- package/dist/cjs/co-gradient-bar.cjs.entry.js +220 -0
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +49 -9
- package/dist/cjs/co-icon.cjs.entry.js +3 -3
- package/dist/cjs/co-input.cjs.entry.js +14 -8
- package/dist/cjs/co-json-field.cjs.entry.js +5 -5
- package/dist/cjs/{co-tooltip.cjs.entry.js → co-kbd_2.cjs.entry.js} +194 -6
- package/dist/cjs/co-lightbox.cjs.entry.js +5 -5
- package/dist/cjs/co-list-footer.cjs.entry.js +2 -2
- package/dist/cjs/co-list-item.cjs.entry.js +5 -5
- package/dist/cjs/co-loader.cjs.entry.js +1 -1
- package/dist/cjs/co-media-thumb.cjs.entry.js +3 -3
- package/dist/cjs/co-menu-divider.cjs.entry.js +3 -3
- package/dist/cjs/co-menu-item.cjs.entry.js +41 -43
- package/dist/cjs/co-menu.cjs.entry.js +81 -5
- package/dist/cjs/co-modal.cjs.entry.js +350 -7
- package/dist/cjs/co-navbar.cjs.entry.js +3 -3
- package/dist/cjs/co-number-field.cjs.entry.js +5 -5
- package/dist/cjs/co-overlay.cjs.entry.js +8 -4
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +3 -3
- package/dist/cjs/co-popover.cjs.entry.js +81 -6
- package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
- package/dist/cjs/co-provider-logo_2.cjs.entry.js +2 -2
- package/dist/cjs/co-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/co-radio.cjs.entry.js +4 -4
- package/dist/cjs/co-rating.cjs.entry.js +4 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +5 -5
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +26 -92
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +79 -20
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +9 -2
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-segmented-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-select.cjs.entry.js +158 -29
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +20 -5
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-slider.cjs.entry.js +203 -23
- package/dist/cjs/co-swatch-grid.cjs.entry.js +121 -0
- package/dist/cjs/co-switch.cjs.entry.js +5 -5
- package/dist/cjs/co-tab-group.cjs.entry.js +113 -4
- package/dist/cjs/co-tab.cjs.entry.js +15 -5
- package/dist/cjs/co-tags-field.cjs.entry.js +8 -8
- package/dist/cjs/co-textarea.cjs.entry.js +6 -6
- package/dist/cjs/co-tile.cjs.entry.js +61 -0
- package/dist/cjs/co-time-field.cjs.entry.js +2 -2
- package/dist/cjs/co-toast.cjs.entry.js +3 -3
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +26 -5
- package/dist/cjs/co-toggle-button.cjs.entry.js +67 -6
- package/dist/cjs/co-transfer-list.cjs.entry.js +3 -3
- package/dist/cjs/co-tree-item.cjs.entry.js +110 -0
- package/dist/cjs/co-video.cjs.entry.js +3 -3
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/{color-CML2Cfdh.js → color-DQVrQGi0.js} +10 -5
- package/dist/cjs/{fieldChip-B6YIGU1V.js → fieldChip-C7MxxBVO.js} +1 -1
- package/dist/cjs/gradientStops-CMpH4fB_.js +153 -0
- package/dist/cjs/hsv-DpfSF3M2.js +95 -0
- package/dist/cjs/{index-MDAnKsze.js → index-bHoidDwv.js} +67 -27
- package/dist/cjs/index-oMHzCXm6.js +144 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{index-2kMmd5-a.js → pagination-DV43TRj9.js} +1780 -297
- package/dist/cjs/{positioning-CyatXeT_.js → positioning-CILo5esi.js} +45 -18
- package/dist/cjs/{requiredMark-D-t-IPN0.js → requiredMark-21yHvvZS.js} +1 -1
- package/dist/cjs/rich-text-host-ueFSfW-6.js +119 -0
- package/dist/cjs/{richTextI18n-B28uAhh4.js → richTextI18n-DXGIv5w1.js} +45 -0
- package/dist/cjs/submenu-RlaX6irw.js +65 -0
- package/dist/cjs/{toolbar-config-CYACt9hh.js → toolbar-config-DczL6C4W.js} +32 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-ee149fd2.entry.js → p-05000ef3.entry.js} +1 -1
- package/dist/cobalt/p-06689166.entry.js +1 -0
- package/dist/cobalt/{p-1dc55e43.entry.js → p-0a5cfed0.entry.js} +1 -1
- package/dist/cobalt/p-1289131f.entry.js +1 -0
- package/dist/cobalt/{p-c7d7d7f7.entry.js → p-136beb2c.entry.js} +1 -1
- package/dist/cobalt/{p-b437eff6.entry.js → p-1693b614.entry.js} +1 -1
- package/dist/cobalt/p-1bfb69ae.entry.js +1 -0
- package/dist/cobalt/{p-2c9dba2f.entry.js → p-1f3d5313.entry.js} +1 -1
- package/dist/cobalt/{p-b821d9de.entry.js → p-22233b31.entry.js} +1 -1
- package/dist/cobalt/{p-c30b4cb5.entry.js → p-26fa36f8.entry.js} +1 -1
- package/dist/cobalt/p-2794c500.entry.js +1 -0
- package/dist/cobalt/p-297b55cd.entry.js +1 -0
- package/dist/cobalt/{p-17244412.entry.js → p-2a2b0c7a.entry.js} +1 -1
- package/dist/cobalt/{p-2636b7eb.entry.js → p-2e5702a0.entry.js} +1 -1
- package/dist/cobalt/p-3011c84f.entry.js +1 -0
- package/dist/cobalt/{p-4d65e713.entry.js → p-30760f77.entry.js} +1 -1
- package/dist/cobalt/{p-6dd220e0.entry.js → p-3b9a8e86.entry.js} +1 -1
- package/dist/cobalt/p-4111fefa.entry.js +1 -0
- package/dist/cobalt/{p-a32b20eb.entry.js → p-44edde81.entry.js} +1 -1
- package/dist/cobalt/{p-292b0389.entry.js → p-45007758.entry.js} +1 -1
- package/dist/cobalt/p-48c23310.entry.js +1 -0
- package/dist/cobalt/p-4b327483.entry.js +1 -0
- package/dist/cobalt/p-4c6caa41.entry.js +1 -0
- package/dist/cobalt/{p-000a15b8.entry.js → p-5534a64f.entry.js} +1 -1
- package/dist/cobalt/p-5573985a.entry.js +1 -0
- package/dist/cobalt/p-57d250ad.entry.js +1 -0
- package/dist/cobalt/{p-826ee074.entry.js → p-59d3e8fc.entry.js} +1 -1
- package/dist/cobalt/{p-4592ca00.entry.js → p-5a32b9a2.entry.js} +1 -1
- package/dist/cobalt/p-5b2aa70e.entry.js +1 -0
- package/dist/cobalt/{p-d29bb0fa.entry.js → p-5d6e02dd.entry.js} +1 -1
- package/dist/cobalt/{p-623cc195.entry.js → p-608d251d.entry.js} +1 -1
- package/dist/cobalt/{p-011dc80b.entry.js → p-66fc1528.entry.js} +1 -1
- package/dist/cobalt/{p-11c5ce78.entry.js → p-67ad9544.entry.js} +1 -1
- package/dist/cobalt/{p-290066ef.entry.js → p-6c157ea2.entry.js} +1 -1
- package/dist/cobalt/{p-a2462d7a.entry.js → p-6d541199.entry.js} +1 -1
- package/dist/cobalt/{p-58d9b650.entry.js → p-7376f4ed.entry.js} +1 -1
- package/dist/cobalt/{p-39a50e7f.entry.js → p-7569375a.entry.js} +1 -1
- package/dist/cobalt/{p-7b5c555c.entry.js → p-763698b3.entry.js} +1 -1
- package/dist/cobalt/{p-f57dffca.entry.js → p-7675cebe.entry.js} +1 -1
- package/dist/cobalt/p-78a20284.entry.js +1 -0
- package/dist/cobalt/{p-aa9400bf.entry.js → p-7f3523ce.entry.js} +1 -1
- package/dist/cobalt/{p-24196410.entry.js → p-86b6fd81.entry.js} +1 -1
- package/dist/cobalt/{p-996f4e38.entry.js → p-889563d5.entry.js} +1 -1
- package/dist/cobalt/{p-eadfd661.entry.js → p-8ab5b396.entry.js} +1 -1
- package/dist/cobalt/{p-c91d4fc6.entry.js → p-8b2e4579.entry.js} +1 -1
- package/dist/cobalt/p-8cd3acaa.entry.js +1 -0
- package/dist/cobalt/{p-23ab0cc5.entry.js → p-8f701eac.entry.js} +1 -1
- package/dist/cobalt/p-90fad0f9.entry.js +1 -0
- package/dist/cobalt/{p-76249983.entry.js → p-97a4fbba.entry.js} +1 -1
- package/dist/cobalt/p-9b46a8fe.entry.js +1 -0
- package/dist/cobalt/{p-ee2023da.entry.js → p-9bee9dc8.entry.js} +1 -1
- package/dist/cobalt/{p-2f9cbbd5.entry.js → p-9cf10331.entry.js} +1 -1
- package/dist/cobalt/p-9dc01092.entry.js +1 -0
- package/dist/cobalt/p-9e406172.entry.js +1 -0
- package/dist/cobalt/p-B1JT7us1.js +1 -0
- package/dist/cobalt/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
- package/dist/cobalt/p-BmdKHBZP.js +1 -0
- package/dist/cobalt/p-BtliEQAT.js +1 -0
- package/dist/cobalt/p-COJdaKBU.js +1 -0
- package/dist/cobalt/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
- package/dist/cobalt/p-CYN5B3IQ.js +1 -0
- package/dist/cobalt/p-DJkaRtbb.js +2 -0
- package/dist/cobalt/p-DU-KOQ8L.js +1 -0
- package/dist/cobalt/p-DXLeDZvr.js +1 -0
- package/dist/cobalt/{p-D_zA1Pv4.js → p-DgJovDdy.js} +1 -1
- package/dist/cobalt/p-RVQJEYxa.js +1 -0
- package/dist/cobalt/{p-1861fe41.entry.js → p-a07dedd1.entry.js} +1 -1
- package/dist/cobalt/{p-08e42e00.entry.js → p-a336178b.entry.js} +1 -1
- package/dist/cobalt/{p-f9a7b7c6.entry.js → p-a52ed6ff.entry.js} +1 -1
- package/dist/cobalt/{p-aaca6dab.entry.js → p-a930cdd7.entry.js} +1 -1
- package/dist/cobalt/{p-eb82358d.entry.js → p-b1994bb4.entry.js} +1 -1
- package/dist/cobalt/p-b2b13da8.entry.js +1 -0
- package/dist/cobalt/{p-c2ebf0ec.entry.js → p-b5ec4286.entry.js} +1 -1
- package/dist/cobalt/p-b9401dd7.entry.js +1 -0
- package/dist/cobalt/p-b9dfb333.entry.js +1 -0
- package/dist/cobalt/p-bc3ba0cd.entry.js +1 -0
- package/dist/cobalt/{p-d375014b.entry.js → p-bc4fbfa6.entry.js} +1 -1
- package/dist/cobalt/{p-d0b2c418.entry.js → p-c109a1e1.entry.js} +1 -1
- package/dist/cobalt/{p-ee9a623d.entry.js → p-c1caa112.entry.js} +1 -1
- package/dist/cobalt/p-c9990662.entry.js +1 -0
- package/dist/cobalt/p-cc4b51fa.entry.js +1 -0
- package/dist/cobalt/p-cc5989e9.entry.js +1 -0
- package/dist/cobalt/{p-e4264532.entry.js → p-ce2b2048.entry.js} +1 -1
- package/dist/cobalt/p-d1c378ff.entry.js +1 -0
- package/dist/cobalt/p-d1e83525.entry.js +1 -0
- package/dist/cobalt/{p-59963937.entry.js → p-d1f47915.entry.js} +1 -1
- package/dist/cobalt/{p-28764b8e.entry.js → p-d4979025.entry.js} +1 -1
- package/dist/cobalt/p-d6e7c258.entry.js +1 -0
- package/dist/cobalt/p-d75d2f3d.entry.js +1 -0
- package/dist/cobalt/p-db42c4ab.entry.js +1 -0
- package/dist/cobalt/{p-44c4e4a3.entry.js → p-e4ff2fcb.entry.js} +1 -1
- package/dist/cobalt/p-e6116149.entry.js +1 -0
- package/dist/cobalt/{p-0c004735.entry.js → p-e99ddf9c.entry.js} +1 -1
- package/dist/cobalt/{p-1cc818ca.entry.js → p-ea24eea8.entry.js} +1 -1
- package/dist/cobalt/{p-07416e31.entry.js → p-ea564148.entry.js} +1 -1
- package/dist/cobalt/{p-8471abe2.entry.js → p-ec7a6bf2.entry.js} +1 -1
- package/dist/cobalt/{p-fb2d1144.entry.js → p-ee42dca6.entry.js} +1 -1
- package/dist/cobalt/{p-49834b8e.entry.js → p-ee88ec40.entry.js} +1 -1
- package/dist/cobalt/p-eeb114da.entry.js +1 -0
- package/dist/cobalt/{p-f6691108.entry.js → p-f0898e21.entry.js} +1 -1
- package/dist/cobalt/p-f246946a.entry.js +1 -0
- package/dist/cobalt/{p-b90d41e4.entry.js → p-f5934cd9.entry.js} +1 -1
- package/dist/cobalt/p-f5e1873d.entry.js +1 -0
- package/dist/cobalt/p-f60bd4d6.entry.js +1 -0
- package/dist/cobalt/p-f813569c.entry.js +1 -0
- package/dist/cobalt/{p-f7eb1a40.entry.js → p-f8c7941f.entry.js} +1 -1
- package/dist/cobalt/{p-44ea675f.entry.js → p-f8d3c71e.entry.js} +1 -1
- package/dist/cobalt/{p-91e73a92.entry.js → p-ffbe955a.entry.js} +1 -1
- package/dist/cobalt/p-xnrKkNWQ.js +1 -0
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/co-accordion/co-accordion.js +2 -2
- package/dist/collection/components/co-action-bar/co-action-bar.js +2 -2
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-audio-player/co-audio-player.js +3 -3
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
- package/dist/collection/components/co-avatar/co-avatar.css +11 -2
- package/dist/collection/components/co-avatar/co-avatar.js +7 -4
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +4 -4
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +1 -1
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +2 -2
- package/dist/collection/components/co-button/co-button.css +73 -6
- package/dist/collection/components/co-button/co-button.js +33 -11
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- package/dist/collection/components/co-calendar/calendarMarks.js +40 -0
- package/dist/collection/components/co-calendar/co-calendar.css +11 -1
- package/dist/collection/components/co-calendar/co-calendar.js +82 -20
- package/dist/collection/components/co-calendar-month/co-calendar-month.js +1 -1
- package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.js +2 -2
- package/dist/collection/components/co-card/co-card.js +2 -2
- package/dist/collection/components/co-carousel/co-carousel.js +2 -2
- package/dist/collection/components/co-carousel-item/co-carousel-item.js +1 -1
- package/dist/collection/components/co-checkbox/co-checkbox.css +43 -1
- package/dist/collection/components/co-checkbox/co-checkbox.js +31 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
- package/dist/collection/components/co-chip/co-chip.js +2 -2
- package/dist/collection/components/co-color-area/co-color-area.css +83 -0
- package/dist/collection/components/co-color-area/co-color-area.js +341 -0
- package/dist/collection/components/co-color-picker/co-color-picker.js +2 -2
- package/dist/collection/components/co-color-slider/co-color-slider.css +115 -0
- package/dist/collection/components/co-color-slider/co-color-slider.js +353 -0
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.js +4 -4
- package/dist/collection/components/co-command-search/co-command-search.js +5 -5
- package/dist/collection/components/co-data-table/co-data-table.js +3 -3
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
- package/dist/collection/components/co-date-field/co-date-field.js +4 -4
- package/dist/collection/components/co-date-range/co-date-range.js +1 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +2 -2
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +3 -3
- package/dist/collection/components/co-document-editor/change-throttle.js +30 -0
- package/dist/collection/components/co-document-editor/co-document-editor.css +438 -0
- package/dist/collection/components/co-document-editor/co-document-editor.js +1542 -0
- package/dist/collection/components/co-document-editor/document-props.js +40 -0
- package/dist/collection/components/co-document-editor/header-tools.js +11 -0
- package/dist/collection/components/co-document-editor/image-bar.js +66 -0
- package/dist/collection/components/co-document-editor/page-styles.js +90 -0
- package/dist/collection/components/co-document-editor/zoom.js +45 -0
- package/dist/collection/components/co-drive-card/co-drive-card.js +1 -1
- package/dist/collection/components/co-drop-zone/co-drop-zone.js +1 -1
- package/dist/collection/components/co-emoji-picker/co-emoji-picker.js +2 -2
- package/dist/collection/components/co-empty-state/co-empty-state.js +2 -2
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +2 -2
- package/dist/collection/components/co-event-popover/co-event-popover.js +1 -1
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.js +6 -6
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
- package/dist/collection/components/co-gradient-bar/co-gradient-bar.css +138 -0
- package/dist/collection/components/co-gradient-bar/co-gradient-bar.js +407 -0
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +2 -2
- package/dist/collection/components/co-icon-button/co-icon-button.css +95 -19
- package/dist/collection/components/co-icon-button/co-icon-button.js +120 -10
- package/dist/collection/components/co-input/co-input.css +122 -0
- package/dist/collection/components/co-input/co-input.js +37 -11
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-kbd/co-kbd.css +99 -0
- package/dist/collection/components/co-kbd/co-kbd.js +291 -0
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
- package/dist/collection/components/co-list-item/co-list-item.js +4 -4
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
- package/dist/collection/components/co-menu/co-menu.css +60 -0
- package/dist/collection/components/co-menu/co-menu.js +143 -3
- package/dist/collection/components/co-menu-divider/co-menu-divider.css +17 -0
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +42 -6
- package/dist/collection/components/co-menu-item/co-menu-item.js +58 -4
- package/dist/collection/components/co-modal/co-modal.css +212 -1
- package/dist/collection/components/co-modal/co-modal.js +339 -9
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.js +3 -3
- package/dist/collection/components/co-option-list/co-option-list.css +64 -21
- package/dist/collection/components/co-option-list/co-option-list.js +43 -3
- package/dist/collection/components/co-overlay/co-overlay.js +7 -3
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
- package/dist/collection/components/co-popover/co-popover.css +15 -2
- package/dist/collection/components/co-popover/co-popover.js +144 -5
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.js +4 -4
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.js +5 -5
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +23 -90
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +12 -0
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +123 -18
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +8 -1
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +3 -3
- package/dist/collection/components/co-select/co-select.css +194 -10
- package/dist/collection/components/co-select/co-select.js +163 -32
- package/dist/collection/components/co-select/virtualRows.js +57 -0
- package/dist/collection/components/co-separator/co-separator.js +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +10 -0
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +19 -4
- package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
- package/dist/collection/components/co-slider/co-slider.css +148 -5
- package/dist/collection/components/co-slider/co-slider.js +240 -21
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.css +56 -0
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.js +292 -0
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- package/dist/collection/components/co-tab/co-tab.css +60 -0
- package/dist/collection/components/co-tab/co-tab.js +36 -6
- package/dist/collection/components/co-tab-group/co-tab-group.css +24 -0
- package/dist/collection/components/co-tab-group/co-tab-group.js +124 -2
- package/dist/collection/components/co-tab-group/revealTab.js +26 -0
- package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.js +4 -4
- package/dist/collection/components/co-tile/co-tile.css +63 -0
- package/dist/collection/components/co-tile/co-tile.js +162 -0
- package/dist/collection/components/co-time-field/co-time-field.js +1 -1
- package/dist/collection/components/co-toast/co-toast.js +4 -4
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +101 -0
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +80 -8
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +21 -0
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +28 -7
- package/dist/collection/components/co-tooltip/co-tooltip.css +36 -0
- package/dist/collection/components/co-tooltip/co-tooltip.js +51 -3
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +3 -3
- package/dist/collection/components/co-tree-item/co-tree-item.css +226 -0
- package/dist/collection/components/co-tree-item/co-tree-item.js +353 -0
- package/dist/collection/components/co-tree-item/treeItemI18n.js +16 -0
- package/dist/collection/components/co-video/co-video.js +2 -2
- package/dist/collection/utils/color.js +9 -5
- package/dist/collection/utils/dragMove.js +95 -0
- package/dist/collection/utils/gradientBarI18n.js +24 -0
- package/dist/collection/utils/gradientStops.js +142 -0
- package/dist/collection/utils/hsv.js +114 -0
- package/dist/collection/utils/kbdI18n.js +29 -0
- package/dist/collection/utils/positioning.js +44 -18
- package/dist/collection/utils/rich-text-host.js +109 -0
- package/dist/collection/utils/richTextI18n.js +45 -0
- package/dist/collection/utils/submenu.js +23 -3
- package/dist/collection/utils/swatchGridI18n.js +14 -0
- package/dist/collection/utils/test/fake-block-layout.js +41 -0
- package/dist/collection/utils/test/prosemirror-dom-shim.js +17 -0
- package/dist/collection/utils/test/shared-contract-css.js +9 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-action-bar.js +1 -1
- package/dist/components/co-app-shell.js +1 -1
- package/dist/components/co-audio-player.js +1 -1
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar-group.js +1 -1
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-badge.js +1 -1
- package/dist/components/co-bottom-sheet.js +1 -1
- package/dist/components/co-breadcrumb-item.js +1 -1
- package/dist/components/co-breadcrumb.js +1 -1
- package/dist/components/co-button-group.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar-month.js +1 -1
- package/dist/components/co-calendar-timegrid.js +1 -1
- package/dist/components/co-calendar.js +1 -1
- package/dist/components/co-card.js +1 -1
- package/dist/components/co-carousel-item.js +1 -1
- package/dist/components/co-carousel.js +1 -1
- package/dist/components/co-checkbox-group.js +1 -1
- package/dist/components/co-checkbox.js +1 -1
- package/dist/components/co-chip.js +1 -1
- package/dist/components/co-color-area.d.ts +11 -0
- package/dist/components/co-color-area.js +1 -0
- package/dist/components/co-color-picker.js +1 -1
- package/dist/components/co-color-slider.d.ts +11 -0
- package/dist/components/co-color-slider.js +1 -0
- package/dist/components/co-column-picker.js +1 -1
- package/dist/components/co-combobox.js +1 -1
- package/dist/components/co-command-search.js +1 -1
- package/dist/components/co-data-table-pagination.js +1 -1
- package/dist/components/co-data-table.js +1 -1
- package/dist/components/co-date-field.js +1 -1
- package/dist/components/co-date-picker.js +1 -1
- package/dist/components/co-date-range-picker.js +1 -1
- package/dist/components/co-date-range.js +1 -1
- package/dist/components/co-date-time-picker.js +1 -1
- package/dist/components/co-document-editor.d.ts +11 -0
- package/dist/components/co-document-editor.js +1 -0
- package/dist/components/co-drawer.js +1 -1
- package/dist/components/co-drive-card.js +1 -1
- package/dist/components/co-drop-zone.js +1 -1
- package/dist/components/co-emoji-picker.js +1 -1
- package/dist/components/co-empty-state.js +1 -1
- package/dist/components/co-event-calendar.js +1 -1
- package/dist/components/co-event-popover.js +1 -1
- package/dist/components/co-fab.js +1 -1
- package/dist/components/co-file-field.js +1 -1
- package/dist/components/co-file-type-tile.js +1 -1
- package/dist/components/co-gradient-bar.d.ts +11 -0
- package/dist/components/co-gradient-bar.js +1 -0
- package/dist/components/co-helper-text.js +1 -1
- package/dist/components/co-icon-button.js +1 -1
- package/dist/components/co-icon.js +1 -1
- package/dist/components/co-input.js +1 -1
- package/dist/components/co-json-field.js +1 -1
- package/dist/components/co-kbd.d.ts +11 -0
- package/dist/components/co-kbd.js +1 -0
- package/dist/components/co-lightbox.js +1 -1
- package/dist/components/co-list-footer.js +1 -1
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-media-thumb.js +1 -1
- package/dist/components/co-menu-divider.js +1 -1
- package/dist/components/co-menu-item.js +1 -1
- package/dist/components/co-menu.js +1 -1
- package/dist/components/co-modal.js +1 -1
- package/dist/components/co-navbar.js +1 -1
- package/dist/components/co-number-field.js +1 -1
- package/dist/components/co-option-list.js +1 -1
- package/dist/components/co-overlay.js +1 -1
- package/dist/components/co-page-header.js +1 -1
- package/dist/components/co-phone-field.js +1 -1
- package/dist/components/co-popover.js +1 -1
- package/dist/components/co-progress-bar.js +1 -1
- package/dist/components/co-progress-circle.js +1 -1
- package/dist/components/co-radio-group.js +1 -1
- package/dist/components/co-radio.js +1 -1
- package/dist/components/co-rating.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-rich-text-editor.js +1 -1
- package/dist/components/co-rich-text-toolbar.js +1 -1
- package/dist/components/co-rich-text-viewer.js +1 -1
- package/dist/components/co-row.js +1 -1
- package/dist/components/co-segmented-bar.js +1 -1
- package/dist/components/co-select.js +1 -1
- package/dist/components/co-separator.js +1 -1
- package/dist/components/co-sidebar-nav.js +1 -1
- package/dist/components/co-sidebar.js +1 -1
- package/dist/components/co-skeleton.js +1 -1
- package/dist/components/co-slider.js +1 -1
- package/dist/components/co-swatch-grid.d.ts +11 -0
- package/dist/components/co-swatch-grid.js +1 -0
- package/dist/components/co-switch.js +1 -1
- package/dist/components/co-tab-group.js +1 -1
- package/dist/components/co-tab.js +1 -1
- package/dist/components/co-tags-field.js +1 -1
- package/dist/components/co-textarea.js +1 -1
- package/dist/components/co-tile.d.ts +11 -0
- package/dist/components/co-tile.js +1 -0
- package/dist/components/co-time-field.js +1 -1
- package/dist/components/co-toast.js +1 -1
- package/dist/components/co-toggle-button-group.js +1 -1
- package/dist/components/co-toggle-button.js +1 -1
- package/dist/components/co-tooltip.js +1 -1
- package/dist/components/co-transfer-list.js +1 -1
- package/dist/components/co-tree-item.d.ts +11 -0
- package/dist/components/co-tree-item.js +1 -0
- package/dist/components/co-video.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B1JT7us1.js +1 -0
- package/dist/components/{p-Nt4JJxbL.js → p-B20o5exO.js} +1 -1
- package/dist/components/{p-DNJAIVfI.js → p-B3kKOgsA.js} +1 -1
- package/dist/components/{p-P4HlMBlL.js → p-BIDSDP05.js} +1 -1
- package/dist/components/p-BOqtnWTJ.js +1 -0
- package/dist/components/p-BQltjDw5.js +1 -0
- package/dist/components/p-BR0LYW9v.js +1 -0
- package/dist/components/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
- package/dist/components/p-BZDl9aFl.js +1 -0
- package/dist/components/p-BcXdId8y.js +1 -0
- package/dist/components/p-BmdKHBZP.js +1 -0
- package/dist/components/{p-NNxjElcX.js → p-BraiMwgs.js} +1 -1
- package/dist/components/p-BtliEQAT.js +1 -0
- package/dist/components/p-Bymi-A7C.js +1 -0
- package/dist/components/p-C-f8wTqe.js +1 -0
- package/dist/components/{p-BhCVadcA.js → p-C1jZYtUS.js} +1 -1
- package/dist/components/{p-CT2enQ6h.js → p-C3G8oPgU.js} +1 -1
- package/dist/components/{p-cndRd_-U.js → p-CGH3E8uK.js} +1 -1
- package/dist/components/p-COJdaKBU.js +1 -0
- package/dist/components/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
- package/dist/components/{p-Du_CgT5E.js → p-CfJgypOl.js} +1 -1
- package/dist/components/{p-uxdXViMV.js → p-ChwSnCFf.js} +1 -1
- package/dist/components/{p-Dc_Kbari.js → p-CpGEV0iM.js} +1 -1
- package/dist/components/{p-DvR45CLa.js → p-D9or2g4j.js} +1 -1
- package/dist/components/{p-e5KibEs8.js → p-DJ468fPu.js} +1 -1
- package/dist/components/{p-DFlJMEJ-.js → p-DKXCr-hE.js} +1 -1
- package/dist/components/p-DU-KOQ8L.js +1 -0
- package/dist/components/p-DXLeDZvr.js +1 -0
- package/dist/components/{p-BGDqldEg.js → p-DfcPGitr.js} +1 -1
- package/dist/components/p-Dg-Ti_Bf.js +1 -0
- package/dist/components/p-Dh_eRYKu.js +1 -0
- package/dist/components/p-Dp650Gpp.js +1 -0
- package/dist/components/p-FA1kBmZ-.js +1 -0
- package/dist/components/p-RVQJEYxa.js +1 -0
- package/dist/components/p-d4rf3H8p.js +1 -0
- package/dist/components/{p-Dxa7c4Ap.js → p-dnaee7fS.js} +1 -1
- package/dist/components/p-f2xwcrXa.js +1 -0
- package/dist/esm/co-accordion.entry.js +3 -3
- package/dist/esm/co-action-bar.entry.js +3 -3
- package/dist/esm/co-app-shell.entry.js +3 -3
- package/dist/esm/co-audio-player.entry.js +4 -4
- package/dist/esm/co-autocomplete.entry.js +2 -2
- package/dist/esm/co-avatar-group.entry.js +1 -1
- package/dist/esm/co-avatar.entry.js +7 -4
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +5 -5
- package/dist/esm/co-breadcrumb-item.entry.js +3 -3
- package/dist/esm/co-breadcrumb.entry.js +2 -2
- package/dist/esm/co-button-group.entry.js +3 -3
- package/dist/esm/co-button.entry.js +9 -7
- package/dist/esm/co-calendar-month_2.entry.js +4 -4
- package/dist/esm/co-calendar_3.entry.js +72 -27
- package/dist/esm/co-card.entry.js +3 -3
- package/dist/esm/co-carousel-item.entry.js +2 -2
- package/dist/esm/co-carousel.entry.js +3 -3
- package/dist/esm/co-checkbox-group.entry.js +1 -1
- package/dist/esm/co-checkbox.entry.js +13 -5
- package/dist/esm/co-chip_2.entry.js +28 -6
- package/dist/esm/co-color-area.entry.js +167 -0
- package/dist/esm/co-color-picker.entry.js +5 -5
- package/dist/esm/co-color-slider.entry.js +187 -0
- package/dist/esm/co-column-picker.entry.js +3 -3
- package/dist/esm/co-combobox.entry.js +5 -5
- package/dist/esm/co-command-search.entry.js +5 -5
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +3 -3
- package/dist/esm/co-date-picker.entry.js +2 -2
- package/dist/esm/co-date-range-picker.entry.js +2 -2
- package/dist/esm/co-date-range.entry.js +2 -2
- package/dist/esm/co-date-time-picker.entry.js +4 -4
- package/dist/esm/co-document-editor.entry.js +1159 -0
- package/dist/esm/co-drive-card.entry.js +2 -2
- package/dist/esm/co-drop-zone.entry.js +2 -2
- package/dist/esm/co-emoji-picker.entry.js +3 -3
- package/dist/esm/co-empty-state.entry.js +3 -3
- package/dist/esm/co-event-calendar.entry.js +3 -3
- package/dist/esm/co-event-popover.entry.js +3 -3
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +8 -8
- package/dist/esm/co-file-type-tile.entry.js +3 -3
- package/dist/esm/co-gradient-bar.entry.js +218 -0
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +49 -9
- package/dist/esm/co-icon.entry.js +3 -3
- package/dist/esm/co-input.entry.js +14 -8
- package/dist/esm/co-json-field.entry.js +5 -5
- package/dist/esm/{co-tooltip.entry.js → co-kbd_2.entry.js} +194 -7
- package/dist/esm/co-lightbox.entry.js +5 -5
- package/dist/esm/co-list-footer.entry.js +2 -2
- package/dist/esm/co-list-item.entry.js +5 -5
- package/dist/esm/co-loader.entry.js +1 -1
- package/dist/esm/co-media-thumb.entry.js +3 -3
- package/dist/esm/co-menu-divider.entry.js +3 -3
- package/dist/esm/co-menu-item.entry.js +39 -41
- package/dist/esm/co-menu.entry.js +81 -5
- package/dist/esm/co-modal.entry.js +350 -7
- package/dist/esm/co-navbar.entry.js +3 -3
- package/dist/esm/co-number-field.entry.js +5 -5
- package/dist/esm/co-overlay.entry.js +8 -4
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +3 -3
- package/dist/esm/co-popover.entry.js +81 -6
- package/dist/esm/co-progress-bar.entry.js +3 -3
- package/dist/esm/co-progress-circle.entry.js +3 -3
- package/dist/esm/co-provider-logo_2.entry.js +2 -2
- package/dist/esm/co-radio-group.entry.js +4 -4
- package/dist/esm/co-radio.entry.js +4 -4
- package/dist/esm/co-rating.entry.js +4 -4
- package/dist/esm/co-ref-field.entry.js +5 -5
- package/dist/esm/co-rich-text-editor.entry.js +26 -92
- package/dist/esm/co-rich-text-toolbar.entry.js +79 -20
- package/dist/esm/co-rich-text-viewer.entry.js +9 -2
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-segmented-bar.entry.js +3 -3
- package/dist/esm/co-select.entry.js +158 -29
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +20 -5
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-slider.entry.js +203 -23
- package/dist/esm/co-swatch-grid.entry.js +119 -0
- package/dist/esm/co-switch.entry.js +5 -5
- package/dist/esm/co-tab-group.entry.js +113 -4
- package/dist/esm/co-tab.entry.js +15 -5
- package/dist/esm/co-tags-field.entry.js +8 -8
- package/dist/esm/co-textarea.entry.js +6 -6
- package/dist/esm/co-tile.entry.js +59 -0
- package/dist/esm/co-time-field.entry.js +2 -2
- package/dist/esm/co-toast.entry.js +3 -3
- package/dist/esm/co-toggle-button-group.entry.js +26 -5
- package/dist/esm/co-toggle-button.entry.js +67 -6
- package/dist/esm/co-transfer-list.entry.js +3 -3
- package/dist/esm/co-tree-item.entry.js +108 -0
- package/dist/esm/co-video.entry.js +3 -3
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/{color-BRbgGqLw.js → color-BVGGRfNG.js} +10 -6
- package/dist/esm/{fieldChip-uyggU8VV.js → fieldChip-B2ctp2m6.js} +1 -1
- package/dist/esm/gradientStops-DDK0y8ra.js +145 -0
- package/dist/esm/hsv-COJdaKBU.js +90 -0
- package/dist/esm/index-Cpo8HTwr.js +142 -0
- package/dist/esm/{index-DH5lfRNj.js → index-DJkaRtbb.js} +67 -28
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{index-BBIYyvq-.js → pagination-D9OfZUnY.js} +1728 -297
- package/dist/esm/{positioning-DFHRS9cJ.js → positioning-BtliEQAT.js} +45 -19
- package/dist/esm/{requiredMark-BCJUuZvC.js → requiredMark-D5C5NzOE.js} +1 -1
- package/dist/esm/rich-text-host-BmdKHBZP.js +111 -0
- package/dist/esm/{richTextI18n-BYKAgwq3.js → richTextI18n-xnrKkNWQ.js} +45 -0
- package/dist/esm/submenu-DU-KOQ8L.js +57 -0
- package/dist/esm/{toolbar-config-BAYo-RBt.js → toolbar-config-CRxTFT_z.js} +32 -0
- package/dist/types/components/co-avatar/co-avatar.d.ts +4 -2
- package/dist/types/components/co-button/co-button.d.ts +6 -4
- package/dist/types/components/co-calendar/calendarMarks.d.ts +15 -0
- package/dist/types/components/co-calendar/co-calendar.d.ts +16 -0
- package/dist/types/components/co-checkbox/co-checkbox.d.ts +7 -0
- package/dist/types/components/co-color-area/co-color-area.d.ts +64 -0
- package/dist/types/components/co-color-slider/co-color-slider.d.ts +61 -0
- package/dist/types/components/co-date-time-picker/co-date-time-picker.d.ts +1 -1
- package/dist/types/components/co-document-editor/change-throttle.d.ts +9 -0
- package/dist/types/components/co-document-editor/co-document-editor.d.ts +276 -0
- package/dist/types/components/co-document-editor/document-props.d.ts +6 -0
- package/dist/types/components/co-document-editor/header-tools.d.ts +11 -0
- package/dist/types/components/co-document-editor/image-bar.d.ts +50 -0
- package/dist/types/components/co-document-editor/page-styles.d.ts +1 -0
- package/dist/types/components/co-document-editor/zoom.d.ts +26 -0
- package/dist/types/components/co-gradient-bar/co-gradient-bar.d.ts +72 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +34 -2
- package/dist/types/components/co-input/co-input.d.ts +14 -5
- package/dist/types/components/co-kbd/co-kbd.d.ts +43 -0
- package/dist/types/components/co-menu/co-menu.d.ts +40 -1
- package/dist/types/components/co-menu-item/co-menu-item.d.ts +17 -0
- package/dist/types/components/co-modal/co-modal.d.ts +111 -2
- package/dist/types/components/co-option-list/co-option-list.d.ts +8 -0
- package/dist/types/components/co-option-list/optionListLogic.d.ts +3 -0
- package/dist/types/components/co-popover/co-popover.d.ts +38 -0
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +2 -5
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +17 -2
- package/dist/types/components/co-select/co-select.d.ts +47 -5
- package/dist/types/components/co-select/virtualRows.d.ts +44 -0
- package/dist/types/components/co-slider/co-slider.d.ts +143 -1
- package/dist/types/components/co-swatch-grid/co-swatch-grid.d.ts +37 -0
- package/dist/types/components/co-tab/co-tab.d.ts +12 -2
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +37 -0
- package/dist/types/components/co-tab-group/revealTab.d.ts +29 -0
- package/dist/types/components/co-tile/co-tile.d.ts +40 -0
- package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +37 -2
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +20 -2
- package/dist/types/components/co-tooltip/co-tooltip.d.ts +12 -0
- package/dist/types/components/co-tree-item/co-tree-item.d.ts +73 -0
- package/dist/types/components/co-tree-item/treeItemI18n.d.ts +6 -0
- package/dist/types/components.d.ts +1748 -91
- package/dist/types/utils/color.d.ts +9 -1
- package/dist/types/utils/dragMove.d.ts +63 -0
- package/dist/types/utils/gradientBarI18n.d.ts +8 -0
- package/dist/types/utils/gradientStops.d.ts +63 -0
- package/dist/types/utils/hsv.d.ts +44 -0
- package/dist/types/utils/kbdI18n.d.ts +25 -0
- package/dist/types/utils/positioning.d.ts +24 -0
- package/dist/types/utils/rich-text-host.d.ts +41 -0
- package/dist/types/utils/richTextI18n.d.ts +15 -0
- package/dist/types/utils/submenu.d.ts +16 -2
- package/dist/types/utils/swatchGridI18n.d.ts +6 -0
- package/dist/types/utils/test/fake-block-layout.d.ts +7 -0
- package/dist/types/utils/test/prosemirror-dom-shim.d.ts +1 -0
- package/dist/types/utils/test/shared-contract-css.d.ts +9 -0
- package/package.json +5 -5
- package/dist/cobalt/p-0678c797.entry.js +0 -1
- package/dist/cobalt/p-216a63ee.entry.js +0 -1
- package/dist/cobalt/p-39dc4ec8.entry.js +0 -1
- package/dist/cobalt/p-3d31c575.entry.js +0 -1
- package/dist/cobalt/p-410bee4d.entry.js +0 -1
- package/dist/cobalt/p-416795f5.entry.js +0 -1
- package/dist/cobalt/p-56551580.entry.js +0 -1
- package/dist/cobalt/p-58137c9e.entry.js +0 -1
- package/dist/cobalt/p-5a3e4c81.entry.js +0 -1
- package/dist/cobalt/p-5c756787.entry.js +0 -1
- package/dist/cobalt/p-67f3b9d6.entry.js +0 -1
- package/dist/cobalt/p-6a4f3179.entry.js +0 -1
- package/dist/cobalt/p-71cbc53c.entry.js +0 -1
- package/dist/cobalt/p-72e52af7.entry.js +0 -1
- package/dist/cobalt/p-8530ad16.entry.js +0 -1
- package/dist/cobalt/p-8a74bf7d.entry.js +0 -1
- package/dist/cobalt/p-8e05b979.entry.js +0 -1
- package/dist/cobalt/p-8ebc0c12.entry.js +0 -1
- package/dist/cobalt/p-8f2199ff.entry.js +0 -1
- package/dist/cobalt/p-9246e09c.entry.js +0 -1
- package/dist/cobalt/p-99a655f6.entry.js +0 -1
- package/dist/cobalt/p-BYKAgwq3.js +0 -1
- package/dist/cobalt/p-CJW9H3Gi.js +0 -1
- package/dist/cobalt/p-DFHRS9cJ.js +0 -1
- package/dist/cobalt/p-DH5lfRNj.js +0 -2
- package/dist/cobalt/p-a1b422ca.entry.js +0 -1
- package/dist/cobalt/p-ade07307.entry.js +0 -1
- package/dist/cobalt/p-b698188c.entry.js +0 -1
- package/dist/cobalt/p-bde32f8b.entry.js +0 -1
- package/dist/cobalt/p-db805569.entry.js +0 -1
- package/dist/cobalt/p-e3aae282.entry.js +0 -1
- package/dist/cobalt/p-e49a564c.entry.js +0 -1
- package/dist/cobalt/p-ef301976.entry.js +0 -1
- package/dist/cobalt/p-f4e1c3c3.entry.js +0 -1
- package/dist/cobalt/p-fMqVDypp.js +0 -1
- package/dist/components/p-2EOI1nrz.js +0 -1
- package/dist/components/p-7TncUlLN.js +0 -1
- package/dist/components/p-B4NCaKrR.js +0 -1
- package/dist/components/p-BJh68Jqe.js +0 -1
- package/dist/components/p-BrAFTkAn.js +0 -1
- package/dist/components/p-Bsh0JMGf.js +0 -1
- package/dist/components/p-CJW9H3Gi.js +0 -1
- package/dist/components/p-CWCYYQrF.js +0 -1
- package/dist/components/p-D7Lhxz7L.js +0 -1
- package/dist/components/p-DFHRS9cJ.js +0 -1
- package/dist/components/p-DRP8D9ro.js +0 -1
- package/dist/components/p-DTPYZwaZ.js +0 -1
- package/dist/components/p-Dcg4krSX.js +0 -1
|
@@ -0,0 +1,1542 @@
|
|
|
1
|
+
import { forceUpdate, h, Host } from "@stencil/core";
|
|
2
|
+
import * as RichText from "@prolibu-suite/cobalt-rich-text";
|
|
3
|
+
import { getRichTextStrings } from "../../utils/richTextI18n";
|
|
4
|
+
import { parseFeatures, syncToolbarEditor } from "../../utils/rich-text-host";
|
|
5
|
+
import { createThrottle, DOC_CHANGE_THROTTLE_MS } from "./change-throttle";
|
|
6
|
+
import { parseMargins, parsePageSize, toBoolIntent } from "./document-props";
|
|
7
|
+
import { scopePageStyles } from "./page-styles";
|
|
8
|
+
import { anchorCorrection, clampScale, fitScale, paperPoint, pinchScale, ZOOM_GUTTER_PX } from "./zoom";
|
|
9
|
+
import { HEADER_TOOL_BOX_PX, HEADER_TOOL_ICON_PX } from "./header-tools";
|
|
10
|
+
import { defaultImageWidth, IMAGE_MODE_ICON_PX, IMAGE_MODE_ICONS, imageBarPosition, layoutLeft } from "./image-bar";
|
|
11
|
+
let instanceSeq = 0;
|
|
12
|
+
/**
|
|
13
|
+
* Editor de documentos paginado: hoja fija, encabezado en banda, campos y
|
|
14
|
+
* firmas (spec contracts-v2-contract-editor §4.2). Recibe y devuelve SOLO el
|
|
15
|
+
* cuerpo (HTML de impresión) y el HTML del encabezado; no sabe de contratos.
|
|
16
|
+
* Nunca serializa por tecla: `coChange` solo avisa y el host pide
|
|
17
|
+
* `getPrintHtml()` cuando lo necesita.
|
|
18
|
+
*
|
|
19
|
+
* `shadow: false` (como co-rich-text-editor): ProseMirror arma su DOM de forma
|
|
20
|
+
* imperativa y el CSS de impresión del host tiene que alcanzarlo.
|
|
21
|
+
*
|
|
22
|
+
* @slot aside - Panel lateral del host (ancho fijo del componente: `--co-doc-aside-width`, 320px por defecto). Mantener el hijo siempre montado (v-show).
|
|
23
|
+
* @part wrapper - Contenedor externo
|
|
24
|
+
* @part bar - Fila de la barra
|
|
25
|
+
* @part toolbar - Barra de formato
|
|
26
|
+
* @part canvas - Superficie donde se centran las hojas
|
|
27
|
+
* @part sheet - El papel
|
|
28
|
+
* @part header-band - Banda del encabezado de la primera hoja
|
|
29
|
+
*/
|
|
30
|
+
export class CoDocumentEditor {
|
|
31
|
+
constructor() {
|
|
32
|
+
/** Cuerpo: HTML de impresión (tolera el que guardó V1) o JSON de ProseMirror como string. */
|
|
33
|
+
this.value = null;
|
|
34
|
+
/** HTML del encabezado (banda superior de cada hoja). Vacío = sin encabezado. */
|
|
35
|
+
this.headerHtml = '';
|
|
36
|
+
/** Número de página en la banda. Se lee como intención: `true` o `'true'`. */
|
|
37
|
+
this.showPageNumber = false;
|
|
38
|
+
/** `letter` | `a4` | `legal` o `{width, height}` en px a 96 dpi (objeto o JSON). */
|
|
39
|
+
this.pageSize = 'letter';
|
|
40
|
+
/** Alto de la banda del encabezado en px (cuando hay encabezado). */
|
|
41
|
+
this.headerHeight = 45;
|
|
42
|
+
/** CSS de impresión del host; se acota a la hoja. */
|
|
43
|
+
this.pageStyles = '';
|
|
44
|
+
this.readonly = false;
|
|
45
|
+
/** BCP-47 para los textos de la UI ('es', 'en', 'pt-BR'…). */
|
|
46
|
+
this.locale = 'en';
|
|
47
|
+
this.ready = false;
|
|
48
|
+
this.pageCount = 1;
|
|
49
|
+
/** `custom` = zoom libre por gesto (pinza del trackpad / ctrl+rueda); la escala queda donde la dejó el usuario. */
|
|
50
|
+
this.zoomMode = 'fit';
|
|
51
|
+
this.scale = 1;
|
|
52
|
+
this.stageHeight = 0;
|
|
53
|
+
/** La banda del encabezado está en edición (editor `print-header` montado). */
|
|
54
|
+
this.headerEditing = false;
|
|
55
|
+
/** Interruptor de número de página mientras se edita (se confirma con el encabezado). */
|
|
56
|
+
this.draftShowPageNumber = false;
|
|
57
|
+
/** Barra de diseño de la imagen seleccionada en el cuerpo (null = no hay). Posición en px del papel. */
|
|
58
|
+
this.imageBar = null;
|
|
59
|
+
/** Encabezado vigente (confirmado). La Task 16 lo cambia al confirmar la banda. */
|
|
60
|
+
this.currentHeaderHtml = '';
|
|
61
|
+
this.currentShowPageNumber = false;
|
|
62
|
+
/** JSON del encabezado confirmado (lista de campos sin montar un editor). */
|
|
63
|
+
this.headerDoc = null;
|
|
64
|
+
this.instanceId = String(++instanceSeq);
|
|
65
|
+
this.applyingExternal = false;
|
|
66
|
+
this.lastAppliedValue = null;
|
|
67
|
+
this.userDirty = false;
|
|
68
|
+
this.lastFieldsKey = '';
|
|
69
|
+
/** src de imágenes insertadas por el usuario sin `width`: al cargar reciben uno (nota T8). */
|
|
70
|
+
this.pendingImageSrcs = new Set();
|
|
71
|
+
this.changeThrottle = createThrottle(DOC_CHANGE_THROTTLE_MS, () => this.emitPendingChange());
|
|
72
|
+
/**
|
|
73
|
+
* Barra bajo la imagen seleccionada (corre en cada transacción del cuerpo). Solo
|
|
74
|
+
* cambia el estado si cambió algo: sin re-render por tecla ni bucles.
|
|
75
|
+
*/
|
|
76
|
+
this.updateImageBar = () => {
|
|
77
|
+
const ed = this.editor;
|
|
78
|
+
const sel = ed === null || ed === void 0 ? void 0 : ed.state.selection;
|
|
79
|
+
const node = sel === null || sel === void 0 ? void 0 : sel.node;
|
|
80
|
+
if (!ed || this.readonly || !node || node.type.name !== 'image') {
|
|
81
|
+
if (this.imageBar)
|
|
82
|
+
this.imageBar = null;
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
const dom = ed.view.nodeDOM(sel.from);
|
|
86
|
+
const sheet = this.el.querySelector('.co-doc-editor__sheet');
|
|
87
|
+
if (!dom || !sheet) {
|
|
88
|
+
if (this.imageBar)
|
|
89
|
+
this.imageBar = null;
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
// px de layout (no los altera el zoom: la barra vive dentro del escenario escalado).
|
|
93
|
+
const box = RichText.layoutBox(dom, sheet);
|
|
94
|
+
const pos = imageBarPosition({ top: box.top, height: box.height, left: layoutLeft(dom, sheet), width: dom.offsetWidth }, { width: sheet.offsetWidth, height: sheet.offsetHeight });
|
|
95
|
+
const mode = RichText.getImageLayoutMode({ wrapperStyle: node.attrs.wrapperStyle, containerStyle: node.attrs.containerStyle });
|
|
96
|
+
const cur = this.imageBar;
|
|
97
|
+
if (!cur || cur.mode !== mode || cur.top !== pos.top || cur.left !== pos.left)
|
|
98
|
+
this.imageBar = { mode, top: pos.top, left: pos.left };
|
|
99
|
+
};
|
|
100
|
+
/** Una imagen insertada sin ancho nace acotada a la columna (V1 la abriría a 800 px). */
|
|
101
|
+
this.onBodyImageLoad = (e) => {
|
|
102
|
+
const img = e.target;
|
|
103
|
+
const ed = this.editor;
|
|
104
|
+
if (!ed || !img || img.tagName !== 'IMG')
|
|
105
|
+
return;
|
|
106
|
+
const src = img.getAttribute('src') || '';
|
|
107
|
+
if (!this.pendingImageSrcs.has(src))
|
|
108
|
+
return;
|
|
109
|
+
let target = -1;
|
|
110
|
+
ed.state.doc.descendants((n, pos) => {
|
|
111
|
+
if (target >= 0)
|
|
112
|
+
return false;
|
|
113
|
+
if (n.type.name === 'image' && !n.attrs.width && n.attrs.src === src)
|
|
114
|
+
target = pos;
|
|
115
|
+
return true;
|
|
116
|
+
});
|
|
117
|
+
const node = target >= 0 ? ed.state.doc.nodeAt(target) : null;
|
|
118
|
+
if (!node)
|
|
119
|
+
return;
|
|
120
|
+
const m = this.marginsPx;
|
|
121
|
+
const width = defaultImageWidth(img.naturalWidth, this.pageSizePx.width - m.left - m.right);
|
|
122
|
+
if (!width)
|
|
123
|
+
return;
|
|
124
|
+
// Quedan otras del mismo src sin ancho: su propio `load` las toma.
|
|
125
|
+
let more = false;
|
|
126
|
+
ed.state.doc.descendants((n, pos) => {
|
|
127
|
+
if (pos !== target && n.type.name === 'image' && !n.attrs.width && n.attrs.src === src)
|
|
128
|
+
more = true;
|
|
129
|
+
return !more;
|
|
130
|
+
});
|
|
131
|
+
if (!more)
|
|
132
|
+
this.pendingImageSrcs.delete(src);
|
|
133
|
+
const wasSelected = ed.state.selection.node && ed.state.selection.from === target;
|
|
134
|
+
ed.view.dispatch(ed.state.tr.setNodeMarkup(target, undefined, Object.assign(Object.assign({}, node.attrs), { width })));
|
|
135
|
+
if (wasSelected)
|
|
136
|
+
ed.commands.setNodeSelection(target);
|
|
137
|
+
};
|
|
138
|
+
/** Al salir del editor (p. ej. mousedown en «Cerrar») el aviso no espera la ventana. */
|
|
139
|
+
this.onEditorBlur = () => {
|
|
140
|
+
this.changeThrottle.flush();
|
|
141
|
+
};
|
|
142
|
+
this.onHostKeydown = (e) => {
|
|
143
|
+
if (e.key === 'Escape')
|
|
144
|
+
this.changeThrottle.flush();
|
|
145
|
+
};
|
|
146
|
+
this.onTransaction = ({ transaction }) => {
|
|
147
|
+
if (!transaction.docChanged)
|
|
148
|
+
return;
|
|
149
|
+
const external = this.applyingExternal || !!transaction.getMeta(RichText.FIELD_SYNC_META);
|
|
150
|
+
if (!external) {
|
|
151
|
+
this.userDirty = true;
|
|
152
|
+
this.trackInsertedImages(transaction);
|
|
153
|
+
}
|
|
154
|
+
this.changeThrottle.run();
|
|
155
|
+
};
|
|
156
|
+
/** La barra emite coAction burbujeante: se corta acá y solo salen los botones del host. */
|
|
157
|
+
this.handleToolbarAction = (e) => {
|
|
158
|
+
e.stopPropagation();
|
|
159
|
+
const { action, payload } = e.detail || {};
|
|
160
|
+
// Se reemite EXACTAMENTE el detalle de la barra para los botones del host; las
|
|
161
|
+
// acciones propias de la barra (bold…) no salen del componente. `documentHeader`
|
|
162
|
+
// abre la banda y tampoco se reemite.
|
|
163
|
+
if (payload && payload.extra === true)
|
|
164
|
+
this.coAction.emit({ action, payload: { extra: true } });
|
|
165
|
+
else if (action === 'documentHeader')
|
|
166
|
+
this.startHeaderEdit();
|
|
167
|
+
};
|
|
168
|
+
/* ── Banda del encabezado en edición (como V1: doble clic o «Encabezado»; clic afuera o ✓ confirma; Esc cancela) ── */
|
|
169
|
+
this.startHeaderEdit = () => {
|
|
170
|
+
if (this.readonly || this.headerEditing || !this.editor)
|
|
171
|
+
return;
|
|
172
|
+
this.draftShowPageNumber = this.currentShowPageNumber;
|
|
173
|
+
this.headerEditing = true; // el render monta .co-doc-editor__header-editor y componentDidRender el editor
|
|
174
|
+
this.refreshPagination(); // sin encabezado previo, la banda aparece y corre el cuerpo
|
|
175
|
+
};
|
|
176
|
+
/** Cambios en la banda: solo la lista de campos (decisión 16: el encabezado no emite coChange). */
|
|
177
|
+
this.onHeaderTransaction = ({ transaction }) => {
|
|
178
|
+
if (transaction.docChanged)
|
|
179
|
+
this.changeThrottle.run();
|
|
180
|
+
};
|
|
181
|
+
/** Como fitHeaderImage de V1: una imagen sin ancho se ajusta a la banda (40×400) al cargar. */
|
|
182
|
+
this.onHeaderImageLoad = (e) => {
|
|
183
|
+
const img = e.target;
|
|
184
|
+
const ed = this.headerEditor;
|
|
185
|
+
if (!ed || !img || img.tagName !== 'IMG')
|
|
186
|
+
return;
|
|
187
|
+
const width = RichText.headerImageWidth({ w: img.naturalWidth, h: img.naturalHeight });
|
|
188
|
+
if (!width)
|
|
189
|
+
return;
|
|
190
|
+
let target = -1;
|
|
191
|
+
try {
|
|
192
|
+
const pos = ed.view.posAtDOM(img, 0);
|
|
193
|
+
const node = ed.state.doc.nodeAt(pos);
|
|
194
|
+
if (node && node.type.name === 'image')
|
|
195
|
+
target = pos;
|
|
196
|
+
}
|
|
197
|
+
catch (_a) {
|
|
198
|
+
/* el img ya no está en el editor */
|
|
199
|
+
}
|
|
200
|
+
if (target < 0) {
|
|
201
|
+
const src = img.getAttribute('src');
|
|
202
|
+
ed.state.doc.descendants((node, pos) => {
|
|
203
|
+
if (target >= 0)
|
|
204
|
+
return false;
|
|
205
|
+
if (node.type.name === 'image' && !node.attrs.width && node.attrs.src === src)
|
|
206
|
+
target = pos;
|
|
207
|
+
return true;
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
const node = target >= 0 ? ed.state.doc.nodeAt(target) : null;
|
|
211
|
+
if (!node || node.attrs.width)
|
|
212
|
+
return;
|
|
213
|
+
ed.view.dispatch(ed.state.tr.setNodeMarkup(target, undefined, Object.assign(Object.assign({}, node.attrs), { width })));
|
|
214
|
+
};
|
|
215
|
+
/** Clic afuera de la banda (y de la barra, que la edita) confirma. */
|
|
216
|
+
this.onDocumentPointer = (e) => {
|
|
217
|
+
const path = e.composedPath();
|
|
218
|
+
if (this.headerBandEl && path.includes(this.headerBandEl))
|
|
219
|
+
return;
|
|
220
|
+
if (this.toolbarEl && path.includes(this.toolbarEl))
|
|
221
|
+
return;
|
|
222
|
+
this.commitHeader();
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Esc cancela y NO sigue hasta el editor ni burbujea al host (no cierra el overlay
|
|
226
|
+
* de abajo). Convive con `onHostKeydown`: el host captura antes (es ancestro) y
|
|
227
|
+
* solo adelanta el coChange pendiente del cuerpo.
|
|
228
|
+
*/
|
|
229
|
+
this.onHeaderKeydown = (e) => {
|
|
230
|
+
var _a;
|
|
231
|
+
if (e.key !== 'Escape' || e.isComposing)
|
|
232
|
+
return;
|
|
233
|
+
// Desde la barra: si tiene un panel abierto (color, enlace, tamaño…) el Esc es suyo y lo cierra.
|
|
234
|
+
const toolbar = this.toolbarEl;
|
|
235
|
+
if (toolbar && e.currentTarget === toolbar && ((_a = toolbar.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('[aria-expanded="true"]')))
|
|
236
|
+
return;
|
|
237
|
+
e.preventDefault();
|
|
238
|
+
e.stopPropagation();
|
|
239
|
+
this.cancelHeader(true);
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* `restoreFocus`: confirmar con el ✓ (teclado o clic) desmonta el botón enfocado →
|
|
243
|
+
* el foco vuelve al cuerpo. El clic afuera NO lo toca: el foco ya se fue adonde se hizo clic.
|
|
244
|
+
*/
|
|
245
|
+
this.commitHeader = (restoreFocus = false) => {
|
|
246
|
+
var _a;
|
|
247
|
+
const ed = this.headerEditor;
|
|
248
|
+
if (!ed)
|
|
249
|
+
return;
|
|
250
|
+
const refocus = restoreFocus && this.focusIsInBandOrLost();
|
|
251
|
+
const html = ed.isEmpty ? '' : RichText.writePrintHtml(ed.state.doc, 'print-header', this.resolvedFeatures);
|
|
252
|
+
const showPageNumber = this.draftShowPageNumber;
|
|
253
|
+
this.teardownHeaderEditor();
|
|
254
|
+
this.currentHeaderHtml = html;
|
|
255
|
+
this.currentShowPageNumber = showPageNumber;
|
|
256
|
+
this.headerDoc = html ? RichText.readPrintHtml(html, 'print-header', this.resolvedFeatures) : null;
|
|
257
|
+
this.headerEditing = false;
|
|
258
|
+
this.refreshPagination();
|
|
259
|
+
this.coHeaderChange.emit({ html, showPageNumber });
|
|
260
|
+
this.emitFieldsIfChanged();
|
|
261
|
+
if (refocus)
|
|
262
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.focus();
|
|
263
|
+
};
|
|
264
|
+
/** `restoreFocus` solo para la cancelación del usuario (Esc); un cambio de prop no roba el foco. */
|
|
265
|
+
this.cancelHeader = (restoreFocus = false) => {
|
|
266
|
+
var _a;
|
|
267
|
+
if (!this.headerEditing)
|
|
268
|
+
return;
|
|
269
|
+
this.teardownHeaderEditor();
|
|
270
|
+
this.headerEditing = false;
|
|
271
|
+
this.refreshPagination();
|
|
272
|
+
this.emitFieldsIfChanged();
|
|
273
|
+
if (restoreFocus)
|
|
274
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.focus();
|
|
275
|
+
};
|
|
276
|
+
/** Escala que refleja el DOM (se actualiza en componentDidRender). */
|
|
277
|
+
this.renderedScale = 1;
|
|
278
|
+
this.onCanvasWheel = (e) => {
|
|
279
|
+
// ctrlKey = pinza del trackpad (Chrome/Edge/Firefox) o ctrl+rueda; ⌘+rueda en mac también.
|
|
280
|
+
if (!e.ctrlKey && !e.metaKey)
|
|
281
|
+
return;
|
|
282
|
+
e.preventDefault();
|
|
283
|
+
// deltaMode 1 = líneas (rueda de mouse clásica): ~16px por línea.
|
|
284
|
+
const delta = e.deltaMode === 1 ? e.deltaY * 16 : e.deltaY;
|
|
285
|
+
this.zoomTo(pinchScale(this.scale, delta), e.clientX, e.clientY);
|
|
286
|
+
};
|
|
287
|
+
/** Safari no manda la pinza como ctrl+wheel sino como GestureEvent (escala acumulada desde el inicio). */
|
|
288
|
+
this.gestureBase = 1;
|
|
289
|
+
this.onGestureStart = (e) => {
|
|
290
|
+
e.preventDefault();
|
|
291
|
+
this.gestureBase = this.scale;
|
|
292
|
+
};
|
|
293
|
+
this.onGestureChange = (e) => {
|
|
294
|
+
var _a, _b, _c, _d;
|
|
295
|
+
e.preventDefault();
|
|
296
|
+
const rect = (_a = this.canvasEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
297
|
+
const cx = (_b = e.clientX) !== null && _b !== void 0 ? _b : (rect ? rect.left + rect.width / 2 : 0);
|
|
298
|
+
const cy = (_c = e.clientY) !== null && _c !== void 0 ? _c : (rect ? rect.top + rect.height / 2 : 0);
|
|
299
|
+
this.zoomTo(clampScale(this.gestureBase * ((_d = e.scale) !== null && _d !== void 0 ? _d : 1)), cx, cy);
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
get s() {
|
|
303
|
+
return getRichTextStrings(this.locale);
|
|
304
|
+
}
|
|
305
|
+
get resolvedFeatures() {
|
|
306
|
+
var _a;
|
|
307
|
+
return (_a = parseFeatures(this.features)) !== null && _a !== void 0 ? _a : {};
|
|
308
|
+
}
|
|
309
|
+
get parsedExtraItems() {
|
|
310
|
+
const v = parseFeatures(this.extraItems);
|
|
311
|
+
return Array.isArray(v) ? v : [];
|
|
312
|
+
}
|
|
313
|
+
get pageSizePx() {
|
|
314
|
+
return RichText.resolvePageSize(parsePageSize(this.pageSize));
|
|
315
|
+
}
|
|
316
|
+
get marginsPx() {
|
|
317
|
+
return parseMargins(this.margins);
|
|
318
|
+
}
|
|
319
|
+
/** Con la banda en edición hay banda aunque el encabezado confirmado esté vacío. */
|
|
320
|
+
get hasHeader() {
|
|
321
|
+
return !!this.currentHeaderHtml || this.headerEditing;
|
|
322
|
+
}
|
|
323
|
+
get sanitizedHeaderHtml() {
|
|
324
|
+
return RichText.sanitize(this.currentHeaderHtml, 'print-header');
|
|
325
|
+
}
|
|
326
|
+
get pageScope() {
|
|
327
|
+
return `.co-doc-editor__sheet[data-co-doc="${this.instanceId}"]`;
|
|
328
|
+
}
|
|
329
|
+
/** Editor que maneja la barra: el del encabezado mientras la banda está en edición. */
|
|
330
|
+
get activeEditor() {
|
|
331
|
+
var _a;
|
|
332
|
+
return (_a = this.headerEditor) !== null && _a !== void 0 ? _a : this.editor;
|
|
333
|
+
}
|
|
334
|
+
/** «Encabezado» en la barra: apagado en solo lectura y con la banda ya abierta. */
|
|
335
|
+
get documentHeaderEnabled() {
|
|
336
|
+
return !this.readonly && !this.headerEditing;
|
|
337
|
+
}
|
|
338
|
+
/** Paginación del cuerpo: tamaño, márgenes y banda del encabezado. */
|
|
339
|
+
buildCustomExtensions() {
|
|
340
|
+
return [
|
|
341
|
+
RichText.Pagination.configure({
|
|
342
|
+
page: this.pageSizePx,
|
|
343
|
+
margins: this.marginsPx,
|
|
344
|
+
header: { height: this.hasHeader ? this.headerHeight : 0 },
|
|
345
|
+
footer: { height: 0 },
|
|
346
|
+
renderHeader: (page, count) => this.buildHeaderClone(page, count),
|
|
347
|
+
onPagesChange: (n) => {
|
|
348
|
+
this.pageCount = n;
|
|
349
|
+
this.coPagesChange.emit(n);
|
|
350
|
+
},
|
|
351
|
+
}),
|
|
352
|
+
];
|
|
353
|
+
}
|
|
354
|
+
/** Campos del cuerpo y, detrás, los del encabezado (el que se edita o el confirmado). */
|
|
355
|
+
collectAllFields() {
|
|
356
|
+
if (!this.editor)
|
|
357
|
+
return [];
|
|
358
|
+
const list = RichText.collectFields(this.editor.state.doc);
|
|
359
|
+
const header = this.headerEditor ? this.headerEditor.state.doc : this.headerDoc;
|
|
360
|
+
if (header)
|
|
361
|
+
RichText.collectFields(header, list);
|
|
362
|
+
return list;
|
|
363
|
+
}
|
|
364
|
+
connectedCallback() {
|
|
365
|
+
// Captura sobre el host: el Escape pasa por acá antes que el listener del drawer/modal
|
|
366
|
+
// que cierra. No se frena la propagación: solo se adelanta el coChange pendiente.
|
|
367
|
+
this.el.addEventListener('keydown', this.onHostKeydown, true);
|
|
368
|
+
}
|
|
369
|
+
componentWillLoad() {
|
|
370
|
+
// H3: el harness de specs no aplica los defaults de clase de @State.
|
|
371
|
+
this.ready = false;
|
|
372
|
+
this.pageCount = 1;
|
|
373
|
+
this.zoomMode = 'fit';
|
|
374
|
+
this.scale = 1;
|
|
375
|
+
this.stageHeight = 0;
|
|
376
|
+
this.headerEditing = false;
|
|
377
|
+
this.draftShowPageNumber = false;
|
|
378
|
+
this.imageBar = null;
|
|
379
|
+
}
|
|
380
|
+
componentDidLoad() {
|
|
381
|
+
var _a, _b, _c;
|
|
382
|
+
if (!this.contentEl)
|
|
383
|
+
return;
|
|
384
|
+
this.syncHeaderFromProps();
|
|
385
|
+
this.editor = RichText.createEditor({
|
|
386
|
+
preset: 'print',
|
|
387
|
+
element: this.contentEl,
|
|
388
|
+
// Nota T14: el contenido inicial pasa por readPrintHtml (parseBody), igual que todo setContent posterior.
|
|
389
|
+
content: this.value ? this.parseBody(this.value) : null,
|
|
390
|
+
editable: !this.readonly,
|
|
391
|
+
features: this.resolvedFeatures,
|
|
392
|
+
labels: { signature: (n) => `${this.s.signature} ${n}`, fieldName: this.s.fieldNamePlaceholder },
|
|
393
|
+
customExtensions: this.buildCustomExtensions(),
|
|
394
|
+
imageUpload: this.imageUpload,
|
|
395
|
+
});
|
|
396
|
+
this.lastAppliedValue = this.value;
|
|
397
|
+
this.wireEditor(this.editor);
|
|
398
|
+
this.applyPageStyles();
|
|
399
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
400
|
+
this.resizeObserver = new ResizeObserver(() => this.updateScale());
|
|
401
|
+
if (this.canvasEl)
|
|
402
|
+
this.resizeObserver.observe(this.canvasEl);
|
|
403
|
+
if (this.stageEl)
|
|
404
|
+
this.resizeObserver.observe(this.stageEl);
|
|
405
|
+
}
|
|
406
|
+
// passive:false — sin preventDefault la pinza hace zoom de TODA la página del navegador.
|
|
407
|
+
(_a = this.canvasEl) === null || _a === void 0 ? void 0 : _a.addEventListener('wheel', this.onCanvasWheel, { passive: false });
|
|
408
|
+
(_b = this.canvasEl) === null || _b === void 0 ? void 0 : _b.addEventListener('gesturestart', this.onGestureStart);
|
|
409
|
+
(_c = this.canvasEl) === null || _c === void 0 ? void 0 : _c.addEventListener('gesturechange', this.onGestureChange);
|
|
410
|
+
this.updateScale();
|
|
411
|
+
this.syncToolbar();
|
|
412
|
+
this.ready = true;
|
|
413
|
+
this.emitFieldsIfChanged();
|
|
414
|
+
this.coReady.emit();
|
|
415
|
+
}
|
|
416
|
+
componentDidRender() {
|
|
417
|
+
this.applyPendingAnchor();
|
|
418
|
+
if (this.headerEditing && !this.headerEditor && this.headerMountEl)
|
|
419
|
+
this.mountHeaderEditor();
|
|
420
|
+
this.syncToolbar();
|
|
421
|
+
}
|
|
422
|
+
disconnectedCallback() {
|
|
423
|
+
var _a, _b, _c, _d;
|
|
424
|
+
this.el.removeEventListener('keydown', this.onHostKeydown, true);
|
|
425
|
+
this.changeThrottle.cancel();
|
|
426
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
427
|
+
this.resizeObserver = undefined;
|
|
428
|
+
(_b = this.canvasEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('wheel', this.onCanvasWheel);
|
|
429
|
+
(_c = this.canvasEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('gesturestart', this.onGestureStart);
|
|
430
|
+
(_d = this.canvasEl) === null || _d === void 0 ? void 0 : _d.removeEventListener('gesturechange', this.onGestureChange);
|
|
431
|
+
// H9: soltar la barra ANTES de destruir, o re-renderiza con un editor destruido.
|
|
432
|
+
if (this.toolbarEl)
|
|
433
|
+
this.toolbarEl.editor = undefined;
|
|
434
|
+
this.teardownHeaderEditor(false);
|
|
435
|
+
this.headerEditing = false;
|
|
436
|
+
if (this.editor) {
|
|
437
|
+
this.editor.off('transaction', this.onTransaction);
|
|
438
|
+
this.editor.off('blur', this.onEditorBlur);
|
|
439
|
+
this.editor.off('transaction', this.updateImageBar);
|
|
440
|
+
this.editor.view.dom.removeEventListener('load', this.onBodyImageLoad, true);
|
|
441
|
+
this.editor.destroy();
|
|
442
|
+
}
|
|
443
|
+
this.editor = undefined;
|
|
444
|
+
this.pendingImageSrcs.clear();
|
|
445
|
+
this.imageBar = null;
|
|
446
|
+
}
|
|
447
|
+
onValueChange(next) {
|
|
448
|
+
if (next === this.lastAppliedValue)
|
|
449
|
+
return;
|
|
450
|
+
// Eco del host: devolvió por `value` lo que getPrintHtml() dio. Re-aplicarlo movería el cursor.
|
|
451
|
+
// Solo corre cuando cambia la prop (nunca por tecla).
|
|
452
|
+
if (this.editor && next && next === RichText.writePrintHtml(this.editor.state.doc, 'print', this.resolvedFeatures)) {
|
|
453
|
+
this.lastAppliedValue = next;
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
this.applyBody(next);
|
|
457
|
+
}
|
|
458
|
+
onReadonlyChange() {
|
|
459
|
+
var _a;
|
|
460
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.setEditable(!this.readonly);
|
|
461
|
+
if (this.readonly && this.headerEditing)
|
|
462
|
+
this.cancelHeader();
|
|
463
|
+
this.updateImageBar();
|
|
464
|
+
}
|
|
465
|
+
onPageGeometryChange() {
|
|
466
|
+
this.refreshPagination();
|
|
467
|
+
this.updateScale();
|
|
468
|
+
}
|
|
469
|
+
onHeaderPropsChange() {
|
|
470
|
+
if (this.headerEditing)
|
|
471
|
+
return; // lo que se está editando manda hasta confirmar o cancelar
|
|
472
|
+
this.syncHeaderFromProps();
|
|
473
|
+
this.refreshPagination();
|
|
474
|
+
this.emitFieldsIfChanged();
|
|
475
|
+
}
|
|
476
|
+
onPageStylesChange() {
|
|
477
|
+
this.applyPageStyles();
|
|
478
|
+
}
|
|
479
|
+
onLabelChange() {
|
|
480
|
+
if (this.editor)
|
|
481
|
+
this.editor.view.dom.setAttribute('aria-label', this.label || this.s.documentEditor);
|
|
482
|
+
}
|
|
483
|
+
/** «Página N / M» de las bandas de salto sale del idioma: redibujarlas. */
|
|
484
|
+
onLocaleChange() {
|
|
485
|
+
if (this.currentShowPageNumber)
|
|
486
|
+
this.refreshPagination();
|
|
487
|
+
}
|
|
488
|
+
/* ── Métodos públicos ── */
|
|
489
|
+
/** Cuerpo en la forma canónica de impresión (spec §3.4). */
|
|
490
|
+
async getPrintHtml() {
|
|
491
|
+
if (!this.editor)
|
|
492
|
+
return '';
|
|
493
|
+
return RichText.writePrintHtml(this.editor.state.doc, 'print', this.resolvedFeatures);
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* HTML del encabezado confirmado: el de la prop tal cual, o la forma canónica
|
|
497
|
+
* si pasó por la banda o por `setFieldValues`. Lo que se está editando en la
|
|
498
|
+
* banda sin confirmar NO cuenta.
|
|
499
|
+
*/
|
|
500
|
+
async getHeaderHtml() {
|
|
501
|
+
return this.currentHeaderHtml;
|
|
502
|
+
}
|
|
503
|
+
async getJSON() {
|
|
504
|
+
return this.editor ? this.editor.getJSON() : null;
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* Emite YA el `coChange` pendiente (no-op si no hay). El host lo llama antes de
|
|
508
|
+
* decidir «cambios sin aplicar» (cerrar, navegar): `coChange` sale al final de
|
|
509
|
+
* la ventana de 250 ms y una edición recién tipeada todavía no avisó.
|
|
510
|
+
* El blur del editor y un Escape dentro del componente lo hacen solos.
|
|
511
|
+
*/
|
|
512
|
+
async flushChange() {
|
|
513
|
+
this.changeThrottle.flush();
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* ¿Cuerpo vacío? En print un documento vacío NO serializa a `''`
|
|
517
|
+
* (`<p><br class="ProseMirror-trailingBreak"></p>`): el host pregunta acá.
|
|
518
|
+
*/
|
|
519
|
+
async isEmpty() {
|
|
520
|
+
return this.editor ? this.editor.isEmpty : true;
|
|
521
|
+
}
|
|
522
|
+
/** Reemplaza el cuerpo (HTML de impresión, V1 incluido). A diferencia del RTE, NO emite coChange. */
|
|
523
|
+
async setContent(html) {
|
|
524
|
+
this.applyBody(html);
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* Valores de los campos (cuerpo y encabezado) en UNA transacción por editor; no
|
|
528
|
+
* cuenta como edición del usuario ni emite coHeaderChange. Con la banda abierta
|
|
529
|
+
* se aplican también al confirmado, así cancelar no los pierde.
|
|
530
|
+
*/
|
|
531
|
+
async setFieldValues(values) {
|
|
532
|
+
var _a, _b;
|
|
533
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.setFieldValues(values);
|
|
534
|
+
(_b = this.headerEditor) === null || _b === void 0 ? void 0 : _b.commands.setFieldValues(values);
|
|
535
|
+
if (!this.currentHeaderHtml)
|
|
536
|
+
return;
|
|
537
|
+
const next = RichText.setFieldValuesInHtml(this.currentHeaderHtml, values, 'print-header', this.resolvedFeatures);
|
|
538
|
+
if (next === this.currentHeaderHtml)
|
|
539
|
+
return;
|
|
540
|
+
this.currentHeaderHtml = next;
|
|
541
|
+
this.headerDoc = RichText.readPrintHtml(next, 'print-header', this.resolvedFeatures);
|
|
542
|
+
if (!this.headerEditing) {
|
|
543
|
+
this.refreshPagination(); // las bandas de salto clonan el encabezado
|
|
544
|
+
forceUpdate(this);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
async insertField(name, opts) {
|
|
548
|
+
var _a;
|
|
549
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.chain().focus().insertField(name, opts).run();
|
|
550
|
+
}
|
|
551
|
+
async insertSignatureSlot() {
|
|
552
|
+
var _a;
|
|
553
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.chain().focus().insertSignatureSlot().run();
|
|
554
|
+
}
|
|
555
|
+
async focusEditor() {
|
|
556
|
+
var _a;
|
|
557
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.focus();
|
|
558
|
+
}
|
|
559
|
+
async getEditorInstance() {
|
|
560
|
+
var _a;
|
|
561
|
+
return (_a = this.editor) !== null && _a !== void 0 ? _a : null;
|
|
562
|
+
}
|
|
563
|
+
/* ── internos ── */
|
|
564
|
+
/** Listeners y atributos del editor del cuerpo. */
|
|
565
|
+
wireEditor(editor) {
|
|
566
|
+
const dom = editor.view.dom;
|
|
567
|
+
dom.classList.add('tiptap');
|
|
568
|
+
dom.setAttribute('aria-label', this.label || this.s.documentEditor);
|
|
569
|
+
dom.setAttribute('aria-multiline', 'true');
|
|
570
|
+
editor.on('transaction', this.onTransaction);
|
|
571
|
+
editor.on('transaction', this.updateImageBar);
|
|
572
|
+
editor.on('blur', this.onEditorBlur);
|
|
573
|
+
// `load` no burbujea: se escucha en captura.
|
|
574
|
+
dom.addEventListener('load', this.onBodyImageLoad, true);
|
|
575
|
+
}
|
|
576
|
+
imageModeLabel(mode) {
|
|
577
|
+
const s = this.s;
|
|
578
|
+
return { inline: s.imageLayoutInline, 'wrap-left': s.imageLayoutWrapLeft, 'wrap-right': s.imageLayoutWrapRight, break: s.imageLayoutBreak }[mode];
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Sin `.focus()`: con el mouse el mousedown de la barra ya no le quita el foco al
|
|
582
|
+
* editor, y con el teclado el foco se queda en el botón (se puede seguir en la barra).
|
|
583
|
+
* H7: el comando re-selecciona el nodo, así la barra sigue tras el cambio.
|
|
584
|
+
*/
|
|
585
|
+
setImageMode(mode) {
|
|
586
|
+
var _a;
|
|
587
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.setImageLayoutMode(mode);
|
|
588
|
+
this.updateImageBar();
|
|
589
|
+
}
|
|
590
|
+
/** Imágenes que entran por una transacción del usuario sin `width` (barra, pegar, soltar, subida). */
|
|
591
|
+
trackInsertedImages(transaction) {
|
|
592
|
+
var _a, _b, _c;
|
|
593
|
+
// Deshacer/rehacer REPONE una imagen que ya existía (p. ej. una de V1 sin ancho): no es
|
|
594
|
+
// una inserción, y estamparle ancho cambiaría el HTML de V1 y vaciaría la pila de rehacer.
|
|
595
|
+
// `history$` = PluginKey('history') de prosemirror-history (el undoRedo de StarterKit).
|
|
596
|
+
if (transaction.getMeta('history$'))
|
|
597
|
+
return;
|
|
598
|
+
const found = [];
|
|
599
|
+
for (const step of transaction.steps) {
|
|
600
|
+
(_c = (_b = (_a = step.slice) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.descendants) === null || _c === void 0 ? void 0 : _c.call(_b, (n) => {
|
|
601
|
+
if (n.type.name === 'image' && !n.attrs.width && n.attrs.src)
|
|
602
|
+
found.push(n.attrs.src);
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
if (!found.length)
|
|
606
|
+
return;
|
|
607
|
+
// Un cambio de modo (setNodeMarkup) reescribe la MISMA imagen: la que ya estaba no es nueva.
|
|
608
|
+
const before = new Set();
|
|
609
|
+
transaction.before.descendants((n) => {
|
|
610
|
+
if (n.type.name === 'image' && !n.attrs.width)
|
|
611
|
+
before.add(n.attrs.src);
|
|
612
|
+
});
|
|
613
|
+
found.forEach((src) => {
|
|
614
|
+
if (!before.has(src))
|
|
615
|
+
this.pendingImageSrcs.add(src);
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
/** JSON de ProseMirror como string, o HTML de impresión (V1 incluido) por el lector tolerante. */
|
|
619
|
+
parseBody(v) {
|
|
620
|
+
const t = v.trim();
|
|
621
|
+
if (t.startsWith('{')) {
|
|
622
|
+
try {
|
|
623
|
+
return JSON.parse(t);
|
|
624
|
+
}
|
|
625
|
+
catch (_a) {
|
|
626
|
+
/* no era JSON: se lee como HTML */
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
return RichText.readPrintHtml(v, 'print', this.resolvedFeatures);
|
|
630
|
+
}
|
|
631
|
+
applyBody(v) {
|
|
632
|
+
if (!this.editor)
|
|
633
|
+
return;
|
|
634
|
+
// Otro cuerpo: lo pendiente del anterior ya no es «insertado» (una V1 con la misma src no se toca).
|
|
635
|
+
this.pendingImageSrcs.clear();
|
|
636
|
+
this.applyingExternal = true;
|
|
637
|
+
try {
|
|
638
|
+
if (!v)
|
|
639
|
+
this.editor.commands.clearContent(false);
|
|
640
|
+
else
|
|
641
|
+
this.editor.commands.setContent(this.parseBody(v), { emitUpdate: false });
|
|
642
|
+
}
|
|
643
|
+
finally {
|
|
644
|
+
this.applyingExternal = false;
|
|
645
|
+
this.lastAppliedValue = v;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
emitPendingChange() {
|
|
649
|
+
if (!this.editor)
|
|
650
|
+
return;
|
|
651
|
+
this.emitFieldsIfChanged();
|
|
652
|
+
if (this.userDirty) {
|
|
653
|
+
this.userDirty = false;
|
|
654
|
+
this.coChange.emit();
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
emitFieldsIfChanged() {
|
|
658
|
+
const fields = this.collectAllFields();
|
|
659
|
+
const key = JSON.stringify(fields);
|
|
660
|
+
if (key === this.lastFieldsKey)
|
|
661
|
+
return;
|
|
662
|
+
this.lastFieldsKey = key;
|
|
663
|
+
this.coFieldsChange.emit(fields);
|
|
664
|
+
}
|
|
665
|
+
syncToolbar() {
|
|
666
|
+
syncToolbarEditor(this.toolbarEl, this.activeEditor, this.imageUpload);
|
|
667
|
+
}
|
|
668
|
+
syncHeaderFromProps() {
|
|
669
|
+
this.currentHeaderHtml = this.headerHtml || '';
|
|
670
|
+
this.currentShowPageNumber = toBoolIntent(this.showPageNumber);
|
|
671
|
+
this.headerDoc = this.currentHeaderHtml ? RichText.readPrintHtml(this.currentHeaderHtml, 'print-header', this.resolvedFeatures) : null;
|
|
672
|
+
}
|
|
673
|
+
mountHeaderEditor() {
|
|
674
|
+
var _a, _b;
|
|
675
|
+
const editor = RichText.createEditor({
|
|
676
|
+
preset: 'print-header',
|
|
677
|
+
element: this.headerMountEl,
|
|
678
|
+
content: this.currentHeaderHtml ? RichText.readPrintHtml(this.currentHeaderHtml, 'print-header', this.resolvedFeatures) : null,
|
|
679
|
+
editable: true,
|
|
680
|
+
features: { fields: this.resolvedFeatures.fields },
|
|
681
|
+
labels: { fieldName: this.s.fieldNamePlaceholder },
|
|
682
|
+
imageUpload: this.imageUpload,
|
|
683
|
+
});
|
|
684
|
+
this.headerEditor = editor;
|
|
685
|
+
const dom = editor.view.dom;
|
|
686
|
+
dom.classList.add('tiptap');
|
|
687
|
+
dom.setAttribute('aria-label', this.s.documentHeader);
|
|
688
|
+
editor.on('transaction', this.onHeaderTransaction);
|
|
689
|
+
// `load` no burbujea: se escucha en captura.
|
|
690
|
+
dom.addEventListener('load', this.onHeaderImageLoad, true);
|
|
691
|
+
document.addEventListener('mousedown', this.onDocumentPointer, true);
|
|
692
|
+
(_a = this.headerBandEl) === null || _a === void 0 ? void 0 : _a.addEventListener('keydown', this.onHeaderKeydown, true);
|
|
693
|
+
// Con la banda abierta la barra edita el encabezado: su Esc también cancela la banda.
|
|
694
|
+
(_b = this.toolbarEl) === null || _b === void 0 ? void 0 : _b.addEventListener('keydown', this.onHeaderKeydown, true);
|
|
695
|
+
editor.commands.focus('end');
|
|
696
|
+
this.syncToolbar();
|
|
697
|
+
}
|
|
698
|
+
/** `resync`: devolverle la barra al cuerpo (no al desconectar: la barra ya se soltó). */
|
|
699
|
+
teardownHeaderEditor(resync = true) {
|
|
700
|
+
var _a, _b;
|
|
701
|
+
document.removeEventListener('mousedown', this.onDocumentPointer, true);
|
|
702
|
+
(_a = this.headerBandEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('keydown', this.onHeaderKeydown, true);
|
|
703
|
+
(_b = this.toolbarEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('keydown', this.onHeaderKeydown, true);
|
|
704
|
+
const ed = this.headerEditor;
|
|
705
|
+
this.headerEditor = undefined;
|
|
706
|
+
// H9: la barra suelta el editor del encabezado ANTES de que se destruya.
|
|
707
|
+
if (resync)
|
|
708
|
+
this.syncToolbar();
|
|
709
|
+
else if (this.toolbarEl && ed && this.toolbarEl.editor === ed)
|
|
710
|
+
this.toolbarEl.editor = undefined;
|
|
711
|
+
if (ed) {
|
|
712
|
+
ed.off('transaction', this.onHeaderTransaction);
|
|
713
|
+
ed.view.dom.removeEventListener('load', this.onHeaderImageLoad, true);
|
|
714
|
+
ed.destroy();
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
/** ¿El foco está en la banda (editor, interruptor, ✓) o se perdió al `<body>`? */
|
|
718
|
+
focusIsInBandOrLost() {
|
|
719
|
+
const active = document.activeElement;
|
|
720
|
+
return !active || active === document.body || !!(this.headerBandEl && this.headerBandEl.contains(active));
|
|
721
|
+
}
|
|
722
|
+
/** Tamaño, márgenes o banda cambiaron: la extensión redibuja bandas y vuelve a medir. */
|
|
723
|
+
refreshPagination() {
|
|
724
|
+
var _a;
|
|
725
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.setPaginationOptions({
|
|
726
|
+
page: this.pageSizePx,
|
|
727
|
+
margins: this.marginsPx,
|
|
728
|
+
header: { height: this.hasHeader ? this.headerHeight : 0 },
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
applyPageStyles() {
|
|
732
|
+
if (this.styleEl)
|
|
733
|
+
this.styleEl.textContent = scopePageStyles(this.pageStyles, this.pageScope);
|
|
734
|
+
}
|
|
735
|
+
/** Cabecera de la hoja `page` dentro de una banda de salto (DOM imperativo: la pinta un widget). */
|
|
736
|
+
buildHeaderClone(page, count) {
|
|
737
|
+
if (!this.currentHeaderHtml)
|
|
738
|
+
return null;
|
|
739
|
+
const el = document.createElement('div');
|
|
740
|
+
el.className = 'co-doc-editor__header-static';
|
|
741
|
+
el.style.height = `${this.headerHeight}px`;
|
|
742
|
+
const html = document.createElement('div');
|
|
743
|
+
html.className = 'co-doc-editor__header-html';
|
|
744
|
+
html.innerHTML = this.sanitizedHeaderHtml;
|
|
745
|
+
el.appendChild(html);
|
|
746
|
+
if (this.currentShowPageNumber) {
|
|
747
|
+
const n = document.createElement('span');
|
|
748
|
+
n.className = 'co-doc-editor__page-number';
|
|
749
|
+
n.textContent = `${this.s.page} ${page} / ${count}`;
|
|
750
|
+
el.appendChild(n);
|
|
751
|
+
}
|
|
752
|
+
return el;
|
|
753
|
+
}
|
|
754
|
+
updateScale() {
|
|
755
|
+
var _a, _b, _c, _d;
|
|
756
|
+
if (this.zoomMode !== 'custom') {
|
|
757
|
+
const next = this.zoomMode === 'actual' ? 1 : fitScale(((_b = (_a = this.canvasEl) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : 0) - ZOOM_GUTTER_PX, this.pageSizePx.width);
|
|
758
|
+
if (next !== this.scale)
|
|
759
|
+
this.scale = next;
|
|
760
|
+
}
|
|
761
|
+
const h = (_d = (_c = this.stageEl) === null || _c === void 0 ? void 0 : _c.offsetHeight) !== null && _d !== void 0 ? _d : 0;
|
|
762
|
+
if (h !== this.stageHeight)
|
|
763
|
+
this.stageHeight = h;
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* Zoom libre anclado al cursor: guarda el punto del PAPEL bajo el puntero (con la escala que el
|
|
767
|
+
* DOM muestra ahora) y, tras el render, corrige el scroll midiendo dónde quedó. Varios eventos
|
|
768
|
+
* antes de un render reusan el mismo punto: la hoja todavía no se movió.
|
|
769
|
+
*/
|
|
770
|
+
zoomTo(next, clientX, clientY) {
|
|
771
|
+
if (!this.canvasEl || !this.stageEl || next === this.scale)
|
|
772
|
+
return;
|
|
773
|
+
if (!this.pendingAnchor) {
|
|
774
|
+
const r = this.stageEl.getBoundingClientRect();
|
|
775
|
+
this.pendingAnchor = {
|
|
776
|
+
px: paperPoint(clientX, r.left, this.renderedScale),
|
|
777
|
+
py: paperPoint(clientY, r.top, this.renderedScale),
|
|
778
|
+
cx: clientX,
|
|
779
|
+
cy: clientY,
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
else {
|
|
783
|
+
this.pendingAnchor.cx = clientX;
|
|
784
|
+
this.pendingAnchor.cy = clientY;
|
|
785
|
+
}
|
|
786
|
+
this.zoomMode = 'custom';
|
|
787
|
+
this.scale = next;
|
|
788
|
+
}
|
|
789
|
+
applyPendingAnchor() {
|
|
790
|
+
const a = this.pendingAnchor;
|
|
791
|
+
const canvas = this.canvasEl;
|
|
792
|
+
this.renderedScale = this.scale;
|
|
793
|
+
if (!a || !canvas || !this.stageEl)
|
|
794
|
+
return;
|
|
795
|
+
this.pendingAnchor = undefined;
|
|
796
|
+
const r = this.stageEl.getBoundingClientRect();
|
|
797
|
+
canvas.scrollLeft += anchorCorrection(r.left, a.px, this.scale, a.cx);
|
|
798
|
+
canvas.scrollTop += anchorCorrection(r.top, a.py, this.scale, a.cy);
|
|
799
|
+
}
|
|
800
|
+
setZoom(mode) {
|
|
801
|
+
this.zoomMode = mode;
|
|
802
|
+
this.updateScale();
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Banda de la primera hoja. Siempre montada (oculta con `hidden`); doble clic la
|
|
806
|
+
* vuelve un editor `print-header` con el interruptor de número de página.
|
|
807
|
+
*/
|
|
808
|
+
renderHeaderBand() {
|
|
809
|
+
const s = this.s;
|
|
810
|
+
return (h("div", { key: "header-band", class: { 'co-doc-editor__header-band': true, 'co-doc-editor__header-band--editing': this.headerEditing }, part: "header-band", hidden: !this.hasHeader, ref: (el) => (this.headerBandEl = el), onDblClick: () => this.startHeaderEdit() }, this.headerEditing ? (h("div", { key: "header-editing", class: "co-doc-editor__header-editing" }, h("div", { class: "co-doc-editor__header-editor", ref: (el) => (this.headerMountEl = el) }), h("div", { class: "co-doc-editor__header-tools" }, h("co-switch", { checked: this.draftShowPageNumber, label: s.pageNumber, disabled: false, required: false, status: "default", onCoChange: (e) => {
|
|
811
|
+
e.stopPropagation(); // su coChange burbujea: no es el coChange del documento
|
|
812
|
+
this.draftShowPageNumber = !!e.detail;
|
|
813
|
+
} }), h("co-tooltip", { content: s.confirmHeader }, h("co-icon-button", { icon: "check", variant: "ghost", size: "xs", boxSize: HEADER_TOOL_BOX_PX, iconSize: HEADER_TOOL_ICON_PX, label: s.confirmHeader, onClick: () => this.commitHeader(true) }))))) : (h("div", { key: "header-static", class: "co-doc-editor__header-static" }, h("div", { class: "co-doc-editor__header-html", innerHTML: this.sanitizedHeaderHtml }), this.currentShowPageNumber && h("span", { class: "co-doc-editor__page-number" }, `${s.page} 1 / ${this.pageCount}`)))));
|
|
814
|
+
}
|
|
815
|
+
/** Controles flotantes sobre la hoja: la barra de diseño de la imagen seleccionada. */
|
|
816
|
+
renderOverlays() {
|
|
817
|
+
const bar = this.imageBar;
|
|
818
|
+
if (!bar || this.readonly || this.headerEditing)
|
|
819
|
+
return null;
|
|
820
|
+
return (h("div", { key: "image-bar", class: "co-doc-editor__image-bar", role: "toolbar", "aria-label": this.s.imageLayoutLabel, style: { top: `${bar.top}px`, left: `${bar.left}px` }, onMouseDown: (e) => e.preventDefault() }, RichText.IMAGE_LAYOUT_MODES.map((mode) => {
|
|
821
|
+
const label = this.imageModeLabel(mode);
|
|
822
|
+
const active = bar.mode === mode;
|
|
823
|
+
// <button> nativo (no co-icon-button): necesita aria-pressed, que ningún co-* reenvía.
|
|
824
|
+
return (h("co-tooltip", { key: mode, content: label }, h("button", { type: "button", class: { 'co-doc-editor__image-mode': true, 'co-doc-editor__image-mode--active': active }, "data-mode": mode, "aria-label": label, "aria-pressed": String(active), onClick: () => this.setImageMode(mode) }, h("co-icon", { name: IMAGE_MODE_ICONS[mode], size: IMAGE_MODE_ICON_PX, "aria-hidden": "true" }))));
|
|
825
|
+
})));
|
|
826
|
+
}
|
|
827
|
+
render() {
|
|
828
|
+
const s = this.s;
|
|
829
|
+
const page = this.pageSizePx;
|
|
830
|
+
const m = this.marginsPx;
|
|
831
|
+
const headerH = this.hasHeader ? this.headerHeight : 0;
|
|
832
|
+
const sheetVars = {
|
|
833
|
+
'--co-doc-page-w': `${page.width}px`,
|
|
834
|
+
'--co-doc-page-h': `${page.height}px`,
|
|
835
|
+
'--co-doc-margin-top': `${m.top}px`,
|
|
836
|
+
'--co-doc-margin-right': `${m.right}px`,
|
|
837
|
+
'--co-doc-margin-bottom': `${m.bottom}px`,
|
|
838
|
+
'--co-doc-margin-left': `${m.left}px`,
|
|
839
|
+
'--co-doc-header-h': `${headerH}px`,
|
|
840
|
+
'--co-doc-pages': String(this.pageCount),
|
|
841
|
+
'--co-doc-gap': `${RichText.PAGE_GAP_PX}px`,
|
|
842
|
+
};
|
|
843
|
+
const frameStyle = {
|
|
844
|
+
width: `${page.width * this.scale}px`,
|
|
845
|
+
height: this.stageHeight ? `${this.stageHeight * this.scale}px` : 'auto',
|
|
846
|
+
};
|
|
847
|
+
const zoomButton = (mode, label) => (h("button", { key: '3a2671fec095ced83d7c345f817770833a3ea2c3', type: "button", class: { 'co-doc-editor__zoom-btn': true, 'co-doc-editor__zoom-btn--active': this.zoomMode === mode }, "aria-pressed": String(this.zoomMode === mode), onClick: () => this.setZoom(mode) }, label));
|
|
848
|
+
return (h(Host, { key: '9f52b22003b54313cf5231804a476690778b22b6' }, h("div", { key: '88184e065b0f6184c3d06097c4243d1ebe7bc6c5', class: { 'co-doc-editor': true, 'co-doc-editor--readonly': this.readonly, 'co-doc-editor--loading': !this.ready }, part: "wrapper" }, h("div", { key: 'a1cf9f2eb7c23f8a4ca9b2f5098222f54d0168a8', class: "co-doc-editor__bar", part: "bar" }, !this.readonly && (h("co-rich-text-toolbar", { key: '889ae86009703a14bec362608e2e81770f963ff0', class: "co-doc-editor__toolbar", part: "toolbar", variant: "document", position: "top", disabled: false, locale: this.locale, attachmentsEnabled: false, documentHeaderEnabled: this.documentHeaderEnabled, extraItems: this.parsedExtraItems, onCoAction: this.handleToolbarAction, ref: (el) => (this.toolbarEl = el) })), h("div", { key: 'ed349a7dd902fa1569e9efb4e77611835bfa4236', class: "co-doc-editor__zoom", role: "group", "aria-label": s.zoom }, this.zoomMode === 'custom' && h("span", { key: 'a80bfe10a8fea8822084935ed8dbf6b7c0835b2c', class: "co-doc-editor__zoom-level" }, `${Math.round(this.scale * 100)} %`), zoomButton('fit', s.zoomFit), zoomButton('actual', s.zoomActual))), h("div", { key: 'dd283d50eb5712d34e5568727be504aa972a3b2a', class: "co-doc-editor__body" }, h("div", { key: '972162fb86e9b560bcf9d86e50a548cb8fea1d7b', class: "co-doc-editor__canvas", part: "canvas", ref: (el) => (this.canvasEl = el) }, h("div", { key: '409e773a4ba786ea867816a8715585dce000d618', class: "co-doc-editor__zoom-frame", style: frameStyle }, h("div", { key: '0ad67ae01d7aebb0f7f7fd1cacbddc2db3c7c7cc', class: "co-doc-editor__stage", style: { transform: `scale(${this.scale})` }, ref: (el) => (this.stageEl = el) }, h("div", { key: 'e8ca10170b25ff5bd4ebf9382205c1b84bae844a', class: "co-doc-editor__sheet", part: "sheet", "data-co-doc": this.instanceId, style: sheetVars }, h("style", { key: "page-styles", "data-co-doc-page-styles": "", ref: (el) => (this.styleEl = el) }), h("div", { key: "paper", class: "co-doc-editor__paper", "data-theme": "light" }, this.renderHeaderBand(), h("div", { key: "content", class: "co-doc-editor__content", ref: (el) => (this.contentEl = el) }), this.renderOverlays()))))), h("slot", { key: '9a3f5af0b445a56513ac894ac7a6ff67314e611d', name: "aside" })))));
|
|
849
|
+
}
|
|
850
|
+
static get is() { return "co-document-editor"; }
|
|
851
|
+
static get originalStyleUrls() {
|
|
852
|
+
return {
|
|
853
|
+
"$": ["co-document-editor.css"]
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
static get styleUrls() {
|
|
857
|
+
return {
|
|
858
|
+
"$": ["co-document-editor.css"]
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
static get properties() {
|
|
862
|
+
return {
|
|
863
|
+
"value": {
|
|
864
|
+
"type": "string",
|
|
865
|
+
"mutable": false,
|
|
866
|
+
"complexType": {
|
|
867
|
+
"original": "string | null",
|
|
868
|
+
"resolved": "null | string",
|
|
869
|
+
"references": {}
|
|
870
|
+
},
|
|
871
|
+
"required": false,
|
|
872
|
+
"optional": false,
|
|
873
|
+
"docs": {
|
|
874
|
+
"tags": [],
|
|
875
|
+
"text": "Cuerpo: HTML de impresi\u00F3n (tolera el que guard\u00F3 V1) o JSON de ProseMirror como string."
|
|
876
|
+
},
|
|
877
|
+
"getter": false,
|
|
878
|
+
"setter": false,
|
|
879
|
+
"reflect": false,
|
|
880
|
+
"attribute": "value",
|
|
881
|
+
"defaultValue": "null"
|
|
882
|
+
},
|
|
883
|
+
"headerHtml": {
|
|
884
|
+
"type": "string",
|
|
885
|
+
"mutable": false,
|
|
886
|
+
"complexType": {
|
|
887
|
+
"original": "string",
|
|
888
|
+
"resolved": "string",
|
|
889
|
+
"references": {}
|
|
890
|
+
},
|
|
891
|
+
"required": false,
|
|
892
|
+
"optional": false,
|
|
893
|
+
"docs": {
|
|
894
|
+
"tags": [],
|
|
895
|
+
"text": "HTML del encabezado (banda superior de cada hoja). Vac\u00EDo = sin encabezado."
|
|
896
|
+
},
|
|
897
|
+
"getter": false,
|
|
898
|
+
"setter": false,
|
|
899
|
+
"reflect": false,
|
|
900
|
+
"attribute": "header-html",
|
|
901
|
+
"defaultValue": "''"
|
|
902
|
+
},
|
|
903
|
+
"showPageNumber": {
|
|
904
|
+
"type": "any",
|
|
905
|
+
"mutable": false,
|
|
906
|
+
"complexType": {
|
|
907
|
+
"original": "boolean | string",
|
|
908
|
+
"resolved": "boolean | string",
|
|
909
|
+
"references": {}
|
|
910
|
+
},
|
|
911
|
+
"required": false,
|
|
912
|
+
"optional": false,
|
|
913
|
+
"docs": {
|
|
914
|
+
"tags": [],
|
|
915
|
+
"text": "N\u00FAmero de p\u00E1gina en la banda. Se lee como intenci\u00F3n: `true` o `'true'`."
|
|
916
|
+
},
|
|
917
|
+
"getter": false,
|
|
918
|
+
"setter": false,
|
|
919
|
+
"reflect": false,
|
|
920
|
+
"attribute": "show-page-number",
|
|
921
|
+
"defaultValue": "false"
|
|
922
|
+
},
|
|
923
|
+
"pageSize": {
|
|
924
|
+
"type": "string",
|
|
925
|
+
"mutable": false,
|
|
926
|
+
"complexType": {
|
|
927
|
+
"original": "string | DocumentPageSize",
|
|
928
|
+
"resolved": "string | { width: number; height: number; }",
|
|
929
|
+
"references": {
|
|
930
|
+
"DocumentPageSize": {
|
|
931
|
+
"location": "local",
|
|
932
|
+
"path": "/Users/agox/worktrees/cobalt-release-2026-09-24/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
933
|
+
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentPageSize"
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
},
|
|
937
|
+
"required": false,
|
|
938
|
+
"optional": false,
|
|
939
|
+
"docs": {
|
|
940
|
+
"tags": [],
|
|
941
|
+
"text": "`letter` | `a4` | `legal` o `{width, height}` en px a 96 dpi (objeto o JSON)."
|
|
942
|
+
},
|
|
943
|
+
"getter": false,
|
|
944
|
+
"setter": false,
|
|
945
|
+
"reflect": false,
|
|
946
|
+
"attribute": "page-size",
|
|
947
|
+
"defaultValue": "'letter'"
|
|
948
|
+
},
|
|
949
|
+
"margins": {
|
|
950
|
+
"type": "string",
|
|
951
|
+
"mutable": false,
|
|
952
|
+
"complexType": {
|
|
953
|
+
"original": "string | DocumentMargins",
|
|
954
|
+
"resolved": "DocumentMargins | string | undefined",
|
|
955
|
+
"references": {
|
|
956
|
+
"DocumentMargins": {
|
|
957
|
+
"location": "local",
|
|
958
|
+
"path": "/Users/agox/worktrees/cobalt-release-2026-09-24/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
959
|
+
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentMargins"
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
"required": false,
|
|
964
|
+
"optional": true,
|
|
965
|
+
"docs": {
|
|
966
|
+
"tags": [],
|
|
967
|
+
"text": "M\u00E1rgenes en px (objeto o JSON). Default 38 px por lado (10 mm)."
|
|
968
|
+
},
|
|
969
|
+
"getter": false,
|
|
970
|
+
"setter": false,
|
|
971
|
+
"reflect": false,
|
|
972
|
+
"attribute": "margins"
|
|
973
|
+
},
|
|
974
|
+
"headerHeight": {
|
|
975
|
+
"type": "number",
|
|
976
|
+
"mutable": false,
|
|
977
|
+
"complexType": {
|
|
978
|
+
"original": "number",
|
|
979
|
+
"resolved": "number",
|
|
980
|
+
"references": {}
|
|
981
|
+
},
|
|
982
|
+
"required": false,
|
|
983
|
+
"optional": false,
|
|
984
|
+
"docs": {
|
|
985
|
+
"tags": [],
|
|
986
|
+
"text": "Alto de la banda del encabezado en px (cuando hay encabezado)."
|
|
987
|
+
},
|
|
988
|
+
"getter": false,
|
|
989
|
+
"setter": false,
|
|
990
|
+
"reflect": false,
|
|
991
|
+
"attribute": "header-height",
|
|
992
|
+
"defaultValue": "45"
|
|
993
|
+
},
|
|
994
|
+
"pageStyles": {
|
|
995
|
+
"type": "string",
|
|
996
|
+
"mutable": false,
|
|
997
|
+
"complexType": {
|
|
998
|
+
"original": "string",
|
|
999
|
+
"resolved": "string",
|
|
1000
|
+
"references": {}
|
|
1001
|
+
},
|
|
1002
|
+
"required": false,
|
|
1003
|
+
"optional": false,
|
|
1004
|
+
"docs": {
|
|
1005
|
+
"tags": [],
|
|
1006
|
+
"text": "CSS de impresi\u00F3n del host; se acota a la hoja."
|
|
1007
|
+
},
|
|
1008
|
+
"getter": false,
|
|
1009
|
+
"setter": false,
|
|
1010
|
+
"reflect": false,
|
|
1011
|
+
"attribute": "page-styles",
|
|
1012
|
+
"defaultValue": "''"
|
|
1013
|
+
},
|
|
1014
|
+
"features": {
|
|
1015
|
+
"type": "string",
|
|
1016
|
+
"mutable": false,
|
|
1017
|
+
"complexType": {
|
|
1018
|
+
"original": "string | DocumentFeatures",
|
|
1019
|
+
"resolved": "DocumentFeatures | string | undefined",
|
|
1020
|
+
"references": {
|
|
1021
|
+
"DocumentFeatures": {
|
|
1022
|
+
"location": "local",
|
|
1023
|
+
"path": "/Users/agox/worktrees/cobalt-release-2026-09-24/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
1024
|
+
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentFeatures"
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
"required": false,
|
|
1029
|
+
"optional": true,
|
|
1030
|
+
"docs": {
|
|
1031
|
+
"tags": [],
|
|
1032
|
+
"text": "`{fields, signatureSlots}` (objeto o JSON)."
|
|
1033
|
+
},
|
|
1034
|
+
"getter": false,
|
|
1035
|
+
"setter": false,
|
|
1036
|
+
"reflect": false,
|
|
1037
|
+
"attribute": "features"
|
|
1038
|
+
},
|
|
1039
|
+
"imageUpload": {
|
|
1040
|
+
"type": "unknown",
|
|
1041
|
+
"mutable": false,
|
|
1042
|
+
"complexType": {
|
|
1043
|
+
"original": "ImageUploadHandler",
|
|
1044
|
+
"resolved": "((file: File) => Promise<string | ImageUploadResult>) | undefined",
|
|
1045
|
+
"references": {
|
|
1046
|
+
"ImageUploadHandler": {
|
|
1047
|
+
"location": "import",
|
|
1048
|
+
"path": "@prolibu-suite/cobalt-rich-text",
|
|
1049
|
+
"id": "../rich-text/dist/index.d.ts::ImageUploadHandler",
|
|
1050
|
+
"referenceLocation": "ImageUploadHandler"
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
"required": false,
|
|
1055
|
+
"optional": true,
|
|
1056
|
+
"docs": {
|
|
1057
|
+
"tags": [],
|
|
1058
|
+
"text": "`(file) => Promise<{src, fileId?}>` (propiedad JS)."
|
|
1059
|
+
},
|
|
1060
|
+
"getter": false,
|
|
1061
|
+
"setter": false
|
|
1062
|
+
},
|
|
1063
|
+
"readonly": {
|
|
1064
|
+
"type": "boolean",
|
|
1065
|
+
"mutable": false,
|
|
1066
|
+
"complexType": {
|
|
1067
|
+
"original": "boolean",
|
|
1068
|
+
"resolved": "boolean",
|
|
1069
|
+
"references": {}
|
|
1070
|
+
},
|
|
1071
|
+
"required": false,
|
|
1072
|
+
"optional": false,
|
|
1073
|
+
"docs": {
|
|
1074
|
+
"tags": [],
|
|
1075
|
+
"text": ""
|
|
1076
|
+
},
|
|
1077
|
+
"getter": false,
|
|
1078
|
+
"setter": false,
|
|
1079
|
+
"reflect": false,
|
|
1080
|
+
"attribute": "readonly",
|
|
1081
|
+
"defaultValue": "false"
|
|
1082
|
+
},
|
|
1083
|
+
"locale": {
|
|
1084
|
+
"type": "string",
|
|
1085
|
+
"mutable": false,
|
|
1086
|
+
"complexType": {
|
|
1087
|
+
"original": "string",
|
|
1088
|
+
"resolved": "string",
|
|
1089
|
+
"references": {}
|
|
1090
|
+
},
|
|
1091
|
+
"required": false,
|
|
1092
|
+
"optional": false,
|
|
1093
|
+
"docs": {
|
|
1094
|
+
"tags": [],
|
|
1095
|
+
"text": "BCP-47 para los textos de la UI ('es', 'en', 'pt-BR'\u2026)."
|
|
1096
|
+
},
|
|
1097
|
+
"getter": false,
|
|
1098
|
+
"setter": false,
|
|
1099
|
+
"reflect": false,
|
|
1100
|
+
"attribute": "locale",
|
|
1101
|
+
"defaultValue": "'en'"
|
|
1102
|
+
},
|
|
1103
|
+
"extraItems": {
|
|
1104
|
+
"type": "string",
|
|
1105
|
+
"mutable": false,
|
|
1106
|
+
"complexType": {
|
|
1107
|
+
"original": "string | ToolbarExtraItem[]",
|
|
1108
|
+
"resolved": "ToolbarExtraItem[] | string | undefined",
|
|
1109
|
+
"references": {
|
|
1110
|
+
"ToolbarExtraItem": {
|
|
1111
|
+
"location": "import",
|
|
1112
|
+
"path": "@prolibu-suite/cobalt-rich-text",
|
|
1113
|
+
"id": "../rich-text/dist/index.d.ts::ToolbarExtraItem",
|
|
1114
|
+
"referenceLocation": "ToolbarExtraItem"
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
"required": false,
|
|
1119
|
+
"optional": true,
|
|
1120
|
+
"docs": {
|
|
1121
|
+
"tags": [],
|
|
1122
|
+
"text": "Botones del host al final de la barra (objeto o JSON): `[{id, label, icon?}]`."
|
|
1123
|
+
},
|
|
1124
|
+
"getter": false,
|
|
1125
|
+
"setter": false,
|
|
1126
|
+
"reflect": false,
|
|
1127
|
+
"attribute": "extra-items"
|
|
1128
|
+
},
|
|
1129
|
+
"label": {
|
|
1130
|
+
"type": "string",
|
|
1131
|
+
"mutable": false,
|
|
1132
|
+
"complexType": {
|
|
1133
|
+
"original": "string",
|
|
1134
|
+
"resolved": "string | undefined",
|
|
1135
|
+
"references": {}
|
|
1136
|
+
},
|
|
1137
|
+
"required": false,
|
|
1138
|
+
"optional": true,
|
|
1139
|
+
"docs": {
|
|
1140
|
+
"tags": [],
|
|
1141
|
+
"text": "Nombre accesible del \u00E1rea de edici\u00F3n."
|
|
1142
|
+
},
|
|
1143
|
+
"getter": false,
|
|
1144
|
+
"setter": false,
|
|
1145
|
+
"reflect": false,
|
|
1146
|
+
"attribute": "label"
|
|
1147
|
+
}
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
static get states() {
|
|
1151
|
+
return {
|
|
1152
|
+
"ready": {},
|
|
1153
|
+
"pageCount": {},
|
|
1154
|
+
"zoomMode": {},
|
|
1155
|
+
"scale": {},
|
|
1156
|
+
"stageHeight": {},
|
|
1157
|
+
"headerEditing": {},
|
|
1158
|
+
"draftShowPageNumber": {},
|
|
1159
|
+
"imageBar": {}
|
|
1160
|
+
};
|
|
1161
|
+
}
|
|
1162
|
+
static get events() {
|
|
1163
|
+
return [{
|
|
1164
|
+
"method": "coChange",
|
|
1165
|
+
"name": "coChange",
|
|
1166
|
+
"bubbles": false,
|
|
1167
|
+
"cancelable": true,
|
|
1168
|
+
"composed": true,
|
|
1169
|
+
"docs": {
|
|
1170
|
+
"tags": [],
|
|
1171
|
+
"text": "Hubo un cambio del usuario en el cuerpo (sin HTML; como mucho cada 250 ms)."
|
|
1172
|
+
},
|
|
1173
|
+
"complexType": {
|
|
1174
|
+
"original": "void",
|
|
1175
|
+
"resolved": "void",
|
|
1176
|
+
"references": {}
|
|
1177
|
+
}
|
|
1178
|
+
}, {
|
|
1179
|
+
"method": "coFieldsChange",
|
|
1180
|
+
"name": "coFieldsChange",
|
|
1181
|
+
"bubbles": false,
|
|
1182
|
+
"cancelable": true,
|
|
1183
|
+
"composed": true,
|
|
1184
|
+
"docs": {
|
|
1185
|
+
"tags": [],
|
|
1186
|
+
"text": "Lista de campos (cuerpo + encabezado) cuando cambia."
|
|
1187
|
+
},
|
|
1188
|
+
"complexType": {
|
|
1189
|
+
"original": "FieldInfo[]",
|
|
1190
|
+
"resolved": "FieldDefinition[]",
|
|
1191
|
+
"references": {
|
|
1192
|
+
"FieldInfo": {
|
|
1193
|
+
"location": "import",
|
|
1194
|
+
"path": "@prolibu-suite/cobalt-rich-text",
|
|
1195
|
+
"id": "../rich-text/dist/index.d.ts::FieldInfo",
|
|
1196
|
+
"referenceLocation": "FieldInfo"
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
}, {
|
|
1201
|
+
"method": "coHeaderChange",
|
|
1202
|
+
"name": "coHeaderChange",
|
|
1203
|
+
"bubbles": false,
|
|
1204
|
+
"cancelable": true,
|
|
1205
|
+
"composed": true,
|
|
1206
|
+
"docs": {
|
|
1207
|
+
"tags": [],
|
|
1208
|
+
"text": "Encabezado confirmado."
|
|
1209
|
+
},
|
|
1210
|
+
"complexType": {
|
|
1211
|
+
"original": "DocumentHeaderDetail",
|
|
1212
|
+
"resolved": "DocumentHeaderDetail",
|
|
1213
|
+
"references": {
|
|
1214
|
+
"DocumentHeaderDetail": {
|
|
1215
|
+
"location": "local",
|
|
1216
|
+
"path": "/Users/agox/worktrees/cobalt-release-2026-09-24/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
1217
|
+
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentHeaderDetail"
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
}, {
|
|
1222
|
+
"method": "coPagesChange",
|
|
1223
|
+
"name": "coPagesChange",
|
|
1224
|
+
"bubbles": false,
|
|
1225
|
+
"cancelable": true,
|
|
1226
|
+
"composed": true,
|
|
1227
|
+
"docs": {
|
|
1228
|
+
"tags": [],
|
|
1229
|
+
"text": "Cantidad de p\u00E1ginas."
|
|
1230
|
+
},
|
|
1231
|
+
"complexType": {
|
|
1232
|
+
"original": "number",
|
|
1233
|
+
"resolved": "number",
|
|
1234
|
+
"references": {}
|
|
1235
|
+
}
|
|
1236
|
+
}, {
|
|
1237
|
+
"method": "coAction",
|
|
1238
|
+
"name": "coAction",
|
|
1239
|
+
"bubbles": false,
|
|
1240
|
+
"cancelable": true,
|
|
1241
|
+
"composed": true,
|
|
1242
|
+
"docs": {
|
|
1243
|
+
"tags": [],
|
|
1244
|
+
"text": "Clic en un bot\u00F3n del host (`extraItems`): `{ action: <id>, payload: { extra: true } }`."
|
|
1245
|
+
},
|
|
1246
|
+
"complexType": {
|
|
1247
|
+
"original": "DocumentActionDetail",
|
|
1248
|
+
"resolved": "DocumentActionDetail",
|
|
1249
|
+
"references": {
|
|
1250
|
+
"DocumentActionDetail": {
|
|
1251
|
+
"location": "local",
|
|
1252
|
+
"path": "/Users/agox/worktrees/cobalt-release-2026-09-24/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
1253
|
+
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentActionDetail"
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
}, {
|
|
1258
|
+
"method": "coReady",
|
|
1259
|
+
"name": "coReady",
|
|
1260
|
+
"bubbles": false,
|
|
1261
|
+
"cancelable": true,
|
|
1262
|
+
"composed": true,
|
|
1263
|
+
"docs": {
|
|
1264
|
+
"tags": [],
|
|
1265
|
+
"text": ""
|
|
1266
|
+
},
|
|
1267
|
+
"complexType": {
|
|
1268
|
+
"original": "void",
|
|
1269
|
+
"resolved": "void",
|
|
1270
|
+
"references": {}
|
|
1271
|
+
}
|
|
1272
|
+
}];
|
|
1273
|
+
}
|
|
1274
|
+
static get methods() {
|
|
1275
|
+
return {
|
|
1276
|
+
"getPrintHtml": {
|
|
1277
|
+
"complexType": {
|
|
1278
|
+
"signature": "() => Promise<string>",
|
|
1279
|
+
"parameters": [],
|
|
1280
|
+
"references": {
|
|
1281
|
+
"Promise": {
|
|
1282
|
+
"location": "global",
|
|
1283
|
+
"id": "global::Promise"
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1286
|
+
"return": "Promise<string>"
|
|
1287
|
+
},
|
|
1288
|
+
"docs": {
|
|
1289
|
+
"text": "Cuerpo en la forma can\u00F3nica de impresi\u00F3n (spec \u00A73.4).",
|
|
1290
|
+
"tags": []
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
"getHeaderHtml": {
|
|
1294
|
+
"complexType": {
|
|
1295
|
+
"signature": "() => Promise<string>",
|
|
1296
|
+
"parameters": [],
|
|
1297
|
+
"references": {
|
|
1298
|
+
"Promise": {
|
|
1299
|
+
"location": "global",
|
|
1300
|
+
"id": "global::Promise"
|
|
1301
|
+
}
|
|
1302
|
+
},
|
|
1303
|
+
"return": "Promise<string>"
|
|
1304
|
+
},
|
|
1305
|
+
"docs": {
|
|
1306
|
+
"text": "HTML del encabezado confirmado: el de la prop tal cual, o la forma can\u00F3nica\nsi pas\u00F3 por la banda o por `setFieldValues`. Lo que se est\u00E1 editando en la\nbanda sin confirmar NO cuenta.",
|
|
1307
|
+
"tags": []
|
|
1308
|
+
}
|
|
1309
|
+
},
|
|
1310
|
+
"getJSON": {
|
|
1311
|
+
"complexType": {
|
|
1312
|
+
"signature": "() => Promise<object | null>",
|
|
1313
|
+
"parameters": [],
|
|
1314
|
+
"references": {
|
|
1315
|
+
"Promise": {
|
|
1316
|
+
"location": "global",
|
|
1317
|
+
"id": "global::Promise"
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1320
|
+
"return": "Promise<object | null>"
|
|
1321
|
+
},
|
|
1322
|
+
"docs": {
|
|
1323
|
+
"text": "",
|
|
1324
|
+
"tags": []
|
|
1325
|
+
}
|
|
1326
|
+
},
|
|
1327
|
+
"flushChange": {
|
|
1328
|
+
"complexType": {
|
|
1329
|
+
"signature": "() => Promise<void>",
|
|
1330
|
+
"parameters": [],
|
|
1331
|
+
"references": {
|
|
1332
|
+
"Promise": {
|
|
1333
|
+
"location": "global",
|
|
1334
|
+
"id": "global::Promise"
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
1337
|
+
"return": "Promise<void>"
|
|
1338
|
+
},
|
|
1339
|
+
"docs": {
|
|
1340
|
+
"text": "Emite YA el `coChange` pendiente (no-op si no hay). El host lo llama antes de\ndecidir \u00ABcambios sin aplicar\u00BB (cerrar, navegar): `coChange` sale al final de\nla ventana de 250 ms y una edici\u00F3n reci\u00E9n tipeada todav\u00EDa no avis\u00F3.\nEl blur del editor y un Escape dentro del componente lo hacen solos.",
|
|
1341
|
+
"tags": []
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1344
|
+
"isEmpty": {
|
|
1345
|
+
"complexType": {
|
|
1346
|
+
"signature": "() => Promise<boolean>",
|
|
1347
|
+
"parameters": [],
|
|
1348
|
+
"references": {
|
|
1349
|
+
"Promise": {
|
|
1350
|
+
"location": "global",
|
|
1351
|
+
"id": "global::Promise"
|
|
1352
|
+
}
|
|
1353
|
+
},
|
|
1354
|
+
"return": "Promise<boolean>"
|
|
1355
|
+
},
|
|
1356
|
+
"docs": {
|
|
1357
|
+
"text": "\u00BFCuerpo vac\u00EDo? En print un documento vac\u00EDo NO serializa a `''`\n(`<p><br class=\"ProseMirror-trailingBreak\"></p>`): el host pregunta ac\u00E1.",
|
|
1358
|
+
"tags": []
|
|
1359
|
+
}
|
|
1360
|
+
},
|
|
1361
|
+
"setContent": {
|
|
1362
|
+
"complexType": {
|
|
1363
|
+
"signature": "(html: string) => Promise<void>",
|
|
1364
|
+
"parameters": [{
|
|
1365
|
+
"name": "html",
|
|
1366
|
+
"type": "string",
|
|
1367
|
+
"docs": ""
|
|
1368
|
+
}],
|
|
1369
|
+
"references": {
|
|
1370
|
+
"Promise": {
|
|
1371
|
+
"location": "global",
|
|
1372
|
+
"id": "global::Promise"
|
|
1373
|
+
}
|
|
1374
|
+
},
|
|
1375
|
+
"return": "Promise<void>"
|
|
1376
|
+
},
|
|
1377
|
+
"docs": {
|
|
1378
|
+
"text": "Reemplaza el cuerpo (HTML de impresi\u00F3n, V1 incluido). A diferencia del RTE, NO emite coChange.",
|
|
1379
|
+
"tags": []
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
"setFieldValues": {
|
|
1383
|
+
"complexType": {
|
|
1384
|
+
"signature": "(values: Record<string, string>) => Promise<void>",
|
|
1385
|
+
"parameters": [{
|
|
1386
|
+
"name": "values",
|
|
1387
|
+
"type": "{ [x: string]: string; }",
|
|
1388
|
+
"docs": ""
|
|
1389
|
+
}],
|
|
1390
|
+
"references": {
|
|
1391
|
+
"Promise": {
|
|
1392
|
+
"location": "global",
|
|
1393
|
+
"id": "global::Promise"
|
|
1394
|
+
},
|
|
1395
|
+
"Record": {
|
|
1396
|
+
"location": "global",
|
|
1397
|
+
"id": "global::Record"
|
|
1398
|
+
}
|
|
1399
|
+
},
|
|
1400
|
+
"return": "Promise<void>"
|
|
1401
|
+
},
|
|
1402
|
+
"docs": {
|
|
1403
|
+
"text": "Valores de los campos (cuerpo y encabezado) en UNA transacci\u00F3n por editor; no\ncuenta como edici\u00F3n del usuario ni emite coHeaderChange. Con la banda abierta\nse aplican tambi\u00E9n al confirmado, as\u00ED cancelar no los pierde.",
|
|
1404
|
+
"tags": []
|
|
1405
|
+
}
|
|
1406
|
+
},
|
|
1407
|
+
"insertField": {
|
|
1408
|
+
"complexType": {
|
|
1409
|
+
"signature": "(name: string, opts?: Partial<Omit<MergeFieldAttributes, \"name\">>) => Promise<void>",
|
|
1410
|
+
"parameters": [{
|
|
1411
|
+
"name": "name",
|
|
1412
|
+
"type": "string",
|
|
1413
|
+
"docs": ""
|
|
1414
|
+
}, {
|
|
1415
|
+
"name": "opts",
|
|
1416
|
+
"type": "Partial<Omit<MergeFieldAttributes, \"name\">> | undefined",
|
|
1417
|
+
"docs": ""
|
|
1418
|
+
}],
|
|
1419
|
+
"references": {
|
|
1420
|
+
"Promise": {
|
|
1421
|
+
"location": "global",
|
|
1422
|
+
"id": "global::Promise"
|
|
1423
|
+
},
|
|
1424
|
+
"Partial": {
|
|
1425
|
+
"location": "global",
|
|
1426
|
+
"id": "global::Partial"
|
|
1427
|
+
},
|
|
1428
|
+
"Omit": {
|
|
1429
|
+
"location": "global",
|
|
1430
|
+
"id": "global::Omit"
|
|
1431
|
+
},
|
|
1432
|
+
"MergeFieldAttributes": {
|
|
1433
|
+
"location": "import",
|
|
1434
|
+
"path": "@prolibu-suite/cobalt-rich-text",
|
|
1435
|
+
"id": "../rich-text/dist/index.d.ts::MergeFieldAttributes",
|
|
1436
|
+
"referenceLocation": "MergeFieldAttributes"
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1439
|
+
"return": "Promise<void>"
|
|
1440
|
+
},
|
|
1441
|
+
"docs": {
|
|
1442
|
+
"text": "",
|
|
1443
|
+
"tags": []
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
"insertSignatureSlot": {
|
|
1447
|
+
"complexType": {
|
|
1448
|
+
"signature": "() => Promise<void>",
|
|
1449
|
+
"parameters": [],
|
|
1450
|
+
"references": {
|
|
1451
|
+
"Promise": {
|
|
1452
|
+
"location": "global",
|
|
1453
|
+
"id": "global::Promise"
|
|
1454
|
+
}
|
|
1455
|
+
},
|
|
1456
|
+
"return": "Promise<void>"
|
|
1457
|
+
},
|
|
1458
|
+
"docs": {
|
|
1459
|
+
"text": "",
|
|
1460
|
+
"tags": []
|
|
1461
|
+
}
|
|
1462
|
+
},
|
|
1463
|
+
"focusEditor": {
|
|
1464
|
+
"complexType": {
|
|
1465
|
+
"signature": "() => Promise<void>",
|
|
1466
|
+
"parameters": [],
|
|
1467
|
+
"references": {
|
|
1468
|
+
"Promise": {
|
|
1469
|
+
"location": "global",
|
|
1470
|
+
"id": "global::Promise"
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
"return": "Promise<void>"
|
|
1474
|
+
},
|
|
1475
|
+
"docs": {
|
|
1476
|
+
"text": "",
|
|
1477
|
+
"tags": []
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
"getEditorInstance": {
|
|
1481
|
+
"complexType": {
|
|
1482
|
+
"signature": "() => Promise<Editor | null>",
|
|
1483
|
+
"parameters": [],
|
|
1484
|
+
"references": {
|
|
1485
|
+
"Promise": {
|
|
1486
|
+
"location": "global",
|
|
1487
|
+
"id": "global::Promise"
|
|
1488
|
+
},
|
|
1489
|
+
"Editor": {
|
|
1490
|
+
"location": "import",
|
|
1491
|
+
"path": "@prolibu-suite/cobalt-rich-text",
|
|
1492
|
+
"id": "../rich-text/dist/index.d.ts::Editor",
|
|
1493
|
+
"referenceLocation": "Editor"
|
|
1494
|
+
}
|
|
1495
|
+
},
|
|
1496
|
+
"return": "Promise<Editor | null>"
|
|
1497
|
+
},
|
|
1498
|
+
"docs": {
|
|
1499
|
+
"text": "",
|
|
1500
|
+
"tags": []
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
};
|
|
1504
|
+
}
|
|
1505
|
+
static get elementRef() { return "el"; }
|
|
1506
|
+
static get watchers() {
|
|
1507
|
+
return [{
|
|
1508
|
+
"propName": "value",
|
|
1509
|
+
"methodName": "onValueChange"
|
|
1510
|
+
}, {
|
|
1511
|
+
"propName": "readonly",
|
|
1512
|
+
"methodName": "onReadonlyChange"
|
|
1513
|
+
}, {
|
|
1514
|
+
"propName": "pageSize",
|
|
1515
|
+
"methodName": "onPageGeometryChange"
|
|
1516
|
+
}, {
|
|
1517
|
+
"propName": "margins",
|
|
1518
|
+
"methodName": "onPageGeometryChange"
|
|
1519
|
+
}, {
|
|
1520
|
+
"propName": "headerHeight",
|
|
1521
|
+
"methodName": "onPageGeometryChange"
|
|
1522
|
+
}, {
|
|
1523
|
+
"propName": "headerHtml",
|
|
1524
|
+
"methodName": "onHeaderPropsChange"
|
|
1525
|
+
}, {
|
|
1526
|
+
"propName": "showPageNumber",
|
|
1527
|
+
"methodName": "onHeaderPropsChange"
|
|
1528
|
+
}, {
|
|
1529
|
+
"propName": "pageStyles",
|
|
1530
|
+
"methodName": "onPageStylesChange"
|
|
1531
|
+
}, {
|
|
1532
|
+
"propName": "label",
|
|
1533
|
+
"methodName": "onLabelChange"
|
|
1534
|
+
}, {
|
|
1535
|
+
"propName": "locale",
|
|
1536
|
+
"methodName": "onLabelChange"
|
|
1537
|
+
}, {
|
|
1538
|
+
"propName": "locale",
|
|
1539
|
+
"methodName": "onLocaleChange"
|
|
1540
|
+
}];
|
|
1541
|
+
}
|
|
1542
|
+
}
|