@talrace/ngx-noder 0.0.41 → 0.0.43

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.
Files changed (37) hide show
  1. package/assets/i18n/noder.en.json +2 -1
  2. package/assets/i18n/noder.es.json +2 -1
  3. package/assets/i18n/noder.ru.json +2 -1
  4. package/fesm2022/talrace-ngx-noder.mjs +705 -467
  5. package/fesm2022/talrace-ngx-noder.mjs.map +1 -1
  6. package/lib/apart-components/editor-ruler/editor-ruler.component.d.ts +23 -10
  7. package/lib/apart-components/editor-search-bar/editor-search-bar.component.d.ts +26 -0
  8. package/lib/editor/components/editor.component.d.ts +7 -1
  9. package/lib/editor/display/layers/highlight.layer.d.ts +16 -0
  10. package/lib/editor/display/layers/search-highlight.layer.d.ts +12 -0
  11. package/lib/editor/display/layers/selection.layer.d.ts +3 -11
  12. package/lib/editor/display/render-changes.interface.d.ts +1 -0
  13. package/lib/editor/display/render-changes.model.d.ts +1 -0
  14. package/lib/editor/display/renderer.d.ts +5 -0
  15. package/lib/editor/display/virtual.renderer.d.ts +4 -1
  16. package/lib/editor/editor.module.d.ts +10 -9
  17. package/lib/editor/execution/edit.session.d.ts +1 -0
  18. package/lib/editor/execution/editor.d.ts +17 -8
  19. package/lib/editor/gadgets/history/operation-history.d.ts +1 -0
  20. package/lib/editor/gadgets/history/operation.type.d.ts +2 -1
  21. package/lib/editor/gadgets/search/search-result.interface.d.ts +5 -0
  22. package/lib/editor/gadgets/search/search.d.ts +14 -30
  23. package/lib/editor/interaction/editor.service.d.ts +40 -18
  24. package/lib/editor/operations/enums/command-type.enum.d.ts +2 -1
  25. package/lib/editor/operations/helpers/paragraph-operations.helper.d.ts +1 -0
  26. package/lib/editor/operations/operations-helper.helper.d.ts +1 -0
  27. package/lib/editor/operations/save-commands.helper.d.ts +1 -0
  28. package/lib/models/generated/apply-paragraphs.model.d.ts +5 -0
  29. package/lib/models/generated/command.model.d.ts +2 -0
  30. package/package.json +1 -1
  31. package/public-api.d.ts +0 -1
  32. package/src/_ngx-noder.theme.scss +2 -0
  33. package/src/lib/apart-components/editor-search-bar/_theme.scss +28 -0
  34. package/src/scss/base-editor.scss +13 -3
  35. package/lib/apart-components/editor-search/editor-search-dialog.component.d.ts +0 -23
  36. package/lib/editor/gadgets/search/replace.interface.d.ts +0 -4
  37. package/lib/editor/gadgets/search/search-iteration.interface.d.ts +0 -4
package/public-api.d.ts CHANGED
@@ -21,7 +21,6 @@ export * from './lib/editor/editor.module';
21
21
  export * from './lib/translate/noder-translate.loader';
22
22
  export * from './lib/apart-components/editor-title-mobile/editor-title-mobile.component';
23
23
  export * from './lib/apart-components/editor-title/editor-title.component';
24
- export * from './lib/apart-components/editor-search/editor-search-dialog.component';
25
24
  export * from './lib/apart-components/editor-toolbar/components/menu-dropdowns-mobile/menu-dropdowns-mobile.component';
26
25
  export * from './lib/apart-components/editor-toolbar/components/menu-dropdowns/menu-dropdowns.component';
27
26
  export * from './lib/apart-components/editor-toolbar/components/toolbar-actions/toolbar-actions.component';
@@ -4,6 +4,7 @@
4
4
  @use 'lib/apart-components/editor-title-mobile/editor-title-mobile.theme' as *;
5
5
  @use 'lib/apart-components/editor-title/editor-title.theme' as *;
6
6
  @use 'lib/apart-components/editor-toolbar/theme' as *;
7
+ @use 'lib/apart-components//editor-search-bar/theme' as *;
7
8
  @use 'lib/apart-components/editor-ruler/theme' as *;
