@limetech/lime-elements 40.5.4 → 40.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/cjs/{adapt-color-contrast-Beo1IEl_.js → adapt-color-contrast-h6iwOfZd.js} +1 -1
- package/dist/cjs/{checkbox.template-BPk8WkQF.js → checkbox.template-CoNVC4Nf.js} +2 -2
- package/dist/cjs/{files-DI4jItxi.js → files-DpGigQ8k.js} +1 -1
- package/dist/cjs/{format-bytes-CpUKKU86.js → format-bytes-WTHVI718.js} +1 -4
- package/dist/cjs/{hotkeys-BtR8uxvl.js → hotkeys-D761KWnZ.js} +1 -0
- package/dist/cjs/{image-resize-CG2fitJT.js → image-resize-JlRLB97I.js} +1 -0
- package/dist/cjs/{image.template-DY7qwbuy.js → image.template-DlF-f23b.js} +1 -1
- package/dist/cjs/{index--B6-r0uo.js → index-BlsqxTB1.js} +1 -7
- package/dist/cjs/{index-ETPz91V5.js → index-zZvs6xK-.js} +9382 -9504
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{isArrayLikeObject-U2Ddbw4n.js → isArrayLikeObject-BhSkOTkw.js} +17 -0
- package/dist/cjs/{language-CaqPKPyW.js → language-v-MMS6ym.js} +1 -1
- package/dist/cjs/lime-elements.cjs.js +2 -2
- package/dist/cjs/limel-3d-hover-effect-glow.cjs.entry.js +2 -2
- package/dist/cjs/limel-action-bar_3.cjs.entry.js +20 -18
- package/dist/cjs/limel-ai-avatar.cjs.entry.js +5 -5
- package/dist/cjs/limel-badge.cjs.entry.js +3 -3
- package/dist/cjs/limel-banner.cjs.entry.js +2 -2
- package/dist/cjs/limel-breadcrumbs_6.cjs.entry.js +80 -80
- package/dist/cjs/limel-button-group.cjs.entry.js +3 -3
- package/dist/cjs/limel-button.cjs.entry.js +4 -4
- package/dist/cjs/limel-callout.cjs.entry.js +6 -6
- package/dist/cjs/limel-card.cjs.entry.js +8 -7
- package/dist/cjs/limel-chart.cjs.entry.js +5 -5
- package/dist/cjs/limel-checkbox.cjs.entry.js +12 -10
- package/dist/cjs/limel-chip-set.cjs.entry.js +30 -39
- package/dist/cjs/limel-chip_2.cjs.entry.js +9 -9
- package/dist/cjs/limel-circular-progress.cjs.entry.js +2 -2
- package/dist/cjs/limel-code-diff.cjs.entry.js +25 -28
- package/dist/cjs/limel-code-editor.cjs.entry.js +17 -12
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +8 -8
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +3 -3
- package/dist/cjs/limel-color-picker.cjs.entry.js +6 -5
- package/dist/cjs/limel-config.cjs.entry.js +3 -3
- package/dist/cjs/limel-date-picker.cjs.entry.js +8 -11
- package/dist/cjs/limel-dialog.cjs.entry.js +6 -9
- package/dist/cjs/limel-dock-button.cjs.entry.js +6 -11
- package/dist/cjs/limel-dock.cjs.entry.js +3 -3
- package/dist/cjs/limel-drag-handle.cjs.entry.js +6 -6
- package/dist/cjs/limel-dynamic-label.cjs.entry.js +1 -1
- package/dist/cjs/limel-email-viewer.cjs.entry.js +11 -17
- package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +11 -12
- package/dist/cjs/limel-file-viewer.cjs.entry.js +1099 -1147
- package/dist/cjs/limel-file.cjs.entry.js +17 -16
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +100 -94
- package/dist/cjs/limel-flex-container.cjs.entry.js +2 -2
- package/dist/cjs/limel-form.cjs.entry.js +67 -68
- package/dist/cjs/limel-grid.cjs.entry.js +2 -2
- package/dist/cjs/limel-header.cjs.entry.js +2 -2
- package/dist/cjs/limel-help-content.cjs.entry.js +2 -2
- package/dist/cjs/limel-help.cjs.entry.js +3 -3
- package/dist/cjs/limel-helper-line_3.cjs.entry.js +12 -14
- package/dist/cjs/limel-hotkey_4.cjs.entry.js +23 -23
- package/dist/cjs/limel-icon-button.cjs.entry.js +4 -4
- package/dist/cjs/limel-icon.cjs.entry.js +15 -13
- package/dist/cjs/limel-info-tile.cjs.entry.js +10 -10
- package/dist/cjs/limel-list-item.cjs.entry.js +10 -10
- package/dist/cjs/limel-markdown.cjs.entry.js +50 -23
- package/dist/cjs/limel-masonry-layout.cjs.entry.js +6 -5
- package/dist/cjs/limel-menu-item-meta.cjs.entry.js +3 -3
- package/dist/cjs/limel-pagination-jump.cjs.entry.js +17 -15
- package/dist/cjs/limel-pagination.cjs.entry.js +10 -9
- package/dist/cjs/limel-picker.cjs.entry.js +31 -29
- package/dist/cjs/limel-popover_2.cjs.entry.js +25 -21
- package/dist/cjs/limel-profile-picture.cjs.entry.js +12 -11
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/limel-progress-flow.cjs.entry.js +11 -10
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +476 -408
- package/dist/cjs/limel-radio-button-group.cjs.entry.js +2 -2
- package/dist/cjs/limel-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/limel-scroller.cjs.entry.js +180 -0
- package/dist/cjs/limel-select.cjs.entry.js +17 -17
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +18 -27
- package/dist/cjs/limel-snackbar.cjs.entry.js +5 -5
- package/dist/cjs/limel-split-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-switch.cjs.entry.js +3 -3
- package/dist/cjs/limel-tab-bar.cjs.entry.js +66 -97
- package/dist/cjs/limel-tab-panel.cjs.entry.js +12 -9
- package/dist/cjs/limel-table.cjs.entry.js +527 -106
- package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +15 -14
- package/dist/cjs/limel-text-editor.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{make-enter-clickable-NuTMC9MU.js → make-enter-clickable-BZHEWIJD.js} +19 -12
- package/dist/cjs/markdown-exporter-C-UW43FF.js +6210 -0
- package/dist/cjs/{markdown-parser-YH5HSSgF.js → markdown-parser-ssDij8_l.js} +603 -870
- package/dist/cjs/{moment-CqRdiK10.js → moment-Cfsz2WF1.js} +1062 -833
- package/dist/cjs/{random-string-BTzDB2ee.js → random-string-CFCtFh5l.js} +1 -0
- package/dist/cjs/{render-list-component-5ZKWpCnM.js → render-list-component-BtAliHQp.js} +3 -5
- package/dist/cjs/{sv-BSR4W58y.js → sv-Co78RX70.js} +31 -3
- package/dist/cjs/{translations-DFFpR6AZ.js → translations-CNTWud2a.js} +5 -8
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/3d-hover-effect-glow/3d-hover-effect-glow.js +1 -1
- package/dist/collection/components/action-bar/action-bar-item/action-bar-item.js +8 -7
- package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +6 -5
- package/dist/collection/components/ai-avatar/ai-avatar.js +1 -1
- package/dist/collection/components/badge/badge.js +2 -2
- package/dist/collection/components/banner/banner.js +1 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +2 -2
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/button-group/button-group.js +1 -1
- package/dist/collection/components/callout/callout.js +1 -1
- package/dist/collection/components/card/card.js +6 -5
- package/dist/collection/components/checkbox/checkbox.js +9 -7
- package/dist/collection/components/checkbox/checkbox.template.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip-set/chip-set-input-helpers.js +18 -21
- package/dist/collection/components/chip-set/chip-set.js +7 -13
- package/dist/collection/components/circular-progress/circular-progress.js +1 -1
- package/dist/collection/components/code-diff/code-diff.js +19 -22
- package/dist/collection/components/code-diff/diff-engine.js +2 -2
- package/dist/collection/components/code-editor/code-editor.js +8 -3
- package/dist/collection/components/collapsible-section/collapsible-section.js +1 -1
- package/dist/collection/components/color-picker/color-picker-palette.js +2 -2
- package/dist/collection/components/color-picker/color-picker.js +5 -4
- package/dist/collection/components/config/config.js +2 -2
- package/dist/collection/components/date-picker/date-picker.js +3 -6
- package/dist/collection/components/date-picker/flatpickr-adapter/deferred-destroy.js +4 -3
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +1 -1
- package/dist/collection/components/date-picker/pickers/month-picker.js +40 -36
- package/dist/collection/components/date-picker/pickers/quarter-picker.js +35 -30
- package/dist/collection/components/date-picker/pickers/year-picker.js +16 -20
- package/dist/collection/components/dialog/dialog.js +4 -7
- package/dist/collection/components/dock/dock-button/dock-button.js +4 -9
- package/dist/collection/components/dock/dock.js +2 -2
- package/dist/collection/components/drag-handle/drag-handle.js +1 -1
- package/dist/collection/components/email-viewer/email-loader.js +14 -10
- package/dist/collection/components/email-viewer/email-viewer.js +1 -1
- package/dist/collection/components/email-viewer/sanitize-email-html.js +1 -4
- package/dist/collection/components/email-viewer/split-email-address-list.js +4 -10
- package/dist/collection/components/file/file.js +11 -10
- package/dist/collection/components/file-dropzone/file-dropzone.js +1 -1
- package/dist/collection/components/file-input/file-input.js +7 -8
- package/dist/collection/components/file-viewer/file-viewer.js +12 -9
- package/dist/collection/components/flex-container/flex-container.js +1 -1
- package/dist/collection/components/form/fields/schema-field.js +1 -1
- package/dist/collection/components/form/form.js +2 -5
- package/dist/collection/components/form/form.test-schemas.js +8 -10
- package/dist/collection/components/form/templates/array-field.js +7 -9
- package/dist/collection/components/form/templates/common.js +19 -19
- package/dist/collection/components/form/templates/object-field.js +1 -1
- package/dist/collection/components/form/validation-display.js +2 -2
- package/dist/collection/components/form/validators/format.js +1 -0
- package/dist/collection/components/form/widgets/code-editor.js +6 -9
- package/dist/collection/components/form/widgets/date-picker.js +1 -3
- package/dist/collection/components/grid/grid.js +1 -1
- package/dist/collection/components/header/header.js +1 -1
- package/dist/collection/components/help/help-content.js +1 -1
- package/dist/collection/components/help/help.js +2 -2
- package/dist/collection/components/helper-line/helper-line.js +3 -3
- package/dist/collection/components/hotkey/hotkey.js +1 -1
- package/dist/collection/components/icon/icon.js +11 -9
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/info-tile/info-tile.js +9 -9
- package/dist/collection/components/input-field/input-field.js +11 -11
- package/dist/collection/components/list/list-renderer.js +5 -7
- package/dist/collection/components/list/list.js +2 -2
- package/dist/collection/components/list-item/list-item.js +2 -2
- package/dist/collection/components/list-item/menu-item-meta/menu-item-meta.js +1 -1
- package/dist/collection/components/markdown/hydrate-custom-elements.js +6 -5
- package/dist/collection/components/markdown/image-intersection-observer.js +9 -8
- package/dist/collection/components/markdown/image-markdown-plugin.js +9 -7
- package/dist/collection/components/markdown/link-markdown-plugin.js +11 -10
- package/dist/collection/components/markdown/markdown-exporter.js +186 -0
- package/dist/collection/components/markdown/markdown-parser.js +2 -3
- package/dist/collection/components/markdown/markdown.js +59 -6
- package/dist/collection/components/markdown/remove-empty-paragraphs-plugin.js +4 -5
- package/dist/collection/components/masonry-layout/masonry-layout.js +5 -4
- package/dist/collection/components/menu/menu.js +48 -46
- package/dist/collection/components/menu-list/menu-list-renderer.js +8 -8
- package/dist/collection/components/menu-list/menu-list.js +1 -1
- package/dist/collection/components/menu-surface/menu-surface.js +6 -8
- package/dist/collection/components/notched-outline/notched-outline.js +1 -1
- package/dist/collection/components/pagination/jump/pagination-jump.js +13 -11
- package/dist/collection/components/pagination/pagination.js +5 -4
- package/dist/collection/components/picker/picker.js +25 -23
- package/dist/collection/components/popover/popover.js +13 -10
- package/dist/collection/components/popover-surface/popover-surface.js +1 -1
- package/dist/collection/components/portal/contains.js +9 -8
- package/dist/collection/components/portal/portal.js +16 -16
- package/dist/collection/components/profile-picture/profile-picture.js +4 -3
- package/dist/collection/components/progress-flow/progress-flow.js +10 -9
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button.js +2 -2
- package/dist/collection/components/scroller/scroller.css +317 -0
- package/dist/collection/components/scroller/scroller.js +284 -0
- package/dist/collection/components/select/select.js +13 -11
- package/dist/collection/components/select/select.template.js +1 -3
- package/dist/collection/components/slider/get-percentage-class.js +9 -18
- package/dist/collection/components/slider/slider.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.css +7 -289
- package/dist/collection/components/tab-bar/tab-bar.js +59 -104
- package/dist/collection/components/tab-panel/tab-panel.js +11 -8
- package/dist/collection/components/table/columns.js +1 -3
- package/dist/collection/components/table/element-pool.js +1 -1
- package/dist/collection/components/table/table-selection.js +6 -5
- package/dist/collection/components/table/table.css +15 -17
- package/dist/collection/components/table/table.js +44 -39
- package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +11 -10
- package/dist/collection/components/text-editor/prosemirror-adapter/menu/menu-command-utils/list-utils.js +1 -1
- package/dist/collection/components/text-editor/prosemirror-adapter/menu/menu-commands.js +6 -10
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/image/inserter.js +37 -40
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/image/node.js +2 -1
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/link/link-plugin.js +21 -20
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/menu-state-tracking-plugin.js +6 -5
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/trigger/factory-helpers/detect-trigger-removal.js +15 -14
- package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +40 -34
- package/dist/collection/components/text-editor/text-editor.js +1 -1
- package/dist/collection/components/text-editor/utils/metadata-utils.js +1 -1
- package/dist/collection/components/text-editor/utils/plugin-factory.js +3 -3
- package/dist/collection/components/tooltip/tooltip-content.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/global/icon-cache/factory.js +2 -3
- package/dist/collection/global/icon-cache/in-memory-icon-cache.js +2 -0
- package/dist/collection/global/translations.js +1 -3
- package/dist/collection/translations/fr.js +3 -3
- package/dist/collection/util/adapt-color-contrast.js +1 -1
- package/dist/collection/util/files.js +1 -1
- package/dist/collection/util/format-bytes.js +1 -4
- package/dist/collection/util/hotkeys.js +1 -0
- package/dist/collection/util/image-resize.js +1 -0
- package/dist/collection/util/language.js +1 -1
- package/dist/collection/util/make-enter-clickable.js +19 -12
- package/dist/collection/util/random-string.js +1 -0
- package/dist/collection/util/render-list-component.js +2 -4
- package/dist/esm/{adapt-color-contrast-Dgcw_h7C.js → adapt-color-contrast-BQoih_t0.js} +1 -1
- package/dist/esm/{checkbox.template-Cx_3u92S.js → checkbox.template-IDyv2bgn.js} +2 -2
- package/dist/esm/{files-DnkFEKoB.js → files-CKnLqPDj.js} +1 -1
- package/dist/esm/{format-bytes-u_sd2HMb.js → format-bytes-24yUSW40.js} +1 -4
- package/dist/esm/{hotkeys-BxrRWYts.js → hotkeys-DjmlD0Mw.js} +1 -0
- package/dist/esm/{image-resize-BTSG--2-.js → image-resize-Dv2HOgWN.js} +1 -0
- package/dist/esm/{image.template-wqMwmOF-.js → image.template-BGjw97m_.js} +1 -1
- package/dist/esm/{index-CbciMfiU.js → index-BN64nlbO.js} +9369 -9505
- package/dist/esm/{index-Bnc9lzk2.js → index-BU9IJqli.js} +1 -7
- package/dist/esm/index.js +1 -1
- package/dist/esm/{isArrayLikeObject-CJB8HbtH.js → isArrayLikeObject-tmUOLOWr.js} +17 -1
- package/dist/esm/{language-C3hECvXE.js → language-ChagAaNf.js} +1 -1
- package/dist/esm/lime-elements.js +3 -3
- package/dist/esm/limel-3d-hover-effect-glow.entry.js +2 -2
- package/dist/esm/limel-action-bar_3.entry.js +20 -18
- package/dist/esm/limel-ai-avatar.entry.js +5 -5
- package/dist/esm/limel-badge.entry.js +3 -3
- package/dist/esm/limel-banner.entry.js +2 -2
- package/dist/esm/limel-breadcrumbs_6.entry.js +80 -80
- package/dist/esm/limel-button-group.entry.js +3 -3
- package/dist/esm/limel-button.entry.js +4 -4
- package/dist/esm/limel-callout.entry.js +6 -6
- package/dist/esm/limel-card.entry.js +8 -7
- package/dist/esm/limel-chart.entry.js +5 -5
- package/dist/esm/limel-checkbox.entry.js +12 -10
- package/dist/esm/limel-chip-set.entry.js +30 -39
- package/dist/esm/limel-chip_2.entry.js +9 -9
- package/dist/esm/limel-circular-progress.entry.js +2 -2
- package/dist/esm/limel-code-diff.entry.js +25 -28
- package/dist/esm/limel-code-editor.entry.js +17 -12
- package/dist/esm/limel-collapsible-section.entry.js +8 -8
- package/dist/esm/limel-color-picker-palette.entry.js +3 -3
- package/dist/esm/limel-color-picker.entry.js +6 -5
- package/dist/esm/limel-config.entry.js +3 -3
- package/dist/esm/limel-date-picker.entry.js +8 -11
- package/dist/esm/limel-dialog.entry.js +6 -9
- package/dist/esm/limel-dock-button.entry.js +6 -11
- package/dist/esm/limel-dock.entry.js +3 -3
- package/dist/esm/limel-drag-handle.entry.js +6 -6
- package/dist/esm/limel-dynamic-label.entry.js +1 -1
- package/dist/esm/limel-email-viewer.entry.js +11 -17
- package/dist/esm/limel-file-dropzone_2.entry.js +11 -12
- package/dist/esm/limel-file-viewer.entry.js +1099 -1147
- package/dist/esm/limel-file.entry.js +17 -16
- package/dist/esm/limel-flatpickr-adapter.entry.js +100 -94
- package/dist/esm/limel-flex-container.entry.js +2 -2
- package/dist/esm/limel-form.entry.js +66 -67
- package/dist/esm/limel-grid.entry.js +2 -2
- package/dist/esm/limel-header.entry.js +2 -2
- package/dist/esm/limel-help-content.entry.js +2 -2
- package/dist/esm/limel-help.entry.js +3 -3
- package/dist/esm/limel-helper-line_3.entry.js +12 -14
- package/dist/esm/limel-hotkey_4.entry.js +23 -23
- package/dist/esm/limel-icon-button.entry.js +4 -4
- package/dist/esm/limel-icon.entry.js +15 -13
- package/dist/esm/limel-info-tile.entry.js +10 -10
- package/dist/esm/limel-list-item.entry.js +10 -10
- package/dist/esm/limel-markdown.entry.js +50 -23
- package/dist/esm/limel-masonry-layout.entry.js +6 -5
- package/dist/esm/limel-menu-item-meta.entry.js +3 -3
- package/dist/esm/limel-pagination-jump.entry.js +17 -15
- package/dist/esm/limel-pagination.entry.js +10 -9
- package/dist/esm/limel-picker.entry.js +31 -29
- package/dist/esm/limel-popover_2.entry.js +25 -21
- package/dist/esm/limel-profile-picture.entry.js +12 -11
- package/dist/esm/limel-progress-flow-item.entry.js +1 -1
- package/dist/esm/limel-progress-flow.entry.js +11 -10
- package/dist/esm/limel-prosemirror-adapter.entry.js +476 -408
- package/dist/esm/limel-radio-button-group.entry.js +2 -2
- package/dist/esm/limel-radio-button.entry.js +3 -3
- package/dist/esm/limel-scroller.entry.js +178 -0
- package/dist/esm/limel-select.entry.js +17 -17
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js +18 -27
- package/dist/esm/limel-snackbar.entry.js +5 -5
- package/dist/esm/limel-split-button.entry.js +1 -1
- package/dist/esm/limel-switch.entry.js +3 -3
- package/dist/esm/limel-tab-bar.entry.js +66 -97
- package/dist/esm/limel-tab-panel.entry.js +12 -9
- package/dist/esm/limel-table.entry.js +527 -106
- package/dist/esm/limel-text-editor-link-menu.entry.js +15 -14
- package/dist/esm/limel-text-editor.entry.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{make-enter-clickable-BgTwPGeH.js → make-enter-clickable-CIf8aGSd.js} +19 -12
- package/dist/esm/markdown-exporter-DblYRMhY.js +6208 -0
- package/dist/esm/{markdown-parser-DrxxGLF5.js → markdown-parser-CAPDx7i8.js} +530 -813
- package/dist/esm/{moment-DQRNe8qq.js → moment-_DadZLWp.js} +1062 -833
- package/dist/esm/{random-string-JbKhhoXs.js → random-string-BrjD-ITe.js} +1 -0
- package/dist/esm/{render-list-component-cicbMp0l.js → render-list-component-J1IzNpbv.js} +3 -5
- package/dist/esm/{sv-CY-6-yEp.js → sv-DpsDSi7k.js} +31 -3
- package/dist/esm/{translations-DMtX4tTX.js → translations-Y4i8PVc9.js} +5 -8
- package/dist/lime-elements/index.esm.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-3916b316.entry.js → p-03cb609e.entry.js} +1 -1
- package/dist/lime-elements/p-05038bbb.entry.js +1 -0
- package/dist/lime-elements/{p-835149c4.entry.js → p-0d6925f4.entry.js} +1 -1
- package/dist/lime-elements/p-0e13ec91.entry.js +1 -0
- package/dist/lime-elements/p-159603cf.entry.js +159 -0
- package/dist/lime-elements/p-22fd1c87.entry.js +1 -0
- package/dist/lime-elements/p-24yUSW40.js +1 -0
- package/dist/lime-elements/{p-f717cd7a.entry.js → p-271662d4.entry.js} +1 -1
- package/dist/lime-elements/{p-c2a60508.entry.js → p-29c73bdf.entry.js} +1 -1
- package/dist/lime-elements/{p-deceda00.entry.js → p-2a902e77.entry.js} +1 -1
- package/dist/lime-elements/{p-d0cec424.entry.js → p-2b033dfa.entry.js} +1 -1
- package/dist/lime-elements/{p-acba5700.entry.js → p-2b2253d4.entry.js} +1 -1
- package/dist/lime-elements/p-2e33d2a4.entry.js +1 -0
- package/dist/lime-elements/p-31226737.entry.js +13 -0
- package/dist/lime-elements/{p-36ce4fbc.entry.js → p-31f314e6.entry.js} +1 -1
- package/dist/lime-elements/p-32a050a3.entry.js +1 -0
- package/dist/lime-elements/{p-3735111e.entry.js → p-3cfe0eaf.entry.js} +1 -1
- package/dist/lime-elements/{p-fbcd99a3.entry.js → p-3d3bdf45.entry.js} +1 -1
- package/dist/lime-elements/p-440a0b43.entry.js +1 -0
- package/dist/lime-elements/p-45c39fb4.entry.js +1 -0
- package/dist/lime-elements/p-45fde7a1.entry.js +1 -0
- package/dist/lime-elements/p-48afa6b7.entry.js +1 -0
- package/dist/lime-elements/{p-f04f7c8e.entry.js → p-4a88d365.entry.js} +1 -1
- package/dist/lime-elements/p-4b75e653.entry.js +1 -0
- package/dist/lime-elements/p-4dfd1962.entry.js +67 -0
- package/dist/lime-elements/{p-5698e493.entry.js → p-4ecbc9f4.entry.js} +1 -1
- package/dist/lime-elements/p-5386c629.entry.js +1 -0
- package/dist/lime-elements/{p-2e568c56.entry.js → p-54a9f48f.entry.js} +1 -1
- package/dist/lime-elements/{p-0fba64eb.entry.js → p-5df21b25.entry.js} +2 -2
- package/dist/lime-elements/{p-408c4dcb.entry.js → p-5f5c6e7d.entry.js} +1 -1
- package/dist/lime-elements/{p-052c3bc6.entry.js → p-681cb6de.entry.js} +1 -1
- package/dist/lime-elements/p-6adc7c88.entry.js +1 -0
- package/dist/lime-elements/{p-90df3e1b.entry.js → p-6d9961f7.entry.js} +1 -1
- package/dist/lime-elements/{p-74bd0c1a.entry.js → p-7b4351f6.entry.js} +1 -1
- package/dist/lime-elements/{p-3fd7e8aa.entry.js → p-7eab1341.entry.js} +1 -1
- package/dist/lime-elements/p-80153f45.entry.js +1 -0
- package/dist/lime-elements/{p-35fa1063.entry.js → p-85318636.entry.js} +1 -1
- package/dist/lime-elements/p-8988b7e1.entry.js +1 -0
- package/dist/lime-elements/{p-4ffbfc79.entry.js → p-8ac79ef5.entry.js} +1 -1
- package/dist/lime-elements/{p-4902fb3f.entry.js → p-9218fa6a.entry.js} +1 -1
- package/dist/lime-elements/p-92669910.entry.js +1 -0
- package/dist/lime-elements/{p-38b09f87.entry.js → p-9415411e.entry.js} +1 -1
- package/dist/lime-elements/p-95ccd9e7.entry.js +1 -0
- package/dist/lime-elements/{p-cb407bef.entry.js → p-9afa4721.entry.js} +1 -1
- package/dist/lime-elements/{p-54dcf46f.entry.js → p-9c8c2fb7.entry.js} +1 -1
- package/dist/lime-elements/{p-B8hoCfhT.js → p-B3YP9GOq.js} +1 -1
- package/dist/lime-elements/{p-Dgcw_h7C.js → p-BQoih_t0.js} +1 -1
- package/dist/lime-elements/{p-Bnc9lzk2.js → p-BU9IJqli.js} +1 -1
- package/dist/lime-elements/{p-CGVVDGcv.js → p-Bkvc4sus.js} +1 -1
- package/dist/lime-elements/p-Bvyt2bmV.js +1 -0
- package/dist/lime-elements/{p-BgTwPGeH.js → p-CIf8aGSd.js} +1 -1
- package/dist/lime-elements/{p-C3hECvXE.js → p-ChagAaNf.js} +1 -1
- package/dist/lime-elements/p-DTcfed02.js +3 -0
- package/dist/lime-elements/p-DWMfAkOE.js +1 -0
- package/dist/lime-elements/{p-BY85K-4J.js → p-DqQOawxc.js} +1 -1
- package/dist/lime-elements/p-I0PrvthC.js +7 -0
- package/dist/lime-elements/p-N9vxZMhe.js +1 -0
- package/dist/lime-elements/{p-DsDkl4Sy.js → p-ZDFVISfu.js} +3 -3
- package/dist/lime-elements/p-_UXAljNc.js +1 -0
- package/dist/lime-elements/p-a1c69e0c.entry.js +1 -0
- package/dist/lime-elements/{p-2daf0482.entry.js → p-a1d1470c.entry.js} +1 -1
- package/dist/lime-elements/{p-cef66e53.entry.js → p-a2e6f16e.entry.js} +1 -1
- package/dist/lime-elements/p-a550ba18.entry.js +1 -0
- package/dist/lime-elements/{p-d146feda.entry.js → p-a65eb58e.entry.js} +1 -1
- package/dist/lime-elements/p-ab8021b9.entry.js +1 -0
- package/dist/lime-elements/{p-03fb2603.entry.js → p-b22b52a1.entry.js} +1 -1
- package/dist/lime-elements/p-b6c0dc91.entry.js +23 -0
- package/dist/lime-elements/{p-c2a3ca7c.entry.js → p-b6d39581.entry.js} +1 -1
- package/dist/lime-elements/{p-8475a3b8.entry.js → p-c439b68b.entry.js} +1 -1
- package/dist/lime-elements/p-d19c7a3a.entry.js +1 -0
- package/dist/lime-elements/{p-7cbf50fc.entry.js → p-d1e5dd12.entry.js} +1 -1
- package/dist/lime-elements/p-de4719a6.entry.js +1 -0
- package/dist/lime-elements/{p-b81a2728.entry.js → p-e02e2c5f.entry.js} +1 -1
- package/dist/lime-elements/{p-d351b9ae.entry.js → p-e6a34047.entry.js} +1 -1
- package/dist/lime-elements/p-eF09GxA_.js +1 -0
- package/dist/lime-elements/{p-8fa9c9ea.entry.js → p-ee719744.entry.js} +1 -1
- package/dist/lime-elements/{p-d3bd4b80.entry.js → p-f04e2897.entry.js} +3 -3
- package/dist/lime-elements/p-f3cae1e7.entry.js +1 -0
- package/dist/lime-elements/{p-8115da75.entry.js → p-f4a0b1bc.entry.js} +1 -1
- package/dist/lime-elements/{p-4855dc9b.entry.js → p-f82f72e7.entry.js} +1 -1
- package/dist/lime-elements/{p-2d84ea04.entry.js → p-f97ec7a5.entry.js} +1 -1
- package/dist/lime-elements/{p-21109d9b.entry.js → p-fdd674fc.entry.js} +1 -1
- package/dist/lime-elements/{p-459eea13.entry.js → p-fdec09e9.entry.js} +1 -1
- package/dist/lime-elements/{p-2f57c3fa.entry.js → p-fe492ff3.entry.js} +1 -1
- package/dist/lime-elements/{p-65cded0e.entry.js → p-ff1a8b2e.entry.js} +1 -1
- package/dist/types/components/chip-set/chip-set-input-helpers.d.ts +1 -1
- package/dist/types/components/markdown/markdown-exporter.d.ts +15 -0
- package/dist/types/components/markdown/markdown.d.ts +19 -0
- package/dist/types/components/pagination/jump/pagination-jump.d.ts +1 -1
- package/dist/types/components/scroller/scroller.d.ts +67 -0
- package/dist/types/components/tab-bar/tab-bar.d.ts +13 -16
- package/dist/types/components.d.ts +138 -0
- package/dist/types/global/icon-cache/factory.d.ts +2 -2
- package/dist/types/global/shared-types/custom-element.types.d.ts +25 -0
- package/dist/types/global/translations.d.ts +2 -2
- package/package.json +18 -12
- package/dist/lime-elements/p-05afb316.entry.js +0 -1
- package/dist/lime-elements/p-10594468.entry.js +0 -1
- package/dist/lime-elements/p-19344984.entry.js +0 -13
- package/dist/lime-elements/p-1e93473a.entry.js +0 -1
- package/dist/lime-elements/p-26c5c6b9.entry.js +0 -1
- package/dist/lime-elements/p-452b9b01.entry.js +0 -1
- package/dist/lime-elements/p-4aae63bd.entry.js +0 -1
- package/dist/lime-elements/p-507cc8a1.entry.js +0 -159
- package/dist/lime-elements/p-531b6a64.entry.js +0 -1
- package/dist/lime-elements/p-54793c06.entry.js +0 -1
- package/dist/lime-elements/p-5d974afa.entry.js +0 -1
- package/dist/lime-elements/p-66b125f2.entry.js +0 -1
- package/dist/lime-elements/p-6d5b23ad.entry.js +0 -1
- package/dist/lime-elements/p-7e212fa7.entry.js +0 -1
- package/dist/lime-elements/p-82696d24.entry.js +0 -1
- package/dist/lime-elements/p-9ac39039.entry.js +0 -1
- package/dist/lime-elements/p-9b631363.entry.js +0 -1
- package/dist/lime-elements/p-C9xHOCE_.js +0 -7
- package/dist/lime-elements/p-DMNtoJ8I.js +0 -1
- package/dist/lime-elements/p-DQJU9gzh.js +0 -1
- package/dist/lime-elements/p-DpJgXIWf.js +0 -1
- package/dist/lime-elements/p-a1de9bbe.entry.js +0 -1
- package/dist/lime-elements/p-a71f6e87.entry.js +0 -67
- package/dist/lime-elements/p-bd7b3f8e.entry.js +0 -1
- package/dist/lime-elements/p-be8610ff.entry.js +0 -1
- package/dist/lime-elements/p-c72e5007.entry.js +0 -1
- package/dist/lime-elements/p-cafec335.entry.js +0 -1
- package/dist/lime-elements/p-d6dadc61.entry.js +0 -1
- package/dist/lime-elements/p-d93b7b9f.entry.js +0 -23
- package/dist/lime-elements/p-pk5KIdKH.js +0 -1
- package/dist/lime-elements/p-u_sd2HMb.js +0 -1
- package/dist/lime-elements/p-zo6O9LC9.js +0 -3
- /package/dist/lime-elements/{p-JbKhhoXs.js → p-BrjD-ITe.js} +0 -0
- /package/dist/lime-elements/{p-BxrRWYts.js → p-DjmlD0Mw.js} +0 -0
- /package/dist/lime-elements/{p-BTSG--2-.js → p-Dv2HOgWN.js} +0 -0
|
@@ -65,8 +65,8 @@ function collectAndPairChanges(lines, index, rows) {
|
|
|
65
65
|
const maxPairs = Math.max(removed.length, added.length);
|
|
66
66
|
for (let j = 0; j < maxPairs; j++) {
|
|
67
67
|
rows.push({
|
|
68
|
-
left:
|
|
69
|
-
right:
|
|
68
|
+
left: removed[j],
|
|
69
|
+
right: added[j],
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
return index;
|
|
@@ -132,8 +132,8 @@ export class CodeEditor {
|
|
|
132
132
|
this.editor = null;
|
|
133
133
|
this.darkMode.removeEventListener('change', this.handleChangeDarkMode);
|
|
134
134
|
const editorElement = this.host.shadowRoot.querySelector('.editor');
|
|
135
|
-
|
|
136
|
-
for (const child of
|
|
135
|
+
const children = editorElement === null || editorElement === void 0 ? void 0 : editorElement.childNodes;
|
|
136
|
+
for (const child of children) {
|
|
137
137
|
child.remove();
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -203,6 +203,7 @@ export class CodeEditor {
|
|
|
203
203
|
if (this.lint) {
|
|
204
204
|
gutters.push('CodeMirror-lint-markers');
|
|
205
205
|
if (!('jsonlint' in window)) {
|
|
206
|
+
// eslint-disable-next-line unicorn/no-global-object-property-assignment -- CodeMirror's JSON lint addon reads the global `jsonlint`
|
|
206
207
|
window['jsonlint'] = jslint;
|
|
207
208
|
}
|
|
208
209
|
}
|
|
@@ -250,7 +251,7 @@ export class CodeEditor {
|
|
|
250
251
|
'is-dark-mode': this.isDarkMode(),
|
|
251
252
|
'is-light-mode': !this.isDarkMode(),
|
|
252
253
|
};
|
|
253
|
-
return (h(Host, { key: '
|
|
254
|
+
return (h(Host, { key: 'd3da6ac9cbe13e78b2d45b1c17ff03769f381089' }, this.renderCopyButton(), h("limel-notched-outline", { key: 'e115d7334648538fb35f124d39adcef572928a16', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid, disabled: this.disabled, readonly: this.readonly, hasValue: !!this.value, hasFloatingLabel: true }, h("div", { key: 'e5b274126bbd4b5606ac3ee70226646ef0dbe8c5', slot: "content", class: classList })), this.renderHelperLine()));
|
|
254
255
|
}
|
|
255
256
|
forceRedraw() {
|
|
256
257
|
// eslint-disable-next-line sonarjs/pseudo-random
|
|
@@ -316,24 +317,28 @@ export class CodeEditor {
|
|
|
316
317
|
inputField.removeAttribute('aria-describedby');
|
|
317
318
|
inputField.removeAttribute('aria-controls');
|
|
318
319
|
}
|
|
320
|
+
// eslint-disable-next-line unicorn/prefer-toggle-attribute -- ARIA needs the value "true"; an empty value means false
|
|
319
321
|
if (this.required) {
|
|
320
322
|
inputField.setAttribute('aria-required', 'true');
|
|
321
323
|
}
|
|
322
324
|
else {
|
|
323
325
|
inputField.removeAttribute('aria-required');
|
|
324
326
|
}
|
|
327
|
+
// eslint-disable-next-line unicorn/prefer-toggle-attribute -- ARIA needs the value "true"; an empty value means false
|
|
325
328
|
if (this.invalid) {
|
|
326
329
|
inputField.setAttribute('aria-invalid', 'true');
|
|
327
330
|
}
|
|
328
331
|
else {
|
|
329
332
|
inputField.removeAttribute('aria-invalid');
|
|
330
333
|
}
|
|
334
|
+
// eslint-disable-next-line unicorn/prefer-toggle-attribute -- ARIA needs the value "true"; an empty value means false
|
|
331
335
|
if (this.disabled) {
|
|
332
336
|
inputField.setAttribute('aria-disabled', 'true');
|
|
333
337
|
}
|
|
334
338
|
else {
|
|
335
339
|
inputField.removeAttribute('aria-disabled');
|
|
336
340
|
}
|
|
341
|
+
// eslint-disable-next-line unicorn/prefer-toggle-attribute -- ARIA needs the value "true"; an empty value means false
|
|
337
342
|
if (this.readonly || this.disabled) {
|
|
338
343
|
inputField.setAttribute('aria-readonly', 'true');
|
|
339
344
|
}
|
|
@@ -111,7 +111,7 @@ export class CollapsibleSection {
|
|
|
111
111
|
removeEnterClickable(button);
|
|
112
112
|
}
|
|
113
113
|
render() {
|
|
114
|
-
return (h("section", { key: '
|
|
114
|
+
return (h("section", { key: '807611ee422e33a8bf5c4e81420e9732dd2afae9', class: `${this.isOpen ? 'open' : ''}`, "aria-invalid": this.invalid, "aria-labelledby": this.header ? this.headingId : null }, h("header", { key: '5c443243692de265960d4059ac52611b24021488' }, h("button", { key: 'c2061fbcb7195c59f353311993cbf397327c2a7a', class: "open-close-toggle", onClick: this.onClick, "aria-controls": this.bodyId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-label": this.getCollapsibleSectionAriaLabel(), type: "button" }), this.renderExpandCollapseSign(), this.renderIcon(), this.renderHeading(), h("div", { key: 'faf8794a7422a1e3b073bd823c716cb6bc0d4985', class: "divider-line", role: "presentation" }), this.renderHeaderSlot(), this.renderActions()), h("div", { key: '3011e5ef7625cca66d4d12187f71c4cb2c102ae1', class: "body", inert: !this.isOpen, "aria-hidden": String(!this.isOpen), id: this.bodyId, role: "region" }, h("slot", { key: '6a4495b89228c1333ed782f6c9fe4af1fe59ba34' }))));
|
|
115
115
|
}
|
|
116
116
|
renderHeaderSlot() {
|
|
117
117
|
return h("slot", { name: "header" });
|
|
@@ -39,10 +39,10 @@ export class Palette {
|
|
|
39
39
|
render() {
|
|
40
40
|
const background = this.value ? { '--background': this.value } : {};
|
|
41
41
|
return [
|
|
42
|
-
h("div", { key: '
|
|
42
|
+
h("div", { key: 'd1aa9d71db15ffd1dcdf9d9ee02fc32994823da1', class: "color-picker-palette", style: {
|
|
43
43
|
'--color-picker-column-count': `${this.getColumnCount()}`,
|
|
44
44
|
} }, this.renderSwatches()),
|
|
45
|
-
h("div", { key: '
|
|
45
|
+
h("div", { key: '672f283279af600b1d916117758881e06c50c262', class: "chosen-color-name" }, h("limel-input-field", { key: '2ff6619dc30e22e6702e6f62f1c37e2ae7fb6c73', label: this.label, helperText: this.helperText, value: this.value, onChange: this.handleChange, required: this.required, invalid: this.invalid, placeholder: this.placeholder, disabled: !this.manualInput }), h("div", { key: '627939eb427bab51bb79f427deedcffb4ff3b436', class: "chosen-color-preview", style: background })),
|
|
46
46
|
];
|
|
47
47
|
}
|
|
48
48
|
getPalette() {
|
|
@@ -80,13 +80,14 @@ export class ColorPicker {
|
|
|
80
80
|
}
|
|
81
81
|
componentDidRender() {
|
|
82
82
|
var _a;
|
|
83
|
-
if (this.shouldFocus && this.isOpen) {
|
|
84
|
-
|
|
85
|
-
(_a = this.contentElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
83
|
+
if (!(this.shouldFocus && this.isOpen)) {
|
|
84
|
+
return;
|
|
86
85
|
}
|
|
86
|
+
this.shouldFocus = false;
|
|
87
|
+
(_a = this.contentElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
87
88
|
}
|
|
88
89
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: '21a178b66e44ec92e371d45c83eb92ba449252b1' }, this.renderTooltip(), this.renderPickerPalette(), h("limel-input-field", { key: '3cd84c7f4db763047cc3fdf7497a3de5290238d7', label: this.label, helperText: this.helperText, value: this.value, onChange: this.handleChange, required: this.required, readonly: this.readonly, disabled: this.disabled || !this.manualInput, invalid: this.invalid, placeholder: this.placeholder })));
|
|
90
91
|
}
|
|
91
92
|
static get is() { return "limel-color-picker"; }
|
|
92
93
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,8 +28,8 @@ export class ConfigComponent {
|
|
|
28
28
|
if (!this.config) {
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
for (const key of Object.
|
|
32
|
-
globalConfig[key] =
|
|
31
|
+
for (const [key, value] of Object.entries(this.config)) {
|
|
32
|
+
globalConfig[key] = value;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
@@ -150,7 +150,7 @@ export class DatePicker {
|
|
|
150
150
|
const inputElement = this.textField.shadowRoot.querySelector('input');
|
|
151
151
|
setTimeout(() => {
|
|
152
152
|
this.datePickerCalendar.inputElement = inputElement;
|
|
153
|
-
});
|
|
153
|
+
}, 0);
|
|
154
154
|
event.stopPropagation();
|
|
155
155
|
document.addEventListener('mousedown', this.documentClickListener, {
|
|
156
156
|
passive: true,
|
|
@@ -172,7 +172,7 @@ export class DatePicker {
|
|
|
172
172
|
hideCalendar() {
|
|
173
173
|
setTimeout(() => {
|
|
174
174
|
this.showPortal = false;
|
|
175
|
-
});
|
|
175
|
+
}, 0);
|
|
176
176
|
this.removeDocumentListeners();
|
|
177
177
|
if (!this.pickerIsAutoClosing()) {
|
|
178
178
|
this.fixFlatpickrFocusBug();
|
|
@@ -203,10 +203,7 @@ export class DatePicker {
|
|
|
203
203
|
this.change.emit(date);
|
|
204
204
|
}
|
|
205
205
|
onInputClick(event) {
|
|
206
|
-
if (this.disabled || this.readonly) {
|
|
207
|
-
return;
|
|
208
|
-
}
|
|
209
|
-
if (this.showPortal) {
|
|
206
|
+
if (this.disabled || this.readonly || this.showPortal) {
|
|
210
207
|
return;
|
|
211
208
|
}
|
|
212
209
|
this.showCalendar(event);
|
|
@@ -23,9 +23,10 @@ export class DeferredDestroy {
|
|
|
23
23
|
* Cancel the pending destroy callback, if any.
|
|
24
24
|
*/
|
|
25
25
|
cancel() {
|
|
26
|
-
if (this.pendingDestroyTimer
|
|
27
|
-
|
|
28
|
-
this.pendingDestroyTimer = null;
|
|
26
|
+
if (this.pendingDestroyTimer === null) {
|
|
27
|
+
return;
|
|
29
28
|
}
|
|
29
|
+
clearTimeout(this.pendingDestroyTimer);
|
|
30
|
+
this.pendingDestroyTimer = null;
|
|
30
31
|
}
|
|
31
32
|
}
|
|
@@ -96,7 +96,7 @@ export class DatePickerCalendar {
|
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
|
-
return (h("div", { key: '
|
|
99
|
+
return (h("div", { key: '7e048e91687bf7ede4147a08304b22ff6f6e10c0', class: "container", ref: (el) => (this.container = el), style: {
|
|
100
100
|
'--today-label': `"${translate.get('date-picker.today', this.language)}"`,
|
|
101
101
|
} }));
|
|
102
102
|
}
|
|
@@ -16,10 +16,11 @@ export class MonthPicker extends Picker {
|
|
|
16
16
|
}
|
|
17
17
|
init(element, container, value) {
|
|
18
18
|
super.init(element, container, value);
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
this.flatpickr.nextMonthNav.addEventListener('mousedown', this.nextYear);
|
|
19
|
+
if (this.nativePicker) {
|
|
20
|
+
return;
|
|
22
21
|
}
|
|
22
|
+
this.flatpickr.prevMonthNav.addEventListener('mousedown', this.prevYear);
|
|
23
|
+
this.flatpickr.nextMonthNav.addEventListener('mousedown', this.nextYear);
|
|
23
24
|
}
|
|
24
25
|
destroy() {
|
|
25
26
|
var _a, _b, _c, _d;
|
|
@@ -42,23 +43,23 @@ export class MonthPicker extends Picker {
|
|
|
42
43
|
handleChange(selectedDates, dateString, fp) {
|
|
43
44
|
this.selectMonth(selectedDates, dateString, fp);
|
|
44
45
|
}
|
|
45
|
-
handleClose(selectedDates) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
});
|
|
46
|
+
async handleClose(selectedDates) {
|
|
47
|
+
await super.handleClose(selectedDates);
|
|
48
|
+
this.selectMonth(this.flatpickr.selectedDates, this.flatpickr.input.value, this.flatpickr);
|
|
49
49
|
}
|
|
50
50
|
handleReady(_, __, fp) {
|
|
51
51
|
this.bootstrapMonthPicker(fp);
|
|
52
52
|
this.selectMonth(fp.selectedDates, fp.input.value, fp);
|
|
53
53
|
}
|
|
54
54
|
bootstrapMonthPicker(fp) {
|
|
55
|
-
if (
|
|
56
|
-
|
|
57
|
-
fp.calendarContainer
|
|
58
|
-
.querySelectorAll('.flatpickr-monthDropdown-months')[0]
|
|
59
|
-
.replaceWith(this.renderHeading());
|
|
60
|
-
fp.calendarContainer.append(this.renderMonthsPicker(fp));
|
|
55
|
+
if (this.nativePicker) {
|
|
56
|
+
return;
|
|
61
57
|
}
|
|
58
|
+
fp.innerContainer.remove();
|
|
59
|
+
fp.calendarContainer
|
|
60
|
+
.querySelector('.flatpickr-monthDropdown-months')
|
|
61
|
+
.replaceWith(this.renderHeading());
|
|
62
|
+
fp.calendarContainer.append(this.renderMonthsPicker(fp));
|
|
62
63
|
}
|
|
63
64
|
renderHeading() {
|
|
64
65
|
return (h("span", { className: "datepicker-month-heading" }, this.getLocalizedHeading()));
|
|
@@ -84,35 +85,38 @@ export class MonthPicker extends Picker {
|
|
|
84
85
|
.format('MMM')));
|
|
85
86
|
}
|
|
86
87
|
selectMonth(selectedDates, dateString, fp) {
|
|
87
|
-
if (
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
88
|
+
if (this.nativePicker) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
for (const month of this.months) {
|
|
92
|
+
month.classList.remove('selected');
|
|
93
|
+
}
|
|
94
|
+
if (dateString !== '' &&
|
|
95
|
+
selectedDates[0] &&
|
|
96
|
+
selectedDates[0].getFullYear() === fp.currentYear) {
|
|
97
|
+
this.months[selectedDates[0].getMonth()].classList.add('selected');
|
|
96
98
|
}
|
|
97
99
|
}
|
|
98
100
|
prevYear() {
|
|
99
|
-
if (
|
|
100
|
-
|
|
101
|
-
// stop flatpickr from moving one month on its own, so we let it do
|
|
102
|
-
// that, and then move the other 11 months to make it a full year.
|
|
103
|
-
// /Ads
|
|
104
|
-
const monthsToMove = 11;
|
|
105
|
-
this.flatpickr.changeMonth(-monthsToMove);
|
|
101
|
+
if (this.nativePicker) {
|
|
102
|
+
return;
|
|
106
103
|
}
|
|
104
|
+
// Preventing default or stopping the event from propagating doesn't
|
|
105
|
+
// stop flatpickr from moving one month on its own, so we let it do
|
|
106
|
+
// that, and then move the other 11 months to make it a full year.
|
|
107
|
+
// /Ads
|
|
108
|
+
const monthsToMove = 11;
|
|
109
|
+
this.flatpickr.changeMonth(-monthsToMove);
|
|
107
110
|
}
|
|
108
111
|
nextYear() {
|
|
109
|
-
if (
|
|
110
|
-
|
|
111
|
-
// stop flatpickr from moving one month on its own, so we let it do
|
|
112
|
-
// that, and then move the other 11 months to make it a full year.
|
|
113
|
-
// /Ads
|
|
114
|
-
const monthsToMove = 11;
|
|
115
|
-
this.flatpickr.changeMonth(monthsToMove);
|
|
112
|
+
if (this.nativePicker) {
|
|
113
|
+
return;
|
|
116
114
|
}
|
|
115
|
+
// Preventing default or stopping the event from propagating doesn't
|
|
116
|
+
// stop flatpickr from moving one month on its own, so we let it do
|
|
117
|
+
// that, and then move the other 11 months to make it a full year.
|
|
118
|
+
// /Ads
|
|
119
|
+
const monthsToMove = 11;
|
|
120
|
+
this.flatpickr.changeMonth(monthsToMove);
|
|
117
121
|
}
|
|
118
122
|
}
|
|
@@ -18,10 +18,11 @@ export class QuarterPicker extends Picker {
|
|
|
18
18
|
}
|
|
19
19
|
init(element, container, value) {
|
|
20
20
|
super.init(element, container, value);
|
|
21
|
-
if (
|
|
22
|
-
|
|
23
|
-
this.flatpickr.nextMonthNav.addEventListener('mousedown', this.nextYear);
|
|
21
|
+
if (this.nativePicker) {
|
|
22
|
+
return;
|
|
24
23
|
}
|
|
24
|
+
this.flatpickr.prevMonthNav.addEventListener('mousedown', this.prevYear);
|
|
25
|
+
this.flatpickr.nextMonthNav.addEventListener('mousedown', this.nextYear);
|
|
25
26
|
}
|
|
26
27
|
destroy() {
|
|
27
28
|
var _a, _b, _c, _d;
|
|
@@ -44,23 +45,23 @@ export class QuarterPicker extends Picker {
|
|
|
44
45
|
handleChange(selectedDates, dateString, fp) {
|
|
45
46
|
this.selectQuarter(selectedDates, dateString, fp);
|
|
46
47
|
}
|
|
47
|
-
handleClose(selectedDates) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
});
|
|
48
|
+
async handleClose(selectedDates) {
|
|
49
|
+
await super.handleClose(selectedDates);
|
|
50
|
+
this.selectQuarter(this.flatpickr.selectedDates, this.flatpickr.input.value, this.flatpickr);
|
|
51
51
|
}
|
|
52
52
|
handleReady(_, __, fp) {
|
|
53
53
|
this.bootstrapQuarterPicker(fp);
|
|
54
54
|
this.selectQuarter(fp.selectedDates, fp.input.value, fp);
|
|
55
55
|
}
|
|
56
56
|
bootstrapQuarterPicker(fp) {
|
|
57
|
-
if (
|
|
58
|
-
|
|
59
|
-
fp.calendarContainer
|
|
60
|
-
.querySelectorAll('.flatpickr-monthDropdown-months')[0]
|
|
61
|
-
.replaceWith(this.renderHeading());
|
|
62
|
-
fp.calendarContainer.append(this.renderQuarterPicker(fp));
|
|
57
|
+
if (this.nativePicker) {
|
|
58
|
+
return;
|
|
63
59
|
}
|
|
60
|
+
fp.innerContainer.remove();
|
|
61
|
+
fp.calendarContainer
|
|
62
|
+
.querySelector('.flatpickr-monthDropdown-months')
|
|
63
|
+
.replaceWith(this.renderHeading());
|
|
64
|
+
fp.calendarContainer.append(this.renderQuarterPicker(fp));
|
|
64
65
|
}
|
|
65
66
|
renderHeading() {
|
|
66
67
|
return (h("span", { className: "datepicker-quarter-heading" }, this.getLocalizedHeading()));
|
|
@@ -98,29 +99,33 @@ export class QuarterPicker extends Picker {
|
|
|
98
99
|
});
|
|
99
100
|
}
|
|
100
101
|
selectQuarter(selectedDates, dateString, fp) {
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
quarter.classList.remove('selected');
|
|
104
|
-
}
|
|
105
|
-
if (dateString !== '' &&
|
|
106
|
-
selectedDates[0] &&
|
|
107
|
-
selectedDates[0].getFullYear() === fp.currentYear) {
|
|
108
|
-
const i = Math.floor(selectedDates[0].getMonth() / MONTHSPERQUARTER);
|
|
109
|
-
const selectedQuarter = this.quarters[i];
|
|
110
|
-
selectedQuarter.classList.add('selected');
|
|
111
|
-
}
|
|
102
|
+
if (this.nativePicker) {
|
|
103
|
+
return;
|
|
112
104
|
}
|
|
105
|
+
for (const quarter of this.quarters) {
|
|
106
|
+
quarter.classList.remove('selected');
|
|
107
|
+
}
|
|
108
|
+
if (dateString === '' ||
|
|
109
|
+
!selectedDates[0] ||
|
|
110
|
+
selectedDates[0].getFullYear() !== fp.currentYear) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const i = Math.floor(selectedDates[0].getMonth() / MONTHSPERQUARTER);
|
|
114
|
+
const selectedQuarter = this.quarters[i];
|
|
115
|
+
selectedQuarter.classList.add('selected');
|
|
113
116
|
}
|
|
114
117
|
prevYear(event) {
|
|
115
|
-
if (
|
|
116
|
-
|
|
117
|
-
this.flatpickr.changeMonth(-NBROFMONTHS);
|
|
118
|
+
if (this.nativePicker) {
|
|
119
|
+
return;
|
|
118
120
|
}
|
|
121
|
+
event.stopImmediatePropagation();
|
|
122
|
+
this.flatpickr.changeMonth(-NBROFMONTHS);
|
|
119
123
|
}
|
|
120
124
|
nextYear(event) {
|
|
121
|
-
if (
|
|
122
|
-
|
|
123
|
-
this.flatpickr.changeMonth(NBROFMONTHS);
|
|
125
|
+
if (this.nativePicker) {
|
|
126
|
+
return;
|
|
124
127
|
}
|
|
128
|
+
event.stopImmediatePropagation();
|
|
129
|
+
this.flatpickr.changeMonth(NBROFMONTHS);
|
|
125
130
|
}
|
|
126
131
|
}
|
|
@@ -23,10 +23,11 @@ export class YearPicker extends Picker {
|
|
|
23
23
|
}
|
|
24
24
|
init(element, container, value) {
|
|
25
25
|
super.init(element, container, value);
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
this.flatpickr.nextMonthNav.addEventListener('mousedown', this.nextYears);
|
|
26
|
+
if (this.nativePicker) {
|
|
27
|
+
return;
|
|
29
28
|
}
|
|
29
|
+
this.flatpickr.prevMonthNav.addEventListener('mousedown', this.prevYears);
|
|
30
|
+
this.flatpickr.nextMonthNav.addEventListener('mousedown', this.nextYears);
|
|
30
31
|
}
|
|
31
32
|
destroy() {
|
|
32
33
|
var _a, _b, _c, _d;
|
|
@@ -49,12 +50,7 @@ export class YearPicker extends Picker {
|
|
|
49
50
|
}
|
|
50
51
|
setSelectedYear() {
|
|
51
52
|
for (const year of this.yearElements) {
|
|
52
|
-
|
|
53
|
-
year.classList.add('selected');
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
year.classList.remove('selected');
|
|
57
|
-
}
|
|
53
|
+
year.classList.toggle('selected', year.textContent === this.selectedYear);
|
|
58
54
|
}
|
|
59
55
|
}
|
|
60
56
|
getConfig(nativePicker) {
|
|
@@ -69,24 +65,24 @@ export class YearPicker extends Picker {
|
|
|
69
65
|
handleChange(selectedDates, dateString) {
|
|
70
66
|
this.selectYear(selectedDates, dateString);
|
|
71
67
|
}
|
|
72
|
-
handleClose(selectedDates) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
});
|
|
68
|
+
async handleClose(selectedDates) {
|
|
69
|
+
await super.handleClose(selectedDates);
|
|
70
|
+
this.selectYear(this.flatpickr.selectedDates, this.flatpickr.input.value);
|
|
76
71
|
}
|
|
77
72
|
handleReady(_, __, fp) {
|
|
78
73
|
this.bootstrapYearPicker(fp);
|
|
79
74
|
this.selectYear(fp.selectedDates, fp.input.value);
|
|
80
75
|
}
|
|
81
76
|
bootstrapYearPicker(fp) {
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
fp.currentYearElement.parentNode.remove();
|
|
85
|
-
fp.calendarContainer
|
|
86
|
-
.querySelectorAll('.flatpickr-month')[0]
|
|
87
|
-
.replaceWith(this.renderHeading());
|
|
88
|
-
fp.calendarContainer.append(this.renderYearPicker(fp));
|
|
77
|
+
if (this.nativePicker) {
|
|
78
|
+
return;
|
|
89
79
|
}
|
|
80
|
+
fp.innerContainer.remove();
|
|
81
|
+
fp.currentYearElement.parentNode.remove();
|
|
82
|
+
fp.calendarContainer
|
|
83
|
+
.querySelector('.flatpickr-month')
|
|
84
|
+
.replaceWith(this.renderHeading());
|
|
85
|
+
fp.calendarContainer.append(this.renderYearPicker(fp));
|
|
90
86
|
}
|
|
91
87
|
renderHeading() {
|
|
92
88
|
return (h("span", { className: "datepicker-year-heading flatpickr-current-month" }, this.getLocalizedHeading()));
|
|
@@ -84,16 +84,13 @@ export class Dialog {
|
|
|
84
84
|
this.mdcDialog.destroy();
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
return (h("div", { key: '
|
|
87
|
+
return (h("div", { key: '4886b11c840da8520cddf9ab1a0921ce8a5ca637', class: {
|
|
88
88
|
'mdc-dialog': true,
|
|
89
89
|
'full-screen': !!this.fullscreen,
|
|
90
|
-
}, role: "alertdialog", "aria-modal": "true", "aria-labelledby": 'limel-dialog-title-' + this.id, "aria-describedby": 'limel-dialog-content-' + this.id }, h("input", { key: '
|
|
90
|
+
}, role: "alertdialog", "aria-modal": "true", "aria-labelledby": 'limel-dialog-title-' + this.id, "aria-describedby": 'limel-dialog-content-' + this.id }, h("input", { key: '214a87734409c358c9859192eba63939e752837b', hidden: true, id: "initialFocusEl" }), h("div", { key: '68a0b649fe6a2f9bc726c468ffd3194ec51e86e8', class: "mdc-dialog__container" }, h("div", { key: 'c286666a1af4980dfbe6b06e4792503f859cb2d8', class: "mdc-dialog__surface" }, h("input", { key: 'f4b4b585282feeab427f31fee0a59e9e43db9ddb', type: "button", id: "initialFocusElement" }), this.renderHeading(), h("div", { key: '97a6ce8610e39c63371b84757c561d13a4dae8ab', class: "mdc-dialog__content", id: 'limel-dialog-content-' + this.id }, h("slot", { key: '73f7a89738a19675289da0cf100bce48908ba54c' })), this.renderFooter())), h("div", { key: 'e4e6b9f7ea833f43f7aa65db1d278dc81806ef06', class: "mdc-dialog__scrim" })));
|
|
91
91
|
}
|
|
92
92
|
watchHandler(newValue, oldValue) {
|
|
93
|
-
if (oldValue === newValue) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
if (!this.mdcDialog) {
|
|
93
|
+
if (oldValue === newValue || !this.mdcDialog) {
|
|
97
94
|
return;
|
|
98
95
|
}
|
|
99
96
|
if (newValue) {
|
|
@@ -134,7 +131,7 @@ export class Dialog {
|
|
|
134
131
|
const { title, subtitle, supportingText, icon } = this.heading;
|
|
135
132
|
return (h("limel-header", { icon: icon, heading: title, subheading: subtitle, supportingText: supportingText }, h("slot", { name: "header-actions", slot: "actions" })));
|
|
136
133
|
}
|
|
137
|
-
|
|
134
|
+
if (typeof this.heading === 'string') {
|
|
138
135
|
return (h("limel-header", { heading: this.heading }, h("slot", { name: "header-actions", slot: "actions" })));
|
|
139
136
|
}
|
|
140
137
|
return null;
|
|
@@ -43,10 +43,7 @@ export class DockButton {
|
|
|
43
43
|
this.focusCustomComponentElement = (entries) => {
|
|
44
44
|
var _a, _b, _c;
|
|
45
45
|
const entry = entries.find((e) => e.target === this.customComponentElement);
|
|
46
|
-
if (!entry) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
if (!entry.isIntersecting) {
|
|
46
|
+
if (!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting)) {
|
|
50
47
|
return;
|
|
51
48
|
}
|
|
52
49
|
if ((_b = (_a = this.customComponentElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.delegatesFocus) {
|
|
@@ -69,13 +66,11 @@ export class DockButton {
|
|
|
69
66
|
return this.renderButton(this.handleClick);
|
|
70
67
|
}
|
|
71
68
|
openWatcher() {
|
|
72
|
-
if (!this.isOpen) {
|
|
69
|
+
if (!this.isOpen || this.intersectionObserver) {
|
|
73
70
|
return;
|
|
74
71
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
this.intersectionObserver.observe(this.customComponentElement);
|
|
78
|
-
}
|
|
72
|
+
this.intersectionObserver = new IntersectionObserver(this.focusCustomComponentElement);
|
|
73
|
+
this.intersectionObserver.observe(this.customComponentElement);
|
|
79
74
|
}
|
|
80
75
|
disconnectedCallback() {
|
|
81
76
|
var _a;
|
|
@@ -79,11 +79,11 @@ export class Dock {
|
|
|
79
79
|
this.resizeObserver.disconnect();
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: 'f223e1fbeed82ac73f60babc9d819f30548246fc', class: {
|
|
83
83
|
dock: true,
|
|
84
84
|
expanded: this.expanded,
|
|
85
85
|
'has-mobile-layout': this.useMobileLayout,
|
|
86
|
-
} }, h("nav", { key: '
|
|
86
|
+
} }, h("nav", { key: '494bf2993a7bd3c5df8af74d2a0ad6d6ee13a48c', "aria-label": this.accessibleLabel }, this.dockItems.map(this.renderDockItem), this.renderSeparator(), this.dockFooterItems.map(this.renderDockItem)), this.renderExpandShrinkToggle()));
|
|
87
87
|
}
|
|
88
88
|
renderExpandShrinkToggle() {
|
|
89
89
|
if (this.useMobileLayout || !this.allowResize) {
|
|
@@ -51,7 +51,7 @@ export class DragHandleComponent {
|
|
|
51
51
|
render() {
|
|
52
52
|
const tooltipLabel = translate.get('drag-handle.drag-to-reorder', this.language);
|
|
53
53
|
const ariaLabel = translate.get('drag-handle.drag-handle', this.language);
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: 'c315460d24dc77db9aa84d6c7db94b0aff0d04fa' }, h("button", { key: '4b1b29c9937bf15335ad67c99b14b40ff0c11c94', "data-drag-handle": true, type: "button", class: "limel-drag-handle", tabindex: -1, "aria-label": ariaLabel, id: this.dragHandleId, onClick: this.handleClick }, h("div", { key: '920d6d0d09d81908e98db8624da6a9bc34e09bd7', class: "drag-icon", role: "presentation", "aria-hidden": "true" }, h("div", { key: "1" }), h("div", { key: "2" }), h("div", { key: "3" }), h("div", { key: "4" }), h("div", { key: "5" }), h("div", { key: "6" })), h("limel-tooltip", { key: 'fa9e84778a57dbb6186de4a18c66d30b8c711417', openDirection: this.tooltipOpenDirection, elementId: this.dragHandleId, label: tooltipLabel }))));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "limel-drag-handle"; }
|
|
57
57
|
static get originalStyleUrls() {
|
|
@@ -43,7 +43,9 @@ async function fetchEmailBuffer(url) {
|
|
|
43
43
|
}
|
|
44
44
|
catch (error) {
|
|
45
45
|
const message = error instanceof Error ? error.message : String(error);
|
|
46
|
-
throw new Error(`Failed to load email from ${url}: ${message}
|
|
46
|
+
throw new Error(`Failed to load email from ${url}: ${message}`, {
|
|
47
|
+
cause: error,
|
|
48
|
+
});
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
async function parseEmail(url, buffer) {
|
|
@@ -54,7 +56,9 @@ async function parseEmail(url, buffer) {
|
|
|
54
56
|
}
|
|
55
57
|
catch (error) {
|
|
56
58
|
const message = error instanceof Error ? error.message : String(error);
|
|
57
|
-
throw new Error(`Failed to parse email from ${url}: ${message}
|
|
59
|
+
throw new Error(`Failed to parse email from ${url}: ${message}`, {
|
|
60
|
+
cause: error,
|
|
61
|
+
});
|
|
58
62
|
}
|
|
59
63
|
}
|
|
60
64
|
function getRawHeader(email, name) {
|
|
@@ -64,7 +68,8 @@ function getRawHeader(email, name) {
|
|
|
64
68
|
function extractAttachments(email) {
|
|
65
69
|
const attachments = [];
|
|
66
70
|
const cidUrlById = new Map();
|
|
67
|
-
|
|
71
|
+
const emailAttachments = email.attachments || [];
|
|
72
|
+
for (const attachment of emailAttachments) {
|
|
68
73
|
const contentId = normalizeContentId(attachment.contentId);
|
|
69
74
|
const hasContentId = Boolean(contentId);
|
|
70
75
|
const isInline = (hasContentId && attachment.disposition !== 'attachment') ||
|
|
@@ -168,7 +173,7 @@ function byteArrayToBase64(bytes) {
|
|
|
168
173
|
return btoa(binary);
|
|
169
174
|
}
|
|
170
175
|
// Jest/Node fallback
|
|
171
|
-
return
|
|
176
|
+
return Buffer.from(bytes).toString('base64');
|
|
172
177
|
}
|
|
173
178
|
function resolveDataUrlMimeType(mimeType, bytes, filename) {
|
|
174
179
|
const normalizedMimeType = typeof mimeType === 'string' ? mimeType.trim().toLowerCase() : '';
|
|
@@ -191,10 +196,7 @@ function resolveDataUrlMimeType(mimeType, bytes, filename) {
|
|
|
191
196
|
return normalizedMimeType || 'application/octet-stream';
|
|
192
197
|
}
|
|
193
198
|
function isTrustedDeclaredImageMimeType(declaredMimeType, detectedMimeType) {
|
|
194
|
-
if (!detectedMimeType) {
|
|
195
|
-
return true;
|
|
196
|
-
}
|
|
197
|
-
if (declaredMimeType === detectedMimeType) {
|
|
199
|
+
if (!detectedMimeType || declaredMimeType === detectedMimeType) {
|
|
198
200
|
return true;
|
|
199
201
|
}
|
|
200
202
|
if (declaredMimeType === 'image/jpg' && detectedMimeType === 'image/jpeg') {
|
|
@@ -239,7 +241,7 @@ function detectSvgMimeType(bytes) {
|
|
|
239
241
|
if (bytes.length < 5) {
|
|
240
242
|
return;
|
|
241
243
|
}
|
|
242
|
-
const utf8Prefix = new TextDecoder('
|
|
244
|
+
const utf8Prefix = new TextDecoder('utf-8', { fatal: false }).decode(bytes.slice(0, Math.min(bytes.length, 256)));
|
|
243
245
|
const normalizedPrefix = utf8Prefix.trimStart().toLowerCase();
|
|
244
246
|
if (normalizedPrefix.startsWith('<svg') ||
|
|
245
247
|
(normalizedPrefix.startsWith('<?xml') &&
|
|
@@ -331,7 +333,9 @@ function quoteDisplayNameIfNeeded(name) {
|
|
|
331
333
|
if (!name.includes(',') && !name.includes('"')) {
|
|
332
334
|
return name;
|
|
333
335
|
}
|
|
334
|
-
const escaped = name
|
|
336
|
+
const escaped = name
|
|
337
|
+
.replaceAll('\\', '\\\\')
|
|
338
|
+
.replaceAll('"', String.raw `\"`);
|
|
335
339
|
return `"${escaped}"`;
|
|
336
340
|
}
|
|
337
341
|
export const emailLoaderHelpers = {
|
|
@@ -75,7 +75,7 @@ export class EmailViewer {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: '1039e0b6331706b0a075d87c6156e2acd869e977' }, h("div", { key: '88dedb9af5a2d7a9870d484a23b649eae726633f', class: "email", part: "email" }, this.renderHeaders(), this.renderRemoteImageBanner(), h("section", { key: '107a24b3cb6199b79ce19331f2660d72854e06ce' }, this.renderAttachments(), this.renderBody()))));
|
|
79
79
|
}
|
|
80
80
|
renderHeaders() {
|
|
81
81
|
const headerFields = [
|