@dotglitch/ngx-common 1.0.32 → 1.0.34

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.
@@ -8,6 +8,7 @@ import { CommonModule, NgIf, NgForOf, NgTemplateOutlet, DOCUMENT, NgComponentOut
8
8
  import * as i1$1 from '@angular/platform-browser';
9
9
  import { createApplication } from '@angular/platform-browser';
10
10
  import { firstValueFrom, debounceTime, of, Subject, BehaviorSubject } from 'rxjs';
11
+ import { ulid } from 'ulidx';
11
12
  import * as i5 from '@angular/material/icon';
12
13
  import { MatIconModule } from '@angular/material/icon';
13
14
  import * as i5$1 from '@angular/material/progress-spinner';
@@ -406,7 +407,7 @@ const openTooltip = (dialog, template, data, el, config, focusTrap = false) => _
406
407
  const rect = yield calcTooltipBounds(template, data);
407
408
  const ownerCords = el.getBoundingClientRect();
408
409
  const cords = getPosition(el, config, rect);
409
- const specificId = crypto.randomUUID();
410
+ const specificId = ulid();
410
411
  return new Promise(res => {
411
412
  dialog.open(TooltipComponent, {
412
413
  autoFocus: focusTrap,
@@ -846,7 +847,7 @@ const openMenu = (dialog, menuItems, data, evt, config = {}, el) => __awaiter(vo
846
847
  if (!config.alignment)
847
848
  config.alignment = "start";
848
849
  const cords = getPosition(el || evt, config, yield calcMenuItemBounds(menuItems, data));
849
- const specificId = crypto.randomUUID();
850
+ const specificId = ulid();
850
851
  return new Promise(res => {
851
852
  dialog.open(MenuComponent, {
852
853
  data: {
@@ -9405,7 +9406,7 @@ class FilemanagerComponent {
9405
9406
  lazyLoader.registerComponent({
9406
9407
  id: "folder-rename",
9407
9408
  group: "@dotglitch/ngx-web-components",
9408
- load: () => import('./dotglitch-ngx-common-folder-rename.component-22b918d0.mjs')
9409
+ load: () => import('./dotglitch-ngx-common-folder-rename.component-984ccea3.mjs')
9409
9410
  });
9410
9411
  this.iconResolver = new IconResolver(libConfig.assetPath);
9411
9412
  }
@@ -9429,7 +9430,7 @@ class FilemanagerComponent {
9429
9430
  }
9430
9431
  initTab(path) {
9431
9432
  this.tabs.push(this.currentTab = {
9432
- id: crypto.randomUUID(),
9433
+ id: ulid(),
9433
9434
  label: this.getTabLabel(path),
9434
9435
  breadcrumb: this.calcBreadcrumb(path),
9435
9436
  path,
@@ -10279,24 +10280,7 @@ class VscodeComponent {
10279
10280
  }
10280
10281
  get language() { return this._language; }
10281
10282
  get settings() {
10282
- return {
10283
- theme: this.theme,
10284
- language: this.language,
10285
- tabSize: this.tabSize,
10286
- readOnly: this.readOnly,
10287
- fontFamily: this.fontFamily,
10288
- fontSize: this.fontSize,
10289
- automaticLayout: this.automaticLayout,
10290
- scrollBeyondLastLine: this.scrollBeyondLastLine,
10291
- colorDecorators: this.colorDecorators,
10292
- folding: this.folding,
10293
- scrollBeyondLastColumn: this.scrollBeyondLastColumn,
10294
- minimap: this.minimap,
10295
- scrollbar: this.scrollbar,
10296
- smoothScrolling: this.smoothScrolling,
10297
- mouseWheelScrollSensitivity: this.mouseWheelScrollSensitivity,
10298
- lineNumbers: this.lineNumbers
10299
- };
10283
+ return Object.assign(Object.assign({}, this.restSettings), { theme: this.theme, language: this.language, tabSize: this.tabSize, readOnly: this.readOnly, fontFamily: this.fontFamily, fontSize: this.fontSize, automaticLayout: this.automaticLayout, scrollBeyondLastLine: this.scrollBeyondLastLine, colorDecorators: this.colorDecorators, folding: this.folding, scrollBeyondLastColumn: this.scrollBeyondLastColumn, minimap: this.minimap, scrollbar: this.scrollbar, smoothScrolling: this.smoothScrolling, mouseWheelScrollSensitivity: this.mouseWheelScrollSensitivity, lineNumbers: this.lineNumbers });
10300
10284
  }
10301
10285
  constructor(viewContainer) {
10302
10286
  this.viewContainer = viewContainer;
@@ -10325,9 +10309,8 @@ class VscodeComponent {
10325
10309
  this.mouseWheelScrollSensitivity = 2;
10326
10310
  this.scrollBeyondLastLine = false;
10327
10311
  this.scrollBeyondLastColumn = 0;
10328
- this.scrollbarAlwaysConsumeMouseWheel = 2;
10329
10312
  this.lineNumbers = "on";
10330
- this.verticalScrollExhausted = false;
10313
+ this.restSettings = {};
10331
10314
  this.resize = () => {
10332
10315
  var _a;
10333
10316
  (_a = this.editor) === null || _a === void 0 ? void 0 : _a.layout();
@@ -10437,7 +10420,7 @@ class VscodeComponent {
10437
10420
  */
10438
10421
  VscodeComponent.isMonacoInstalled = false;
10439
10422
  VscodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VscodeComponent, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
10440
- VscodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: VscodeComponent, isStandalone: true, selector: "app-vscode", inputs: { code: "code", customLanguage: "customLanguage", language: "language", installationLocation: "installationLocation", tabSize: "tabSize", readOnly: "readOnly", theme: "theme", fontFamily: "fontFamily", fontSize: "fontSize", automaticLayout: "automaticLayout", colorDecorators: "colorDecorators", folding: "folding", minimapEnabled: "minimapEnabled", minimap: "minimap", scrollbar: "scrollbar", smoothScrolling: "smoothScrolling", mouseWheelScrollSensitivity: "mouseWheelScrollSensitivity", scrollBeyondLastLine: "scrollBeyondLastLine", scrollBeyondLastColumn: "scrollBeyondLastColumn", scrollbarAlwaysConsumeMouseWheel: "scrollbarAlwaysConsumeMouseWheel", lineNumbers: "lineNumbers" }, outputs: { codeChange: "codeChange" }, host: { listeners: { "window:resize": "resize($event)" } }, usesOnChanges: true, ngImport: i0, template: '', isInline: true, styles: [":host{display:block;height:100%;max-height:100vh;max-width:100vw}\n"] });
10423
+ VscodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: VscodeComponent, isStandalone: true, selector: "app-vscode", inputs: { code: "code", customLanguage: "customLanguage", language: "language", installationLocation: "installationLocation", tabSize: "tabSize", readOnly: "readOnly", theme: "theme", fontFamily: "fontFamily", fontSize: "fontSize", automaticLayout: "automaticLayout", colorDecorators: "colorDecorators", folding: "folding", minimapEnabled: "minimapEnabled", minimap: "minimap", scrollbar: "scrollbar", smoothScrolling: "smoothScrolling", mouseWheelScrollSensitivity: "mouseWheelScrollSensitivity", scrollBeyondLastLine: "scrollBeyondLastLine", scrollBeyondLastColumn: "scrollBeyondLastColumn", lineNumbers: "lineNumbers", restSettings: "restSettings" }, outputs: { codeChange: "codeChange" }, host: { listeners: { "window:resize": "resize($event)" } }, usesOnChanges: true, ngImport: i0, template: '', isInline: true, styles: [":host{display:block;height:100%;max-height:100vh;max-width:100vw}\n"] });
10441
10424
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VscodeComponent, decorators: [{
10442
10425
  type: Component,
10443
10426
  args: [{ selector: 'app-vscode', template: '', standalone: true, styles: [":host{display:block;height:100%;max-height:100vh;max-width:100vw}\n"] }]
@@ -10481,10 +10464,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
10481
10464
  type: Input
10482
10465
  }], scrollBeyondLastColumn: [{
10483
10466
  type: Input
10484
- }], scrollbarAlwaysConsumeMouseWheel: [{
10485
- type: Input
10486
10467
  }], lineNumbers: [{
10487
10468
  type: Input
10469
+ }], restSettings: [{
10470
+ type: Input
10488
10471
  }], resize: [{
10489
10472
  type: HostListener,
10490
10473
  args: ['window:resize', ['$event']]