@dotglitch/ngx-common 1.2.0 → 2.0.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.
Files changed (48) hide show
  1. package/esm2022/components/command-palette/breadcrumb/breadcrumb.component.mjs +4 -4
  2. package/esm2022/components/command-palette/command-palette.component.mjs +4 -4
  3. package/esm2022/components/command-palette/shortcut/shortcut.component.mjs +4 -4
  4. package/esm2022/components/dynamic-html/dynamic-html.component.mjs +4 -4
  5. package/esm2022/components/dynamic-html/dynamic-html.module.mjs +5 -5
  6. package/esm2022/components/dynamic-html/dynamic-html.service.mjs +4 -4
  7. package/esm2022/components/filemanager/file-grid/file-grid.component.mjs +4 -4
  8. package/esm2022/components/filemanager/filemanager.component.mjs +4 -4
  9. package/esm2022/components/filemanager/folder-rename/folder-rename.component.mjs +4 -4
  10. package/esm2022/components/filemanager/toolbar/breadcrumb/breadcrumb.component.mjs +4 -4
  11. package/esm2022/components/filemanager/toolbar/icon-button/icon-button.component.mjs +4 -4
  12. package/esm2022/components/filemanager/toolbar/toolbar.component.mjs +4 -4
  13. package/esm2022/components/filemanager/tree-view/tree-view.component.mjs +4 -4
  14. package/esm2022/components/lazy-loader/lazy-loader.component.mjs +4 -4
  15. package/esm2022/components/lazy-loader/lazy-loader.module.mjs +5 -5
  16. package/esm2022/components/lazy-loader/lazy-loader.service.mjs +4 -4
  17. package/esm2022/components/menu/menu.component.mjs +4 -4
  18. package/esm2022/components/parallax-card/parallax-card.component.mjs +4 -4
  19. package/esm2022/components/tabulator/tabulator.component.mjs +5 -5
  20. package/esm2022/components/tooltip/tooltip.component.mjs +4 -4
  21. package/esm2022/components/vscode/vscode.component.mjs +4 -4
  22. package/esm2022/directives/image-cache.directive.mjs +4 -4
  23. package/esm2022/directives/menu.directive.mjs +4 -4
  24. package/esm2022/directives/tooltip.directive.mjs +7 -7
  25. package/esm2022/pipes/html-bypass.pipe.mjs +4 -4
  26. package/esm2022/pipes/resource-bypass.pipe.mjs +4 -4
  27. package/esm2022/pipes/script-bypass.pipe.mjs +4 -4
  28. package/esm2022/pipes/style-bypass.pipe.mjs +4 -4
  29. package/esm2022/pipes/url-bypass.pipe.mjs +4 -4
  30. package/esm2022/public-api.mjs +1 -4
  31. package/esm2022/services/command-palette.service.mjs +4 -4
  32. package/esm2022/services/dependency.service.mjs +4 -4
  33. package/esm2022/services/dialog.service.mjs +4 -4
  34. package/esm2022/services/fetch.service.mjs +4 -4
  35. package/esm2022/services/file.service.mjs +4 -4
  36. package/esm2022/services/keyboard.service.mjs +4 -4
  37. package/esm2022/services/navigation.service.mjs +4 -4
  38. package/esm2022/services/theme.service.mjs +50 -15
  39. package/fesm2022/{dotglitch-ngx-common-folder-rename.component-6j7OjwOo.mjs → dotglitch-ngx-common-folder-rename.component-Bh1IiRvd.mjs} +5 -7
  40. package/fesm2022/dotglitch-ngx-common-folder-rename.component-Bh1IiRvd.mjs.map +1 -0
  41. package/fesm2022/dotglitch-ngx-common.mjs +165 -286
  42. package/fesm2022/dotglitch-ngx-common.mjs.map +1 -1
  43. package/package.json +1 -5
  44. package/public-api.d.ts +0 -1
  45. package/services/theme.service.d.ts +12 -2
  46. package/components/react-magic-wrapper/react-magic-wrapper.component.d.ts +0 -63
  47. package/esm2022/components/react-magic-wrapper/react-magic-wrapper.component.mjs +0 -160
  48. package/fesm2022/dotglitch-ngx-common-folder-rename.component-6j7OjwOo.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input } from '@angular/core';
2
+ import { Input, Component } from '@angular/core';
3
3
  import * as i7 from '@angular/forms';
4
4
  import { FormsModule } from '@angular/forms';
5
5
  import * as i9 from '@angular/material/button';
@@ -32,8 +32,6 @@ import 'tabulator-tables';
32
32
  import '@angular/material/progress-bar';
33
33
  import '@angular/material/expansion';
34
34
  import 'path-browserify';
35
- import 'react';
36
- import 'react-dom/client';
37
35
 
