@heartlandone/vega 2.75.0 → 2.75.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/dist/cjs/{app-globals-bf183914.js → app-globals-35614ce8.js} +4 -4
- package/dist/cjs/{design-token-cbc01283.js → design-token-bb39e07e.js} +1 -1
- package/dist/cjs/{dto-renderer-manager-2fc24151.js → dto-renderer-manager-03e1a038.js} +197 -22
- package/dist/cjs/{element-appender-slimmer-318d29c7.js → element-appender-slimmer-daa8b9f5.js} +2 -2
- package/dist/cjs/{function-extension-ca9aa115.js → function-extension-cfbbc57e.js} +1 -1
- package/dist/cjs/{image-annotation-action-e4a35325.js → image-annotation-action-3fa501b7.js} +1 -1
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/{language-extension-38e4905e.js → language-extension-8c4a56ff.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{public-rules-661823fa.js → public-rules-dc2a8d62.js} +2 -2
- package/dist/cjs/{responsive-format-facade-f71d399c.js → responsive-format-facade-d5dba942.js} +2 -2
- package/dist/cjs/{rich-text-editor-required-rule-d5feeffd.js → rich-text-editor-required-rule-ba312af9.js} +1 -1
- package/dist/cjs/{style-formatter-566df206.js → style-formatter-49693da7.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +4 -4
- package/dist/cjs/vega-app-header-button.cjs.entry.js +4 -4
- package/dist/cjs/vega-box.cjs.entry.js +5 -5
- package/dist/cjs/vega-button-circle.cjs.entry.js +4 -4
- package/dist/cjs/vega-button.cjs.entry.js +3 -3
- package/dist/cjs/vega-card.cjs.entry.js +4 -4
- package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
- package/dist/cjs/vega-chip.cjs.entry.js +4 -4
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-dialog_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-divider.cjs.entry.js +4 -4
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +4 -4
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-flag-icon.cjs.entry.js +4 -4
- package/dist/cjs/vega-flex.cjs.entry.js +5 -5
- package/dist/cjs/vega-font.cjs.entry.js +4 -4
- package/dist/cjs/vega-grid.cjs.entry.js +4 -4
- package/dist/cjs/vega-icon.cjs.entry.js +4 -4
- package/dist/cjs/vega-image-uploader.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +2 -2
- package/dist/cjs/vega-input-select.cjs.entry.js +3 -3
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +4 -4
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination.cjs.entry.js +3 -3
- package/dist/cjs/vega-popover_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +2 -2
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +60 -10
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +3 -3
- package/dist/cjs/vega-signature-capture.cjs.entry.js +4 -4
- package/dist/cjs/vega-table_11.cjs.entry.js +3 -3
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +4 -4
- package/dist/cjs/vega.cjs.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +16 -0
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +3 -22
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner-processor.interface.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner.js +59 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/index.js +4 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-after-opening-tag-processor.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-before-closing-tag-processor.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-between-tags-processor.js +77 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/html-block.test.js +39 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +166 -1
- package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/html-content-cleaner.test.js +186 -0
- package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-after-opening-tag-processor.test.js +22 -0
- package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-before-closing-tag-processor.test.js +22 -0
- package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-between-tags-processor.test.js +26 -0
- package/dist/collection/helpers/code-format/code-formatter.js +57 -7
- package/dist/collection/helpers/code-format/test/code-formatter.test.js +48 -0
- package/dist/esm/{app-globals-f3414aca.js → app-globals-2ac60ff5.js} +4 -4
- package/dist/esm/{design-token-9b299589.js → design-token-007efbaa.js} +1 -1
- package/dist/esm/{dto-renderer-manager-f07cf2d9.js → dto-renderer-manager-ee1a5864.js} +197 -22
- package/dist/esm/{element-appender-slimmer-7cb08343.js → element-appender-slimmer-35e26b5a.js} +2 -2
- package/dist/esm/{function-extension-63028f20.js → function-extension-e8c0e43e.js} +1 -1
- package/dist/esm/{image-annotation-action-53529cd9.js → image-annotation-action-285d432e.js} +1 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/{language-extension-c4ff21dd.js → language-extension-29bf8acd.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{public-rules-6ebdfcf5.js → public-rules-724873f5.js} +2 -2
- package/dist/esm/{responsive-format-facade-05e53016.js → responsive-format-facade-28ee2dbd.js} +2 -2
- package/dist/esm/{rich-text-editor-required-rule-f63a37d1.js → rich-text-editor-required-rule-873e2e67.js} +1 -1
- package/dist/esm/{style-formatter-5f5bd714.js → style-formatter-314b37f3.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +4 -4
- package/dist/esm/vega-app-header-button.entry.js +4 -4
- package/dist/esm/vega-box.entry.js +5 -5
- package/dist/esm/vega-button-circle.entry.js +4 -4
- package/dist/esm/vega-button.entry.js +3 -3
- package/dist/esm/vega-card.entry.js +4 -4
- package/dist/esm/vega-carousel.entry.js +3 -3
- package/dist/esm/vega-chip.entry.js +4 -4
- package/dist/esm/vega-date-picker_2.entry.js +4 -4
- package/dist/esm/vega-dialog_2.entry.js +4 -4
- package/dist/esm/vega-divider.entry.js +4 -4
- package/dist/esm/vega-dropdown_5.entry.js +4 -4
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-flag-icon.entry.js +4 -4
- package/dist/esm/vega-flex.entry.js +5 -5
- package/dist/esm/vega-font.entry.js +4 -4
- package/dist/esm/vega-grid.entry.js +4 -4
- package/dist/esm/vega-icon.entry.js +4 -4
- package/dist/esm/vega-image-uploader.entry.js +3 -3
- package/dist/esm/vega-input-phone-number.entry.js +2 -2
- package/dist/esm/vega-input-select.entry.js +3 -3
- package/dist/esm/vega-left-nav_5.entry.js +4 -4
- package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
- package/dist/esm/vega-pagination.entry.js +3 -3
- package/dist/esm/vega-popover_2.entry.js +5 -5
- package/dist/esm/vega-progress-tracker_2.entry.js +3 -3
- package/dist/esm/vega-rich-text-content.entry.js +2 -2
- package/dist/esm/vega-rich-text-editor_4.entry.js +60 -10
- package/dist/esm/vega-selection-chip_2.entry.js +3 -3
- package/dist/esm/vega-sidenav_3.entry.js +3 -3
- package/dist/esm/vega-signature-capture.entry.js +4 -4
- package/dist/esm/vega-table_11.entry.js +3 -3
- package/dist/esm/vega-time-picker_2.entry.js +4 -4
- package/dist/esm/vega-tooltip_2.entry.js +4 -4
- package/dist/esm/vega.js +4 -4
- package/dist/sri/vega-sri-manifest.json +162 -162
- package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +10 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner-processor.interface.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner.d.ts +35 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/index.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-after-opening-tag-processor.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-before-closing-tag-processor.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-between-tags-processor.d.ts +59 -0
- package/dist/types/components/vega-rich-text-editor/test/html-cleaner/html-content-cleaner.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-after-opening-tag-processor.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-before-closing-tag-processor.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-between-tags-processor.test.d.ts +1 -0
- package/dist/types/helpers/code-format/code-formatter.d.ts +14 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-aa10eeb3.entry.js → p-012753b5.entry.js} +1 -1
- package/dist/vega/{p-fdc270b8.entry.js → p-024331ce.entry.js} +1 -1
- package/dist/vega/{p-ce1a2982.js → p-0575d22e.js} +1 -1
- package/dist/vega/{p-a86010f7.entry.js → p-08a90cc6.entry.js} +1 -1
- package/dist/vega/p-0ede1fea.entry.js +1 -0
- package/dist/vega/p-3353b3d7.js +1 -0
- package/dist/vega/p-365b1b35.entry.js +1 -0
- package/dist/vega/{p-a5bd3c15.entry.js → p-3ae9ee3d.entry.js} +1 -1
- package/dist/vega/{p-35bf5789.entry.js → p-3af92370.entry.js} +1 -1
- package/dist/vega/{p-ac4563d7.js → p-430be941.js} +1 -1
- package/dist/vega/{p-d6ed3d76.entry.js → p-45296fd4.entry.js} +1 -1
- package/dist/vega/{p-6f239144.entry.js → p-491618a6.entry.js} +1 -1
- package/dist/vega/{p-3cfd8616.entry.js → p-4aa893ef.entry.js} +1 -1
- package/dist/vega/{p-ef001c70.entry.js → p-4c47e8bb.entry.js} +1 -1
- package/dist/vega/{p-20ad42be.js → p-4da75f2b.js} +1 -1
- package/dist/vega/{p-e1610196.entry.js → p-5110ba73.entry.js} +1 -1
- package/dist/vega/{p-07d3df01.entry.js → p-556f9a21.entry.js} +1 -1
- package/dist/vega/{p-a65941d0.entry.js → p-55b54ba0.entry.js} +1 -1
- package/dist/vega/{p-50ab977c.entry.js → p-5efc6fe1.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-5df9a856.entry.js → p-64cd1931.entry.js} +1 -1
- package/dist/vega/{p-22c5d83b.js → p-68df4288.js} +1 -1
- package/dist/vega/{p-c8f1b9d5.js → p-691ba1ae.js} +1 -1
- package/dist/vega/{p-fba14ad2.entry.js → p-6fa8e231.entry.js} +1 -1
- package/dist/vega/{p-91ec2e30.js → p-749f96a4.js} +1 -1
- package/dist/vega/{p-67f18b9e.entry.js → p-7aaece55.entry.js} +1 -1
- package/dist/vega/{p-75651f32.entry.js → p-7ec6a104.entry.js} +1 -1
- package/dist/vega/{p-60274fb1.js → p-89d685a8.js} +1 -1
- package/dist/vega/{p-ffbff9b5.entry.js → p-8d701832.entry.js} +1 -1
- package/dist/vega/{p-e87b0b4a.entry.js → p-8ed0faa2.entry.js} +1 -1
- package/dist/vega/{p-87238c4c.entry.js → p-99aa554b.entry.js} +1 -1
- package/dist/vega/{p-ab2f35af.entry.js → p-9a2446f1.entry.js} +1 -1
- package/dist/vega/{p-3bbc0c7d.entry.js → p-a475d525.entry.js} +1 -1
- package/dist/vega/{p-a20854d6.entry.js → p-ac5e9955.entry.js} +1 -1
- package/dist/vega/p-b1f869fb.js +1 -0
- package/dist/vega/{p-f383c856.js → p-c2488ed6.js} +1 -1
- package/dist/vega/{p-747d6afc.entry.js → p-cf5b80f9.entry.js} +1 -1
- package/dist/vega/{p-8a887843.entry.js → p-db60a38e.entry.js} +1 -1
- package/dist/vega/{p-06aaced4.js → p-e93545fd.js} +1 -1
- package/dist/vega/{p-fbd64f9c.entry.js → p-ec192283.entry.js} +1 -1
- package/dist/vega/p-f2a3a1ec.entry.js +1 -0
- package/dist/vega/{p-08f18b22.entry.js → p-f2cdd212.entry.js} +1 -1
- package/dist/vega/{p-34246870.entry.js → p-f4c05b4a.entry.js} +1 -1
- package/dist/vega/{p-5a27084e.entry.js → p-f8641214.entry.js} +1 -1
- package/dist/vega/{p-60da99c6.entry.js → p-f89443aa.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-22b2841f.entry.js +0 -1
- package/dist/vega/p-53a694d1.entry.js +0 -1
- package/dist/vega/p-56e97df8.js +0 -1
- package/dist/vega/p-7ae55fd5.js +0 -1
- package/dist/vega/p-991008a8.entry.js +0 -1
|
@@ -359,4 +359,52 @@ describe('Code formatter', () => {
|
|
|
359
359
|
]).toHtml();
|
|
360
360
|
expect(CodeFormatter.format(input)).toMatchSnapshot();
|
|
361
361
|
});
|
|
362
|
+
it('should preserve pre content without formatting', () => {
|
|
363
|
+
const input = `<pre>
|
|
364
|
+
S
|
|
365
|
+
A
|
|
366
|
+
LUT
|
|
367
|
+
M
|
|
368
|
+
O N
|
|
369
|
+
D E
|
|
370
|
+
DONT
|
|
371
|
+
JE SUIS
|
|
372
|
+
LA LAN
|
|
373
|
+
G U E É
|
|
374
|
+
L O Q U E N
|
|
375
|
+
TE QUESA
|
|
376
|
+
B O U C H E
|
|
377
|
+
O P A R I S
|
|
378
|
+
T I R E ET TIRERA
|
|
379
|
+
T O U JOURS
|
|
380
|
+
AUX A L
|
|
381
|
+
LEM ANDS - Apollinaire
|
|
382
|
+
</pre>
|
|
383
|
+
`;
|
|
384
|
+
expect(CodeFormatter.format(input)).toMatchSnapshot();
|
|
385
|
+
});
|
|
386
|
+
it('should format empty inline tags on a single line', () => {
|
|
387
|
+
const input = `<p><span></span></p>`;
|
|
388
|
+
const output = CodeFormatter.format(input);
|
|
389
|
+
expect(output).toMatchSnapshot();
|
|
390
|
+
// Verify empty span stays inline
|
|
391
|
+
expect(output).toContain('<span></span>');
|
|
392
|
+
expect(output).not.toContain('<span>\n');
|
|
393
|
+
});
|
|
394
|
+
it('should format multiple empty inline tags', () => {
|
|
395
|
+
const input = `<p><span></span><strong></strong><em></em></p>`;
|
|
396
|
+
const output = CodeFormatter.format(input);
|
|
397
|
+
expect(output).toMatchSnapshot();
|
|
398
|
+
// Verify all empty inline tags stay inline
|
|
399
|
+
expect(output).toContain('<span></span>');
|
|
400
|
+
expect(output).toContain('<strong></strong>');
|
|
401
|
+
expect(output).toContain('<em></em>');
|
|
402
|
+
});
|
|
403
|
+
it('should format mixed empty and non-empty inline tags', () => {
|
|
404
|
+
const input = `<p><span></span><strong>Text</strong><em></em></p>`;
|
|
405
|
+
const output = CodeFormatter.format(input);
|
|
406
|
+
expect(output).toMatchSnapshot();
|
|
407
|
+
expect(output).toContain('<span></span>');
|
|
408
|
+
expect(output).toContain('<em></em>');
|
|
409
|
+
});
|
|
362
410
|
});
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { F as FeatureFlag } from './feature-flag-controller-51659753.js';
|
|
2
|
-
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaDialog, d as VegaEventManager, e as VegaZIndexManager, f as VegaSkeletonLoader, g as VegaRTETokenExtension, h as VegaRTEFunctionExtension } from './function-extension-
|
|
2
|
+
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaDialog, d as VegaEventManager, e as VegaZIndexManager, f as VegaSkeletonLoader, g as VegaRTETokenExtension, h as VegaRTEFunctionExtension } from './function-extension-e8c0e43e.js';
|
|
3
3
|
import { M as MapToComponentMethod, V as VegaSlimmer, s as setVegaLogLevel, G as GlobalSlimmersRegistry } from './global-slimmer-registry-17c4efd4.js';
|
|
4
4
|
import { v as vegaEnvManager } from './vega-env-manager-8f8dc473.js';
|
|
5
5
|
import { V as VegaIconManager } from './internal-icon-manager-f0486245.js';
|
|
6
6
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
7
7
|
import './ui-bb99c0c2.js';
|
|
8
8
|
import { V as VegaInternalTranslation, a as VegaTranslation, s as staticTranslations } from './translation-96e5debd.js';
|
|
9
|
-
import { V as VegaRTEContent } from './dto-renderer-manager-
|
|
9
|
+
import { V as VegaRTEContent } from './dto-renderer-manager-ee1a5864.js';
|
|
10
10
|
import { v as vegaNonceManager, s as setVegaNonce } from './vega-nonce-manager-497e5eb5.js';
|
|
11
11
|
import { V as VegaRTEPresetToolbarItems } from './code-block-8ee34ab6.js';
|
|
12
12
|
import './type-guard-c65a227d.js';
|
|
13
13
|
import { T as TypographyUrls } from './typography-396de03f.js';
|
|
14
14
|
import { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-666c415d.js';
|
|
15
15
|
import { w as waitForVega } from './index-51a7da7f.js';
|
|
16
|
-
import { V as VegaRTELanguageExtension } from './language-extension-
|
|
16
|
+
import { V as VegaRTELanguageExtension } from './language-extension-29bf8acd.js';
|
|
17
17
|
import { U as UPDATE_TRANSLATION } from './static-subject-title-52f93124.js';
|
|
18
18
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
19
19
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
@@ -398,7 +398,7 @@ function injectVegaRichTextEditorClassIntoGlobal() {
|
|
|
398
398
|
* Inject VegaPublicValidationRules to global as a public api
|
|
399
399
|
*/
|
|
400
400
|
function injectVegaPublicValidationRules() {
|
|
401
|
-
void import('./public-rules-
|
|
401
|
+
void import('./public-rules-724873f5.js').then((module) => {
|
|
402
402
|
Object.entries(module).forEach(([name, value]) => {
|
|
403
403
|
globalThis[name] = value;
|
|
404
404
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as StateVariantFormatter, k as isBorderColorTokenType, b as BorderColors, e as BorderColorMap, l as isShadowsTokenType, f as Shadows, g as ShadowMap, m as isBorderTokenType, n as Borders, o as BorderMap, p as StateBackgroundColorFormatter, q as isSpacingTokenType, r as isBorderRadiusTokenType, s as isBackgroundColorTokenType, t as isTextColorTokenType, u as isBreakpointsTokenType, h as Spacing, v as isBorderStyleType, B as BorderRadius, C as Colors, w as isTypographyTokenType } from './type-guard-c65a227d.js';
|
|
2
2
|
import { B as Breakpoints } from './breakpoints-d9faf11c.js';
|
|
3
3
|
import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
4
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
4
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-28ee2dbd.js';
|
|
5
5
|
import { a as TypographyKeys } from './typography-396de03f.js';
|
|
6
6
|
import { B as BorderStyle } from './ui-28fd4193.js';
|
|
7
7
|
|
|
@@ -1220,6 +1220,12 @@ class RTEHtmlBlock extends RTEBlock {
|
|
|
1220
1220
|
toHtml() {
|
|
1221
1221
|
const BlockTag = this.htmlTag;
|
|
1222
1222
|
const attrStr = super.generateAttributeString();
|
|
1223
|
+
// Handle void/self-closing tags (hr, input, col, etc.)
|
|
1224
|
+
// Uses HTML5 syntax without self-closing slash for consistency with img and br tags
|
|
1225
|
+
if (RTEHtmlBlock.VOID_TAGS.has(this.htmlTag)) {
|
|
1226
|
+
return `<${BlockTag}${attrStr}>`;
|
|
1227
|
+
}
|
|
1228
|
+
// Handle normal tags with children
|
|
1223
1229
|
return [
|
|
1224
1230
|
`<${BlockTag}${attrStr}>`,
|
|
1225
1231
|
this.children.map((block) => block.toHtml()).join(''),
|
|
@@ -1233,6 +1239,16 @@ class RTEHtmlBlock extends RTEBlock {
|
|
|
1233
1239
|
return Object.assign(Object.assign({}, super.toJSON()), { id: this.id, type: this.type, htmlTag: this.htmlTag, children: this.children.map((child) => child.toJSON()) });
|
|
1234
1240
|
}
|
|
1235
1241
|
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Void/self-closing tags that don't have closing tags and don't contain children.
|
|
1244
|
+
* These tags should be rendered as <tag> or <tag/> instead of <tag></tag>.
|
|
1245
|
+
*
|
|
1246
|
+
* Based on canHandleTags from html-block-strategy.ts, the following are void tags:
|
|
1247
|
+
* - HR: horizontal rule
|
|
1248
|
+
* - INPUT: form input
|
|
1249
|
+
* - COL: table column
|
|
1250
|
+
*/
|
|
1251
|
+
RTEHtmlBlock.VOID_TAGS = new Set(['hr', 'input', 'col']);
|
|
1236
1252
|
|
|
1237
1253
|
/**
|
|
1238
1254
|
* Merge the two blocks node into first block if the two blocks nodes type is same(text node or image node)
|
|
@@ -3629,6 +3645,185 @@ class StylePreservationContext {
|
|
|
3629
3645
|
}
|
|
3630
3646
|
}
|
|
3631
3647
|
|
|
3648
|
+
/**
|
|
3649
|
+
* Removes whitespace between tags, except preserves ALL whitespace between matching opening/closing tag pairs.
|
|
3650
|
+
*
|
|
3651
|
+
* This processor scans for patterns of `<tag>(whitespace)<tag>` and:
|
|
3652
|
+
* - If the first tag is an opening tag and the second tag is its matching closing tag (e.g., `<span> </span>`),
|
|
3653
|
+
* preserves ALL the whitespace between them (including spaces, tabs, newlines)
|
|
3654
|
+
* - Otherwise, removes all the whitespace between the tags
|
|
3655
|
+
*
|
|
3656
|
+
* Examples:
|
|
3657
|
+
* - `</p>\n\t<div>` → `</p><div>` (different tags: closing p, opening div - whitespace removed)
|
|
3658
|
+
* - `<div>\n\t<span>` → `<div><span>` (different tags: opening div, opening span - whitespace removed)
|
|
3659
|
+
* - `<span> </span>` → `<span> </span>` (matching tags: opening span, closing span - space preserved)
|
|
3660
|
+
* - `<span> </span>` → `<span> </span>` (matching tags - multiple spaces preserved)
|
|
3661
|
+
* - `<span>\n\t</span>` → `<span>\n\t</span>` (matching tags - \n\t preserved)
|
|
3662
|
+
* - `<code> </code>` → `<code> </code>` (matching tags - space preserved)
|
|
3663
|
+
* - `</div> <p>` → `</div><p>` (different tags: closing div, opening p - whitespace removed)
|
|
3664
|
+
*/
|
|
3665
|
+
class RemoveWhitespaceBetweenTagsProcessor {
|
|
3666
|
+
/**
|
|
3667
|
+
* Process the HTML string to remove whitespace between non-matching tags.
|
|
3668
|
+
*
|
|
3669
|
+
* @param {string} html - The HTML string to process.
|
|
3670
|
+
* @returns {string} The processed HTML string.
|
|
3671
|
+
*/
|
|
3672
|
+
process(html) {
|
|
3673
|
+
return html.replace(/(<[^>]+>)(\s+)(<[^>]+>)/g, (_match, tag1, whitespace, tag2) => {
|
|
3674
|
+
const openingTagName = this.extractOpeningTagName(tag1);
|
|
3675
|
+
const closingTagName = this.extractClosingTagName(tag2);
|
|
3676
|
+
// Preserve all whitespace if tags match (e.g., <span> </span>)
|
|
3677
|
+
if (openingTagName && closingTagName && openingTagName === closingTagName) {
|
|
3678
|
+
return `${tag1}${whitespace}${tag2}`;
|
|
3679
|
+
}
|
|
3680
|
+
// Remove whitespace for non-matching tags
|
|
3681
|
+
return `${tag1}${tag2}`;
|
|
3682
|
+
});
|
|
3683
|
+
}
|
|
3684
|
+
/**
|
|
3685
|
+
* Extracts the tag name from an opening HTML tag.
|
|
3686
|
+
*
|
|
3687
|
+
* Supports standard HTML tags (div, span, h1, etc.) and custom elements with hyphens (my-component).
|
|
3688
|
+
*
|
|
3689
|
+
* Examples:
|
|
3690
|
+
* - `<span>` → `span`
|
|
3691
|
+
* - `<div class="test">` → `div`
|
|
3692
|
+
* - `<my-component id="123">` → `my-component`
|
|
3693
|
+
* - `</span>` → `null` (not an opening tag)
|
|
3694
|
+
*
|
|
3695
|
+
* @param {string} tag - The tag string to extract from (e.g., '<span>', '<div class="test">').
|
|
3696
|
+
* @returns {string | null} The tag name or null if not an opening tag.
|
|
3697
|
+
* @private
|
|
3698
|
+
*/
|
|
3699
|
+
extractOpeningTagName(tag) {
|
|
3700
|
+
// Pattern: <(tag name) where tag name starts with letter, followed by letters/numbers/hyphens
|
|
3701
|
+
const match = tag.match(/<(\w[\w-]*)/);
|
|
3702
|
+
return match ? match[1] : null;
|
|
3703
|
+
}
|
|
3704
|
+
/**
|
|
3705
|
+
* Extracts the tag name from a closing HTML tag.
|
|
3706
|
+
*
|
|
3707
|
+
* Supports standard HTML tags (div, span, h1, etc.) and custom elements with hyphens (my-component).
|
|
3708
|
+
*
|
|
3709
|
+
* Examples:
|
|
3710
|
+
* - `</span>` → `span`
|
|
3711
|
+
* - `</div>` → `div`
|
|
3712
|
+
* - `</my-component>` → `my-component`
|
|
3713
|
+
* - `<span>` → `null` (not a closing tag)
|
|
3714
|
+
*
|
|
3715
|
+
* @param {string} tag - The tag string to extract from (e.g., '</span>', '</div>').
|
|
3716
|
+
* @returns {string | null} The tag name or null if not a closing tag.
|
|
3717
|
+
* @private
|
|
3718
|
+
*/
|
|
3719
|
+
extractClosingTagName(tag) {
|
|
3720
|
+
// Pattern: </(tag name) where tag name starts with letter, followed by letters/numbers/hyphens
|
|
3721
|
+
const match = tag.match(/<\/(\w[\w-]*)/);
|
|
3722
|
+
return match ? match[1] : null;
|
|
3723
|
+
}
|
|
3724
|
+
}
|
|
3725
|
+
|
|
3726
|
+
/**
|
|
3727
|
+
* Removes `\n` and `\t` characters after opening tags (before text content).
|
|
3728
|
+
*
|
|
3729
|
+
* Transforms patterns like `>[\n\t]+(text)` to `>(text)`.
|
|
3730
|
+
*
|
|
3731
|
+
* Examples:
|
|
3732
|
+
* - `<p>\n\tHello` → `<p>Hello`
|
|
3733
|
+
* - `<div>\n\n\tWorld` → `<div>World`
|
|
3734
|
+
*/
|
|
3735
|
+
class RemoveWhitespaceAfterOpeningTagProcessor {
|
|
3736
|
+
/**
|
|
3737
|
+
* Process the HTML string to remove `\n` and `\t` after opening tags.
|
|
3738
|
+
*
|
|
3739
|
+
* @param {string} html - The HTML string to process.
|
|
3740
|
+
* @returns {string} The processed HTML string.
|
|
3741
|
+
*/
|
|
3742
|
+
process(html) {
|
|
3743
|
+
// Pattern: `>[\n\t]+(text)` → `>(text)`
|
|
3744
|
+
return html.replace(/(>)[\n\t]+(?=.)/g, '$1');
|
|
3745
|
+
}
|
|
3746
|
+
}
|
|
3747
|
+
|
|
3748
|
+
/**
|
|
3749
|
+
* Removes `\n` and `\t` characters before closing tags (after text content).
|
|
3750
|
+
*
|
|
3751
|
+
* Transforms patterns like `(text)[\n\t]+<` to `(text)<`.
|
|
3752
|
+
*
|
|
3753
|
+
* Examples:
|
|
3754
|
+
* - `World\n\t</p>` → `World</p>`
|
|
3755
|
+
* - `Hello\n</div>` → `Hello</div>`
|
|
3756
|
+
*/
|
|
3757
|
+
class RemoveWhitespaceBeforeClosingTagProcessor {
|
|
3758
|
+
/**
|
|
3759
|
+
* Process the HTML string to remove `\n` and `\t` before closing tags.
|
|
3760
|
+
*
|
|
3761
|
+
* @param {string} html - The HTML string to process.
|
|
3762
|
+
* @returns {string} The processed HTML string.
|
|
3763
|
+
*/
|
|
3764
|
+
process(html) {
|
|
3765
|
+
// Pattern: `(text)[\n\t]+<` → `(text)<`
|
|
3766
|
+
return html.replace(/(.?)[\n\t]+(?=<)/g, '$1');
|
|
3767
|
+
}
|
|
3768
|
+
}
|
|
3769
|
+
|
|
3770
|
+
/**
|
|
3771
|
+
* Main HTML content cleaner that orchestrates multiple cleaning processors.
|
|
3772
|
+
*
|
|
3773
|
+
* This class implements a chain of responsibility pattern where each processor
|
|
3774
|
+
* handles a specific aspect of HTML cleaning. The processors are applied in sequence
|
|
3775
|
+
* and the entire chain is repeated until no more changes occur.
|
|
3776
|
+
*
|
|
3777
|
+
* Processors (in order):
|
|
3778
|
+
* 1. RemoveWhitespaceBetweenTagsProcessor - Removes whitespace between non-matching tags
|
|
3779
|
+
* 2. RemoveWhitespaceAfterOpeningTagProcessor - Removes \n and \t after opening tags
|
|
3780
|
+
* 3. RemoveWhitespaceBeforeClosingTagProcessor - Removes \n and \t before closing tags
|
|
3781
|
+
*/
|
|
3782
|
+
class HTMLContentCleaner {
|
|
3783
|
+
constructor() {
|
|
3784
|
+
this.processors = [
|
|
3785
|
+
new RemoveWhitespaceBetweenTagsProcessor(),
|
|
3786
|
+
new RemoveWhitespaceAfterOpeningTagProcessor(),
|
|
3787
|
+
new RemoveWhitespaceBeforeClosingTagProcessor(),
|
|
3788
|
+
];
|
|
3789
|
+
}
|
|
3790
|
+
/**
|
|
3791
|
+
* Cleans HTML by applying all processors in the chain repeatedly until no changes occur.
|
|
3792
|
+
*
|
|
3793
|
+
* The cleaning process:
|
|
3794
|
+
* 1. Applies each processor in sequence
|
|
3795
|
+
* 2. Compares the result with the input
|
|
3796
|
+
* 3. If changes were made, repeats the process
|
|
3797
|
+
* 4. Returns the final cleaned HTML
|
|
3798
|
+
*
|
|
3799
|
+
* Examples of transformations:
|
|
3800
|
+
* - `<p>\n\t <span>test</span>\n\t </p>` → `<p><span>test</span></p>`
|
|
3801
|
+
* - `<p>\n\tHello</p>` → `<p>Hello</p>`
|
|
3802
|
+
* - `<p>Hello\n\t</p>` → `<p>Hello</p>`
|
|
3803
|
+
* - `<span> </span>` → `<span> </span>` (preserved - matching tags)
|
|
3804
|
+
* - `<p>Hello World</p>` → `<p>Hello World</p>` (preserved - regular spaces)
|
|
3805
|
+
*
|
|
3806
|
+
* @param {string} html - The HTML string to clean.
|
|
3807
|
+
* @returns {string} The cleaned HTML string.
|
|
3808
|
+
*/
|
|
3809
|
+
clean(html) {
|
|
3810
|
+
if (!html || html.trim().length === 0) {
|
|
3811
|
+
return html;
|
|
3812
|
+
}
|
|
3813
|
+
let result = html;
|
|
3814
|
+
let previousResult;
|
|
3815
|
+
// Keep processing until no more changes occur
|
|
3816
|
+
do {
|
|
3817
|
+
previousResult = result;
|
|
3818
|
+
// Apply each processor in the chain
|
|
3819
|
+
for (const processor of this.processors) {
|
|
3820
|
+
result = processor.process(result);
|
|
3821
|
+
}
|
|
3822
|
+
} while (result !== previousResult);
|
|
3823
|
+
return result;
|
|
3824
|
+
}
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3632
3827
|
/**
|
|
3633
3828
|
* Class representing the content state of the rich text editor.
|
|
3634
3829
|
*/
|
|
@@ -3691,28 +3886,8 @@ class VegaRTEContent {
|
|
|
3691
3886
|
* @returns {VegaRTEContent} The converted content state.
|
|
3692
3887
|
*/
|
|
3693
3888
|
static fromHtml(html, options = { autoMatchFormat: true, skipCustomAnnotations: false }) {
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
* case1:
|
|
3697
|
-
* '<p>\n\t <span>test</span>\n\t </p>' will be formatted into '<p><span>test</span></p>'
|
|
3698
|
-
* '<p>
|
|
3699
|
-
* test
|
|
3700
|
-
* </p>' will be formatted into '<p>test</p>'
|
|
3701
|
-
*
|
|
3702
|
-
* case2:
|
|
3703
|
-
* <h1>
|
|
3704
|
-
* _test&*....
|
|
3705
|
-
* </h1> will be formatted into <h1>_test&*....</h1>
|
|
3706
|
-
*
|
|
3707
|
-
* The blank space between individual tags should be preserved:
|
|
3708
|
-
* <span> </span>
|
|
3709
|
-
*/
|
|
3710
|
-
const formattedHtml = html
|
|
3711
|
-
.replace(/>\s+<\/?/g, (match) => {
|
|
3712
|
-
return match.endsWith('</') ? match : '><';
|
|
3713
|
-
})
|
|
3714
|
-
.replace(/(>)[\n\t]+(?=[a-zA-Z0-9_\W])/g, '$1')
|
|
3715
|
-
.replace(/([a-zA-Z0-9_\W])[\n\t]+(?=<)/g, '$1');
|
|
3889
|
+
const cleaner = new HTMLContentCleaner();
|
|
3890
|
+
const formattedHtml = cleaner.clean(html);
|
|
3716
3891
|
const context = StylePreservator.preserve(formattedHtml);
|
|
3717
3892
|
const safeHtml = context.getProcessedHtml();
|
|
3718
3893
|
const body = new DOMParser().parseFromString(safeHtml, 'text/html').body;
|
package/dist/esm/{element-appender-slimmer-7cb08343.js → element-appender-slimmer-35e26b5a.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c as MapToComponentField, I as InjectVegaSlimmer, V as VegaSlimmer, L as LogUtility, M as MapToComponentMethod } from './global-slimmer-registry-17c4efd4.js';
|
|
2
2
|
import { f as findParent, d as isElementVisible, b as isParent } from './ui-bb99c0c2.js';
|
|
3
|
-
import { n as InternalVegaZIndexManager } from './function-extension-
|
|
3
|
+
import { n as InternalVegaZIndexManager } from './function-extension-e8c0e43e.js';
|
|
4
4
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
5
5
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-8744cb44.js';
|
|
6
6
|
import { P as Placements, A as Alignments } from './ui-28fd4193.js';
|
|
7
7
|
import { H as isTranslocationType, a3 as isEATriggerStrategy } from './type-guard-c65a227d.js';
|
|
8
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
8
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-28ee2dbd.js';
|
|
9
9
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
10
10
|
import { S as SHADOW_ROOT_ELEMENT_SCROLLING } from './static-subject-title-52f93124.js';
|
|
11
11
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
@@ -6,7 +6,7 @@ import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-8
|
|
|
6
6
|
import { V as VegaInternalThemeManager } from './dark-mode-style-controller-de88a117.js';
|
|
7
7
|
import { i as internalVegaEventManager } from './internal-vega-event-manager-efb6786e.js';
|
|
8
8
|
import { c as convertToNumber } from './number-4398f2e1.js';
|
|
9
|
-
import { R as RTEDTORendererManager, a as RTEDTOActionStrategyManager, E as ElementToDTOClassStrategyManager, U as UpdateCursorPositionAction, b as ElementToDTOStrategy, h as htmlElementToAnnotationGenerator, c as RTEListItemBlock, V as VegaRTEContent, B as BlockToRTEBlockStrategyAbstract, I as InsertNewParagraphAction, d as RTEImageBlock } from './dto-renderer-manager-
|
|
9
|
+
import { R as RTEDTORendererManager, a as RTEDTOActionStrategyManager, E as ElementToDTOClassStrategyManager, U as UpdateCursorPositionAction, b as ElementToDTOStrategy, h as htmlElementToAnnotationGenerator, c as RTEListItemBlock, V as VegaRTEContent, B as BlockToRTEBlockStrategyAbstract, I as InsertNewParagraphAction, d as RTEImageBlock } from './dto-renderer-manager-ee1a5864.js';
|
|
10
10
|
import { s as stateEntityRenderingRegistry, A as ActionHandleStrategyRegistry, a as ActionHandlerInterceptorRegistry, R as RTEDTOClassManager, M as ModifyContentAction, b as RTETextNode, c as ModifyContentActionType, d as ActionHandleStrategy, C as CustomAttributeAnnotation, e as RTETextBlock, f as RTEBlock, g as RTEAnnotationStyle, I as InsertChildrenAfterAction, h as AppendChildrenAction, i as RTENode, j as InsertChildrenBeforeAction, k as InternalAnnotationTypeEnum } from './code-block-8ee34ab6.js';
|
|
11
11
|
import { i as isNonNullable } from './type-guard-c65a227d.js';
|
|
12
12
|
import './translation-96e5debd.js';
|
package/dist/esm/{image-annotation-action-53529cd9.js → image-annotation-action-285d432e.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { c as MapToComponentField, V as VegaSlimmer } from './global-slimmer-reg
|
|
|
4
4
|
import { A as ActionHandleStrategyRegistry, O as RTE_TEXT_COLORS, b as RTETextNode, $ as TextColorAnnotationAction, y as NodeAnnotationTypeEnum, F as AnnotationAction } from './code-block-8ee34ab6.js';
|
|
5
5
|
import { D as DomNodeSubjectObserverFactory, a as VegaClick, W as VegaPopoverShow, X as VegaPopoverHide, g as VegaChange } from './dom-node-subject-observer-factory-064ee2b2.js';
|
|
6
6
|
import { a as VegaDarkModeStyleController } from './dark-mode-style-controller-de88a117.js';
|
|
7
|
-
import { g as ImageAnnotation } from './dto-renderer-manager-
|
|
7
|
+
import { g as ImageAnnotation } from './dto-renderer-manager-ee1a5864.js';
|
|
8
8
|
|
|
9
9
|
const text = {
|
|
10
10
|
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>`,
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { g as getCurrentBreakpoint } from './page-resize-observer-slimmer-8744cb44.js';
|
|
2
2
|
export { L as LogUtility, s as setVegaLogLevel } from './global-slimmer-registry-17c4efd4.js';
|
|
3
|
-
export { d as formatAndValidBackgroundColor, e as formatAndValidBorderColor, g as formatAndValidBorderRadius, c as formatAndValidBreakpointSize, a as formatAndValidGap, h as formatAndValidPadding, f as formatAndValidResponsiveToken, b as formatAndValidShadow, i as formatAndValidTextColor } from './design-token-
|
|
3
|
+
export { d as formatAndValidBackgroundColor, e as formatAndValidBorderColor, g as formatAndValidBorderRadius, c as formatAndValidBreakpointSize, a as formatAndValidGap, h as formatAndValidPadding, f as formatAndValidResponsiveToken, b as formatAndValidShadow, i as formatAndValidTextColor } from './design-token-007efbaa.js';
|
|
4
4
|
export { c as camelToDashCase } from './string-a953eafc.js';
|
|
5
5
|
export { d as BackgroundColorMap, a as BackgroundColors, e as BorderColorMap, b as BorderColors, B as BorderRadius, C as Colors, F as FillBackgroundColors, g as ShadowMap, f as Shadows, h as Spacing, S as StrokeBackgroundColors, c as TextColorMap, T as TextColors } from './type-guard-c65a227d.js';
|
|
6
6
|
export { B as Breakpoints } from './breakpoints-d9faf11c.js';
|
|
@@ -8,25 +8,25 @@ 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-396de03f.js';
|
|
9
9
|
export { d as BoxDisplay, e as BreakpointKeys, C as CssStates, F as FlexDirections } from './ui-28fd4193.js';
|
|
10
10
|
export { F as FrameworkEnum, v as VegaEnvManager } from './vega-env-manager-8f8dc473.js';
|
|
11
|
-
export { A as ActionHandlerInterceptor, I as InsertNodeToNearestRootAction, l as RTETokenNode, m as RTETokenNodeRenderer, R as RTETokenToolbarButtonRenderer, c as VegaDialog, d as VegaEventManager, V as VegaLoader, a as VegaNotify, j as VegaRTEExtension, k as VegaRTEExtensionRenderer, h as VegaRTEFunctionExtension, g as VegaRTETokenExtension, i as VegaRTEToolbarButtonRenderer, f as VegaSkeletonLoader, b as VegaThemeManager, e as VegaZIndexManager } from './function-extension-
|
|
11
|
+
export { A as ActionHandlerInterceptor, I as InsertNodeToNearestRootAction, l as RTETokenNode, m as RTETokenNodeRenderer, R as RTETokenToolbarButtonRenderer, c as VegaDialog, d as VegaEventManager, V as VegaLoader, a as VegaNotify, j as VegaRTEExtension, k as VegaRTEExtensionRenderer, h as VegaRTEFunctionExtension, g as VegaRTETokenExtension, i as VegaRTEToolbarButtonRenderer, f as VegaSkeletonLoader, b as VegaThemeManager, e as VegaZIndexManager } from './function-extension-e8c0e43e.js';
|
|
12
12
|
export { F as FeatureFlag } from './feature-flag-controller-51659753.js';
|
|
13
13
|
export { B as VegaJQueryDelegatedEventStrategy } from './internal-vega-event-manager-efb6786e.js';
|
|
14
14
|
export { V as VegaIconManager } from './internal-icon-manager-f0486245.js';
|
|
15
15
|
export { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-666c415d.js';
|
|
16
16
|
export { w as waitForVega } from './index-51a7da7f.js';
|
|
17
17
|
export { a as VegaTranslation, s as VegaTranslationResourceEN } from './translation-96e5debd.js';
|
|
18
|
-
export { B as BlockToRTEBlockStrategyAbstract, b as ElementToDTOStrategy, I as InsertNewParagraphAction, d as RTEImageBlock, f as RTEImageNode, e as RTEListBlock, c as RTEListItemBlock, U as UpdateCursorPositionAction, V as VegaRTEContent, h as htmlElementToAnnotationGenerator } from './dto-renderer-manager-
|
|
18
|
+
export { B as BlockToRTEBlockStrategyAbstract, b as ElementToDTOStrategy, I as InsertNewParagraphAction, d as RTEImageBlock, f as RTEImageNode, e as RTEListBlock, c as RTEListItemBlock, U as UpdateCursorPositionAction, V as VegaRTEContent, h as htmlElementToAnnotationGenerator } from './dto-renderer-manager-ee1a5864.js';
|
|
19
19
|
export { s as setVegaNonce } from './vega-nonce-manager-497e5eb5.js';
|
|
20
20
|
export { d as ActionHandleStrategy, h as AppendChildrenAction, Q as CodeLanguage, C as CustomAttributeAnnotation, w as CustomClassAnnotation, v as CustomStyleAnnotation, I as InsertChildrenAfterAction, j as InsertChildrenBeforeAction, M as ModifyContentAction, c as ModifyContentActionType, g as RTEAnnotationStyle, f as RTEBlock, z as RTEDecoratorNode, i as RTENode, e as RTETextBlock, b as RTETextNode, r as RemoveChildrenAction, V as VegaRTEPresetToolbarItems } from './code-block-8ee34ab6.js';
|
|
21
|
-
export { R as RTELanguageToolbarButtonRenderer, V as VegaRTELanguageExtension } from './language-extension-
|
|
21
|
+
export { R as RTELanguageToolbarButtonRenderer, V as VegaRTELanguageExtension } from './language-extension-29bf8acd.js';
|
|
22
22
|
export { R as RTERange } from './range-5257c062.js';
|
|
23
|
-
export { G as GridColumns, a as GridRows } from './responsive-format-facade-
|
|
23
|
+
export { G as GridColumns, a as GridRows } from './responsive-format-facade-28ee2dbd.js';
|
|
24
24
|
export { C as CheckBoxRequiredRule } from './check-box-required-rule-cb0aa339.js';
|
|
25
25
|
export { D as DateRequiredRule } from './date-required-rule-47ecc28f.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-ab4bdc47.js';
|
|
29
|
-
export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-
|
|
29
|
+
export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-873e2e67.js';
|
|
30
30
|
export { T as TimeRangeRequiredRule, a as TimeRequiredRule } from './time-required-rule-5fa43804.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-ad886d01.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VegaRTEContent } from './dto-renderer-manager-
|
|
2
|
-
import { i as VegaRTEToolbarButtonRenderer, j as VegaRTEExtension } from './function-extension-
|
|
1
|
+
import { V as VegaRTEContent } from './dto-renderer-manager-ee1a5864.js';
|
|
2
|
+
import { i as VegaRTEToolbarButtonRenderer, j as VegaRTEExtension } from './function-extension-e8c0e43e.js';
|
|
3
3
|
import './global-slimmer-registry-17c4efd4.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-2ac60ff5.js';
|
|
3
3
|
import './feature-flag-controller-51659753.js';
|
|
4
4
|
import './global-slimmer-registry-17c4efd4.js';
|
|
5
5
|
import './index-e9da316f.js';
|
|
6
6
|
import './_commonjsHelpers-9943807e.js';
|
|
7
|
-
import './function-extension-
|
|
7
|
+
import './function-extension-e8c0e43e.js';
|
|
8
8
|
import './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
9
9
|
import './dynamic-slimmer-90b8af32.js';
|
|
10
10
|
import './ui-bb99c0c2.js';
|
|
@@ -20,7 +20,7 @@ import './vega-nonce-manager-497e5eb5.js';
|
|
|
20
20
|
import './internal-vega-event-manager-efb6786e.js';
|
|
21
21
|
import './dom-node-subject-observer-factory-064ee2b2.js';
|
|
22
22
|
import './number-4398f2e1.js';
|
|
23
|
-
import './dto-renderer-manager-
|
|
23
|
+
import './dto-renderer-manager-ee1a5864.js';
|
|
24
24
|
import './code-block-8ee34ab6.js';
|
|
25
25
|
import './vega-internal-event-id-4a06d705.js';
|
|
26
26
|
import './string-a953eafc.js';
|
|
@@ -35,7 +35,7 @@ import './wait-for-vega-handler-c2c07ac3.js';
|
|
|
35
35
|
import './valid-credit-card-number-rule-666c415d.js';
|
|
36
36
|
import './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
|
|
37
37
|
import './index-51a7da7f.js';
|
|
38
|
-
import './language-extension-
|
|
38
|
+
import './language-extension-29bf8acd.js';
|
|
39
39
|
|
|
40
40
|
/*
|
|
41
41
|
Stencil Client Patch Esm v2.17.4 | MIT Licensed | https://stenciljs.com
|
|
@@ -3,7 +3,7 @@ export { D as DateRequiredRule } from './date-required-rule-47ecc28f.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-ab4bdc47.js';
|
|
6
|
-
export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-
|
|
6
|
+
export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-873e2e67.js';
|
|
7
7
|
export { T as TimeRangeRequiredRule, a as TimeRequiredRule } from './time-required-rule-5fa43804.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-ad886d01.js';
|
|
@@ -18,7 +18,7 @@ import './change-manager-6a7eb88c.js';
|
|
|
18
18
|
import './static-subject-title-52f93124.js';
|
|
19
19
|
import './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
20
20
|
import './dynamic-slimmer-90b8af32.js';
|
|
21
|
-
import './dto-renderer-manager-
|
|
21
|
+
import './dto-renderer-manager-ee1a5864.js';
|
|
22
22
|
import './code-block-8ee34ab6.js';
|
|
23
23
|
import './dom-node-subject-observer-factory-064ee2b2.js';
|
|
24
24
|
import './observer-3959f9dd.js';
|
package/dist/esm/{responsive-format-facade-05e53016.js → responsive-format-facade-28ee2dbd.js}
RENAMED
|
@@ -7,13 +7,13 @@ import { p as parseToPixelString } from './pixel-f32c07ce.js';
|
|
|
7
7
|
import { B as Breakpoints } from './breakpoints-d9faf11c.js';
|
|
8
8
|
import { s as sortAsExistArray } from './array-7888f339.js';
|
|
9
9
|
import './vega-env-manager-8f8dc473.js';
|
|
10
|
-
import './function-extension-
|
|
10
|
+
import './function-extension-e8c0e43e.js';
|
|
11
11
|
import { F as FeatureFlag } from './feature-flag-controller-51659753.js';
|
|
12
12
|
import './internal-icon-manager-f0486245.js';
|
|
13
13
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
14
14
|
import './ui-bb99c0c2.js';
|
|
15
15
|
import './translation-96e5debd.js';
|
|
16
|
-
import './dto-renderer-manager-
|
|
16
|
+
import './dto-renderer-manager-ee1a5864.js';
|
|
17
17
|
import './vega-nonce-manager-497e5eb5.js';
|
|
18
18
|
import './code-block-8ee34ab6.js';
|
|
19
19
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VegaRTEContent } from './dto-renderer-manager-
|
|
1
|
+
import { V as VegaRTEContent } from './dto-renderer-manager-ee1a5864.js';
|
|
2
2
|
import { I as InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as isNonNullable } from './type-guard-c65a227d.js';
|
|
2
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
2
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-28ee2dbd.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Fomatter flex styles.
|
|
@@ -3,7 +3,7 @@ import { c as MapToComponentField, V as VegaSlimmer, M as MapToComponentMethod,
|
|
|
3
3
|
import { s as slotPlaceholder } from './placeholder-bf562081.js';
|
|
4
4
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-a84cc93e.js';
|
|
5
5
|
import { s as sanitizeVegaComponent } from './component-7d906393.js';
|
|
6
|
-
import { f as formatAndValidResponsiveToken } from './design-token-
|
|
6
|
+
import { f as formatAndValidResponsiveToken } from './design-token-007efbaa.js';
|
|
7
7
|
import { a as arrayToClassString } from './ui-bb99c0c2.js';
|
|
8
8
|
import { D as DomNodeSubjectObserverFactory, a as VegaClick, b as VegaExpand } from './dom-node-subject-observer-factory-064ee2b2.js';
|
|
9
9
|
import { c as chevronUp } from './chevron-up-b1989751.js';
|
|
@@ -15,7 +15,7 @@ import { A as ACCORDION_EXPAND_TOPIC } from './static-subject-title-52f93124.js'
|
|
|
15
15
|
import { U as isAccordionObserverPayload } from './type-guard-c65a227d.js';
|
|
16
16
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-09827cec.js';
|
|
17
17
|
import './breakpoints-d9faf11c.js';
|
|
18
|
-
import './responsive-format-facade-
|
|
18
|
+
import './responsive-format-facade-28ee2dbd.js';
|
|
19
19
|
import './page-resize-observer-slimmer-8744cb44.js';
|
|
20
20
|
import './ui-28fd4193.js';
|
|
21
21
|
import './try-get-document-bef0f526.js';
|
|
@@ -23,14 +23,14 @@ import './number-4398f2e1.js';
|
|
|
23
23
|
import './pixel-f32c07ce.js';
|
|
24
24
|
import './array-7888f339.js';
|
|
25
25
|
import './vega-env-manager-8f8dc473.js';
|
|
26
|
-
import './function-extension-
|
|
26
|
+
import './function-extension-e8c0e43e.js';
|
|
27
27
|
import './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
28
28
|
import './dynamic-slimmer-90b8af32.js';
|
|
29
29
|
import './dark-mode-style-controller-de88a117.js';
|
|
30
30
|
import './_commonjsHelpers-9943807e.js';
|
|
31
31
|
import './vega-nonce-manager-497e5eb5.js';
|
|
32
32
|
import './internal-vega-event-manager-efb6786e.js';
|
|
33
|
-
import './dto-renderer-manager-
|
|
33
|
+
import './dto-renderer-manager-ee1a5864.js';
|
|
34
34
|
import './code-block-8ee34ab6.js';
|
|
35
35
|
import './vega-internal-event-id-4a06d705.js';
|
|
36
36
|
import './string-a953eafc.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, f as forceUpdate, H as Host, g as getElement } from './index-090d31ca.js';
|
|
2
2
|
import { s as sanitizeVegaComponent } from './component-7d906393.js';
|
|
3
3
|
import { a as arrayToClassString } from './ui-bb99c0c2.js';
|
|
4
|
-
import { d as formatAndValidBackgroundColor, i as formatAndValidTextColor } from './design-token-
|
|
5
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
4
|
+
import { d as formatAndValidBackgroundColor, i as formatAndValidTextColor } from './design-token-007efbaa.js';
|
|
5
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-28ee2dbd.js';
|
|
6
6
|
import { c as MapToComponentField, V as VegaSlimmer, M as MapToComponentMethod, L as LogUtility, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
7
7
|
import { P as PageResizeObserverSlimmer, g as getCurrentBreakpoint } from './page-resize-observer-slimmer-8744cb44.js';
|
|
8
8
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-a84cc93e.js';
|
|
@@ -25,14 +25,14 @@ import './number-4398f2e1.js';
|
|
|
25
25
|
import './pixel-f32c07ce.js';
|
|
26
26
|
import './array-7888f339.js';
|
|
27
27
|
import './vega-env-manager-8f8dc473.js';
|
|
28
|
-
import './function-extension-
|
|
28
|
+
import './function-extension-e8c0e43e.js';
|
|
29
29
|
import './dark-mode-style-controller-de88a117.js';
|
|
30
30
|
import './observer-3959f9dd.js';
|
|
31
31
|
import './_commonjsHelpers-9943807e.js';
|
|
32
32
|
import './vega-nonce-manager-497e5eb5.js';
|
|
33
33
|
import './try-get-document-bef0f526.js';
|
|
34
34
|
import './internal-vega-event-manager-efb6786e.js';
|
|
35
|
-
import './dto-renderer-manager-
|
|
35
|
+
import './dto-renderer-manager-ee1a5864.js';
|
|
36
36
|
import './code-block-8ee34ab6.js';
|
|
37
37
|
import './vega-internal-event-id-4a06d705.js';
|
|
38
38
|
import './string-a953eafc.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-090d31ca.js';
|
|
2
2
|
import { s as sanitizeVegaComponent } from './component-7d906393.js';
|
|
3
|
-
import { j as formatAndValidStateToken, f as formatAndValidResponsiveToken, k as formatAndValidBorderStyle } from './design-token-
|
|
3
|
+
import { j as formatAndValidStateToken, f as formatAndValidResponsiveToken, k as formatAndValidBorderStyle } from './design-token-007efbaa.js';
|
|
4
4
|
import { a as arrayToClassString } from './ui-bb99c0c2.js';
|
|
5
5
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
6
6
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-a84cc93e.js';
|
|
7
7
|
import { v as vegaNonceManager } from './vega-nonce-manager-497e5eb5.js';
|
|
8
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
8
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-28ee2dbd.js';
|
|
9
9
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-8744cb44.js';
|
|
10
|
-
import { f as formatFlexStyles } from './style-formatter-
|
|
10
|
+
import { f as formatFlexStyles } from './style-formatter-314b37f3.js';
|
|
11
11
|
import './type-guard-c65a227d.js';
|
|
12
12
|
import './breakpoints-d9faf11c.js';
|
|
13
13
|
import './ui-28fd4193.js';
|
|
@@ -22,13 +22,13 @@ import './number-4398f2e1.js';
|
|
|
22
22
|
import './pixel-f32c07ce.js';
|
|
23
23
|
import './array-7888f339.js';
|
|
24
24
|
import './vega-env-manager-8f8dc473.js';
|
|
25
|
-
import './function-extension-
|
|
25
|
+
import './function-extension-e8c0e43e.js';
|
|
26
26
|
import './dark-mode-style-controller-de88a117.js';
|
|
27
27
|
import './observer-3959f9dd.js';
|
|
28
28
|
import './_commonjsHelpers-9943807e.js';
|
|
29
29
|
import './internal-vega-event-manager-efb6786e.js';
|
|
30
30
|
import './dom-node-subject-observer-factory-064ee2b2.js';
|
|
31
|
-
import './dto-renderer-manager-
|
|
31
|
+
import './dto-renderer-manager-ee1a5864.js';
|
|
32
32
|
import './code-block-8ee34ab6.js';
|
|
33
33
|
import './vega-internal-event-id-4a06d705.js';
|
|
34
34
|
import './string-a953eafc.js';
|