8
9
  @use 'lib/apart-components/insert-table-mobile/insert-table-mobile.theme' as *;
9
10
  @use 'lib/apart-components/insert-table/insert-table.theme' as *;
@@ -45,6 +46,7 @@
45
46
 
46
47
  @mixin ngx-noder-toolbar-theme($theme) {
47
48
  @include editor-toolbar-theme($theme);
49
+ @include editor-search-bar-component-theme($theme)
48
50
  }
49
51
 
50
52
  @mixin ngx-noder-insert-table-theme($theme) {
@@ -0,0 +1,28 @@
1
+ @use '@angular/material' as mat;
2
+ @use 'sass:map';
3
+
4
+ @mixin editor-search-bar-component-theme($theme) {
5
+ app-nod-editor-search-bar {
6
+ color: map.get($theme, foreground-palette, noder-modal-text);
7
+ border-color: map.get($theme, foreground-palette, noder-form-field-border);
8
+ background: map.get($theme, background-palette, noder-modal-background);
9
+
10
+ .search-form, .replace-form {
11
+ button {
12
+ color: map.get($theme, foreground-palette, noder-modal-text);
13
+ }
14
+
15
+ .mdc-floating-label, .mat-mdc-input-element {
16
+ color: map.get($theme, foreground-palette, noder-modal-text);
17
+ }
18
+
19
+ .mdc-text-field--focused .mdc-floating-label {
20
+ color: map.get($theme, foreground-palette, noder-modal-text);
21
+ }
22
+
23
+ &:not(.mdc-text-field--focused):hover .mdc-floating-label {
24
+ color: map.get($theme, foreground-palette, noder-modal-text);
25
+ }
26
+ }
27
+ }
28
+ }
@@ -269,21 +269,31 @@ div.ngx-colors-overlay.noder-color-picker-overlay .opened .colors {
269
269
  }
270
270
  }
271
271
 
272
- .noder-selection-layer .noder-selection {
272
+ .noder-highlight-layer > * {
273
273
  position: absolute;
274
274
  z-index: 5;
275
275
  }
276
276
 
277
- .noder-selection-layer {
277
+ .noder-highlight-layer {
278
278
  &.drag-and-drop-selection,
279
279
  &.text-selection {
280
280
  .noder-selection {
281
281
  background-color: rgb(94, 168, 247, 0.4);
282
282
  }
283
283
  }
284
+
285
+ &.text-search-highlight {
286
+ >.noder-highlight {
287
+ background-color: rgb(255, 255, 0, 0.4);
288
+ }
289
+
290
+ >.noder-selected-highlight {
291
+ background-color: rgb(255, 150, 50, 0.4);
292
+ }
293
+ }
284
294
  }
285
295
 
286
- .noder-selection-layer.notes-highlight .noder-selection {
296
+ .noder-highlight-layer.notes-highlight .noder-selection {
287
297
  background: rgb(255, 255, 0, 0.4);
288
298
  }
289
299
 
@@ -1,23 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { FormControl } from '@angular/forms';
4
- import { DestroyComponent } from '../../editor/components/shared/abstract/destroy.component';
5
- import { EditorService } from '../../editor/interaction/editor.service';
6
- import { SearchIteration } from '../../editor/gadgets/search/search-iteration.interface';
7
- import * as i0 from "@angular/core";
8
- export declare class EditorSearchDialogComponent extends DestroyComponent implements OnInit {
9
- private editorService;
10
- searchControl: FormControl<string>;
11
- replaceControl: FormControl<string>;
12
- isReplace: boolean;
13
- searchIteration$: Observable<SearchIteration>;
14
- constructor(editorService: EditorService);
15
- ngOnInit(): void;
16
- onClose(): void;
17
- findNext(): void;
18
- findPrev(): void;
19
- setReplace(): void;
20
- replace(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<EditorSearchDialogComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<EditorSearchDialogComponent, "app-nod-editor-search-dialog", never, {}, {}, never, never, true, never>;
23
- }
@@ -1,4 +0,0 @@
1
- export interface Replace {
2
- searchValue: string;
3
- replaceValue: string;
4
- }
@@ -1,4 +0,0 @@
1
- export interface SearchIteration {
2
- current: number;
3
- total: number;
4
- }