38
36
  class FolderRenameComponent {
39
37
  constructor(dialog, fetch) {
@@ -60,10 +58,10 @@ class FolderRenameComponent {
60
58
  }
61
59
  this.dialog.close(true);
62
60
  }
63
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FolderRenameComponent, deps: [{ token: i1.MatDialogRef }, { token: Fetch }], target: i0.ɵɵFactoryTarget.Component }); }
64
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: FolderRenameComponent, isStandalone: true, selector: "app-folder-rename", inputs: { path: "path", name: "name", config: "config" }, ngImport: i0, template: "<mat-form-field style=\"width: 280px;\">\n <mat-label>Name</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"name\" (keyup)=\"$event.key == 'Enter' && onSave()\">\n</mat-form-field>\n\n<div style=\"align-self: end;\">\n <button mat-flat-button (click)=\"onSave()\"><mat-icon>check</mat-icon>Ok</button>\n <button mat-flat-button (click)=\"dialog.close()\"><mat-icon>cancel</mat-icon>Cancel</button>\n</div>\n", styles: [":host{display:flex;flex-direction:column;padding:24px}\n"], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i9.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
61
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FolderRenameComponent, deps: [{ token: i1.MatDialogRef }, { token: Fetch }], target: i0.ɵɵFactoryTarget.Component }); }
62
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FolderRenameComponent, isStandalone: true, selector: "app-folder-rename", inputs: { path: "path", name: "name", config: "config" }, ngImport: i0, template: "<mat-form-field style=\"width: 280px;\">\n <mat-label>Name</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"name\" (keyup)=\"$event.key == 'Enter' && onSave()\">\n</mat-form-field>\n\n<div style=\"align-self: end;\">\n <button mat-flat-button (click)=\"onSave()\"><mat-icon>check</mat-icon>Ok</button>\n <button mat-flat-button (click)=\"dialog.close()\"><mat-icon>cancel</mat-icon>Cancel</button>\n</div>\n", styles: [":host{display:flex;flex-direction:column;padding:24px}\n"], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i9.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
65
63
  }
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FolderRenameComponent, decorators: [{
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FolderRenameComponent, decorators: [{
67
65
  type: Component,
68
66
  args: [{ selector: 'app-folder-rename', imports: [
69
67
  MatInputModule,
@@ -80,4 +78,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
80
78
  }] } });
81
79
 
82
80
  export { FolderRenameComponent };
83
- //# sourceMappingURL=dotglitch-ngx-common-folder-rename.component-6j7OjwOo.mjs.map
81
+ //# sourceMappingURL=dotglitch-ngx-common-folder-rename.component-Bh1IiRvd.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dotglitch-ngx-common-folder-rename.component-Bh1IiRvd.mjs","sources":["../../../packages/common/src/components/filemanager/folder-rename/folder-rename.component.ts","../../../packages/common/src/components/filemanager/folder-rename/folder-rename.component.html"],"sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDialogRef } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { NgxFileManagerConfiguration } from '../filemanager.component';\nimport { Fetch } from '../../../public-api';\n\n@Component({\n selector: 'app-folder-rename',\n templateUrl: './folder-rename.component.html',\n styleUrls: ['./folder-rename.component.scss'],\n imports: [\n MatInputModule,\n MatIconModule,\n MatButtonModule,\n FormsModule\n ],\n standalone: true\n})\nexport class FolderRenameComponent implements OnInit {\n\n @Input() path: string;\n @Input() name: string = '';\n @Input() config: NgxFileManagerConfiguration;\n\n isRename = false;\n\n constructor(\n public dialog: MatDialogRef<any>,\n private fetch: Fetch\n ) { }\n\n ngOnInit() {\n this.isRename = this.name.length > 0;\n }\n\n onSave() {\n if (this.isRename) {\n const url = this.config.apiSettings.renameEntryUrlTemplate\n ? this.config.apiSettings.renameEntryUrlTemplate(this.path + this.name)\n : this.config.apiSettings.renameEntryUrl\n\n this.fetch.post(url, { path: this.path + '/' + this.name });\n }\n else {\n const url = this.config.apiSettings.createDirectoryUrlTemplate\n ? this.config.apiSettings.createDirectoryUrlTemplate(this.path + this.name)\n : this.config.apiSettings.createDirectoryUrl\n\n this.fetch.post(url, {path: this.path +'/'+ this.name});\n }\n this.dialog.close(true);\n }\n}\n","<mat-form-field style=\"width: 280px;\">\n <mat-label>Name</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"name\" (keyup)=\"$event.key == 'Enter' && onSave()\">\n</mat-form-field>\n\n<div style=\"align-self: end;\">\n <button mat-flat-button (click)=\"onSave()\"><mat-icon>check</mat-icon>Ok</button>\n <button mat-flat-button (click)=\"dialog.close()\"><mat-icon>cancel</mat-icon>Cancel</button>\n</div>\n"],"names":["i2.Fetch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