@edsis/angular 22.2.17 → 22.3.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/README.md +8 -4
- package/SUPPORT.md +23 -9
- package/chart/README.md +1 -1
- package/component/README.md +1 -1
- package/component/composer/README.md +3 -0
- package/component/editor/README.md +3 -0
- package/fesm2022/edsis-angular-chart-area.mjs +3 -3
- package/fesm2022/edsis-angular-chart-bar.mjs +3 -3
- package/fesm2022/edsis-angular-chart-core.mjs +33 -33
- package/fesm2022/edsis-angular-chart-line.mjs +3 -3
- package/fesm2022/edsis-angular-chart-pie.mjs +3 -3
- package/fesm2022/edsis-angular-chart-primitives.mjs +33 -33
- package/fesm2022/edsis-angular-chart-radar.mjs +3 -3
- package/fesm2022/edsis-angular-chart-radial.mjs +3 -3
- package/fesm2022/edsis-angular-chart-scatter.mjs +3 -3
- package/fesm2022/edsis-angular-component-accordion.mjs +15 -15
- package/fesm2022/edsis-angular-component-alert-dialog.mjs +27 -27
- package/fesm2022/edsis-angular-component-alert.mjs +12 -12
- package/fesm2022/edsis-angular-component-aspect-ratio.mjs +3 -3
- package/fesm2022/edsis-angular-component-avatar.mjs +18 -18
- package/fesm2022/edsis-angular-component-badge.mjs +3 -3
- package/fesm2022/edsis-angular-component-breadcrumb.mjs +21 -21
- package/fesm2022/edsis-angular-component-button-group.mjs +9 -9
- package/fesm2022/edsis-angular-component-button.mjs +3 -3
- package/fesm2022/edsis-angular-component-calendar.mjs +3 -3
- package/fesm2022/edsis-angular-component-card.mjs +21 -21
- package/fesm2022/edsis-angular-component-carousel.mjs +18 -18
- package/fesm2022/edsis-angular-component-checkbox.mjs +3 -3
- package/fesm2022/edsis-angular-component-collapsible.mjs +12 -12
- package/fesm2022/edsis-angular-component-combobox.mjs +3 -3
- package/fesm2022/edsis-angular-component-command.mjs +27 -27
- package/fesm2022/edsis-angular-component-composer.mjs +89 -40
- package/fesm2022/edsis-angular-component-context-menu.mjs +3 -3
- package/fesm2022/edsis-angular-component-date-picker.mjs +3 -3
- package/fesm2022/edsis-angular-component-dialog.mjs +21 -21
- package/fesm2022/edsis-angular-component-dropdown-menu.mjs +39 -39
- package/fesm2022/edsis-angular-component-editor.mjs +86 -30
- package/fesm2022/edsis-angular-component-empty.mjs +18 -18
- package/fesm2022/edsis-angular-component-form.mjs +36 -36
- package/fesm2022/edsis-angular-component-hover-card.mjs +9 -9
- package/fesm2022/edsis-angular-component-icon.mjs +6 -6
- package/fesm2022/edsis-angular-component-input-group.mjs +18 -18
- package/fesm2022/edsis-angular-component-input-otp.mjs +15 -15
- package/fesm2022/edsis-angular-component-input.mjs +3 -3
- package/fesm2022/edsis-angular-component-item.mjs +30 -30
- package/fesm2022/edsis-angular-component-kanban.mjs +27 -27
- package/fesm2022/edsis-angular-component-kbd.mjs +6 -6
- package/fesm2022/edsis-angular-component-label.mjs +3 -3
- package/fesm2022/edsis-angular-component-menubar.mjs +12 -12
- package/fesm2022/edsis-angular-component-native-select.mjs +9 -9
- package/fesm2022/edsis-angular-component-navigation-menu.mjs +21 -21
- package/fesm2022/edsis-angular-component-pagination.mjs +3 -3
- package/fesm2022/edsis-angular-component-pillbox.mjs +15 -15
- package/fesm2022/edsis-angular-component-popover.mjs +6 -6
- package/fesm2022/edsis-angular-component-progress.mjs +3 -3
- package/fesm2022/edsis-angular-component-radio.mjs +6 -6
- package/fesm2022/edsis-angular-component-resizable.mjs +12 -12
- package/fesm2022/edsis-angular-component-scroll-area.mjs +3 -3
- package/fesm2022/edsis-angular-component-segmented-control.mjs +3 -3
- package/fesm2022/edsis-angular-component-select.mjs +6 -6
- package/fesm2022/edsis-angular-component-separator.mjs +3 -3
- package/fesm2022/edsis-angular-component-sheet.mjs +21 -21
- package/fesm2022/edsis-angular-component-skeleton.mjs +3 -3
- package/fesm2022/edsis-angular-component-slider.mjs +6 -6
- package/fesm2022/edsis-angular-component-spinner.mjs +3 -3
- package/fesm2022/edsis-angular-component-switch.mjs +3 -3
- package/fesm2022/edsis-angular-component-table.mjs +24 -24
- package/fesm2022/edsis-angular-component-tabs.mjs +18 -18
- package/fesm2022/edsis-angular-component-textarea.mjs +3 -3
- package/fesm2022/edsis-angular-component-timeline.mjs +18 -18
- package/fesm2022/edsis-angular-component-toast.mjs +3 -3
- package/fesm2022/edsis-angular-component-toggle-group.mjs +9 -9
- package/fesm2022/edsis-angular-component-toggle.mjs +3 -3
- package/fesm2022/edsis-angular-component-tooltip.mjs +15 -15
- package/fesm2022/edsis-angular-component-utils-core.mjs +7 -1
- package/fesm2022/edsis-angular-component-utils-scale.mjs +3 -3
- package/fesm2022/edsis-angular-navigation-icon.mjs +3 -3
- package/fesm2022/{edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs → edsis-angular-navigation-navigation-badge-count.component-VP5RtdYf.mjs} +3 -3
- package/fesm2022/{edsis-angular-navigation-navigation-dockbar-menu.component-BzrCl-F7.mjs → edsis-angular-navigation-navigation-dockbar-menu.component-iqhj7Ky4.mjs} +6 -6
- package/fesm2022/{edsis-angular-navigation-navigation-entry-grid.component-CSqoookZ.mjs → edsis-angular-navigation-navigation-entry-grid.component-D6PJHslI.mjs} +7 -4
- package/fesm2022/{edsis-angular-navigation-navigation-flyout-menu.component-DVrwb851.mjs → edsis-angular-navigation-navigation-flyout-menu.component-C1vop_Yv.mjs} +5 -5
- package/fesm2022/{edsis-angular-navigation-navigation-horizontal.component-Dgwp5Ti1.mjs → edsis-angular-navigation-navigation-horizontal.component-B9LbsNoZ.mjs} +6 -6
- package/fesm2022/{edsis-angular-navigation-navigation-item.component-ByWQIgH4.mjs → edsis-angular-navigation-navigation-item.component-DLmfoIYR.mjs} +13 -10
- package/fesm2022/{edsis-angular-navigation-navigation-list.component-bdr5gai8.mjs → edsis-angular-navigation-navigation-list.component-BYQcQql1.mjs} +4 -4
- package/fesm2022/edsis-angular-navigation-service.mjs +3 -3
- package/fesm2022/edsis-angular-navigation.mjs +62 -62
- package/fesm2022/edsis-angular-theme-component-settings.mjs +18 -18
- package/fesm2022/edsis-angular-theme-layout-services.mjs +6 -6
- package/fesm2022/edsis-angular-theme-layout-wrapper.mjs +30 -30
- package/fesm2022/edsis-angular-theme-layout.mjs +24 -24
- package/fesm2022/edsis-angular-theme-on-fill.mjs +3 -3
- package/fesm2022/edsis-angular-theme-page-core.mjs +163 -95
- package/fesm2022/edsis-angular-theme-page-filter.mjs +15 -23
- package/fesm2022/edsis-angular-theme-page-overview.mjs +3 -3
- package/fesm2022/edsis-angular-theme-page-root.mjs +17 -9
- package/fesm2022/edsis-angular-theme-page-side.mjs +16 -24
- package/fesm2022/edsis-angular-theme-page-slots.mjs +12 -12
- package/fesm2022/edsis-angular-theme-shell-services.mjs +3 -3
- package/fesm2022/edsis-angular-theme-shell.mjs +9 -9
- package/fesm2022/edsis-angular-theme-styles.mjs +19 -19
- package/navigation/README.md +2 -1
- package/package.json +10 -10
- package/sdk/README.md +4 -0
- package/sdk/schematics/ng-add/index.js +36 -5
- package/sdk/src/parser/ir.js +4 -3
- package/sdk/src/writer/index.js +3 -3
- package/theme/README.md +1 -1
- package/theme/page/README.md +5 -3
- package/types/edsis-angular-chart-area.d.ts +3 -0
- package/types/edsis-angular-chart-bar.d.ts +3 -0
- package/types/edsis-angular-chart-core.d.ts +3 -0
- package/types/edsis-angular-chart-line.d.ts +3 -0
- package/types/edsis-angular-chart-pie.d.ts +3 -0
- package/types/edsis-angular-chart-primitives.d.ts +3 -0
- package/types/edsis-angular-chart-radar.d.ts +3 -0
- package/types/edsis-angular-chart-radial.d.ts +3 -0
- package/types/edsis-angular-chart-scatter.d.ts +3 -0
- package/types/edsis-angular-chart.d.ts +3 -0
- package/types/edsis-angular-component-accordion.d.ts +3 -0
- package/types/edsis-angular-component-alert-dialog.d.ts +3 -0
- package/types/edsis-angular-component-alert.d.ts +3 -0
- package/types/edsis-angular-component-aspect-ratio.d.ts +3 -0
- package/types/edsis-angular-component-avatar.d.ts +3 -0
- package/types/edsis-angular-component-badge.d.ts +3 -0
- package/types/edsis-angular-component-breadcrumb.d.ts +3 -0
- package/types/edsis-angular-component-button-group.d.ts +3 -0
- package/types/edsis-angular-component-button.d.ts +3 -0
- package/types/edsis-angular-component-calendar.d.ts +3 -0
- package/types/edsis-angular-component-card.d.ts +3 -0
- package/types/edsis-angular-component-carousel.d.ts +3 -0
- package/types/edsis-angular-component-checkbox.d.ts +3 -0
- package/types/edsis-angular-component-collapsible.d.ts +3 -0
- package/types/edsis-angular-component-combobox.d.ts +3 -0
- package/types/edsis-angular-component-command.d.ts +3 -0
- package/types/edsis-angular-component-composer.d.ts +8 -1
- package/types/edsis-angular-component-context-menu.d.ts +3 -0
- package/types/edsis-angular-component-date-picker.d.ts +3 -0
- package/types/edsis-angular-component-dialog.d.ts +3 -0
- package/types/edsis-angular-component-drawer.d.ts +3 -0
- package/types/edsis-angular-component-dropdown-menu.d.ts +3 -0
- package/types/edsis-angular-component-editor.d.ts +7 -0
- package/types/edsis-angular-component-empty.d.ts +3 -0
- package/types/edsis-angular-component-form.d.ts +3 -0
- package/types/edsis-angular-component-hover-card.d.ts +3 -0
- package/types/edsis-angular-component-icon.d.ts +3 -0
- package/types/edsis-angular-component-input-group.d.ts +3 -0
- package/types/edsis-angular-component-input-otp.d.ts +3 -0
- package/types/edsis-angular-component-input.d.ts +3 -0
- package/types/edsis-angular-component-item.d.ts +3 -0
- package/types/edsis-angular-component-kanban.d.ts +3 -0
- package/types/edsis-angular-component-kbd.d.ts +3 -0
- package/types/edsis-angular-component-label.d.ts +3 -0
- package/types/edsis-angular-component-menubar.d.ts +3 -0
- package/types/edsis-angular-component-native-select.d.ts +3 -0
- package/types/edsis-angular-component-navigation-menu.d.ts +3 -0
- package/types/edsis-angular-component-pagination.d.ts +3 -0
- package/types/edsis-angular-component-pillbox.d.ts +3 -0
- package/types/edsis-angular-component-popover.d.ts +3 -0
- package/types/edsis-angular-component-progress.d.ts +3 -0
- package/types/edsis-angular-component-radio.d.ts +3 -0
- package/types/edsis-angular-component-resizable.d.ts +3 -0
- package/types/edsis-angular-component-scroll-area.d.ts +3 -0
- package/types/edsis-angular-component-segmented-control.d.ts +3 -0
- package/types/edsis-angular-component-select.d.ts +3 -0
- package/types/edsis-angular-component-separator.d.ts +3 -0
- package/types/edsis-angular-component-sheet.d.ts +3 -0
- package/types/edsis-angular-component-skeleton.d.ts +3 -0
- package/types/edsis-angular-component-slider.d.ts +3 -0
- package/types/edsis-angular-component-spinner.d.ts +3 -0
- package/types/edsis-angular-component-switch.d.ts +3 -0
- package/types/edsis-angular-component-table.d.ts +3 -0
- package/types/edsis-angular-component-tabs.d.ts +3 -0
- package/types/edsis-angular-component-textarea.d.ts +3 -0
- package/types/edsis-angular-component-timeline.d.ts +3 -0
- package/types/edsis-angular-component-toast.d.ts +3 -0
- package/types/edsis-angular-component-toggle-group.d.ts +3 -0
- package/types/edsis-angular-component-toggle.d.ts +3 -0
- package/types/edsis-angular-component-tooltip.d.ts +3 -0
- package/types/edsis-angular-component-utils-core.d.ts +3 -0
- package/types/edsis-angular-component-utils-overlay.d.ts +3 -0
- package/types/edsis-angular-component-utils-scale.d.ts +3 -0
- package/types/edsis-angular-component-utils.d.ts +3 -0
- package/types/edsis-angular-navigation-core.d.ts +3 -0
- package/types/edsis-angular-navigation-icon.d.ts +3 -0
- package/types/edsis-angular-navigation-service.d.ts +3 -0
- package/types/edsis-angular-navigation-types.d.ts +5 -0
- package/types/edsis-angular-navigation.d.ts +3 -0
- package/types/edsis-angular-sdk.d.ts +3 -0
- package/types/edsis-angular-theme-component-settings.d.ts +3 -0
- package/types/edsis-angular-theme-layout-services.d.ts +3 -0
- package/types/edsis-angular-theme-layout-types.d.ts +3 -0
- package/types/edsis-angular-theme-layout-wrapper.d.ts +3 -0
- package/types/edsis-angular-theme-layout.d.ts +3 -0
- package/types/edsis-angular-theme-on-fill.d.ts +3 -0
- package/types/edsis-angular-theme-page-core.d.ts +11 -9
- package/types/edsis-angular-theme-page-filter.d.ts +3 -0
- package/types/edsis-angular-theme-page-overview.d.ts +3 -0
- package/types/edsis-angular-theme-page-root.d.ts +4 -0
- package/types/edsis-angular-theme-page-side.d.ts +3 -0
- package/types/edsis-angular-theme-page-slots.d.ts +3 -0
- package/types/edsis-angular-theme-page.d.ts +3 -0
- package/types/edsis-angular-theme-shell-services.d.ts +3 -0
- package/types/edsis-angular-theme-shell-types.d.ts +3 -0
- package/types/edsis-angular-theme-shell.d.ts +3 -0
- package/types/edsis-angular-theme-styles.d.ts +3 -0
- package/types/edsis-angular.d.ts +3 -0
|
@@ -54,7 +54,7 @@ var MenuFocusableItem = class MenuFocusableItem {
|
|
|
54
54
|
}
|
|
55
55
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
56
56
|
minVersion: "12.0.0",
|
|
57
|
-
version: "22.
|
|
57
|
+
version: "22.3.0",
|
|
58
58
|
ngImport: i0,
|
|
59
59
|
type: MenuFocusableItem,
|
|
60
60
|
deps: [],
|
|
@@ -62,7 +62,7 @@ var MenuFocusableItem = class MenuFocusableItem {
|
|
|
62
62
|
});
|
|
63
63
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
64
64
|
minVersion: "17.1.0",
|
|
65
|
-
version: "22.
|
|
65
|
+
version: "22.3.0",
|
|
66
66
|
type: MenuFocusableItem,
|
|
67
67
|
isStandalone: true,
|
|
68
68
|
inputs: {
|
|
@@ -101,7 +101,7 @@ var MenuFocusableItem = class MenuFocusableItem {
|
|
|
101
101
|
};
|
|
102
102
|
i0.ɵɵngDeclareClassMetadata({
|
|
103
103
|
minVersion: "12.0.0",
|
|
104
|
-
version: "22.
|
|
104
|
+
version: "22.3.0",
|
|
105
105
|
ngImport: i0,
|
|
106
106
|
type: MenuFocusableItem,
|
|
107
107
|
decorators: [{ type: Directive }],
|
|
@@ -149,7 +149,7 @@ var MenuGroupComponent = class MenuGroupComponent {
|
|
|
149
149
|
classes = computed(() => cn("block", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
150
150
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
151
151
|
minVersion: "12.0.0",
|
|
152
|
-
version: "22.
|
|
152
|
+
version: "22.3.0",
|
|
153
153
|
ngImport: i0,
|
|
154
154
|
type: MenuGroupComponent,
|
|
155
155
|
deps: [],
|
|
@@ -157,7 +157,7 @@ var MenuGroupComponent = class MenuGroupComponent {
|
|
|
157
157
|
});
|
|
158
158
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
159
159
|
minVersion: "17.1.0",
|
|
160
|
-
version: "22.
|
|
160
|
+
version: "22.3.0",
|
|
161
161
|
type: MenuGroupComponent,
|
|
162
162
|
isStandalone: true,
|
|
163
163
|
selector: "MenuGroup",
|
|
@@ -179,7 +179,7 @@ var MenuGroupComponent = class MenuGroupComponent {
|
|
|
179
179
|
};
|
|
180
180
|
i0.ɵɵngDeclareClassMetadata({
|
|
181
181
|
minVersion: "12.0.0",
|
|
182
|
-
version: "22.
|
|
182
|
+
version: "22.3.0",
|
|
183
183
|
ngImport: i0,
|
|
184
184
|
type: MenuGroupComponent,
|
|
185
185
|
decorators: [{
|
|
@@ -205,7 +205,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
205
205
|
var MenuRadioGroupBase = class MenuRadioGroupBase {
|
|
206
206
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
207
207
|
minVersion: "12.0.0",
|
|
208
|
-
version: "22.
|
|
208
|
+
version: "22.3.0",
|
|
209
209
|
ngImport: i0,
|
|
210
210
|
type: MenuRadioGroupBase,
|
|
211
211
|
deps: [],
|
|
@@ -213,7 +213,7 @@ var MenuRadioGroupBase = class MenuRadioGroupBase {
|
|
|
213
213
|
});
|
|
214
214
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
215
215
|
minVersion: "14.0.0",
|
|
216
|
-
version: "22.
|
|
216
|
+
version: "22.3.0",
|
|
217
217
|
type: MenuRadioGroupBase,
|
|
218
218
|
isStandalone: true,
|
|
219
219
|
ngImport: i0
|
|
@@ -221,7 +221,7 @@ var MenuRadioGroupBase = class MenuRadioGroupBase {
|
|
|
221
221
|
};
|
|
222
222
|
i0.ɵɵngDeclareClassMetadata({
|
|
223
223
|
minVersion: "12.0.0",
|
|
224
|
-
version: "22.
|
|
224
|
+
version: "22.3.0",
|
|
225
225
|
ngImport: i0,
|
|
226
226
|
type: MenuRadioGroupBase,
|
|
227
227
|
decorators: [{ type: Directive }]
|
|
@@ -238,7 +238,7 @@ var MenuRadioGroupComponent = class MenuRadioGroupComponent extends MenuRadioGro
|
|
|
238
238
|
}
|
|
239
239
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
240
240
|
minVersion: "12.0.0",
|
|
241
|
-
version: "22.
|
|
241
|
+
version: "22.3.0",
|
|
242
242
|
ngImport: i0,
|
|
243
243
|
type: MenuRadioGroupComponent,
|
|
244
244
|
deps: null,
|
|
@@ -246,7 +246,7 @@ var MenuRadioGroupComponent = class MenuRadioGroupComponent extends MenuRadioGro
|
|
|
246
246
|
});
|
|
247
247
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
248
248
|
minVersion: "17.1.0",
|
|
249
|
-
version: "22.
|
|
249
|
+
version: "22.3.0",
|
|
250
250
|
type: MenuRadioGroupComponent,
|
|
251
251
|
isStandalone: true,
|
|
252
252
|
selector: "MenuRadioGroup",
|
|
@@ -283,7 +283,7 @@ var MenuRadioGroupComponent = class MenuRadioGroupComponent extends MenuRadioGro
|
|
|
283
283
|
};
|
|
284
284
|
i0.ɵɵngDeclareClassMetadata({
|
|
285
285
|
minVersion: "12.0.0",
|
|
286
|
-
version: "22.
|
|
286
|
+
version: "22.3.0",
|
|
287
287
|
ngImport: i0,
|
|
288
288
|
type: MenuRadioGroupComponent,
|
|
289
289
|
decorators: [{
|
|
@@ -331,7 +331,7 @@ var MenuItemComponent = class MenuItemComponent extends MenuFocusableItem {
|
|
|
331
331
|
}
|
|
332
332
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
333
333
|
minVersion: "12.0.0",
|
|
334
|
-
version: "22.
|
|
334
|
+
version: "22.3.0",
|
|
335
335
|
ngImport: i0,
|
|
336
336
|
type: MenuItemComponent,
|
|
337
337
|
deps: null,
|
|
@@ -339,7 +339,7 @@ var MenuItemComponent = class MenuItemComponent extends MenuFocusableItem {
|
|
|
339
339
|
});
|
|
340
340
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
341
341
|
minVersion: "14.0.0",
|
|
342
|
-
version: "22.
|
|
342
|
+
version: "22.3.0",
|
|
343
343
|
type: MenuItemComponent,
|
|
344
344
|
isStandalone: true,
|
|
345
345
|
selector: "MenuItem, button[MenuItem]",
|
|
@@ -370,7 +370,7 @@ var MenuItemComponent = class MenuItemComponent extends MenuFocusableItem {
|
|
|
370
370
|
};
|
|
371
371
|
i0.ɵɵngDeclareClassMetadata({
|
|
372
372
|
minVersion: "12.0.0",
|
|
373
|
-
version: "22.
|
|
373
|
+
version: "22.3.0",
|
|
374
374
|
ngImport: i0,
|
|
375
375
|
type: MenuItemComponent,
|
|
376
376
|
decorators: [{
|
|
@@ -405,7 +405,7 @@ var MenuCheckboxItemComponent = class MenuCheckboxItemComponent extends MenuFocu
|
|
|
405
405
|
}
|
|
406
406
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
407
407
|
minVersion: "12.0.0",
|
|
408
|
-
version: "22.
|
|
408
|
+
version: "22.3.0",
|
|
409
409
|
ngImport: i0,
|
|
410
410
|
type: MenuCheckboxItemComponent,
|
|
411
411
|
deps: null,
|
|
@@ -413,7 +413,7 @@ var MenuCheckboxItemComponent = class MenuCheckboxItemComponent extends MenuFocu
|
|
|
413
413
|
});
|
|
414
414
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
415
415
|
minVersion: "17.0.0",
|
|
416
|
-
version: "22.
|
|
416
|
+
version: "22.3.0",
|
|
417
417
|
type: MenuCheckboxItemComponent,
|
|
418
418
|
isStandalone: true,
|
|
419
419
|
selector: "MenuCheckboxItem, button[MenuCheckboxItem]",
|
|
@@ -471,7 +471,7 @@ var MenuCheckboxItemComponent = class MenuCheckboxItemComponent extends MenuFocu
|
|
|
471
471
|
};
|
|
472
472
|
i0.ɵɵngDeclareClassMetadata({
|
|
473
473
|
minVersion: "12.0.0",
|
|
474
|
-
version: "22.
|
|
474
|
+
version: "22.3.0",
|
|
475
475
|
ngImport: i0,
|
|
476
476
|
type: MenuCheckboxItemComponent,
|
|
477
477
|
decorators: [{
|
|
@@ -539,7 +539,7 @@ var MenuRadioItemComponent = class MenuRadioItemComponent extends MenuFocusableI
|
|
|
539
539
|
}
|
|
540
540
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
541
541
|
minVersion: "12.0.0",
|
|
542
|
-
version: "22.
|
|
542
|
+
version: "22.3.0",
|
|
543
543
|
ngImport: i0,
|
|
544
544
|
type: MenuRadioItemComponent,
|
|
545
545
|
deps: null,
|
|
@@ -547,7 +547,7 @@ var MenuRadioItemComponent = class MenuRadioItemComponent extends MenuFocusableI
|
|
|
547
547
|
});
|
|
548
548
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
549
549
|
minVersion: "17.0.0",
|
|
550
|
-
version: "22.
|
|
550
|
+
version: "22.3.0",
|
|
551
551
|
type: MenuRadioItemComponent,
|
|
552
552
|
isStandalone: true,
|
|
553
553
|
selector: "MenuRadioItem, button[MenuRadioItem]",
|
|
@@ -593,7 +593,7 @@ var MenuRadioItemComponent = class MenuRadioItemComponent extends MenuFocusableI
|
|
|
593
593
|
};
|
|
594
594
|
i0.ɵɵngDeclareClassMetadata({
|
|
595
595
|
minVersion: "12.0.0",
|
|
596
|
-
version: "22.
|
|
596
|
+
version: "22.3.0",
|
|
597
597
|
ngImport: i0,
|
|
598
598
|
type: MenuRadioItemComponent,
|
|
599
599
|
decorators: [{
|
|
@@ -640,7 +640,7 @@ var MenuSeparatorComponent = class MenuSeparatorComponent {
|
|
|
640
640
|
classes = computed(() => cn("-mx-1 my-1 block h-px bg-border", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
641
641
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
642
642
|
minVersion: "12.0.0",
|
|
643
|
-
version: "22.
|
|
643
|
+
version: "22.3.0",
|
|
644
644
|
ngImport: i0,
|
|
645
645
|
type: MenuSeparatorComponent,
|
|
646
646
|
deps: [],
|
|
@@ -648,7 +648,7 @@ var MenuSeparatorComponent = class MenuSeparatorComponent {
|
|
|
648
648
|
});
|
|
649
649
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
650
650
|
minVersion: "17.1.0",
|
|
651
|
-
version: "22.
|
|
651
|
+
version: "22.3.0",
|
|
652
652
|
type: MenuSeparatorComponent,
|
|
653
653
|
isStandalone: true,
|
|
654
654
|
selector: "MenuSeparator",
|
|
@@ -671,7 +671,7 @@ var MenuSeparatorComponent = class MenuSeparatorComponent {
|
|
|
671
671
|
};
|
|
672
672
|
i0.ɵɵngDeclareClassMetadata({
|
|
673
673
|
minVersion: "12.0.0",
|
|
674
|
-
version: "22.
|
|
674
|
+
version: "22.3.0",
|
|
675
675
|
ngImport: i0,
|
|
676
676
|
type: MenuSeparatorComponent,
|
|
677
677
|
decorators: [{
|
|
@@ -701,7 +701,7 @@ var MenuLabelComponent = class MenuLabelComponent {
|
|
|
701
701
|
classes = computed(() => cn("px-2 py-1.5 text-sm font-semibold text-foreground", this.inset() ? "pl-8" : "", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
702
702
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
703
703
|
minVersion: "12.0.0",
|
|
704
|
-
version: "22.
|
|
704
|
+
version: "22.3.0",
|
|
705
705
|
ngImport: i0,
|
|
706
706
|
type: MenuLabelComponent,
|
|
707
707
|
deps: [],
|
|
@@ -709,7 +709,7 @@ var MenuLabelComponent = class MenuLabelComponent {
|
|
|
709
709
|
});
|
|
710
710
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
711
711
|
minVersion: "17.1.0",
|
|
712
|
-
version: "22.
|
|
712
|
+
version: "22.3.0",
|
|
713
713
|
type: MenuLabelComponent,
|
|
714
714
|
isStandalone: true,
|
|
715
715
|
selector: "MenuLabel",
|
|
@@ -737,7 +737,7 @@ var MenuLabelComponent = class MenuLabelComponent {
|
|
|
737
737
|
};
|
|
738
738
|
i0.ɵɵngDeclareClassMetadata({
|
|
739
739
|
minVersion: "12.0.0",
|
|
740
|
-
version: "22.
|
|
740
|
+
version: "22.3.0",
|
|
741
741
|
ngImport: i0,
|
|
742
742
|
type: MenuLabelComponent,
|
|
743
743
|
decorators: [{
|
|
@@ -772,7 +772,7 @@ var MenuShortcutComponent = class MenuShortcutComponent {
|
|
|
772
772
|
classes = computed(() => cn("ml-auto text-xs tracking-widest text-muted-foreground", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
773
773
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
774
774
|
minVersion: "12.0.0",
|
|
775
|
-
version: "22.
|
|
775
|
+
version: "22.3.0",
|
|
776
776
|
ngImport: i0,
|
|
777
777
|
type: MenuShortcutComponent,
|
|
778
778
|
deps: [],
|
|
@@ -780,7 +780,7 @@ var MenuShortcutComponent = class MenuShortcutComponent {
|
|
|
780
780
|
});
|
|
781
781
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
782
782
|
minVersion: "17.1.0",
|
|
783
|
-
version: "22.
|
|
783
|
+
version: "22.3.0",
|
|
784
784
|
type: MenuShortcutComponent,
|
|
785
785
|
isStandalone: true,
|
|
786
786
|
selector: "MenuShortcut, span[MenuShortcut]",
|
|
@@ -799,7 +799,7 @@ var MenuShortcutComponent = class MenuShortcutComponent {
|
|
|
799
799
|
};
|
|
800
800
|
i0.ɵɵngDeclareClassMetadata({
|
|
801
801
|
minVersion: "12.0.0",
|
|
802
|
-
version: "22.
|
|
802
|
+
version: "22.3.0",
|
|
803
803
|
ngImport: i0,
|
|
804
804
|
type: MenuShortcutComponent,
|
|
805
805
|
decorators: [{
|
|
@@ -865,7 +865,7 @@ var MenuSurfaceComponent = class MenuSurfaceComponent {
|
|
|
865
865
|
}
|
|
866
866
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
867
867
|
minVersion: "12.0.0",
|
|
868
|
-
version: "22.
|
|
868
|
+
version: "22.3.0",
|
|
869
869
|
ngImport: i0,
|
|
870
870
|
type: MenuSurfaceComponent,
|
|
871
871
|
deps: [],
|
|
@@ -873,7 +873,7 @@ var MenuSurfaceComponent = class MenuSurfaceComponent {
|
|
|
873
873
|
});
|
|
874
874
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
875
875
|
minVersion: "17.2.0",
|
|
876
|
-
version: "22.
|
|
876
|
+
version: "22.3.0",
|
|
877
877
|
type: MenuSurfaceComponent,
|
|
878
878
|
isStandalone: true,
|
|
879
879
|
selector: "MenuSurface",
|
|
@@ -925,7 +925,7 @@ var MenuSurfaceComponent = class MenuSurfaceComponent {
|
|
|
925
925
|
};
|
|
926
926
|
i0.ɵɵngDeclareClassMetadata({
|
|
927
927
|
minVersion: "12.0.0",
|
|
928
|
-
version: "22.
|
|
928
|
+
version: "22.3.0",
|
|
929
929
|
ngImport: i0,
|
|
930
930
|
type: MenuSurfaceComponent,
|
|
931
931
|
decorators: [{
|
|
@@ -982,7 +982,7 @@ var MenuContentDirective = class MenuContentDirective {
|
|
|
982
982
|
template = inject(TemplateRef);
|
|
983
983
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
984
984
|
minVersion: "12.0.0",
|
|
985
|
-
version: "22.
|
|
985
|
+
version: "22.3.0",
|
|
986
986
|
ngImport: i0,
|
|
987
987
|
type: MenuContentDirective,
|
|
988
988
|
deps: [],
|
|
@@ -990,7 +990,7 @@ var MenuContentDirective = class MenuContentDirective {
|
|
|
990
990
|
});
|
|
991
991
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
992
992
|
minVersion: "14.0.0",
|
|
993
|
-
version: "22.
|
|
993
|
+
version: "22.3.0",
|
|
994
994
|
type: MenuContentDirective,
|
|
995
995
|
isStandalone: true,
|
|
996
996
|
selector: "ng-template[MenuContent]",
|
|
@@ -1009,7 +1009,7 @@ var MenuContentDirective = class MenuContentDirective {
|
|
|
1009
1009
|
};
|
|
1010
1010
|
i0.ɵɵngDeclareClassMetadata({
|
|
1011
1011
|
minVersion: "12.0.0",
|
|
1012
|
-
version: "22.
|
|
1012
|
+
version: "22.3.0",
|
|
1013
1013
|
ngImport: i0,
|
|
1014
1014
|
type: MenuContentDirective,
|
|
1015
1015
|
decorators: [{
|
|
@@ -1106,7 +1106,7 @@ var MenuTriggerDirective = class MenuTriggerDirective {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1108
1108
|
minVersion: "12.0.0",
|
|
1109
|
-
version: "22.
|
|
1109
|
+
version: "22.3.0",
|
|
1110
1110
|
ngImport: i0,
|
|
1111
1111
|
type: MenuTriggerDirective,
|
|
1112
1112
|
deps: [],
|
|
@@ -1114,7 +1114,7 @@ var MenuTriggerDirective = class MenuTriggerDirective {
|
|
|
1114
1114
|
});
|
|
1115
1115
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1116
1116
|
minVersion: "17.1.0",
|
|
1117
|
-
version: "22.
|
|
1117
|
+
version: "22.3.0",
|
|
1118
1118
|
type: MenuTriggerDirective,
|
|
1119
1119
|
isStandalone: true,
|
|
1120
1120
|
selector: "[MenuTrigger]",
|
|
@@ -1182,7 +1182,7 @@ var MenuTriggerDirective = class MenuTriggerDirective {
|
|
|
1182
1182
|
};
|
|
1183
1183
|
i0.ɵɵngDeclareClassMetadata({
|
|
1184
1184
|
minVersion: "12.0.0",
|
|
1185
|
-
version: "22.
|
|
1185
|
+
version: "22.3.0",
|
|
1186
1186
|
ngImport: i0,
|
|
1187
1187
|
type: MenuTriggerDirective,
|
|
1188
1188
|
decorators: [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DOCUMENT } from "@angular/common";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import { Component, ElementRef, InjectionToken, SecurityContext, booleanAttribute, computed, forwardRef, inject, input, output, signal } from "@angular/core";
|
|
3
|
+
import { Component, ElementRef, InjectionToken, SecurityContext, booleanAttribute, computed, forwardRef, inject, input, output, signal, viewChild } from "@angular/core";
|
|
4
4
|
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
5
5
|
import { cn } from "@edsis/angular/component/utils/core";
|
|
6
6
|
import { DomSanitizer } from "@angular/platform-browser";
|
|
@@ -36,6 +36,7 @@ const EDITOR_CONTENT_BASE = [
|
|
|
36
36
|
"block min-h-50 max-h-125 w-full overflow-y-auto px-4 py-3 text-sm leading-6 outline-none",
|
|
37
37
|
"[&_p]:my-2 [&_h1]:mb-2 [&_h1]:mt-4 [&_h1]:text-2xl [&_h1]:font-semibold [&_h2]:mb-2 [&_h2]:mt-4 [&_h2]:text-xl [&_h2]:font-semibold [&_h3]:mb-2 [&_h3]:mt-4 [&_h3]:text-lg [&_h3]:font-semibold",
|
|
38
38
|
"[&_blockquote]:my-3 [&_blockquote]:border-l-2 [&_blockquote]:border-border [&_blockquote]:pl-3 [&_blockquote]:text-muted-foreground [&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-6 [&_pre]:my-3 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:bg-muted [&_pre]:p-3 [&_pre]:font-mono [&_pre]:text-xs",
|
|
39
|
+
"[&_mark]:bg-[hsl(var(--editor-highlight,48_96%_80%))] [&_mark]:text-inherit",
|
|
39
40
|
"data-[empty=true]:before:pointer-events-none data-[empty=true]:before:text-muted-foreground data-[empty=true]:before:content-[attr(data-placeholder)]",
|
|
40
41
|
"data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50"
|
|
41
42
|
].join(" ");
|
|
@@ -183,7 +184,7 @@ var EditorComponent = class EditorComponent {
|
|
|
183
184
|
}
|
|
184
185
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
185
186
|
minVersion: "12.0.0",
|
|
186
|
-
version: "22.
|
|
187
|
+
version: "22.3.0",
|
|
187
188
|
ngImport: i0,
|
|
188
189
|
type: EditorComponent,
|
|
189
190
|
deps: [],
|
|
@@ -191,7 +192,7 @@ var EditorComponent = class EditorComponent {
|
|
|
191
192
|
});
|
|
192
193
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
193
194
|
minVersion: "17.1.0",
|
|
194
|
-
version: "22.
|
|
195
|
+
version: "22.3.0",
|
|
195
196
|
type: EditorComponent,
|
|
196
197
|
isStandalone: true,
|
|
197
198
|
selector: "Editor",
|
|
@@ -233,7 +234,7 @@ var EditorComponent = class EditorComponent {
|
|
|
233
234
|
};
|
|
234
235
|
i0.ɵɵngDeclareClassMetadata({
|
|
235
236
|
minVersion: "12.0.0",
|
|
236
|
-
version: "22.
|
|
237
|
+
version: "22.3.0",
|
|
237
238
|
ngImport: i0,
|
|
238
239
|
type: EditorComponent,
|
|
239
240
|
decorators: [{
|
|
@@ -315,7 +316,7 @@ var EditorToolbarComponent = class EditorToolbarComponent {
|
|
|
315
316
|
}
|
|
316
317
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
317
318
|
minVersion: "12.0.0",
|
|
318
|
-
version: "22.
|
|
319
|
+
version: "22.3.0",
|
|
319
320
|
ngImport: i0,
|
|
320
321
|
type: EditorToolbarComponent,
|
|
321
322
|
deps: [],
|
|
@@ -323,7 +324,7 @@ var EditorToolbarComponent = class EditorToolbarComponent {
|
|
|
323
324
|
});
|
|
324
325
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
325
326
|
minVersion: "17.0.0",
|
|
326
|
-
version: "22.
|
|
327
|
+
version: "22.3.0",
|
|
327
328
|
type: EditorToolbarComponent,
|
|
328
329
|
isStandalone: true,
|
|
329
330
|
selector: "EditorToolbar",
|
|
@@ -372,7 +373,7 @@ var EditorToolbarComponent = class EditorToolbarComponent {
|
|
|
372
373
|
};
|
|
373
374
|
i0.ɵɵngDeclareClassMetadata({
|
|
374
375
|
minVersion: "12.0.0",
|
|
375
|
-
version: "22.
|
|
376
|
+
version: "22.3.0",
|
|
376
377
|
ngImport: i0,
|
|
377
378
|
type: EditorToolbarComponent,
|
|
378
379
|
decorators: [{
|
|
@@ -445,7 +446,7 @@ var EditorButtonComponent = class EditorButtonComponent {
|
|
|
445
446
|
preserveSelection = preserveEditorSelection;
|
|
446
447
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
447
448
|
minVersion: "12.0.0",
|
|
448
|
-
version: "22.
|
|
449
|
+
version: "22.3.0",
|
|
449
450
|
ngImport: i0,
|
|
450
451
|
type: EditorButtonComponent,
|
|
451
452
|
deps: [],
|
|
@@ -453,7 +454,7 @@ var EditorButtonComponent = class EditorButtonComponent {
|
|
|
453
454
|
});
|
|
454
455
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
455
456
|
minVersion: "17.1.0",
|
|
456
|
-
version: "22.
|
|
457
|
+
version: "22.3.0",
|
|
457
458
|
type: EditorButtonComponent,
|
|
458
459
|
isStandalone: true,
|
|
459
460
|
selector: "button[EditorButton]",
|
|
@@ -515,7 +516,7 @@ var EditorButtonComponent = class EditorButtonComponent {
|
|
|
515
516
|
};
|
|
516
517
|
i0.ɵɵngDeclareClassMetadata({
|
|
517
518
|
minVersion: "12.0.0",
|
|
518
|
-
version: "22.
|
|
519
|
+
version: "22.3.0",
|
|
519
520
|
ngImport: i0,
|
|
520
521
|
type: EditorButtonComponent,
|
|
521
522
|
decorators: [{
|
|
@@ -583,7 +584,7 @@ var EditorSeparatorComponent = class EditorSeparatorComponent {
|
|
|
583
584
|
classes = computed(() => cn("mx-1 h-6 w-px shrink-0 bg-border", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
584
585
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
585
586
|
minVersion: "12.0.0",
|
|
586
|
-
version: "22.
|
|
587
|
+
version: "22.3.0",
|
|
587
588
|
ngImport: i0,
|
|
588
589
|
type: EditorSeparatorComponent,
|
|
589
590
|
deps: [],
|
|
@@ -591,7 +592,7 @@ var EditorSeparatorComponent = class EditorSeparatorComponent {
|
|
|
591
592
|
});
|
|
592
593
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
593
594
|
minVersion: "17.1.0",
|
|
594
|
-
version: "22.
|
|
595
|
+
version: "22.3.0",
|
|
595
596
|
type: EditorSeparatorComponent,
|
|
596
597
|
isStandalone: true,
|
|
597
598
|
selector: "EditorSeparator",
|
|
@@ -619,7 +620,7 @@ var EditorSeparatorComponent = class EditorSeparatorComponent {
|
|
|
619
620
|
};
|
|
620
621
|
i0.ɵɵngDeclareClassMetadata({
|
|
621
622
|
minVersion: "12.0.0",
|
|
622
|
-
version: "22.
|
|
623
|
+
version: "22.3.0",
|
|
623
624
|
ngImport: i0,
|
|
624
625
|
type: EditorSeparatorComponent,
|
|
625
626
|
decorators: [{
|
|
@@ -649,7 +650,7 @@ var EditorSpacerComponent = class EditorSpacerComponent {
|
|
|
649
650
|
classes = computed(() => cn("min-w-2 flex-1", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
650
651
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
651
652
|
minVersion: "12.0.0",
|
|
652
|
-
version: "22.
|
|
653
|
+
version: "22.3.0",
|
|
653
654
|
ngImport: i0,
|
|
654
655
|
type: EditorSpacerComponent,
|
|
655
656
|
deps: [],
|
|
@@ -657,7 +658,7 @@ var EditorSpacerComponent = class EditorSpacerComponent {
|
|
|
657
658
|
});
|
|
658
659
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
659
660
|
minVersion: "17.1.0",
|
|
660
|
-
version: "22.
|
|
661
|
+
version: "22.3.0",
|
|
661
662
|
type: EditorSpacerComponent,
|
|
662
663
|
isStandalone: true,
|
|
663
664
|
selector: "EditorSpacer",
|
|
@@ -679,7 +680,7 @@ var EditorSpacerComponent = class EditorSpacerComponent {
|
|
|
679
680
|
};
|
|
680
681
|
i0.ɵɵngDeclareClassMetadata({
|
|
681
682
|
minVersion: "12.0.0",
|
|
682
|
-
version: "22.
|
|
683
|
+
version: "22.3.0",
|
|
683
684
|
ngImport: i0,
|
|
684
685
|
type: EditorSpacerComponent,
|
|
685
686
|
decorators: [{
|
|
@@ -707,6 +708,7 @@ var EditorContentComponent = class EditorContentComponent {
|
|
|
707
708
|
editor = inject(EditorComponent, { optional: true });
|
|
708
709
|
document = inject(DOCUMENT);
|
|
709
710
|
sanitizeHtml = inject(EDITOR_HTML_SANITIZER);
|
|
711
|
+
htmlParser = viewChild("htmlParser", ...ngDevMode ? [{ debugName: "htmlParser" }] : /* istanbul ignore next */ []);
|
|
710
712
|
placeholder = input("Write something...", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
711
713
|
ariaLabel = input("Rich text editor", {
|
|
712
714
|
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
@@ -729,11 +731,15 @@ var EditorContentComponent = class EditorContentComponent {
|
|
|
729
731
|
invalid = computed(() => this.invalidInput() || this.editor?.invalid() === true, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
|
|
730
732
|
classes = computed(() => cn(EDITOR_CONTENT_BASE, this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
731
733
|
lastKnownValue = "";
|
|
734
|
+
pendingValue;
|
|
732
735
|
onChange = () => {};
|
|
733
736
|
onTouched = () => {};
|
|
734
737
|
ngAfterViewInit() {
|
|
735
738
|
this.editor?.registerContent(this);
|
|
736
|
-
this.
|
|
739
|
+
(this.htmlParser()?.elementRef.nativeElement)?.remove();
|
|
740
|
+
const value = this.pendingValue ?? this.el.nativeElement.innerHTML;
|
|
741
|
+
this.pendingValue = void 0;
|
|
742
|
+
this.setSanitizedValue(value);
|
|
737
743
|
queueMicrotask(() => this.syncEmptyState());
|
|
738
744
|
}
|
|
739
745
|
ngOnDestroy() {
|
|
@@ -763,19 +769,48 @@ var EditorContentComponent = class EditorContentComponent {
|
|
|
763
769
|
this.el.nativeElement.focus();
|
|
764
770
|
}
|
|
765
771
|
handleInput() {
|
|
766
|
-
const
|
|
767
|
-
|
|
768
|
-
const
|
|
769
|
-
|
|
770
|
-
const html =
|
|
772
|
+
const parser = this.htmlParser();
|
|
773
|
+
if (!parser) return;
|
|
774
|
+
const current = this.serializeContent();
|
|
775
|
+
const sanitized = this.sanitizeHtml(current);
|
|
776
|
+
const html = sanitized === current ? current : this.renderHtml(parser, sanitized);
|
|
771
777
|
this.syncEmptyState();
|
|
772
778
|
if (html === this.lastKnownValue) return;
|
|
773
779
|
this.lastKnownValue = html;
|
|
774
780
|
this.onChange(html);
|
|
775
781
|
}
|
|
776
782
|
setSanitizedValue(value) {
|
|
777
|
-
|
|
778
|
-
|
|
783
|
+
const parser = this.htmlParser();
|
|
784
|
+
if (!parser) {
|
|
785
|
+
this.pendingValue = value;
|
|
786
|
+
return;
|
|
787
|
+
}
|
|
788
|
+
const html = this.sanitizeHtml(value);
|
|
789
|
+
this.lastKnownValue = html === this.serializeContent() ? html : this.renderHtml(parser, html);
|
|
790
|
+
}
|
|
791
|
+
renderHtml(parser, html) {
|
|
792
|
+
const view = parser.createEmbeddedView({ $implicit: html });
|
|
793
|
+
try {
|
|
794
|
+
view.detectChanges();
|
|
795
|
+
const template = view.rootNodes[0];
|
|
796
|
+
const element = this.el.nativeElement;
|
|
797
|
+
element.replaceChildren(template.content);
|
|
798
|
+
return element.innerHTML;
|
|
799
|
+
} finally {
|
|
800
|
+
view.destroy();
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
serializeContent() {
|
|
804
|
+
const element = this.el.nativeElement;
|
|
805
|
+
if (!element.querySelector("span[style]")) return element.innerHTML;
|
|
806
|
+
const inertDocument = this.document.createElement("template").content.ownerDocument;
|
|
807
|
+
const snapshot = inertDocument.importNode(element, true);
|
|
808
|
+
for (const span of snapshot.querySelectorAll("span[style]")) if (span.attributes.length === 1 && span.style.length === 1 && span.style.backgroundColor) {
|
|
809
|
+
const mark = inertDocument.createElement("mark");
|
|
810
|
+
mark.append(...span.childNodes);
|
|
811
|
+
span.replaceWith(mark);
|
|
812
|
+
}
|
|
813
|
+
return snapshot.innerHTML;
|
|
779
814
|
}
|
|
780
815
|
handleBlur() {
|
|
781
816
|
this.onTouched();
|
|
@@ -840,15 +875,15 @@ var EditorContentComponent = class EditorContentComponent {
|
|
|
840
875
|
}
|
|
841
876
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
842
877
|
minVersion: "12.0.0",
|
|
843
|
-
version: "22.
|
|
878
|
+
version: "22.3.0",
|
|
844
879
|
ngImport: i0,
|
|
845
880
|
type: EditorContentComponent,
|
|
846
881
|
deps: [],
|
|
847
882
|
target: i0.ɵɵFactoryTarget.Component
|
|
848
883
|
});
|
|
849
884
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
850
|
-
minVersion: "17.
|
|
851
|
-
version: "22.
|
|
885
|
+
minVersion: "17.2.0",
|
|
886
|
+
version: "22.3.0",
|
|
852
887
|
type: EditorContentComponent,
|
|
853
888
|
isStandalone: true,
|
|
854
889
|
selector: "EditorContent",
|
|
@@ -915,14 +950,26 @@ var EditorContentComponent = class EditorContentComponent {
|
|
|
915
950
|
useExisting: forwardRef(() => EditorContentComponent),
|
|
916
951
|
multi: true
|
|
917
952
|
}],
|
|
953
|
+
viewQueries: [{
|
|
954
|
+
propertyName: "htmlParser",
|
|
955
|
+
first: true,
|
|
956
|
+
predicate: ["htmlParser"],
|
|
957
|
+
descendants: true,
|
|
958
|
+
isSignal: true
|
|
959
|
+
}],
|
|
918
960
|
ngImport: i0,
|
|
919
|
-
template:
|
|
961
|
+
template: `
|
|
962
|
+
<ng-content />
|
|
963
|
+
<ng-template #htmlParser let-html>
|
|
964
|
+
<template [innerHTML]="html"></template>
|
|
965
|
+
</ng-template>
|
|
966
|
+
`,
|
|
920
967
|
isInline: true
|
|
921
968
|
});
|
|
922
969
|
};
|
|
923
970
|
i0.ɵɵngDeclareClassMetadata({
|
|
924
971
|
minVersion: "12.0.0",
|
|
925
|
-
version: "22.
|
|
972
|
+
version: "22.3.0",
|
|
926
973
|
ngImport: i0,
|
|
927
974
|
type: EditorContentComponent,
|
|
928
975
|
decorators: [{
|
|
@@ -951,10 +998,19 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
951
998
|
"(blur)": "handleBlur()",
|
|
952
999
|
"(keydown)": "handleKeydown($event)"
|
|
953
1000
|
},
|
|
954
|
-
template:
|
|
1001
|
+
template: `
|
|
1002
|
+
<ng-content />
|
|
1003
|
+
<ng-template #htmlParser let-html>
|
|
1004
|
+
<template [innerHTML]="html"></template>
|
|
1005
|
+
</ng-template>
|
|
1006
|
+
`
|
|
955
1007
|
}]
|
|
956
1008
|
}],
|
|
957
1009
|
propDecorators: {
|
|
1010
|
+
htmlParser: [{
|
|
1011
|
+
type: i0.ViewChild,
|
|
1012
|
+
args: ["htmlParser", { isSignal: true }]
|
|
1013
|
+
}],
|
|
958
1014
|
placeholder: [{
|
|
959
1015
|
type: i0.Input,
|
|
960
1016
|
args: [{
|