@heartlandone/vega 2.95.0 → 2.96.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-76815382.js → app-globals-38afea36.js} +7 -7
- package/dist/cjs/{code-block-493c7ce7.js → code-block-4126dc3b.js} +1501 -55
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-ab21fcbf.js → component-value-history-controller-slimmer.abstract-38ba956e.js} +2 -2
- package/dist/cjs/{content-state-fc34a814.js → content-state-50e8a03c.js} +142 -580
- package/dist/cjs/{element-appender-slimmer-1d6323c2.js → element-appender-slimmer-7773fdab.js} +115 -0
- package/dist/cjs/{image-annotation-action-7c4cd316.js → image-annotation-action-89363de8.js} +2 -2
- package/dist/cjs/{image-extension-30a7c10f.js → image-extension-c881c454.js} +2 -2
- package/dist/cjs/index.cjs.js +10 -10
- package/dist/cjs/{link-extension-92a63cb7.js → link-extension-b7f99a52.js} +2 -2
- package/dist/cjs/loader.cjs.js +7 -7
- package/dist/cjs/{public-rules-9e1ea1d9.js → public-rules-72894208.js} +3 -3
- package/dist/cjs/{range-30219330.js → range-95d41dea.js} +1 -1
- package/dist/cjs/{rich-text-editor-required-rule-23bf7485.js → rich-text-editor-required-rule-4d6d2493.js} +1 -1
- package/dist/cjs/{split-cell-operation-43752212.js → split-cell-operation-70be116d.js} +2 -2
- package/dist/cjs/{token-extension-d123d9d0.js → token-extension-eb828948.js} +35 -11
- package/dist/cjs/vega-code-block.cjs.entry.js +3 -3
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +27 -4
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +58 -9
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +608 -90
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +3 -3
- package/dist/cjs/vega-section-title.cjs.entry.js +896 -14
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +1 -1
- package/dist/cjs/vega.cjs.js +7 -7
- package/dist/collection/components/vega-combo-box/vega-combo-box.js +2 -2
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +30 -7
- package/dist/collection/components/vega-input-select/vega-input-select.js +2 -2
- package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.css +4 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.js +29 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-text-or-decorator-node-strategy.js +10 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-transform-to-list-strategy.js +8 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-annotation-strategy.abstract.js +60 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-replace-nest-list-strategy.js +36 -4
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-items-strategy.abstract.js +27 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-nest-items-strategy.js +74 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-remove-list-item-strategy.js +81 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-selection.js +30 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-list-strategy.js +160 -9
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-paragraph-strategy.js +376 -10
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-unnest-items-strategy.js +104 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/nest-list-items-action.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/unnest-list-items-action.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/list-annotation.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +10 -1
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +11 -3
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +7 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-block-filter-styles-strategy.js +8 -4
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.js +34 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.js +20 -3
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.js +25 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/li-to-rte-list-item-block-strategy.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/abstract-delete-content-handler.js +29 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-numbers-toolbar-button-slimmer.js +30 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/helper/abstract-list-keyboard-handler.js +204 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/helper/list-shift-tab-outdent-handler.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/helper/list-tab-indent-handler.js +34 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/list-keyboard-slimmer.js +180 -0
- package/dist/collection/components/vega-section-title/slimmers/a11y-tree/build-section-title-a11y-tree.js +54 -0
- package/dist/collection/components/vega-section-title/slimmers/renderers/vega-section-title-renderer.js +4 -4
- package/dist/collection/components/vega-section-title/vega-section-title.js +18 -2
- package/dist/collection/helpers/a11y-tree/a11y-node-dto.js +210 -0
- package/dist/collection/helpers/a11y-tree/a11y-tree-applier.js +189 -0
- package/dist/collection/helpers/a11y-tree/a11y-tree.types.js +48 -0
- package/dist/collection/helpers/a11y-tree/strategies/baseline-strategy.js +78 -0
- package/dist/collection/helpers/a11y-tree/strategies/firefox-nvda-strategy.js +56 -0
- package/dist/collection/helpers/a11y-tree/strategies/webkit-voiceover-strategy.js +140 -0
- package/dist/collection/helpers/a11y-tree/strategy-resolver.js +172 -0
- package/dist/collection/helpers/slimmers/a11y-tree-slimmer.js +54 -0
- package/dist/collection/helpers/slimmers/element-appender/element-appender-slimmer.js +29 -0
- package/dist/collection/helpers/slimmers/element-appender/visibility-modifiers/clip-on-scroll-modifier.js +70 -0
- package/dist/collection/helpers/slimmers/element-appender/visibility-modifiers/visibility-modifier.interface.js +1 -0
- package/dist/collection/helpers/ui/element-appender.js +16 -0
- package/dist/esm/{app-globals-eafcc7a1.js → app-globals-d7b651c1.js} +7 -7
- package/dist/esm/{code-block-e12588fe.js → code-block-0a88b481.js} +1495 -51
- package/dist/esm/{component-value-history-controller-slimmer.abstract-4e8eb313.js → component-value-history-controller-slimmer.abstract-6846edfa.js} +2 -2
- package/dist/esm/{content-state-8032467a.js → content-state-79ca99e5.js} +105 -541
- package/dist/esm/{element-appender-slimmer-7fcb944b.js → element-appender-slimmer-73ad10ae.js} +115 -0
- package/dist/esm/{image-annotation-action-08a20d5e.js → image-annotation-action-bb299ef1.js} +2 -2
- package/dist/esm/{image-extension-b6c7e4a7.js → image-extension-48a96f98.js} +2 -2
- package/dist/esm/index.js +8 -8
- package/dist/esm/{link-extension-97fcb8fb.js → link-extension-09534514.js} +2 -2
- package/dist/esm/loader.js +7 -7
- package/dist/esm/{public-rules-c06f0d2a.js → public-rules-5eb03ef0.js} +3 -3
- package/dist/esm/{range-e999837f.js → range-d4deb7df.js} +1 -1
- package/dist/esm/{rich-text-editor-required-rule-71f8ee98.js → rich-text-editor-required-rule-5bbbce23.js} +1 -1
- package/dist/esm/{split-cell-operation-359f8082.js → split-cell-operation-7f3058ad.js} +2 -2
- package/dist/esm/{token-extension-f5bf9c21.js → token-extension-40c32bcc.js} +30 -6
- package/dist/esm/vega-code-block.entry.js +3 -3
- package/dist/esm/vega-date-picker_2.entry.js +1 -1
- package/dist/esm/vega-dropdown_5.entry.js +27 -4
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-popover_2.entry.js +1 -1
- package/dist/esm/vega-rich-text-content.entry.js +58 -9
- package/dist/esm/vega-rich-text-editor_4.entry.js +604 -86
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +3 -3
- package/dist/esm/vega-section-title.entry.js +897 -15
- package/dist/esm/vega-time-picker_2.entry.js +1 -1
- package/dist/esm/vega-tooltip_2.entry.js +1 -1
- package/dist/esm/vega.js +7 -7
- package/dist/sri/vega-sri-manifest.json +94 -94
- package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +6 -6
- package/dist/types/components/vega-dropdown/types.d.ts +2 -2
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +32 -9
- package/dist/types/components/vega-input-select/vega-input-select.d.ts +6 -6
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-annotation-strategy.abstract.d.ts +36 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-replace-nest-list-strategy.d.ts +14 -2
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-items-strategy.abstract.d.ts +22 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-nest-items-strategy.d.ts +21 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-remove-list-item-strategy.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-selection.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-list-strategy.d.ts +30 -3
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-paragraph-strategy.d.ts +99 -3
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-unnest-items-strategy.d.ts +22 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/nest-list-items-action.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/unnest-list-items-action.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/list-annotation.d.ts +8 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +6 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +5 -1
- package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.d.ts +8 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-numbers-toolbar-button-slimmer.d.ts +8 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/helper/abstract-list-keyboard-handler.d.ts +99 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/helper/list-shift-tab-outdent-handler.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/helper/list-tab-indent-handler.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/list-keyboard-slimmer.d.ts +73 -0
- package/dist/types/components/vega-section-title/slimmers/a11y-tree/build-section-title-a11y-tree.d.ts +41 -0
- package/dist/types/components/vega-section-title/vega-section-title.d.ts +9 -0
- package/dist/types/components.d.ts +10 -10
- package/dist/types/helpers/a11y-tree/a11y-node-dto.d.ts +173 -0
- package/dist/types/helpers/a11y-tree/a11y-tree-applier.d.ts +28 -0
- package/dist/types/helpers/a11y-tree/a11y-tree.types.d.ts +137 -0
- package/dist/types/helpers/a11y-tree/strategies/baseline-strategy.d.ts +18 -0
- package/dist/types/helpers/a11y-tree/strategies/firefox-nvda-strategy.d.ts +16 -0
- package/dist/types/helpers/a11y-tree/strategies/webkit-voiceover-strategy.d.ts +23 -0
- package/dist/types/helpers/a11y-tree/strategy-resolver.d.ts +59 -0
- package/dist/types/helpers/slimmers/a11y-tree-slimmer.d.ts +49 -0
- package/dist/types/helpers/slimmers/element-appender/element-appender-slimmer.d.ts +9 -0
- package/dist/types/helpers/slimmers/element-appender/visibility-modifiers/clip-on-scroll-modifier.d.ts +37 -0
- package/dist/types/helpers/slimmers/element-appender/visibility-modifiers/visibility-modifier.interface.d.ts +56 -0
- package/dist/types/helpers/ui/element-appender.d.ts +7 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-9c39f90b.entry.js → p-1dfbc542.entry.js} +1 -1
- package/dist/vega/{p-e235020b.entry.js → p-22cc174e.entry.js} +1 -1
- package/dist/vega/{p-b187b82d.entry.js → p-2df5d59b.entry.js} +1 -1
- package/dist/vega/{p-f7e459cd.js → p-312d8205.js} +1 -1
- package/dist/vega/{p-a7209700.js → p-3345d903.js} +1 -1
- package/dist/vega/{p-02355de8.js → p-3c23ec90.js} +1 -1
- package/dist/vega/p-55e0014a.js +3 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-65fee02f.entry.js +1 -0
- package/dist/vega/p-6a51d720.js +1 -0
- package/dist/vega/{p-fe24b459.js → p-6c7b6d45.js} +1 -1
- package/dist/vega/{p-579cdeae.js → p-84b7a775.js} +1 -1
- package/dist/vega/{p-df828d90.entry.js → p-96da7d30.entry.js} +1 -1
- package/dist/vega/{p-88be9ec5.js → p-9d3f69cb.js} +1 -1
- package/dist/vega/{p-8a001caa.js → p-9f11b579.js} +1 -1
- package/dist/vega/{p-ba2b9663.entry.js → p-acaff62d.entry.js} +1 -1
- package/dist/vega/p-b63319e9.entry.js +1 -0
- package/dist/vega/{p-c079c935.entry.js → p-b660f38c.entry.js} +1 -1
- package/dist/vega/p-b8ffa42f.entry.js +1 -0
- package/dist/vega/{p-4fe40b76.js → p-c4564904.js} +1 -1
- package/dist/vega/p-d9158512.js +1 -0
- package/dist/vega/p-e62d41ee.js +1 -0
- package/dist/vega/{p-9f7154d2.js → p-ec5dee32.js} +1 -1
- package/dist/vega/{p-05d04c07.entry.js → p-f29d9707.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +3 -2
- package/dist/vega/p-0be4df0a.js +0 -1
- package/dist/vega/p-38c9d782.js +0 -1
- package/dist/vega/p-513bc0d9.js +0 -1
- package/dist/vega/p-8d4b85e7.entry.js +0 -1
- package/dist/vega/p-c5d3b008.entry.js +0 -1
- package/dist/vega/p-d25ca0c3.entry.js +0 -1
- package/dist/vega/p-f4da615a.js +0 -3
package/dist/esm/{element-appender-slimmer-7fcb944b.js → element-appender-slimmer-73ad10ae.js}
RENAMED
|
@@ -1350,6 +1350,22 @@ class ElementAppender {
|
|
|
1350
1350
|
this.adjustPosition(true);
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
+
/**
|
|
1354
|
+
* Toggles the appendable's visibility without changing its logical open
|
|
1355
|
+
* state. Used to visually clip the popup when the trigger is out of view.
|
|
1356
|
+
*
|
|
1357
|
+
* @param {boolean} clipped - true to hide, false to show
|
|
1358
|
+
*/
|
|
1359
|
+
setClipHidden(clipped) {
|
|
1360
|
+
if (!this.showConfig)
|
|
1361
|
+
return;
|
|
1362
|
+
if (clipped) {
|
|
1363
|
+
this.hideElementAppender(this.showConfig.appendableElement);
|
|
1364
|
+
}
|
|
1365
|
+
else {
|
|
1366
|
+
this.showElementAppender(this.showConfig.appendableElement);
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1353
1369
|
/* istanbul ignore next */
|
|
1354
1370
|
/**
|
|
1355
1371
|
* It removes the z-index from the appendable element, removes the appendable element from the DOM, and
|
|
@@ -1751,6 +1767,77 @@ class NoneTriggerStrategy {
|
|
|
1751
1767
|
}
|
|
1752
1768
|
}
|
|
1753
1769
|
|
|
1770
|
+
/**
|
|
1771
|
+
* Returns the flattened-tree parent of a node so we can walk from inside a shadow
|
|
1772
|
+
* tree up to the top-level document: assigned slot → parent element → shadow
|
|
1773
|
+
* host.
|
|
1774
|
+
*
|
|
1775
|
+
* @param {Node} node - The node whose flattened-tree parent should be returned.
|
|
1776
|
+
* @returns {HTMLElement | null} The flattened-tree parent, or null when the walk has reached the top.
|
|
1777
|
+
*/
|
|
1778
|
+
function flatParent(node) {
|
|
1779
|
+
var _a;
|
|
1780
|
+
const slot = (_a = node.assignedSlot) !== null && _a !== void 0 ? _a : null;
|
|
1781
|
+
if (slot)
|
|
1782
|
+
return slot;
|
|
1783
|
+
const parent = node.parentElement;
|
|
1784
|
+
if (parent)
|
|
1785
|
+
return parent;
|
|
1786
|
+
const root = node.getRootNode();
|
|
1787
|
+
return root.host ? root.host : null;
|
|
1788
|
+
}
|
|
1789
|
+
/**
|
|
1790
|
+
* Returns true when the trigger is clipped out of view by the visual viewport
|
|
1791
|
+
* or by any scrollable ancestor.
|
|
1792
|
+
*
|
|
1793
|
+
* @param {HTMLElement} target - The trigger element to test against the viewport and scrollable ancestors.
|
|
1794
|
+
* @returns {boolean} True when the trigger is clipped and the appendable should be hidden.
|
|
1795
|
+
*/
|
|
1796
|
+
function isTriggerClipped(target) {
|
|
1797
|
+
const t = target.getBoundingClientRect();
|
|
1798
|
+
const vw = window.innerWidth;
|
|
1799
|
+
const vh = window.innerHeight;
|
|
1800
|
+
if (t.bottom <= 0 || t.top >= vh || t.right <= 0 || t.left >= vw) {
|
|
1801
|
+
return true;
|
|
1802
|
+
}
|
|
1803
|
+
let node = flatParent(target);
|
|
1804
|
+
while (node) {
|
|
1805
|
+
const style = getComputedStyle(node);
|
|
1806
|
+
if (/(auto|scroll)/.test(style.overflowX + ' ' + style.overflowY)) {
|
|
1807
|
+
const r = node.getBoundingClientRect();
|
|
1808
|
+
if (t.bottom <= r.top || t.top >= r.bottom || t.right <= r.left || t.left >= r.right) {
|
|
1809
|
+
return true;
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
node = flatParent(node);
|
|
1813
|
+
}
|
|
1814
|
+
return false;
|
|
1815
|
+
}
|
|
1816
|
+
/**
|
|
1817
|
+
* Clip-hides an appendable while its trigger is scrolled out of view and
|
|
1818
|
+
* restores it when the trigger returns, without touching the popup's logical
|
|
1819
|
+
* open state. Applies to every appender consumer.
|
|
1820
|
+
*/
|
|
1821
|
+
class ClipOnScrollModifier {
|
|
1822
|
+
/**
|
|
1823
|
+
* @returns {boolean} Always true — geometry alone decides clip vs restore in `evaluate`.
|
|
1824
|
+
*/
|
|
1825
|
+
isEnabled() {
|
|
1826
|
+
return true;
|
|
1827
|
+
}
|
|
1828
|
+
/**
|
|
1829
|
+
* Evaluates whether the appendable should be clip-hidden or restored based
|
|
1830
|
+
* on the current trigger geometry.
|
|
1831
|
+
*
|
|
1832
|
+
* @param {VegaEAVisibilityContext} context - Evaluation context.
|
|
1833
|
+
* @returns {VegaEAVisibilityResult} The next clip action.
|
|
1834
|
+
*/
|
|
1835
|
+
evaluate(context) {
|
|
1836
|
+
const clipped = isTriggerClipped(context.target);
|
|
1837
|
+
return { nextAction: clipped ? 'clip-hide' : 'clip-show' };
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1754
1841
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1755
1842
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1756
1843
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1761,6 +1848,7 @@ class ElementAppenderSlimmer extends VegaSlimmer {
|
|
|
1761
1848
|
constructor(showConfigFactory, getTrigger, isDropdownShowName = 'isDropdownShow', disableInteractiveGetter = () => false) {
|
|
1762
1849
|
super();
|
|
1763
1850
|
this.hierarchyTreeManager = new ElementAppenderHierarchyTreeManager(this);
|
|
1851
|
+
this.visibilityModifiers = [new ClipOnScrollModifier()];
|
|
1764
1852
|
/**
|
|
1765
1853
|
* It adds event listeners to the target and the appendable element
|
|
1766
1854
|
*/
|
|
@@ -1866,6 +1954,33 @@ class ElementAppenderSlimmer extends VegaSlimmer {
|
|
|
1866
1954
|
// itself, so no forced recalculation is needed there.
|
|
1867
1955
|
const forceAdjust = !(e instanceof Event) || e.target !== tryGetDocument();
|
|
1868
1956
|
(_a = this.elementAppender) === null || _a === void 0 ? void 0 : _a.onScroll(forceAdjust);
|
|
1957
|
+
this.executeVisibilityModifiers({ kind: 'scroll', event: e });
|
|
1958
|
+
}
|
|
1959
|
+
};
|
|
1960
|
+
/**
|
|
1961
|
+
* Runs every enabled visibility modifier against the current show config and
|
|
1962
|
+
* routes their actions to the appender. Modifiers are viewport-level,
|
|
1963
|
+
* cross-cutting concerns that run in parallel with (not in place of) the
|
|
1964
|
+
* selected trigger strategy — they only affect the appendable's visual
|
|
1965
|
+
* clipping, never its logical open state.
|
|
1966
|
+
*/
|
|
1967
|
+
this.executeVisibilityModifiers = (event) => {
|
|
1968
|
+
if (!this.showConfig || !this.elementAppender)
|
|
1969
|
+
return;
|
|
1970
|
+
for (const modifier of this.visibilityModifiers) {
|
|
1971
|
+
if (!modifier.isEnabled(this.showConfig))
|
|
1972
|
+
continue;
|
|
1973
|
+
const result = modifier.evaluate({
|
|
1974
|
+
target: this.showConfig.target,
|
|
1975
|
+
appendableElement: this.showConfig.appendableElement,
|
|
1976
|
+
showConfig: this.showConfig,
|
|
1977
|
+
currentState: { isVisible: this.isShowing() },
|
|
1978
|
+
event,
|
|
1979
|
+
});
|
|
1980
|
+
if (result.nextAction === 'clip-hide')
|
|
1981
|
+
this.elementAppender.setClipHidden(true);
|
|
1982
|
+
else if (result.nextAction === 'clip-show')
|
|
1983
|
+
this.elementAppender.setClipHidden(false);
|
|
1869
1984
|
}
|
|
1870
1985
|
};
|
|
1871
1986
|
/* A timer that will hide the dropdown after a certain amount of time. */
|
package/dist/esm/{image-annotation-action-08a20d5e.js → image-annotation-action-bb299ef1.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h } from './index-090d31ca.js';
|
|
2
2
|
import { V as VegaInternalIconManager } from './internal-icon-manager-e7c57096.js';
|
|
3
3
|
import { c as MapToComponentField, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
4
|
-
import { A as ActionHandleStrategyRegistry,
|
|
4
|
+
import { A as ActionHandleStrategyRegistry, T as RTE_TEXT_COLORS, R as RTETextNode, ag as TextColorAnnotationAction, N as NodeAnnotationTypeEnum, j as AnnotationAction } from './code-block-0a88b481.js';
|
|
5
5
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-ddff8662.js';
|
|
6
6
|
import { a as VegaClick, c as VegaPopoverShow, b as VegaPopoverHide, d as VegaChange } from './vega-event-id-f55f6977.js';
|
|
7
7
|
import { a as VegaDarkModeStyleController } from './dark-mode-style-controller-ca5afd2d.js';
|
|
8
|
-
import {
|
|
8
|
+
import { e as ImageAnnotation } from './content-state-79ca99e5.js';
|
|
9
9
|
|
|
10
10
|
const text = {
|
|
11
11
|
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M64 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V80C0 53.5 21.5 32 48 32H224 400c26.5 0 48 21.5 48 48v48c0 17.7-14.3 32-32 32s-32-14.3-32-32V96H256l0 320h48c17.7 0 32 14.3 32 32s-14.3 32-32 32H144c-17.7 0-32-14.3-32-32s14.3-32 32-32h48l0-320H64z"/></svg>`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as ModifyContentAction, i as ModifyContentActionType } from './code-block-
|
|
2
|
-
import { b as VegaRTEExtension } from './link-extension-
|
|
1
|
+
import { M as ModifyContentAction, i as ModifyContentActionType } from './code-block-0a88b481.js';
|
|
2
|
+
import { b as VegaRTEExtension } from './link-extension-09534514.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Replace the text node selected content to new text
|
package/dist/esm/index.js
CHANGED
|
@@ -8,9 +8,9 @@ export { I as Icons, g as getIconFromToken } from './icons-8627925e.js';
|
|
|
8
8
|
export { b as Typography, a as TypographyKeys, T as TypographyUrls } from './typography-19c3b9be.js';
|
|
9
9
|
export { d as BoxDisplay, e as BreakpointKeys, C as CssStates, F as FlexDirections } from './ui-93922c59.js';
|
|
10
10
|
export { F as FrameworkEnum, v as VegaEnvManager } from './vega-env-manager-8f8dc473.js';
|
|
11
|
-
export { H as ActionHandlerInterceptor, G as DeleteSelectedContentAction, I as InsertNodeToNearestRootAction, F as RTEBlockquoteBlock, E as RTELanguageToolbarButtonRenderer, C as RTETokenNode, D as RTETokenNodeRenderer, R as RTETokenToolbarButtonRenderer, A as VegaCalendarPeriodFactory, b as VegaEventManager, V as VegaLoader, a as VegaNotify, l as VegaRTEBlockquoteExtension, y as VegaRTECopyExtension, z as VegaRTECutExtension, h as VegaRTEDefaultLineHeightOptions, n as VegaRTEFindReplaceExtension, x as VegaRTEFullscreenExtension, i as VegaRTEFunctionExtension, k as VegaRTEHorizontalLineExtension, g as VegaRTELanguageExtension, u as VegaRTELineHeightExtension, v as VegaRTEPasteExtension, r as VegaRTESpecialCharactersArrows, s as VegaRTESpecialCharactersCurrency, o as VegaRTESpecialCharactersEssentials, m as VegaRTESpecialCharactersExtension, p as VegaRTESpecialCharactersLatin, q as VegaRTESpecialCharactersMathematical, t as VegaRTESpecialCharactersText, j as VegaRTETableExtension, f as VegaRTETokenExtension, B as VegaRTEToolbarButtonRenderer, d as VegaSkeletonLoader, e as VegaTranslation, c as VegaZIndexManager, w as waitForVega } from './token-extension-
|
|
11
|
+
export { H as ActionHandlerInterceptor, G as DeleteSelectedContentAction, I as InsertNodeToNearestRootAction, F as RTEBlockquoteBlock, E as RTELanguageToolbarButtonRenderer, C as RTETokenNode, D as RTETokenNodeRenderer, R as RTETokenToolbarButtonRenderer, A as VegaCalendarPeriodFactory, b as VegaEventManager, V as VegaLoader, a as VegaNotify, l as VegaRTEBlockquoteExtension, y as VegaRTECopyExtension, z as VegaRTECutExtension, h as VegaRTEDefaultLineHeightOptions, n as VegaRTEFindReplaceExtension, x as VegaRTEFullscreenExtension, i as VegaRTEFunctionExtension, k as VegaRTEHorizontalLineExtension, g as VegaRTELanguageExtension, u as VegaRTELineHeightExtension, v as VegaRTEPasteExtension, r as VegaRTESpecialCharactersArrows, s as VegaRTESpecialCharactersCurrency, o as VegaRTESpecialCharactersEssentials, m as VegaRTESpecialCharactersExtension, p as VegaRTESpecialCharactersLatin, q as VegaRTESpecialCharactersMathematical, t as VegaRTESpecialCharactersText, j as VegaRTETableExtension, f as VegaRTETokenExtension, B as VegaRTEToolbarButtonRenderer, d as VegaSkeletonLoader, e as VegaTranslation, c as VegaZIndexManager, w as waitForVega } from './token-extension-40c32bcc.js';
|
|
12
12
|
export { F as FeatureFlag } from './feature-flag-controller-3fd04ea9.js';
|
|
13
|
-
export { V as VegaThemeManager } from './split-cell-operation-
|
|
13
|
+
export { V as VegaThemeManager } from './split-cell-operation-7f3058ad.js';
|
|
14
14
|
export { V as VegaDialog } from './vega-dialog-controller-726b74f9.js';
|
|
15
15
|
export { B as VegaJQueryDelegatedEventStrategy } from './internal-vega-event-manager-2ecc9186.js';
|
|
16
16
|
export { V as VegaIconManager } from './icon-manager-4ef3f6dd.js';
|
|
@@ -18,21 +18,21 @@ export { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-
|
|
|
18
18
|
import './ui-d73f756a.js';
|
|
19
19
|
export { s as VegaTranslationResourceEN } from './internal-translation-controller-16709132.js';
|
|
20
20
|
export { s as setVegaNonce } from './vega-nonce-manager-497e5eb5.js';
|
|
21
|
-
export { d as ActionHandleStrategy, e as AppendChildrenAction,
|
|
22
|
-
export { B as BlockToRTEBlockStrategyAbstract, E as ElementToDTOStrategy, I as InsertNewParagraphAction, R as RTEImageBlock,
|
|
21
|
+
export { d as ActionHandleStrategy, e as AppendChildrenAction, a9 as CodeLanguage, l as CustomAttributeAnnotation, aa as CustomClassAnnotation, t as CustomStyleAnnotation, I as InsertChildrenAfterAction, g as InsertChildrenBeforeAction, M as ModifyContentAction, i as ModifyContentActionType, c as RTEAnnotationStyle, a as RTEBlock, o as RTEDecoratorNode, n as RTEFilterStylesStrategy, L as RTEListBlock, q as RTEListItemBlock, f as RTENode, b as RTETextBlock, R as RTETextNode, k as RemoveChildrenAction, ab as VegaRTEDefaultTextStyleItems, V as VegaRTEPresetToolbarItems } from './code-block-0a88b481.js';
|
|
22
|
+
export { B as BlockToRTEBlockStrategyAbstract, E as ElementToDTOStrategy, I as InsertNewParagraphAction, R as RTEImageBlock, d as RTEImageNode, U as UpdateCursorPositionAction, V as VegaRTEContent, h as htmlElementToAnnotationGenerator } from './content-state-79ca99e5.js';
|
|
23
23
|
export { G as GridColumns, a as GridRows } from './responsive-format-facade-ced96b0b.js';
|
|
24
24
|
export { C as CheckBoxRequiredRule } from './check-box-required-rule-cb0aa339.js';
|
|
25
25
|
export { D as DateRequiredRule } from './date-required-rule-b88e1650.js';
|
|
26
26
|
export { I as InputPhoneNumberRequiredRule } from './input-phone-number-required-rule-be6a5572.js';
|
|
27
27
|
export { I as InputRangeRequiredRule } from './input-range-required-rule-3ad74776.js';
|
|
28
28
|
export { R as RequiredFieldRule } from './required-field-rule-897fe8d1.js';
|
|
29
|
-
export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-
|
|
29
|
+
export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-5bbbce23.js';
|
|
30
30
|
export { T as TimeRangeRequiredRule, a as TimeRequiredRule } from './time-required-rule-6e80a9ab.js';
|
|
31
31
|
export { T as ToggleSwitchRequiredRule } from './toggle-switch-required-rule-b3cf4302.js';
|
|
32
32
|
export { F as FileUploaderRequiredRule } from './file-uploader-required-rule-96952e1a.js';
|
|
33
|
-
export { b as VegaRTEExtension, a as VegaRTEExtensionRenderer, V as VegaRTELinkExtension } from './link-extension-
|
|
34
|
-
export { V as VegaRTEImageExtension } from './image-extension-
|
|
35
|
-
export { R as RTERange } from './range-
|
|
33
|
+
export { b as VegaRTEExtension, a as VegaRTEExtensionRenderer, V as VegaRTELinkExtension } from './link-extension-09534514.js';
|
|
34
|
+
export { V as VegaRTEImageExtension } from './image-extension-48a96f98.js';
|
|
35
|
+
export { R as RTERange } from './range-d4deb7df.js';
|
|
36
36
|
import './state-border-formatter-b680e922.js';
|
|
37
37
|
import './misc-9fdbcfbb.js';
|
|
38
38
|
import './create-public-api-runtime-metrics-slimmer-48f85199.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as stateEntityRenderingRegistry, A as ActionHandleStrategyRegistry,
|
|
2
|
-
import {
|
|
1
|
+
import { s as stateEntityRenderingRegistry, A as ActionHandleStrategyRegistry, a8 as ActionHandlerInterceptorRegistry, u as RTEFilterStylesStrategyRegistry, m as RTEDTOClassManager } from './code-block-0a88b481.js';
|
|
2
|
+
import { b as RTEDTOActionStrategyManager, c as ElementToDTOClassStrategyManager, h as htmlElementToAnnotationGenerator } from './content-state-79ca99e5.js';
|
|
3
3
|
import { i as isNonNullable } from './type-guard-ec5e8628.js';
|
|
4
4
|
import './global-slimmer-registry-17c4efd4.js';
|
|
5
5
|
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-090d31ca.js';
|
|
2
|
-
import { g as globalScripts } from './app-globals-
|
|
2
|
+
import { g as globalScripts } from './app-globals-d7b651c1.js';
|
|
3
3
|
import './feature-flag-controller-3fd04ea9.js';
|
|
4
4
|
import './global-slimmer-registry-17c4efd4.js';
|
|
5
5
|
import './index-9c9865c0.js';
|
|
6
|
-
import './token-extension-
|
|
6
|
+
import './token-extension-40c32bcc.js';
|
|
7
7
|
import './misc-9fdbcfbb.js';
|
|
8
8
|
import './ui-d73f756a.js';
|
|
9
9
|
import './create-public-api-runtime-metrics-slimmer-48f85199.js';
|
|
@@ -23,8 +23,8 @@ import './static-subject-title-1c86e974.js';
|
|
|
23
23
|
import './internal-calendar-period-factory-3a07dba0.js';
|
|
24
24
|
import './type-guard-ec5e8628.js';
|
|
25
25
|
import './typography-19c3b9be.js';
|
|
26
|
-
import './link-extension-
|
|
27
|
-
import './code-block-
|
|
26
|
+
import './link-extension-09534514.js';
|
|
27
|
+
import './code-block-0a88b481.js';
|
|
28
28
|
import './dom-node-subject-observer-factory-ddff8662.js';
|
|
29
29
|
import './observer-3959f9dd.js';
|
|
30
30
|
import './vega-internal-event-id-827eb1ce.js';
|
|
@@ -34,14 +34,14 @@ import './tinycolor-polyfill-7be0eb93.js';
|
|
|
34
34
|
import './vega-nonce-manager-497e5eb5.js';
|
|
35
35
|
import './index-3b327f29.js';
|
|
36
36
|
import './object-0c277f57.js';
|
|
37
|
-
import './content-state-
|
|
37
|
+
import './content-state-79ca99e5.js';
|
|
38
38
|
import './internal-icon-manager-e7c57096.js';
|
|
39
39
|
import './icon-manager-4ef3f6dd.js';
|
|
40
|
-
import './split-cell-operation-
|
|
40
|
+
import './split-cell-operation-7f3058ad.js';
|
|
41
41
|
import './remote-invocation-registry-d69245c2.js';
|
|
42
42
|
import './pixel-f32c07ce.js';
|
|
43
43
|
import './timer-9321173b.js';
|
|
44
|
-
import './image-extension-
|
|
44
|
+
import './image-extension-48a96f98.js';
|
|
45
45
|
import './copy-54e45e2d.js';
|
|
46
46
|
import './vega-dialog-controller-726b74f9.js';
|
|
47
47
|
import './valid-credit-card-number-rule-ca5a47d6.js';
|
|
@@ -3,7 +3,7 @@ export { D as DateRequiredRule } from './date-required-rule-b88e1650.js';
|
|
|
3
3
|
export { I as InputPhoneNumberRequiredRule } from './input-phone-number-required-rule-be6a5572.js';
|
|
4
4
|
export { I as InputRangeRequiredRule } from './input-range-required-rule-3ad74776.js';
|
|
5
5
|
export { R as RequiredFieldRule } from './required-field-rule-897fe8d1.js';
|
|
6
|
-
export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-
|
|
6
|
+
export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-5bbbce23.js';
|
|
7
7
|
export { T as TimeRangeRequiredRule, a as TimeRequiredRule } from './time-required-rule-6e80a9ab.js';
|
|
8
8
|
export { T as ToggleSwitchRequiredRule } from './toggle-switch-required-rule-b3cf4302.js';
|
|
9
9
|
export { F as FileUploaderRequiredRule } from './file-uploader-required-rule-96952e1a.js';
|
|
@@ -18,8 +18,8 @@ import './change-manager-6a7eb88c.js';
|
|
|
18
18
|
import './static-subject-title-1c86e974.js';
|
|
19
19
|
import './feature-flag-controller-3fd04ea9.js';
|
|
20
20
|
import './index-9c9865c0.js';
|
|
21
|
-
import './content-state-
|
|
22
|
-
import './code-block-
|
|
21
|
+
import './content-state-79ca99e5.js';
|
|
22
|
+
import './code-block-0a88b481.js';
|
|
23
23
|
import './dom-node-subject-observer-factory-ddff8662.js';
|
|
24
24
|
import './observer-3959f9dd.js';
|
|
25
25
|
import './ui-d73f756a.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as RTENode, o as RTEDecoratorNode, s as stateEntityRenderingRegistry } from './code-block-
|
|
1
|
+
import { f as RTENode, o as RTEDecoratorNode, s as stateEntityRenderingRegistry } from './code-block-0a88b481.js';
|
|
2
2
|
import { i as isHTMLElement } from './ui-d73f756a.js';
|
|
3
3
|
|
|
4
4
|
/** Manages selection range for a rich text editor, providing methods to set, sync, and create native ranges based on RTENodes and Nodes. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BlockAnnotation, a as RTEBlock, M as ModifyContentAction, C as CommonAnnotationTypeEnum, l as CustomAttributeAnnotation, f as RTENode, d as ActionHandleStrategy } from './code-block-
|
|
1
|
+
import { B as BlockAnnotation, a as RTEBlock, M as ModifyContentAction, C as CommonAnnotationTypeEnum, l as CustomAttributeAnnotation, f as RTENode, d as ActionHandleStrategy } from './code-block-0a88b481.js';
|
|
2
2
|
import { c as cleanObject } from './object-0c277f57.js';
|
|
3
3
|
import { V as VegaInternalThemeManager } from './dark-mode-style-controller-ca5afd2d.js';
|
|
4
4
|
import './global-slimmer-registry-17c4efd4.js';
|
|
@@ -6,7 +6,7 @@ import { I as InjectVegaTelemetrySlimmer, c as createPublicAPIRuntimeMetricsSlim
|
|
|
6
6
|
import { r as rgbToHex } from './ui-d73f756a.js';
|
|
7
7
|
import { i as isNonNullable } from './type-guard-ec5e8628.js';
|
|
8
8
|
import { g as generateUUID } from './misc-9fdbcfbb.js';
|
|
9
|
-
import { U as UpdateCursorPositionAction, V as VegaRTEContent } from './content-state-
|
|
9
|
+
import { U as UpdateCursorPositionAction, V as VegaRTEContent } from './content-state-79ca99e5.js';
|
|
10
10
|
|
|
11
11
|
const ThemeManagerRuntimeMetricsPayloadDefinition = [
|
|
12
12
|
{
|
|
@@ -8,15 +8,15 @@ import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-e
|
|
|
8
8
|
import { i as internalVegaEventManager } from './internal-vega-event-manager-2ecc9186.js';
|
|
9
9
|
import { V as VegaInternalTranslation } from './internal-translation-controller-16709132.js';
|
|
10
10
|
import { I as InternalCalendarPeriodConverter } from './internal-calendar-period-factory-3a07dba0.js';
|
|
11
|
-
import { R as RTEExtensionContextManager, a as VegaRTEExtensionRenderer, b as VegaRTEExtension } from './link-extension-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
11
|
+
import { R as RTEExtensionContextManager, a as VegaRTEExtensionRenderer, b as VegaRTEExtension } from './link-extension-09534514.js';
|
|
12
|
+
import { M as ModifyContentAction, A as ActionHandleStrategyRegistry, R as RTETextNode, a as RTEBlock, b as RTETextBlock, c as RTEAnnotationStyle, d as ActionHandleStrategy, I as InsertChildrenAfterAction, e as AppendChildrenAction, f as RTENode, s as stateEntityRenderingRegistry, g as InsertChildrenBeforeAction, h as InternalAnnotationTypeEnum, i as ModifyContentActionType, B as BlockAnnotation, j as AnnotationAction, k as RemoveChildrenAction, C as CommonAnnotationTypeEnum, l as CustomAttributeAnnotation, m as RTEDTOClassManager, n as RTEFilterStylesStrategy, o as RTEDecoratorNode, S as SplitBlockWithNodeAction, U as UpdateTextAction, p as RTECodeBlock, q as RTEListItemBlock, r as RTECodeBlockNode, N as NodeAnnotationTypeEnum, t as CustomStyleAnnotation, u as RTEFilterStylesStrategyRegistry } from './code-block-0a88b481.js';
|
|
13
|
+
import { U as UpdateCursorPositionAction, V as VegaRTEContent, B as BlockToRTEBlockStrategyAbstract, E as ElementToDTOStrategy, h as htmlElementToAnnotationGenerator, I as InsertNewParagraphAction, R as RTEImageBlock, a as InsertChildrenBeforeStrategy, P as PasteContentStrategy, A as AnnotationGeneratorStrategyAbstract } from './content-state-79ca99e5.js';
|
|
14
14
|
import { i as isNonNullable } from './type-guard-ec5e8628.js';
|
|
15
15
|
import { V as VegaInternalIconManager } from './internal-icon-manager-e7c57096.js';
|
|
16
16
|
import { v as vegaNonceManager } from './vega-nonce-manager-497e5eb5.js';
|
|
17
17
|
import { D as DomNodeSubjectObserverFactory, d as domNodeSubjectFactory } from './dom-node-subject-observer-factory-ddff8662.js';
|
|
18
18
|
import { V as VegaDropdownClick, a as VegaClick, b as VegaPopoverHide, c as VegaPopoverShow, d as VegaChange } from './vega-event-id-f55f6977.js';
|
|
19
|
-
import { R as RTETableExtensionAnnotationTypeEnum, a as RTE_TABLE_HEAD_DEFAULT_BACKGROUND_COLOR, S as SettingEventHandler, T as TableSettingType, b as RTETableAnnotation, c as RTETableCellAnnotation, d as RTETableHeadCellBlock, e as RowOperationEventHandler, C as ColumnOperationEventHandler, M as MergeCellsOperationEventHandler, f as SplitCellOperationEventHandler, g as RTETableColorManager, h as RTETableBlock, i as generateTableBody, j as RTETableCellBlock, k as RTETableHeadBlock, l as RTETableBodyBlock, m as getParentBlockByType, n as RTETableHeadCellAnnotation, o as TableColumnStrategy, p as getAllTableRows, q as buildTableGrid, s as setSpanAttributes, r as findCellBlockById, t as getDefaultCellBlockTemplate, I as InsertTableColumnDirection, u as buildCellStartColumnMap, v as getTableColumnCount, w as getFirstNode, x as getCellSpan, y as createNewCell, z as MergeCellsOperationType, A as RTETableRowBlock, B as getActualColumnPosition, D as InsertTableRowDirection, E as RTE_TABLE_DEFAULT_COLORS, F as INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION, G as INSERT_TABLE_ROW_INTO_SAME_SECTION, H as DELETE_TABLE_ROW, J as TOGGLE_HEADER_ROW, K as INSERT_TABLE_COLUMN, L as DELETE_TABLE_COLUMN, N as TOGGLE_HEADER_TABLE_COLUMN, O as ToggleHeaderTableColumnStrategy, P as SPLIT_TABLE_CELL, Q as REPLACE_TABLE_CELL, U as SPLIT_CELL_HORIZONTALLY, W as SPLIT_CELL_VERTICALLY, X as SELECT_TABLE_COLUMN, Y as MERGE_CELLS } from './split-cell-operation-
|
|
19
|
+
import { R as RTETableExtensionAnnotationTypeEnum, a as RTE_TABLE_HEAD_DEFAULT_BACKGROUND_COLOR, S as SettingEventHandler, T as TableSettingType, b as RTETableAnnotation, c as RTETableCellAnnotation, d as RTETableHeadCellBlock, e as RowOperationEventHandler, C as ColumnOperationEventHandler, M as MergeCellsOperationEventHandler, f as SplitCellOperationEventHandler, g as RTETableColorManager, h as RTETableBlock, i as generateTableBody, j as RTETableCellBlock, k as RTETableHeadBlock, l as RTETableBodyBlock, m as getParentBlockByType, n as RTETableHeadCellAnnotation, o as TableColumnStrategy, p as getAllTableRows, q as buildTableGrid, s as setSpanAttributes, r as findCellBlockById, t as getDefaultCellBlockTemplate, I as InsertTableColumnDirection, u as buildCellStartColumnMap, v as getTableColumnCount, w as getFirstNode, x as getCellSpan, y as createNewCell, z as MergeCellsOperationType, A as RTETableRowBlock, B as getActualColumnPosition, D as InsertTableRowDirection, E as RTE_TABLE_DEFAULT_COLORS, F as INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION, G as INSERT_TABLE_ROW_INTO_SAME_SECTION, H as DELETE_TABLE_ROW, J as TOGGLE_HEADER_ROW, K as INSERT_TABLE_COLUMN, L as DELETE_TABLE_COLUMN, N as TOGGLE_HEADER_TABLE_COLUMN, O as ToggleHeaderTableColumnStrategy, P as SPLIT_TABLE_CELL, Q as REPLACE_TABLE_CELL, U as SPLIT_CELL_HORIZONTALLY, W as SPLIT_CELL_VERTICALLY, X as SELECT_TABLE_COLUMN, Y as MERGE_CELLS } from './split-cell-operation-7f3058ad.js';
|
|
20
20
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
21
21
|
import { V as VegaInternalRTEExtensionTableCellsSelectionAnchor, a as VegaInternalPopoverUpdateTarget, b as VegaInternalRTEExtensionTableCellSelectionChange } from './vega-internal-event-id-827eb1ce.js';
|
|
22
22
|
import { r as remoteInvocationRegistry } from './remote-invocation-registry-d69245c2.js';
|
|
@@ -26,7 +26,7 @@ import { p as parseToPixelString } from './pixel-f32c07ce.js';
|
|
|
26
26
|
import { c as cleanObject } from './object-0c277f57.js';
|
|
27
27
|
import { d as debounce } from './timer-9321173b.js';
|
|
28
28
|
import { c as camelToDashCase } from './string-a953eafc.js';
|
|
29
|
-
import { R as ReplaceSelectedTextAction } from './image-extension-
|
|
29
|
+
import { R as ReplaceSelectedTextAction } from './image-extension-48a96f98.js';
|
|
30
30
|
import { c as copy } from './copy-54e45e2d.js';
|
|
31
31
|
|
|
32
32
|
const VegaLoaderRuntimeMetricsPayloadDefinition = [
|
|
@@ -6464,12 +6464,29 @@ class TableAnnotationHandlerBase extends AnnotationGeneratorStrategyAbstract {
|
|
|
6464
6464
|
const updatedBorderColor = borderColor === 'initial' ? '' : borderColor;
|
|
6465
6465
|
return {
|
|
6466
6466
|
style: borderStyle === 'initial' ? '' : borderStyle,
|
|
6467
|
-
width: borderWidth
|
|
6467
|
+
width: this.normalizeBorderWidth(borderWidth),
|
|
6468
6468
|
color: RTETableColorManager.getColorKey(updatedBorderColor) || updatedBorderColor,
|
|
6469
6469
|
};
|
|
6470
6470
|
}
|
|
6471
6471
|
return null;
|
|
6472
6472
|
}
|
|
6473
|
+
/**
|
|
6474
|
+
* Normalize a border width read from the DOM, dropping the `initial` value and the
|
|
6475
|
+
* CSS keyword widths (`thin`/`medium`/`thick`). Those only appear as serialization
|
|
6476
|
+
* artifacts of shorthand borders (e.g. `border: none` → `border-width: medium`) and
|
|
6477
|
+
* are not valid numeric dimensions, so leaving them in would populate the properties
|
|
6478
|
+
* "Weight" field with an invalid value and block the whole form from saving.
|
|
6479
|
+
*
|
|
6480
|
+
* @param {string} borderWidth - The raw border width read from the element style.
|
|
6481
|
+
* @returns {string} The normalized border width (empty string when it is a keyword).
|
|
6482
|
+
*/
|
|
6483
|
+
normalizeBorderWidth(borderWidth) {
|
|
6484
|
+
if (borderWidth === 'initial' ||
|
|
6485
|
+
TableAnnotationHandlerBase.BORDER_WIDTH_KEYWORDS.includes(borderWidth)) {
|
|
6486
|
+
return '';
|
|
6487
|
+
}
|
|
6488
|
+
return borderWidth;
|
|
6489
|
+
}
|
|
6473
6490
|
/**
|
|
6474
6491
|
* Extract width from element.
|
|
6475
6492
|
*
|
|
@@ -6507,6 +6524,13 @@ class TableAnnotationHandlerBase extends AnnotationGeneratorStrategyAbstract {
|
|
|
6507
6524
|
return null;
|
|
6508
6525
|
}
|
|
6509
6526
|
}
|
|
6527
|
+
/**
|
|
6528
|
+
* CSS border-width keywords. These are produced as serialization artifacts when a
|
|
6529
|
+
* shorthand border without an explicit width is round-tripped (e.g. `border: none`
|
|
6530
|
+
* expands to `border-width: medium`). They are not valid numeric dimensions for the
|
|
6531
|
+
* table/cell properties "Weight" field, so they are normalized away on import.
|
|
6532
|
+
*/
|
|
6533
|
+
TableAnnotationHandlerBase.BORDER_WIDTH_KEYWORDS = ['thin', 'medium', 'thick'];
|
|
6510
6534
|
|
|
6511
6535
|
/**
|
|
6512
6536
|
* Handler for table annotation parsing from HTML elements.
|
|
@@ -6,14 +6,14 @@ import { V as VegaInternalIconManager } from './internal-icon-manager-e7c57096.j
|
|
|
6
6
|
import { t as trashCan } from './trash-can-8819a939.js';
|
|
7
7
|
import { D as DomNodeSubjectObserverFactory, d as domNodeSubjectFactory } from './dom-node-subject-observer-factory-ddff8662.js';
|
|
8
8
|
import { d as VegaChange, a as VegaClick, r as VegaRemove } from './vega-event-id-f55f6977.js';
|
|
9
|
-
import {
|
|
9
|
+
import { a9 as CodeLanguage } from './code-block-0a88b481.js';
|
|
10
10
|
import { a as arrayToClassString } from './ui-d73f756a.js';
|
|
11
11
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
12
12
|
import { z as VegaInternalCodeBlockBlur, y as VegaInternalCodeBlockSelectionChange } from './vega-internal-event-id-827eb1ce.js';
|
|
13
13
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-2452278f.js';
|
|
14
14
|
import { d as deepEqual } from './object-0c277f57.js';
|
|
15
15
|
import { T as TranslationSlimmer } from './translation-slimmer-21748a0e.js';
|
|
16
|
-
import { S as ShadowSelectionPolyfill, a as SelectionController, C as ComponentValueHistoryControllerSlimmer } from './component-value-history-controller-slimmer.abstract-
|
|
16
|
+
import { S as ShadowSelectionPolyfill, a as SelectionController, C as ComponentValueHistoryControllerSlimmer } from './component-value-history-controller-slimmer.abstract-6846edfa.js';
|
|
17
17
|
import { A as AutoRunWhenReRenderTaskQueueSlimmer } from './auto-run-when-re-render-task-queue-slimmer.abstract-27820d4c.js';
|
|
18
18
|
import { d as debounce } from './timer-9321173b.js';
|
|
19
19
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-82626871.js';
|
|
@@ -37,7 +37,7 @@ import './vega-nonce-manager-497e5eb5.js';
|
|
|
37
37
|
import './try-get-document-bef0f526.js';
|
|
38
38
|
import './index-3b327f29.js';
|
|
39
39
|
import './internal-vega-event-manager-2ecc9186.js';
|
|
40
|
-
import './range-
|
|
40
|
+
import './range-d4deb7df.js';
|
|
41
41
|
import './keyboard-manager-slimmer-f3f66c15.js';
|
|
42
42
|
import './keyboard-manager-a0c3e1cf.js';
|
|
43
43
|
import './synchronize-task-queue-ac8acc3b.js';
|
|
@@ -26,7 +26,7 @@ import { c as createEventEmitSlimmer } from './event-emit-slimmer-2452278f.js';
|
|
|
26
26
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-82626871.js';
|
|
27
27
|
import { T as TranslationSlimmer } from './translation-slimmer-21748a0e.js';
|
|
28
28
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
29
|
-
import { E as ElementAppenderSlimmer } from './element-appender-slimmer-
|
|
29
|
+
import { E as ElementAppenderSlimmer } from './element-appender-slimmer-73ad10ae.js';
|
|
30
30
|
import { S as SynchronizeTaskQueue } from './synchronize-task-queue-ac8acc3b.js';
|
|
31
31
|
import { C as ClickOutsideOnlyToDismissStrategy } from './click-outside-only-to-dismiss-strategy-3d286c1b.js';
|
|
32
32
|
import { A as AriaDialogFocusableTrapSlimmer } from './aria-dialog-focusable-trap-slimmer-9eae86c6.js';
|
|
@@ -10,7 +10,7 @@ import { D as DomNodeSubjectObserverFactory, d as domNodeSubjectFactory } from '
|
|
|
10
10
|
import { d as VegaChange, z as VegaDropdownShow, A as VegaDropdownHide, V as VegaDropdownClick, u as VegaDropdownSelectAllClick, g as VegaReset, s as VegaCreate, h as VegaDropdownSearch, B as VegaSearchTrigger, a as VegaClick } from './vega-event-id-f55f6977.js';
|
|
11
11
|
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-f3f66c15.js';
|
|
12
12
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
13
|
-
import { E as ElementAppenderSlimmer } from './element-appender-slimmer-
|
|
13
|
+
import { E as ElementAppenderSlimmer } from './element-appender-slimmer-73ad10ae.js';
|
|
14
14
|
import { A as AriaDialogFocusableTrapSlimmer } from './aria-dialog-focusable-trap-slimmer-9eae86c6.js';
|
|
15
15
|
import { h as htmlSanitizer, l as labelSanitizeStrategy } from './index-3b327f29.js';
|
|
16
16
|
import { i as isArrayEqual, e as flattenChildren } from './array-7888f339.js';
|
|
@@ -2382,10 +2382,33 @@ const VegaDropdown = class {
|
|
|
2382
2382
|
*/
|
|
2383
2383
|
this.isLazyLoading = false;
|
|
2384
2384
|
/**
|
|
2385
|
-
* Determines whether the dropdown position
|
|
2385
|
+
* Determines whether the dropdown uses viewport-based positioning (`position: fixed`) or container-based positioning (`position: absolute`).
|
|
2386
2386
|
*
|
|
2387
|
-
*
|
|
2388
|
-
*
|
|
2387
|
+
* **Technical Implementation:**
|
|
2388
|
+
*
|
|
2389
|
+
* - When `false` (default): The dropdown content box renders with `position: absolute` and its coordinates are calculated relative to the nearest positioned ancestor. Combined with `positionRelativeTo`, you can specify which ancestor to measure from, which ensures the menu scrolls together with that ancestor.
|
|
2390
|
+
*
|
|
2391
|
+
* - When `true`: The dropdown content box renders with `position: fixed` and its coordinates are calculated from the viewport. The menu is visually anchored to the trigger element via JavaScript and moves with it on scroll, even though it is not part of the document flow. `positionRelativeTo` has no effect in this mode.
|
|
2392
|
+
*
|
|
2393
|
+
* When to set `isScreenPosition` to `true`:
|
|
2394
|
+
*
|
|
2395
|
+
* - Dropdowns that need to break out of container constraints (non-Shadow-DOM only):
|
|
2396
|
+
* When you want the dropdown to appear outside its container's boundaries (e.g., to avoid being clipped by a parent's
|
|
2397
|
+
* `overflow: hidden` or small dimensions), viewport-based positioning allows it to render freely.
|
|
2398
|
+
* This only works for regular (non-Shadow-DOM) containers. Shadow DOM boundaries cannot be escaped with `position: fixed`.
|
|
2399
|
+
*
|
|
2400
|
+
* - Dropdowns in fixed or sticky positioned containers:
|
|
2401
|
+
* When the dropdown trigger is inside a fixed or sticky positioned container, viewport-based positioning ensures correct alignment.
|
|
2402
|
+
*
|
|
2403
|
+
* When to keep `isScreenPosition` as `false` (default):
|
|
2404
|
+
*
|
|
2405
|
+
* - Simple layouts where the dropdown and its trigger are not inside scrollable containers
|
|
2406
|
+
* - When you want the dropdown to scroll naturally with its container (using `position: absolute`)
|
|
2407
|
+
* - When you need `positionRelativeTo` to control which ancestor the dropdown is positioned relative to
|
|
2408
|
+
* - When `matchContainerHeight` is needed (this property is overridden when `isScreenPosition` is `true`)
|
|
2409
|
+
*
|
|
2410
|
+
* @VegaWarning - Setting this to `true` override the `positionRelativeTo` and `matchContainerHeight` properties, rendering them ineffective.
|
|
2411
|
+
* - Currently, when set to `true`, the position calculation may be inaccurate if the popover is placed inside a scrollable container within a shadowRoot (e.g., inside a vega-modal with scrollable content).
|
|
2389
2412
|
* @vegaVersion 2.36.0
|
|
2390
2413
|
*/
|
|
2391
2414
|
this.isScreenPosition = false;
|
|
@@ -9,9 +9,9 @@ var FrameworkEnum;
|
|
|
9
9
|
/** The VegaEnvManager class manages vega environment parameters. */
|
|
10
10
|
class VegaEnvManager {
|
|
11
11
|
constructor() {
|
|
12
|
-
// The `2.
|
|
12
|
+
// The `2.96.0` will be replaced to a version string when running publish script.
|
|
13
13
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
14
|
-
this.vegaVersion = '2.
|
|
14
|
+
this.vegaVersion = '2.96.0';
|
|
15
15
|
this.framework = FrameworkEnum.VanillaJs;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
@@ -6,7 +6,7 @@ import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlim
|
|
|
6
6
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-2452278f.js';
|
|
7
7
|
import { c as VegaPopoverShow, b as VegaPopoverHide } from './vega-event-id-f55f6977.js';
|
|
8
8
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
9
|
-
import { E as ElementAppenderSlimmer } from './element-appender-slimmer-
|
|
9
|
+
import { E as ElementAppenderSlimmer } from './element-appender-slimmer-73ad10ae.js';
|
|
10
10
|
import { r as remoteInvocationRegistry } from './remote-invocation-registry-d69245c2.js';
|
|
11
11
|
import { d as domNodeSubjectFactory } from './dom-node-subject-observer-factory-ddff8662.js';
|
|
12
12
|
import { a as VegaInternalPopoverUpdateTarget } from './vega-internal-event-id-827eb1ce.js';
|