@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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
const createRandomString = () => {
|
|
4
4
|
var _a;
|
|
5
5
|
if (!('crypto' in window) ||
|
|
6
|
+
// eslint-disable-next-line unicorn/no-optional-chaining-on-undeclared-variable -- `'crypto' in window` above already requires `window`; the `?.` guards a nullish `window.crypto`
|
|
6
7
|
typeof ((_a = window.crypto) === null || _a === void 0 ? void 0 : _a.randomUUID) !== 'function') {
|
|
7
8
|
return legacyCreateRandomString();
|
|
8
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index
|
|
3
|
+
var index = require('./index-BlsqxTB1.js');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Renders a `ListComponent` as a JSX element.
|
|
@@ -21,10 +21,8 @@ var index = require('./index--B6-r0uo.js');
|
|
|
21
21
|
* merged with any consumer-supplied `class` in `props`
|
|
22
22
|
*/
|
|
23
23
|
function renderListComponent(component, extraClass) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
if (!component.name.includes('-')) {
|
|
24
|
+
var _a;
|
|
25
|
+
if (!((_a = component === null || component === void 0 ? void 0 : component.name) === null || _a === void 0 ? void 0 : _a.includes('-'))) {
|
|
28
26
|
return;
|
|
29
27
|
}
|
|
30
28
|
const Tag = component.name;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var moment = require('./moment-
|
|
3
|
+
var moment = require('./moment-Cfsz2WF1.js');
|
|
4
4
|
|
|
5
5
|
var da$1 = {exports: {}};
|
|
6
6
|
|
|
@@ -91,6 +91,23 @@ function requireDe () {
|
|
|
91
91
|
}(de, (function (moment) {
|
|
92
92
|
//! moment.js locale configuration
|
|
93
93
|
|
|
94
|
+
var monthsParse = [
|
|
95
|
+
/^jan/i,
|
|
96
|
+
/^feb/i,
|
|
97
|
+
/^mär/i,
|
|
98
|
+
/^apr/i,
|
|
99
|
+
/^mai/i,
|
|
100
|
+
/^jun/i,
|
|
101
|
+
/^jul/i,
|
|
102
|
+
/^aug/i,
|
|
103
|
+
/^sep/i,
|
|
104
|
+
/^okt/i,
|
|
105
|
+
/^nov/i,
|
|
106
|
+
/^dez/i,
|
|
107
|
+
],
|
|
108
|
+
monthsRegex =
|
|
109
|
+
/^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember|Jan\.?|Feb\.?|Mär\.?|Apr\.?|Jun\.?|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i;
|
|
110
|
+
|
|
94
111
|
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
95
112
|
var format = {
|
|
96
113
|
m: ['eine Minute', 'einer Minute'],
|
|
@@ -112,7 +129,18 @@ function requireDe () {
|
|
|
112
129
|
),
|
|
113
130
|
monthsShort:
|
|
114
131
|
'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
|
115
|
-
|
|
132
|
+
|
|
133
|
+
monthsRegex: monthsRegex,
|
|
134
|
+
monthsShortRegex: monthsRegex,
|
|
135
|
+
monthsStrictRegex:
|
|
136
|
+
/^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)/i,
|
|
137
|
+
monthsShortStrictRegex:
|
|
138
|
+
/^(Jan\.?|Feb\.?|März|Mär\.?|Apr\.?|Mai|Juni|Jun\.?|Juli|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i,
|
|
139
|
+
|
|
140
|
+
monthsParse: monthsParse,
|
|
141
|
+
longMonthsParse: monthsParse,
|
|
142
|
+
shortMonthsParse: monthsParse,
|
|
143
|
+
|
|
116
144
|
weekdays:
|
|
117
145
|
'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
|
|
118
146
|
'_'
|
|
@@ -666,7 +694,7 @@ function requireSv () {
|
|
|
666
694
|
),
|
|
667
695
|
monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
|
|
668
696
|
weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
|
|
669
|
-
weekdaysShort: 'sön_må
|
|
697
|
+
weekdaysShort: 'sön_mån_tis_ons_tors_fre_lör'.split('_'),
|
|
670
698
|
weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
|
|
671
699
|
longDateFormat: {
|
|
672
700
|
LT: 'HH:mm',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var language = require('./language-
|
|
3
|
+
var language = require('./language-v-MMS6ym.js');
|
|
4
4
|
|
|
5
5
|
var da = {
|
|
6
6
|
'clear-value': 'Ryd værdi',
|
|
@@ -631,10 +631,10 @@ Vous pouvez laisser les images bloquées (l'e-mail peut sembler incomplet) ou le
|
|
|
631
631
|
'code-diff.table-label': 'Comparaison de code',
|
|
632
632
|
'code-diff.no-differences': 'Aucune différence',
|
|
633
633
|
'code-diff.no-differences-found': 'Aucune différence trouvée',
|
|
634
|
-
'code-diff.copy-old-version': 'Copier l\
|
|
634
|
+
'code-diff.copy-old-version': 'Copier l\u{2019}ancienne version dans le presse-papiers',
|
|
635
635
|
'code-diff.copied': 'Copié !',
|
|
636
636
|
'code-diff.copied-to-clipboard': 'Copié dans le presse-papiers',
|
|
637
|
-
'code-diff.copy-change': 'Copier l\
|
|
637
|
+
'code-diff.copy-change': 'Copier l\u{2019}ancienne version de cette modification',
|
|
638
638
|
'code-diff.search': 'Rechercher dans les lignes supprimées',
|
|
639
639
|
'code-diff.previous-match': 'Correspondance précédente',
|
|
640
640
|
'code-diff.next-match': 'Correspondance suivante',
|
|
@@ -657,7 +657,7 @@ Vous pouvez laisser les images bloquées (l'e-mail peut sembler incomplet) ou le
|
|
|
657
657
|
'code-diff.old-heading': 'Original',
|
|
658
658
|
'code-diff.new-heading': 'Modifié',
|
|
659
659
|
'code-diff.diff-summary': 'Diff : { parts }. Utilisez les touches fléchées pour naviguer.',
|
|
660
|
-
'profile-picture.remove': 'Supprimer l\
|
|
660
|
+
'profile-picture.remove': 'Supprimer l\u{2019}image sélectionnée',
|
|
661
661
|
'profile-picture.unsupported-preview.title': "Format d'image non pris en charge",
|
|
662
662
|
'profile-picture.unsupported-preview.description': "Nous ne pouvons pas afficher l'image sélectionnée dans ce navigateur. Veuillez sélectionner un autre fichier image.",
|
|
663
663
|
'picker.results-matching': 'Résultats correspondant à « { query } »',
|
|
@@ -1120,8 +1120,5 @@ class Translations {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
1122
|
const translations = new Translations();
|
|
1123
|
-
var translate = (() => {
|
|
1124
|
-
return translations;
|
|
1125
|
-
})();
|
|
1126
1123
|
|
|
1127
|
-
exports.
|
|
1124
|
+
exports.translations = translations;
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"components/progress-flow/progress-flow-item/progress-flow-item.js",
|
|
69
69
|
"components/radio-button-group/radio-button-group.js",
|
|
70
70
|
"components/radio-button-group/radio-button.js",
|
|
71
|
+
"components/scroller/scroller.js",
|
|
71
72
|
"components/select/select.js",
|
|
72
73
|
"components/shortcut/shortcut.js",
|
|
73
74
|
"components/slider/slider.js",
|
|
@@ -16,7 +16,7 @@ import { h } from "@stencil/core";
|
|
|
16
16
|
*/
|
|
17
17
|
export class HoverEffectGlowComponent {
|
|
18
18
|
render() {
|
|
19
|
-
return h("div", { key: '
|
|
19
|
+
return h("div", { key: '4dd197d7698fd5b32f6a3cb624e5472186c58084' });
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "limel-3d-hover-effect-glow"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -54,14 +54,15 @@ export class ActionBarButton {
|
|
|
54
54
|
if (this.isItem(this.item) && !this.item.icon) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
if ('icon' in this.item) {
|
|
58
|
-
|
|
59
|
-
const color = getIconColor(this.item.icon, this.item.iconColor);
|
|
60
|
-
const title = getIconTitle(this.item.icon);
|
|
61
|
-
return (h("limel-icon", { name: name, "aria-label": title, "aria-hidden": title ? null : 'true', style: {
|
|
62
|
-
'--action-bar-item-icon-color': `${color}`,
|
|
63
|
-
} }));
|
|
57
|
+
if (!('icon' in this.item)) {
|
|
58
|
+
return;
|
|
64
59
|
}
|
|
60
|
+
const name = getIconName(this.item.icon);
|
|
61
|
+
const color = getIconColor(this.item.icon, this.item.iconColor);
|
|
62
|
+
const title = getIconTitle(this.item.icon);
|
|
63
|
+
return (h("limel-icon", { name: name, "aria-label": title, "aria-hidden": title ? null : 'true', style: {
|
|
64
|
+
'--action-bar-item-icon-color': `${color}`,
|
|
65
|
+
} }));
|
|
65
66
|
}
|
|
66
67
|
renderLabel() {
|
|
67
68
|
if (!this.isItem(this.item) || this.item.iconOnly) {
|
|
@@ -18,7 +18,7 @@ export class ActionBarOverflowMenu {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'cae8a1e35fb3154bd44d9d6cebf2b59fb14adde3' }, h("limel-menu", { key: 'f3f0462e3c09d757d19adf984590096b8c886265', openDirection: this.openDirection, items: this.items, onSelect: this.handleSelect }, h("button", { key: 'c26f094d1bdb60394c81950bc617b0a2e1596c37', type: "button", slot: "trigger" }, `+${this.numberOfMenuItems}`))));
|
|
22
22
|
}
|
|
23
23
|
get numberOfMenuItems() {
|
|
24
24
|
return this.items.filter((item) => this.isMenuItem(item)).length;
|
|
@@ -92,10 +92,11 @@ export class ActionBar {
|
|
|
92
92
|
}
|
|
93
93
|
componentDidRender() {
|
|
94
94
|
var _a;
|
|
95
|
-
if (this.haveItemsChanged()) {
|
|
96
|
-
|
|
97
|
-
this.createIntersectionObserver();
|
|
95
|
+
if (!this.haveItemsChanged()) {
|
|
96
|
+
return;
|
|
98
97
|
}
|
|
98
|
+
(_a = this.intersectionObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
99
|
+
this.createIntersectionObserver();
|
|
99
100
|
}
|
|
100
101
|
disconnectedCallback() {
|
|
101
102
|
var _a;
|
|
@@ -110,10 +111,10 @@ export class ActionBar {
|
|
|
110
111
|
if (this.actions.length > 0) {
|
|
111
112
|
overflowActions = this.actions.slice(this.overflowCutoff);
|
|
112
113
|
}
|
|
113
|
-
return (h(Host, { key: '
|
|
114
|
+
return (h(Host, { key: '71acb52e4f9d3cf1303c0dbb71b97c60ccf6fd76', "aria-label": (_a = this.accessibleLabel) !== null && _a !== void 0 ? _a : translate.get('action-bar', this.language), class: {
|
|
114
115
|
'is-full-width': this.layout === 'fullWidth',
|
|
115
116
|
'is-floating': this.layout === 'floating',
|
|
116
|
-
}, role: "grid" }, h("div", { key: '
|
|
117
|
+
}, role: "grid" }, h("div", { key: '008912758ba53bb232c19b54032bbd87f009b4c2', class: "items", role: "rowgroup" }, this.actions.map(this.renderActionBarItem)), this.renderOverflowMenu(overflowActions)));
|
|
117
118
|
}
|
|
118
119
|
isVisible(index) {
|
|
119
120
|
return index < this.overflowCutoff;
|
|
@@ -140,7 +140,7 @@ export class AiAvatar {
|
|
|
140
140
|
if (effectiveVariant !== this.variant) {
|
|
141
141
|
console.warn(`limel-ai-avatar: unsupported variant "${this.variant}"; falling back to "minimal".`);
|
|
142
142
|
}
|
|
143
|
-
return (h(Host, { key: '
|
|
143
|
+
return (h(Host, { key: 'eb01855b1ae021bf0f4dce8c0f30581c394fc6ef', role: "img", "aria-label": this.getHostAriaLabel(effectiveMode) }, this.renderAvatar(effectiveMode, effectiveVariant)));
|
|
144
144
|
}
|
|
145
145
|
getHostAriaLabel(mode) {
|
|
146
146
|
const baseLabel = this.getTranslation('ai-avatar.label');
|
|
@@ -10,9 +10,9 @@ import { abbreviate } from "./format";
|
|
|
10
10
|
*/
|
|
11
11
|
export class Badge {
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '4de1c13bb754968d56ba0648089bd9a3c4b5d1af', title: this.labelIsLarge() ? this.label : '', class: {
|
|
14
14
|
'has-large-label': this.labelIsLarge(),
|
|
15
|
-
} }, h("span", { key: '
|
|
15
|
+
} }, h("span", { key: '360b7dccadff48dd9b9cf9894c86910d7b90d7f2' }, this.renderLabel())));
|
|
16
16
|
}
|
|
17
17
|
renderLabel() {
|
|
18
18
|
if (typeof this.label === 'number') {
|
|
@@ -20,7 +20,7 @@ export class Banner {
|
|
|
20
20
|
this.isOpen = false;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h("div", { key: '
|
|
23
|
+
return (h("div", { key: '13289f08089e4f089f212383c14b72825ca25e79', class: `lime-banner ${this.isOpen ? 'lime-banner--open' : ''}` }, h("div", { key: 'e8889dd2afa2f85f3755d6cf25a9a6b060152941', class: "lime-banner__surface" }, h("div", { key: '0ebc39c7f2e0f241c770347296be2cdd79a84b49', class: "lime-banner__content" }, h("div", { key: 'eb5691b0816dc572d79e634e9d44edab8d1edab6', class: "icon-message" }, this.renderIcon(), h("div", { key: '41b718b2fd9d2a2a3ea0c8179a66d860cf266b15' }, this.message)), h("div", { key: 'acb1e0ceac51a5446d0441b0c05cd7a13d1e3f72', class: "lime-banner__actions" }, h("slot", { key: 'fcd2396ffe9f3c4f3f6750253122c10bae3623ca', name: "buttons" }))))));
|
|
24
24
|
}
|
|
25
25
|
renderIcon() {
|
|
26
26
|
if (!this.icon) {
|
|
@@ -62,10 +62,10 @@ export class Breadcrumbs {
|
|
|
62
62
|
};
|
|
63
63
|
this.renderIcon = (item) => {
|
|
64
64
|
const name = getIconName(item.icon);
|
|
65
|
-
const color = getIconColor(item.icon);
|
|
66
65
|
if (!name) {
|
|
67
66
|
return;
|
|
68
67
|
}
|
|
68
|
+
const color = getIconColor(item.icon);
|
|
69
69
|
return (h("limel-icon", { style: {
|
|
70
70
|
color: `${color}`,
|
|
71
71
|
}, name: name }));
|
|
@@ -90,7 +90,7 @@ export class Breadcrumbs {
|
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
|
-
return (h("ol", { key: '
|
|
93
|
+
return (h("ol", { key: '90915e820a8b7a4cbf13d06b14726c351a6da4b5', role: "navigation", "aria-label": "Breadcrumb", style: { '--limel-breadcrumbs-divider': `'${this.divider}'` } }, this.renderSteps(), this.renderLastStep()));
|
|
94
94
|
}
|
|
95
95
|
componentWillLoad() {
|
|
96
96
|
makeEnterClickable(this.host);
|
|
@@ -66,12 +66,12 @@ export class Button {
|
|
|
66
66
|
removeEnterClickable(this.host);
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
return (h(Host, { key: '
|
|
69
|
+
return (h(Host, { key: 'e93ab42db5212170ff86c8c2a5f5b8e63c57ba91', onClick: this.filterClickWhenDisabled }, h("button", { key: '4c53bd6a15635afc55635c677404828bb94115da', class: {
|
|
70
70
|
loading: this.loading,
|
|
71
71
|
'just-loaded': this.justLoaded && !this.loadingFailed,
|
|
72
72
|
'just-failed': this.justLoaded && this.loadingFailed,
|
|
73
73
|
outlined: this.outlined,
|
|
74
|
-
}, disabled: this.disabled || this.loading, "aria-busy": this.loading ? 'true' : 'false', "aria-live": "polite" }, this.renderIcon(this.icon), this.renderLabel(), this.renderSpinner(), h("svg", { key: '
|
|
74
|
+
}, disabled: this.disabled || this.loading, "aria-busy": this.loading ? 'true' : 'false', "aria-live": "polite" }, this.renderIcon(this.icon), this.renderLabel(), this.renderSpinner(), h("svg", { key: 'bbfdda5c889727f50bea9a5f27442afc1a53c347', viewBox: "0 0 30 30" }, this.renderLoadingIcons()))));
|
|
75
75
|
}
|
|
76
76
|
loadingWatcher(newValue, oldValue) {
|
|
77
77
|
const hasFinishedLoading = this.hasFinishedLoading(newValue, oldValue);
|
|
@@ -65,7 +65,7 @@ export class ButtonGroup {
|
|
|
65
65
|
this.setSelectedButton();
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '9bb63bb91ee69fd4776a86d16ef36ed6653fe4b6', role: "radiogroup" }, this.value.map(this.renderButton)));
|
|
69
69
|
}
|
|
70
70
|
renderButton(button) {
|
|
71
71
|
// Prefix with 'b' because html IDs cannot start with a digit,
|
|
@@ -42,7 +42,7 @@ export class Callout {
|
|
|
42
42
|
this.language = 'en';
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'ddc015eda0b634de30943dd46f558e9a22178947' }, h("div", { key: '4b99ac3cb7c04695722b7ccc02112b6cb0a93cbf', class: "side", role: "presentation" }, h("limel-icon", { key: '7909ecad8de51938085e4d4e3ebebde8e40ac2bf', name: getIcon(this.icon, this.type) })), h("div", { key: '6edb1484b65dd185f38746f0f98f8004fcaadbbf', class: "main" }, h("h1", { key: '7bda16bedf50947c55ef10b3c6e24389fc738117', class: "heading" }, getHeading(this.heading, this.type, this.language)), h("slot", { key: '09b4acf6a2d87acbb51ed47ba58cf4b026e818fe' }))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "limel-callout"; }
|
|
48
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -96,10 +96,11 @@ export class Card {
|
|
|
96
96
|
if (event.target !== event.currentTarget) {
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
|
-
if (event.key === 'Enter' || event.key === ' ') {
|
|
100
|
-
|
|
101
|
-
this.host.click();
|
|
99
|
+
if (!(event.key === 'Enter' || event.key === ' ')) {
|
|
100
|
+
return;
|
|
102
101
|
}
|
|
102
|
+
event.preventDefault();
|
|
103
|
+
this.host.click();
|
|
103
104
|
};
|
|
104
105
|
}
|
|
105
106
|
componentWillLoad() {
|
|
@@ -118,7 +119,7 @@ export class Card {
|
|
|
118
119
|
this.setMarkdownElement(this.markdownElement);
|
|
119
120
|
}
|
|
120
121
|
render() {
|
|
121
|
-
return (h(Host, { key: '
|
|
122
|
+
return (h(Host, { key: '4e496b56cdab851ab0f002e18f6c5d86be22b5f0', onMouseEnter: this.show3dEffect ? this.handleMouseEnter : undefined, onMouseLeave: this.show3dEffect ? this.handleMouseLeave : undefined }, h("section", { key: 'a4d804f65b3991e0e328f6ea178e5b2f46e442c6', tabindex: this.clickable ? 0 : undefined, role: this.clickable ? 'button' : undefined, "aria-pressed": this.clickable ? String(this.selected) : undefined, onKeyDown: this.clickable ? this.handleKeyDown : undefined }, this.renderImage(), h("div", { key: '16b92c4f9edf683d03127508aeff3650c16b2abf', class: "body" }, this.renderHeader(), this.renderSlot(), this.renderValue(), this.renderActionBar()), this.show3dEffect && h("limel-3d-hover-effect-glow", { key: 'b2da47d92903869e46196bd2eaf05e259ce1abff' }))));
|
|
122
123
|
}
|
|
123
124
|
renderImage() {
|
|
124
125
|
var _a;
|
|
@@ -136,10 +137,10 @@ export class Card {
|
|
|
136
137
|
renderIcon() {
|
|
137
138
|
var _a;
|
|
138
139
|
const icon = getIconName(this.icon);
|
|
139
|
-
const color = typeof this.icon === 'string' ? undefined : (_a = this.icon) === null || _a === void 0 ? void 0 : _a.color;
|
|
140
140
|
if (!icon) {
|
|
141
141
|
return;
|
|
142
142
|
}
|
|
143
|
+
const color = typeof this.icon === 'string' ? undefined : (_a = this.icon) === null || _a === void 0 ? void 0 : _a.color;
|
|
143
144
|
return (h("limel-icon", { style: {
|
|
144
145
|
color: `${color}`,
|
|
145
146
|
}, badge: true, name: icon }));
|
|
@@ -62,10 +62,11 @@ export class Checkbox {
|
|
|
62
62
|
this.helperTextId = createRandomString();
|
|
63
63
|
this.destroyMDCInstances = () => {
|
|
64
64
|
const input = this.getCheckboxElement();
|
|
65
|
-
if (input) {
|
|
66
|
-
|
|
67
|
-
input.indeterminate = false;
|
|
65
|
+
if (!input) {
|
|
66
|
+
return;
|
|
68
67
|
}
|
|
68
|
+
delete input.dataset['indeterminate'];
|
|
69
|
+
input.indeterminate = false;
|
|
69
70
|
};
|
|
70
71
|
this.isInvalid = () => {
|
|
71
72
|
if (this.invalid) {
|
|
@@ -116,10 +117,11 @@ export class Checkbox {
|
|
|
116
117
|
this.shouldReinitialize = true;
|
|
117
118
|
}
|
|
118
119
|
componentDidRender() {
|
|
119
|
-
if (this.shouldReinitialize) {
|
|
120
|
-
|
|
121
|
-
this.shouldReinitialize = false;
|
|
120
|
+
if (!this.shouldReinitialize) {
|
|
121
|
+
return;
|
|
122
122
|
}
|
|
123
|
+
this.initialize();
|
|
124
|
+
this.shouldReinitialize = false;
|
|
123
125
|
}
|
|
124
126
|
connectedCallback() {
|
|
125
127
|
this.initialize();
|
|
@@ -131,7 +133,7 @@ export class Checkbox {
|
|
|
131
133
|
this.destroyMDCInstances();
|
|
132
134
|
}
|
|
133
135
|
render() {
|
|
134
|
-
return (h(CheckboxTemplate, { key: '
|
|
136
|
+
return (h(CheckboxTemplate, { key: '3c6dfd5ba4a5b93d470b28e754c6c18dffd53c11', disabled: this.disabled || this.readonly, label: this.label, readonlyLabels: this.readonlyLabels, helperText: this.helperText, helperTextId: this.helperTextId, checked: this.checked || this.indeterminate, indeterminate: this.indeterminate, required: this.required, readonly: this.readonly, invalid: this.isInvalid(), onChange: this.onChange, id: this.inputId }));
|
|
135
137
|
}
|
|
136
138
|
static get is() { return "limel-checkbox"; }
|
|
137
139
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export const CheckboxTemplate = (props) => {
|
|
3
|
-
const inputProps = {};
|
|
4
3
|
if (props.readonly) {
|
|
5
4
|
let icon = 'minus';
|
|
6
5
|
if (props.checked) {
|
|
@@ -14,6 +13,7 @@ export const CheckboxTemplate = (props) => {
|
|
|
14
13
|
h(HelperText, { text: props.helperText, helperTextId: props.helperTextId, invalid: props.invalid }),
|
|
15
14
|
];
|
|
16
15
|
}
|
|
16
|
+
const inputProps = {};
|
|
17
17
|
if (props.indeterminate) {
|
|
18
18
|
inputProps['data-indeterminate'] = 'true';
|
|
19
19
|
inputProps['aria-checked'] = 'mixed';
|
|
@@ -176,7 +176,7 @@ export class Chip {
|
|
|
176
176
|
removeEnterClickable(this.host);
|
|
177
177
|
}
|
|
178
178
|
render() {
|
|
179
|
-
return (h(Host, { key: '
|
|
179
|
+
return (h(Host, { key: '9d3e6d04feadd8ce09a34eabc47d0d5648f1df6b', onClick: this.filterClickWhenDisabled }, this.link ? this.renderAsLink() : this.renderAsButton()));
|
|
180
180
|
}
|
|
181
181
|
renderPicture() {
|
|
182
182
|
var _a, _b;
|
|
@@ -17,28 +17,22 @@ export function handleKeyboardEvent(event) {
|
|
|
17
17
|
// If there are no chips, there is nothing to select.
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
const isArrowRight = event.key === ARROW_RIGHT;
|
|
22
|
-
const isEnter = event.key === ENTER;
|
|
23
|
-
const isDelete = event.key === DELETE;
|
|
24
|
-
const isBackspace = event.key === BACKSPACE;
|
|
25
|
-
const isEscape = event.key === ESCAPE;
|
|
26
|
-
if (isArrowLeft) {
|
|
20
|
+
if (event.key === ARROW_LEFT) {
|
|
27
21
|
return handleLeft(this, event);
|
|
28
22
|
}
|
|
29
|
-
if (
|
|
23
|
+
if (event.key === ARROW_RIGHT) {
|
|
30
24
|
return handleRight(this, event);
|
|
31
25
|
}
|
|
32
|
-
if (
|
|
26
|
+
if (event.key === ENTER) {
|
|
33
27
|
return handleEnter(this, event);
|
|
34
28
|
}
|
|
35
|
-
if (
|
|
29
|
+
if (event.key === DELETE) {
|
|
36
30
|
return handleDelete(this, event);
|
|
37
31
|
}
|
|
38
|
-
if (
|
|
32
|
+
if (event.key === BACKSPACE) {
|
|
39
33
|
return handleBackspace(this, event);
|
|
40
34
|
}
|
|
41
|
-
if (
|
|
35
|
+
if (event.key === ESCAPE) {
|
|
42
36
|
return handleEscape(this, event);
|
|
43
37
|
}
|
|
44
38
|
}
|
|
@@ -65,22 +59,25 @@ function handleRight(host, event) {
|
|
|
65
59
|
host.inputChipIndexSelected += 1;
|
|
66
60
|
}
|
|
67
61
|
function handleEnter(host, event) {
|
|
68
|
-
if (host.inputChipIndexSelected
|
|
69
|
-
|
|
70
|
-
host.emitInteraction(host.value[host.inputChipIndexSelected]);
|
|
62
|
+
if (host.inputChipIndexSelected === null) {
|
|
63
|
+
return;
|
|
71
64
|
}
|
|
65
|
+
event.preventDefault();
|
|
66
|
+
host.emitInteraction(host.value[host.inputChipIndexSelected]);
|
|
72
67
|
}
|
|
73
68
|
function handleEscape(host, event) {
|
|
74
|
-
if (host.inputChipIndexSelected
|
|
75
|
-
|
|
76
|
-
host.inputChipIndexSelected = null;
|
|
69
|
+
if (host.inputChipIndexSelected === null) {
|
|
70
|
+
return;
|
|
77
71
|
}
|
|
72
|
+
event.preventDefault();
|
|
73
|
+
host.inputChipIndexSelected = null;
|
|
78
74
|
}
|
|
79
75
|
function handleDelete(host, event) {
|
|
80
|
-
if (host.inputChipIndexSelected
|
|
81
|
-
|
|
82
|
-
removeChip(host);
|
|
76
|
+
if (host.inputChipIndexSelected === null) {
|
|
77
|
+
return;
|
|
83
78
|
}
|
|
79
|
+
event.preventDefault();
|
|
80
|
+
removeChip(host);
|
|
84
81
|
}
|
|
85
82
|
function handleBackspace(host, event) {
|
|
86
83
|
if (host.inputChipIndexSelected !== null) {
|
|
@@ -292,7 +292,7 @@ export class ChipSet {
|
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
const value = this.getValue();
|
|
295
|
-
return (h(Host, { key: '
|
|
295
|
+
return (h(Host, { key: 'd41420c02e1907dce3a05fbbe1dbc68866fa6eb2' }, h("limel-notched-outline", { key: '18bd2cdc4bf86875a839a1c508782850c3608e1c', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid || this.isInvalid(), disabled: this.disabled, readonly: this.readonly, hasValue: !!((_a = this.value) === null || _a === void 0 ? void 0 : _a.length), hasLeadingIcon: !!this.leadingIcon, hasFloatingLabel: this.floatLabelAbove() }, h("div", Object.assign({ key: '9217477e8ff9ea83ab9b2f172b28f8eea5a3320e', slot: "content" }, this.getContentProps(), { class: classes }), this.renderContent(value))), this.renderHelperLine()));
|
|
296
296
|
}
|
|
297
297
|
getContentProps() {
|
|
298
298
|
if (this.type === 'input') {
|
|
@@ -339,10 +339,7 @@ export class ChipSet {
|
|
|
339
339
|
if (this.invalid) {
|
|
340
340
|
return true;
|
|
341
341
|
}
|
|
342
|
-
if (!this.required) {
|
|
343
|
-
return false;
|
|
344
|
-
}
|
|
345
|
-
if (!this.blurred) {
|
|
342
|
+
if (!this.required || !this.blurred) {
|
|
346
343
|
return false;
|
|
347
344
|
}
|
|
348
345
|
return !((_a = this.value) === null || _a === void 0 ? void 0 : _a.length);
|
|
@@ -359,13 +356,10 @@ export class ChipSet {
|
|
|
359
356
|
* and the input should not steal focus alongside it.
|
|
360
357
|
*/
|
|
361
358
|
handleTextFieldFocus(event) {
|
|
362
|
-
if (this.disabled ||
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
return;
|
|
367
|
-
}
|
|
368
|
-
if (isChipAnnotatedEvent(event)) {
|
|
359
|
+
if (this.disabled ||
|
|
360
|
+
this.readonly ||
|
|
361
|
+
this.editMode ||
|
|
362
|
+
isChipAnnotatedEvent(event)) {
|
|
369
363
|
return;
|
|
370
364
|
}
|
|
371
365
|
this.editMode = true;
|
|
@@ -484,7 +478,7 @@ export class ChipSet {
|
|
|
484
478
|
if (this.disabled || this.readonly || !this.clearAllButton) {
|
|
485
479
|
return;
|
|
486
480
|
}
|
|
487
|
-
if (
|
|
481
|
+
if (this.value.every((chip) => chip.removable === false)) {
|
|
488
482
|
// Nothing to clear if every chip is locked.
|
|
489
483
|
return;
|
|
490
484
|
}
|
|
@@ -60,7 +60,7 @@ export class CircularProgress {
|
|
|
60
60
|
};
|
|
61
61
|
const currentPercentage = (this.value * PERCENT) / this.maxValue + '%';
|
|
62
62
|
const value = Math.round(this.value * 10) / 10;
|
|
63
|
-
return (h("div", { key: '
|
|
63
|
+
return (h("div", { key: 'c4d09437d38d219716e38e08f52cfea7b58769ff', role: "progressbar", class: classList, "aria-label": "%", "aria-valuemin": "0", "aria-valuemax": this.maxValue, "aria-valuenow": this.value, style: { '--percentage': currentPercentage } }, this.renderPrefix(), h("span", { key: 'f30babc1921c94b3d61456ab5d2e507af145dab7', class: "value" }, abbreviate(value), h("span", { key: '0706ea08bb17d11d49218c32d3ab47e0d5ac8e89', class: "suffix" }, this.suffix))));
|
|
64
64
|
}
|
|
65
65
|
static get is() { return "limel-circular-progress"; }
|
|
66
66
|
static get encapsulation() { return "shadow"; }
|
|
@@ -104,10 +104,11 @@ export class CodeDiff {
|
|
|
104
104
|
(_a = this.searchInputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
105
105
|
}
|
|
106
106
|
this.prevSearchVisible = this.searchVisible;
|
|
107
|
-
if (this.searchTerm && this.totalSearchMatches > 0) {
|
|
108
|
-
|
|
109
|
-
current === null || current === void 0 ? void 0 : current.scrollIntoView({ block: 'center', behavior: 'smooth' });
|
|
107
|
+
if (!(this.searchTerm && this.totalSearchMatches > 0)) {
|
|
108
|
+
return;
|
|
110
109
|
}
|
|
110
|
+
const current = (_b = this.host.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.search-match--current');
|
|
111
|
+
current === null || current === void 0 ? void 0 : current.scrollIntoView({ block: 'center', behavior: 'smooth' });
|
|
111
112
|
}
|
|
112
113
|
render() {
|
|
113
114
|
this.searchMatchCounter = 0;
|
|
@@ -116,7 +117,7 @@ export class CodeDiff {
|
|
|
116
117
|
// Capture total matches after rendering completes
|
|
117
118
|
this.totalSearchMatches = this.searchMatchCounter;
|
|
118
119
|
const lineNumberWidth = this.computeLineNumberWidth();
|
|
119
|
-
return (h(Host, { key: '
|
|
120
|
+
return (h(Host, { key: 'd7d3296359c35867f354c7eecb42c76cf7d9c2cb', style: { '--limel-line-number-min-width': lineNumberWidth } }, this.renderHeader(), this.renderScreenReaderSummary(), this.searchVisible && this.renderSearchBar(), h("div", { key: '07b3433f319a0d39cdce53e916770fb6b477b0dd', class: "diff-body", role: "table", "aria-label": this.getTranslation('code-diff.table-label'), tabindex: "0", onKeyDown: (event) => this.handleKeyDown(event) }, diffContent), h("div", { key: 'd4073f339c20ade38f788c644a0f14d055a82099', class: "screen-reader-only", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.liveAnnouncement)));
|
|
120
121
|
}
|
|
121
122
|
watchInputs() {
|
|
122
123
|
this.recomputeDiff();
|
|
@@ -187,12 +188,13 @@ export class CodeDiff {
|
|
|
187
188
|
row.classList.remove('diff-line--focused');
|
|
188
189
|
}
|
|
189
190
|
const target = rows[this.focusedRowIndex];
|
|
190
|
-
if (target) {
|
|
191
|
-
|
|
192
|
-
target.classList.add('diff-line--focused');
|
|
193
|
-
target.focus();
|
|
194
|
-
this.announceLine(target);
|
|
191
|
+
if (!target) {
|
|
192
|
+
return;
|
|
195
193
|
}
|
|
194
|
+
target.setAttribute('tabindex', '-1');
|
|
195
|
+
target.classList.add('diff-line--focused');
|
|
196
|
+
target.focus();
|
|
197
|
+
this.announceLine(target);
|
|
196
198
|
}
|
|
197
199
|
announceLine(row) {
|
|
198
200
|
var _a, _b;
|
|
@@ -249,10 +251,11 @@ export class CodeDiff {
|
|
|
249
251
|
}
|
|
250
252
|
toggleSearch() {
|
|
251
253
|
this.searchVisible = !this.searchVisible;
|
|
252
|
-
if (
|
|
253
|
-
|
|
254
|
-
this.currentMatchIndex = 0;
|
|
254
|
+
if (this.searchVisible) {
|
|
255
|
+
return;
|
|
255
256
|
}
|
|
257
|
+
this.searchTerm = '';
|
|
258
|
+
this.currentMatchIndex = 0;
|
|
256
259
|
}
|
|
257
260
|
onSearchInput(event) {
|
|
258
261
|
this.searchTerm = event.detail;
|
|
@@ -387,27 +390,21 @@ export class CodeDiff {
|
|
|
387
390
|
: undefined }, (_b = line.newLineNumber) !== null && _b !== void 0 ? _b : ''), h("span", { class: "line-indicator", role: "cell" }, indicator), h("span", { class: "line-content", role: "cell" }, this.renderContent(line))));
|
|
388
391
|
}
|
|
389
392
|
renderSplitHunkRows(hunk) {
|
|
390
|
-
var _a, _b, _c, _d;
|
|
391
393
|
const splitRows = buildSplitLines(hunk.lines);
|
|
392
394
|
const elements = [];
|
|
393
395
|
let i = 0;
|
|
396
|
+
const isContextRow = (row) => { var _a, _b; return ((_a = row.left) === null || _a === void 0 ? void 0 : _a.type) === 'context' && ((_b = row.right) === null || _b === void 0 ? void 0 : _b.type) === 'context'; };
|
|
394
397
|
while (i < splitRows.length) {
|
|
395
398
|
const row = splitRows[i];
|
|
396
|
-
|
|
397
|
-
if (isContext) {
|
|
399
|
+
if (isContextRow(row)) {
|
|
398
400
|
elements.push(this.renderSplitRow(row));
|
|
399
401
|
i++;
|
|
400
402
|
continue;
|
|
401
403
|
}
|
|
402
404
|
// Collect consecutive changed rows
|
|
403
405
|
const blockRows = [];
|
|
404
|
-
while (i < splitRows.length) {
|
|
405
|
-
|
|
406
|
-
const rIsContext = ((_c = r.left) === null || _c === void 0 ? void 0 : _c.type) === 'context' && ((_d = r.right) === null || _d === void 0 ? void 0 : _d.type) === 'context';
|
|
407
|
-
if (rIsContext) {
|
|
408
|
-
break;
|
|
409
|
-
}
|
|
410
|
-
blockRows.push(r);
|
|
406
|
+
while (i < splitRows.length && !isContextRow(splitRows[i])) {
|
|
407
|
+
blockRows.push(splitRows[i]);
|
|
411
408
|
i++;
|
|
412
409
|
}
|
|
413
410
|
elements.push(this.renderSplitChangeBlock(blockRows));
|