@theseam/ui-common 1.0.0-beta.4 → 1.0.0-beta.6

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.
@@ -1,15 +1,15 @@
1
1
  import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
2
2
  import * as i0 from '@angular/core';
3
- import { Input, Component, inject, ElementRef, Directive, EventEmitter, HostListener, Output, NgZone, HostBinding, Pipe, NgModule } from '@angular/core';
3
+ import { Input, Component, inject, ElementRef, Directive, EventEmitter, HostListener, Output, HostBinding, Pipe, NgModule } from '@angular/core';
4
4
  import * as i1 from '@fortawesome/angular-fontawesome';
5
5
  import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
6
6
  import { faEye, faEyeSlash } from '@fortawesome/free-regular-svg-icons';
7
7
  import { Modal, ModalRef, getClosestModal } from '@theseam/ui-common/modal';
8
8
  import { NgControl } from '@angular/forms';
9
9
  import { ResizeSensor } from 'css-element-queries';
10
+ import { NgSelectComponent } from '@ng-select/ng-select';
10
11
  import { Subject, fromEvent } from 'rxjs';
11
12
  import { takeUntil, filter, tap } from 'rxjs/operators';
12
- import { NgSelectComponent } from '@ng-select/ng-select';
13
13
  import { QuillEditorComponent } from 'ngx-quill';
14
14
  import { padStart, padEnd } from '@theseam/ui-common/utils';
15
15
 
@@ -384,39 +384,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
384
384
  type: Input
385
385
  }] } });
386
386
 
387
+ // import { ResizeSensor } from 'css-element-queries'
388
+ // import { TheSeamElementResizedEvent } from './elem-resized.directive'
387
389
  class TheSeamNgSelectExtraDirective {
388
390
  _elementRef = inject((ElementRef));
389
- _ngZone = inject(NgZone);
390
391
  _ngSelect = inject(NgSelectComponent);
391
392
  _ngControl = inject(NgControl, { optional: true, self: true });
392
- _ngUnsubscribe = new Subject();
393
- _markedItem = null;
394
- _checkMarked = false;
395
- _keyPressWorkaroundSub = null;
396
- _resizedEvent = new EventEmitter();
397
- _resizeSensor;
398
393
  /**
399
394
  * Set the tab index to `-1` to allow the root element of the ng-select
400
395
  * component to receive `focus` event from javascript, but not get focused by
401
396
  * keyboard navigation.
402
397
  */
403
- get _tabIndex() { return this._ngSelect.disabled ? undefined : -1; }
398
+ get _tabIndex() { return this._ngSelect.disabled() ? undefined : -1; }
404
399
  /**
405
400
  * Listening for focus event on root of component to allow javascript
406
401
  * `focus()` function to trigger the components focus.
407
402
  */
408
403
  onFocus($event) {
409
404
  const target = $event.target;
410
- if (target === this._elementRef.nativeElement && !this._ngSelect.disabled) {
405
+ if (target === this._elementRef.nativeElement && !this._ngSelect.disabled()) {
411
406
  this._ngSelect.focus();
412
407
  }
413
- // ng-select has an input `labelForId` that sets the autocomplete attribute
414
- // in ngOnInit. I am not positive that it is wrong by doing that, but this
415
- // hack makes it set the attributes again on focus, because that gives the
416
- // result I was expecting, since we don't manually set the `labelForId`
417
- // input.
418
- const _ngSelect = this._ngSelect;
419
- _ngSelect._setInputAttributes();
420
408
  }
421
409
  get _isInvalid() {
422
410
  return this._ngControl ? this._ngControl.invalid && (this._ngControl.dirty || this._ngControl.touched) : false;
@@ -425,10 +413,10 @@ class TheSeamNgSelectExtraDirective {
425
413
  return this._ngControl ? this._ngControl.value === '' : false;
426
414
  }
427
415
  ngOnInit() {
428
- this._ngSelect.focusEvent
429
- .subscribe(v => this._enableKeyPressWorkaround());
430
- this._ngSelect.blurEvent
431
- .subscribe(v => this._disableKeyPressWorkaround());
416
+ // this._ngSelect.focusEvent
417
+ // .subscribe(v => this._enableKeyPressWorkaround())
418
+ // this._ngSelect.blurEvent
419
+ // .subscribe(v => this._disableKeyPressWorkaround())
432
420
  window.addEventListener('scroll', this._onScroll, true);
433
421
  // When the input is allowed to change its height the position doesn't update itself.
434
422
  // this._resizedEvent.pipe(
@@ -447,28 +435,29 @@ class TheSeamNgSelectExtraDirective {
447
435
  // this._patch_ngSelect_open()
448
436
  }
449
437
  ngOnDestroy() {
450
- this._resizeSensor?.detach();
438
+ // this._resizeSensor?.detach()
451
439
  window.removeEventListener('scroll', this._onScroll, true);
452
- this._ngUnsubscribe.next(undefined);
453
- this._ngUnsubscribe.complete();
440
+ // this._ngUnsubscribe.next(undefined)
441
+ // this._ngUnsubscribe.complete()
454
442
  }
455
443
  ngAfterViewChecked() {
456
- if (this._ngSelect.dropdownPanel) {
457
- if (this._checkMarked) {
458
- if (this._ngSelect.dropdownPanel && this._markedItem !== null) {
459
- if (this._markedItem.index !== this._ngSelect.dropdownPanel.markedItem.index) {
460
- this._ngSelect.dropdownPanel.scrollTo(this._ngSelect.dropdownPanel.markedItem);
461
- }
462
- }
463
- }
464
- }
465
- this._checkMarked = false;
466
- this._resizeSensor = new ResizeSensor(this._elementRef.nativeElement, event => {
467
- this._resizedEvent.emit({ element: this._elementRef.nativeElement, size: event });
468
- });
444
+ // const dropPanel = this._ngSelect.dropdownPanel() as any
445
+ // if (dropPanel) {
446
+ // if (this._checkMarked) {
447
+ // if (dropPanel && this._markedItem !== null) {
448
+ // if (this._markedItem.index !== dropPanel.markedItem.index) {
449
+ // dropPanel.scrollTo(dropPanel.markedItem)
450
+ // }
451
+ // }
452
+ // }
453
+ // }
454
+ // this._checkMarked = false
455
+ // this._resizeSensor = new ResizeSensor(this._elementRef.nativeElement, event => {
456
+ // this._resizedEvent.emit({ element: this._elementRef.nativeElement, size: event })
457
+ // })
469
458
  }
470
459
  _onScroll = (event) => {
471
- if (this._ngSelect && this._ngSelect.isOpen) {
460
+ if (this._ngSelect && this._ngSelect.isOpen()) {
472
461
  const isScrollingInScrollHost = event.target.className.indexOf('ng-dropdown-panel-items') !== -1;
473
462
  const isInSensor = event.target.className.indexOf('resize-sensor-shrink') !== -1 ||
474
463
  event.target.className.indexOf('os-resize-observer-host') !== -1;
@@ -478,61 +467,6 @@ class TheSeamNgSelectExtraDirective {
478
467
  this._ngSelect.close();
479
468
  }
480
469
  };
481
- /**
482
- * Temp fix for: https://github.com/ng-select/ng-select/issues/1122
483
- */
484
- // private _patch_ngSelect_open() {
485
- // const original = this._ngSelect.open
486
- // const _self = this
487
- // this._ngSelect.open = function() {
488
- // original.apply(this, arguments)
489
- // _self._patch_ngSelectDropdownPanel_updateDropdownPosition()
490
- // }
491
- // }
492
- /** Should ONLY be called by `_patch_ngSelect_open`. */
493
- // private _patch_ngSelectDropdownPanel_updateDropdownPosition() {
494
- // if (!this._ngSelect.dropdownPanel) { return }
495
- // const drop: any = this._ngSelect.dropdownPanel
496
- // // Only needed once, to update the position before the timeout in
497
- // // `updateDropdownPosition()`. So, using this variable to check if I already called
498
- // // `_updateAppendedDropdownPosition()`.
499
- // if (!drop.__libPatched) {
500
- // drop.__libPatched = 'patched'
501
- // const original = drop.updateDropdownPosition
502
- // const _self = this
503
- // drop.updateDropdownPosition = function() {
504
- // original.apply(this, arguments)
505
- // if (!!_self._ngSelect.appendTo) {
506
- // drop._updateAppendedDropdownPosition()
507
- // }
508
- // }
509
- // }
510
- // }
511
- _enableKeyPressWorkaround() {
512
- if (this._keyPressWorkaroundSub) {
513
- return;
514
- }
515
- const _ngSelect = this._ngSelect;
516
- this._keyPressWorkaroundSub = _ngSelect._keyPress$
517
- .pipe(takeUntil(this._ngUnsubscribe))
518
- .pipe(filter(() => !this._ngSelect.searchable))
519
- .subscribe(() => {
520
- this._ngZone.runOutsideAngular(() => {
521
- window.requestAnimationFrame(() => {
522
- if (this._ngSelect.dropdownPanel) {
523
- this._markedItem = this._ngSelect.dropdownPanel.markedItem;
524
- }
525
- this._checkMarked = true;
526
- });
527
- });
528
- });
529
- }
530
- _disableKeyPressWorkaround() {
531
- if (this._keyPressWorkaroundSub) {
532
- this._keyPressWorkaroundSub.unsubscribe();
533
- this._keyPressWorkaroundSub = null;
534
- }
535
- }
536
470
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: TheSeamNgSelectExtraDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
537
471
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.1", type: TheSeamNgSelectExtraDirective, isStandalone: true, selector: "ng-select", host: { listeners: { "focus": "onFocus($event)" }, properties: { "attr.tabIndex": "this._tabIndex", "class.is-invalid": "this._isInvalid", "class.ng-empty-string-value": "this._isEmptyStringValue" } }, exportAs: ["seamNgSelectExtra"], ngImport: i0 });
538
472
  }
@@ -1 +1 @@
1
- {"version":3,"file":"theseam-ui-common-shared.mjs","sources":["../../../projects/ui-common/shared/components/password-input-reveal/password-input-reveal.component.ts","../../../projects/ui-common/shared/directives/auto-focus.directive.ts","../../../projects/ui-common/shared/directives/click-outside.directive.ts","../../../projects/ui-common/shared/directives/disable-control.directive.ts","../../../projects/ui-common/shared/directives/elem-resized.directive.ts","../../../projects/ui-common/shared/directives/hover-class-toggle.directive.ts","../../../projects/ui-common/shared/directives/hover-class.directive.ts","../../../projects/ui-common/shared/directives/ng-select-extra.directive.ts","../../../projects/ui-common/shared/directives/ngx-quill-extra.directive.ts","../../../projects/ui-common/shared/pipes/mask-chars.pipe.ts","../../../projects/ui-common/shared/pipes/truncate.pipe.ts","../../../projects/ui-common/shared/shared.module.ts","../../../projects/ui-common/shared/theseam-ui-common-shared.ts"],"sourcesContent":["import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'\nimport { Component, Input } from '@angular/core'\n\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome'\nimport { faEye, faEyeSlash } from '@fortawesome/free-regular-svg-icons'\n\n@Component({\n selector: 'seam-password-input-reveal',\n template: `\n <fa-icon [icon]=\"passwordVisible ? faEyeSlash : faEye\" class=\"password-reveal-icon\" (click)=\"revealPassword()\"></fa-icon>\n `,\n styles: [`\n :host {\n display: flex;\n align-items: center;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 30px;\n transform: translateZ(0);\n z-index: 50;\n }\n\n :host fa-icon {\n opacity: 1;\n color: #bababa;\n /* margin-top: 3px; */ /* Not needed now? */\n cursor: pointer;\n }\n\n :host fa-icon ::ng-deep .svg-inline--fa {\n vertical-align: middle;\n }\n `],\n imports: [\n FontAwesomeModule,\n ],\n})\nexport class TheSeamPasswordInputRevealComponent {\n static ngAcceptInputType_passwordVisible: BooleanInput\n\n readonly faEye = faEye\n readonly faEyeSlash = faEyeSlash\n\n @Input()\n get inputRef(): HTMLInputElement | undefined | null { return this._passwordInput }\n set inputRef(value: HTMLInputElement | undefined | null) {\n this._passwordInput = value\n this.updateRevealState()\n if (this._passwordInput) {\n this._passwordInput.style.paddingRight = '40px'\n this._passwordInput.classList.add('no-native-eye')\n }\n }\n private _passwordInput: HTMLInputElement | undefined | null\n\n @Input()\n get passwordVisible() { return this._passwordVisible }\n set passwordVisible(value: boolean) {\n this._passwordVisible = coerceBooleanProperty(value)\n this.updateRevealState()\n }\n public _passwordVisible = false\n\n public updateRevealState(): void {\n if (this._passwordInput) {\n this._passwordInput.type = this.passwordVisible ? 'text' : 'password'\n }\n }\n\n public revealPassword(): void {\n this.passwordVisible = !this.passwordVisible\n }\n\n}\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'\nimport { Directive, ElementRef, inject, Input, OnInit } from '@angular/core'\n\nimport { getClosestModal, Modal, ModalRef } from '@theseam/ui-common/modal'\n\n/**\n * Directive that will focus the element when initialized.\n *\n * If the element is inside a modal, it will wait until the modal is opened before focusing.\n *\n * If the element will be initialized multiple times or while a form is being filled out\n * don't use this directive.\n *\n * Usage:\n * ```html\n * <input type=\"text\" seamAutoFocus />\n * ```\n */\n@Directive({\n selector: '[seamAutoFocus]',\n exportAs: 'seamAutoFocus',\n})\nexport class TheSeamAutoFocusDirective implements OnInit {\n static ngAcceptInputType_seamAutoFocus: BooleanInput\n\n private readonly _elementRef = inject(ElementRef<HTMLElement>)\n private readonly _modal = inject(Modal, { optional: true })\n private readonly _modalRef = inject(ModalRef, { optional: true })\n\n private _focus = true\n\n public modalRef: ModalRef<any> | undefined | null = this._modalRef\n\n @Input()\n set seamAutoFocus(condition: boolean) {\n this._focus = coerceBooleanProperty(condition) !== false\n }\n\n ngOnInit() {\n if (!this.modalRef && this._modal) {\n // When this directive is included in a dialog via TemplateRef (rather than being\n // in a Component), the DialogRef isn't available via injection because embedded\n // views cannot be given a custom injector. Instead, we look up the DialogRef by\n // ID. This must occur in `onInit`, as the ID binding for the dialog container won't\n // be resolved at constructor time.\n this.modalRef = getClosestModal(this._elementRef, this._modal.openDialogs)\n }\n\n if (!this.modalRef) {\n if (this._focus) {\n setTimeout(() => { this.focus() })\n }\n } else {\n this.modalRef.afterOpened().subscribe(() => {\n setTimeout(() => { this.focus() })\n })\n }\n }\n\n public focus() {\n this._elementRef.nativeElement.focus()\n }\n}\n","import { Directive, ElementRef, EventEmitter, HostListener, inject, Input, Output } from '@angular/core'\n\n@Directive({\n selector: '[seamClickOutside]',\n exportAs: 'seamClickOutside',\n})\nexport class TheSeamClickOutsideDirective {\n\n private readonly _elementRef = inject(ElementRef<HTMLElement>)\n\n @Input()\n get seamClickOutsideActive(): boolean {\n return this._active\n }\n set seamClickOutsideActive(value: boolean) {\n if (this._active === value) { return }\n\n if (value) {\n // `setTimeout` is used to avoid the click event triggering when the value\n // changes if the value was changed with a click.\n setTimeout(() => { this._active = value })\n } else {\n this._active = value\n }\n }\n private _active = true\n\n @Output() seamClickOutside = new EventEmitter<MouseEvent>()\n\n // NOTE: This should probably be changed from a `HostListener` to allow the\n // subscription to be unsubscribed.\n @HostListener('document:click', ['$event'])\n public onDocumentClick(event: MouseEvent): void {\n if (this._active) {\n const targetElement = event.target as HTMLElement\n // Check if the click was outside the element\n if (targetElement && !this._elementRef.nativeElement.contains(targetElement)) {\n this.seamClickOutside.emit(event)\n }\n }\n }\n\n}\n","import { Directive, inject, Input } from '@angular/core'\nimport { NgControl } from '@angular/forms'\n\n// Source: https://netbasal.com/disabling-form-controls-when-working-with-reactive-forms-in-angular-549dd7b42110\n\n@Directive({\n selector: '[seamDisableControl]',\n exportAs: 'seamDisableControl',\n})\nexport class TheSeamDisableControlDirective {\n\n private readonly _ngControl = inject(NgControl)\n\n @Input() set seamDisableControl(condition: boolean) {\n const action = condition ? 'disable' : 'enable'\n const control = this._ngControl.control\n if (control) {\n control[action]()\n }\n }\n\n}\n","import { AfterViewInit, Directive, ElementRef, EventEmitter, inject, OnDestroy, Output } from '@angular/core'\n\nimport { ResizeSensor } from 'css-element-queries'\n\nexport interface TheSeamElementResizedEvent {\n element: HTMLElement\n size: { width: number, height: number }\n}\n\n@Directive({\n selector: '[seamElemResized]',\n exportAs: 'seamElemResized',\n})\nexport class TheSeamElemResizedDirective implements OnDestroy, AfterViewInit {\n\n private readonly _elementRef = inject(ElementRef<HTMLElement>)\n\n @Output() seamElemResized = new EventEmitter<TheSeamElementResizedEvent>()\n\n sensor?: ResizeSensor\n\n ngAfterViewInit() {\n this.sensor = new ResizeSensor(this._elementRef.nativeElement, event => {\n this.seamElemResized.emit({ element: this._elementRef.nativeElement, size: event })\n })\n }\n\n ngOnDestroy() {\n this.sensor?.detach()\n }\n\n}\n","import { Directive, ElementRef, HostListener, inject, Input } from '@angular/core'\n\ndeclare type _PointerEvent = PointerEvent | PointerEvent\n\nexport interface TheSeamHoverClassToggleRecord {\n default: string\n hover: string\n}\n\n/**\n * Don't use this directive unless there is a reason not to use css `:hover`,\n * because the accuracy of detecting the hover is not as good. If an element is\n * moved while the mouse is idle the hover class will remain until the mouse\n * enters and leaves again.\n *\n * I have tried multiple ways of detecting the mouse no longer hovering, but all\n * have introduced a slight performance issue that just builds for each element\n * containing this directive.\n */\n@Directive({\n selector: '[seamHoverClassToggle]',\n exportAs: 'seamHoverClassToggle',\n})\nexport class TheSeamHoverClassToggleDirective {\n\n private readonly _elementRef = inject(ElementRef<HTMLElement>)\n\n private _hovered = false\n private _defaultClasses: string[] = []\n private _hoverClasses: string[] = []\n\n @HostListener('mouseover', ['$event']) onMouseOver($event: MouseEvent) {\n this._setHovered(true)\n }\n\n @HostListener('mouseout', ['$event']) onMouseOut($event: MouseEvent) {\n this._setHovered(false)\n }\n\n @HostListener('pointerover', ['$event']) onPointerOver($event: _PointerEvent) {\n this._setHovered(true)\n }\n\n @HostListener('pointerout', ['$event']) onPointerOut($event: _PointerEvent) {\n this._setHovered(false)\n }\n\n @Input()\n set seamHoverClassToggle(value: TheSeamHoverClassToggleRecord) {\n if (value) {\n if (value.default) {\n this._defaultClasses = value.default.split(' ').filter(c => c.length > 0)\n }\n if (value.hover) {\n this._hoverClasses = value.hover.split(' ').filter(c => c.length > 0)\n }\n }\n\n this._hoverClasses = this._hoverClasses.filter(v => !this._defaultClasses.find(_v => _v === v))\n\n this._update()\n }\n\n private _update(): void {\n for (const c of this._defaultClasses) {\n this._hovered ? this._removeClass(c) : this._addClass(c)\n }\n for (const c of this._hoverClasses) {\n this._hovered ? this._addClass(c) : this._removeClass(c)\n }\n }\n\n private _setHovered(hovered: boolean) {\n const doUpdate = this._hovered !== hovered\n this._hovered = hovered\n if (doUpdate) {\n this._update()\n }\n }\n\n private _addClass(c: string): void {\n this._elementRef.nativeElement.classList.add(c)\n }\n\n public _removeClass(c: string): void {\n this._elementRef.nativeElement.classList.remove(c)\n }\n\n}\n","import { Directive, ElementRef, HostListener, inject, Input } from '@angular/core'\n\ndeclare type _PointerEvent = PointerEvent | PointerEvent\n\n/**\n * Changes a css class on mouse pointer hover.\n *\n * NOTE: Only use this if css `:hover` can't be used, because css is more\n * accurate and better performing.\n *\n * NOTE: Don't use this directive unless there is a reason not to use css\n * `:hover`, because the accuracy of detecting the hover is not as good. If an\n * element is moved while the mouse is idle the hover class will remain until\n * the mouse enters and leaves again.\n *\n * NOTE: I have tried multiple ways of detecting the mouse no longer hovering,\n * but all have introduced a slight performance issue that just builds for each\n * element containing this directive.\n */\n@Directive({\n selector: '[seamHoverClass]',\n exportAs: 'seamHoverClass',\n})\nexport class TheSeamHoverClassDirective {\n\n private readonly _elementRef = inject(ElementRef<HTMLElement>)\n\n private _hovered = false\n private _classes: string[] = []\n\n @HostListener('mouseover', ['$event']) onMouseOver($event: MouseEvent) {\n this._setHovered(true)\n }\n\n @HostListener('mouseout', ['$event']) onMouseOut($event: MouseEvent) {\n this._setHovered(false)\n }\n\n @HostListener('pointerover', ['$event']) onPointerOver($event: _PointerEvent) {\n this._setHovered(true)\n }\n\n @HostListener('pointerout', ['$event']) onPointerOut($event: _PointerEvent) {\n this._setHovered(false)\n }\n\n @Input()\n set seamHoverClass(classList: string) {\n const newClasses = classList.split(' ').filter(c => c.length > 0)\n for (const c of this._classes) {\n if (newClasses.indexOf(c) !== 0) {\n this._removeClass(c)\n }\n }\n this._classes = newClasses\n this._update()\n }\n\n private _update(): void {\n for (const c of this._classes) {\n this._hovered ? this._addClass(c) : this._removeClass(c)\n }\n }\n\n private _setHovered(hovered: boolean) {\n const doUpdate = this._hovered !== hovered\n this._hovered = hovered\n if (doUpdate) {\n this._update()\n }\n }\n\n private _addClass(c: string): void {\n this._elementRef.nativeElement.classList.add(c)\n }\n\n public _removeClass(c: string): void {\n this._elementRef.nativeElement.classList.remove(c)\n }\n\n}\n","import {\n AfterViewChecked,\n Directive,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n inject,\n NgZone,\n OnDestroy,\n OnInit,\n} from '@angular/core'\nimport { NgControl } from '@angular/forms'\nimport { Subject, Subscription } from 'rxjs'\nimport { filter, takeUntil } from 'rxjs/operators'\n\nimport { NgOption, NgSelectComponent } from '@ng-select/ng-select'\nimport { ResizeSensor } from 'css-element-queries'\n\nimport { TheSeamElementResizedEvent } from './elem-resized.directive'\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: 'ng-select',\n exportAs: 'seamNgSelectExtra',\n})\nexport class TheSeamNgSelectExtraDirective implements OnInit, AfterViewChecked, OnDestroy {\n\n private readonly _elementRef = inject(ElementRef<HTMLElement>)\n private readonly _ngZone = inject(NgZone)\n private readonly _ngSelect = inject(NgSelectComponent)\n private readonly _ngControl = inject<NgControl | null>(NgControl, { optional: true, self: true })\n\n private readonly _ngUnsubscribe = new Subject<void>()\n\n private _markedItem: NgOption | null = null\n private _checkMarked = false\n private _keyPressWorkaroundSub: Subscription | null = null\n\n private _resizedEvent = new EventEmitter<TheSeamElementResizedEvent>()\n private _resizeSensor?: ResizeSensor\n\n /**\n * Set the tab index to `-1` to allow the root element of the ng-select\n * component to receive `focus` event from javascript, but not get focused by\n * keyboard navigation.\n */\n @HostBinding('attr.tabIndex')\n get _tabIndex() { return this._ngSelect.disabled ? undefined : -1 }\n\n /**\n * Listening for focus event on root of component to allow javascript\n * `focus()` function to trigger the components focus.\n */\n @HostListener('focus', ['$event']) onFocus($event: FocusEvent) {\n const target = $event.target as HTMLElement\n if (target === this._elementRef.nativeElement && !this._ngSelect.disabled) {\n this._ngSelect.focus()\n }\n\n // ng-select has an input `labelForId` that sets the autocomplete attribute\n // in ngOnInit. I am not positive that it is wrong by doing that, but this\n // hack makes it set the attributes again on focus, because that gives the\n // result I was expecting, since we don't manually set the `labelForId`\n // input.\n const _ngSelect = this._ngSelect as any\n _ngSelect._setInputAttributes()\n }\n\n @HostBinding('class.is-invalid') get _isInvalid() {\n return this._ngControl ? this._ngControl.invalid && (this._ngControl.dirty || this._ngControl.touched) : false\n }\n\n @HostBinding('class.ng-empty-string-value') get _isEmptyStringValue() {\n return this._ngControl ? this._ngControl.value === '' : false\n }\n\n ngOnInit() {\n this._ngSelect.focusEvent\n .subscribe(v => this._enableKeyPressWorkaround())\n\n this._ngSelect.blurEvent\n .subscribe(v => this._disableKeyPressWorkaround())\n\n window.addEventListener('scroll', this._onScroll, true)\n\n // When the input is allowed to change its height the position doesn't update itself.\n // this._resizedEvent.pipe(\n // auditTime(30)\n // ).subscribe(event => {\n // if (this._elementRef && this._elementRef.nativeElement) {\n // if (this._elementRef.nativeElement.classList.contains('ng-select-value-grow-h')) {\n // if (this._ngSelect.isOpen && this._ngSelect.dropdownPanel) {\n // this._ngSelect.dropdownPanel.updateDropdownPosition()\n // }\n // } else {\n // this._elementRef.nativeElement.classList.remove('ng-select-value-grow-h')\n // }\n // }\n // })\n\n // this._patch_ngSelect_open()\n }\n\n ngOnDestroy() {\n this._resizeSensor?.detach()\n\n window.removeEventListener('scroll', this._onScroll, true)\n\n this._ngUnsubscribe.next(undefined)\n this._ngUnsubscribe.complete()\n }\n\n ngAfterViewChecked() {\n if (this._ngSelect.dropdownPanel) {\n if (this._checkMarked) {\n if (this._ngSelect.dropdownPanel && this._markedItem !== null) {\n if (this._markedItem.index !== this._ngSelect.dropdownPanel.markedItem.index) {\n this._ngSelect.dropdownPanel.scrollTo(this._ngSelect.dropdownPanel.markedItem)\n }\n }\n }\n }\n this._checkMarked = false\n\n this._resizeSensor = new ResizeSensor(this._elementRef.nativeElement, event => {\n this._resizedEvent.emit({ element: this._elementRef.nativeElement, size: event })\n })\n }\n\n private _onScroll = (event: any) => {\n if (this._ngSelect && this._ngSelect.isOpen) {\n const isScrollingInScrollHost = (event.target.className as string).indexOf('ng-dropdown-panel-items') !== -1\n const isInSensor = (event.target.className as string).indexOf('resize-sensor-shrink') !== -1 ||\n (event.target.className as string).indexOf('os-resize-observer-host') !== -1\n if (isScrollingInScrollHost || isInSensor) { return }\n this._ngSelect.close()\n }\n}\n\n /**\n * Temp fix for: https://github.com/ng-select/ng-select/issues/1122\n */\n // private _patch_ngSelect_open() {\n // const original = this._ngSelect.open\n // const _self = this\n // this._ngSelect.open = function() {\n // original.apply(this, arguments)\n // _self._patch_ngSelectDropdownPanel_updateDropdownPosition()\n // }\n // }\n\n /** Should ONLY be called by `_patch_ngSelect_open`. */\n // private _patch_ngSelectDropdownPanel_updateDropdownPosition() {\n // if (!this._ngSelect.dropdownPanel) { return }\n // const drop: any = this._ngSelect.dropdownPanel\n // // Only needed once, to update the position before the timeout in\n // // `updateDropdownPosition()`. So, using this variable to check if I already called\n // // `_updateAppendedDropdownPosition()`.\n // if (!drop.__libPatched) {\n // drop.__libPatched = 'patched'\n // const original = drop.updateDropdownPosition\n // const _self = this\n // drop.updateDropdownPosition = function() {\n // original.apply(this, arguments)\n // if (!!_self._ngSelect.appendTo) {\n // drop._updateAppendedDropdownPosition()\n // }\n // }\n // }\n // }\n\n private _enableKeyPressWorkaround() {\n if (this._keyPressWorkaroundSub) { return }\n const _ngSelect = this._ngSelect as any\n\n this._keyPressWorkaroundSub = _ngSelect._keyPress$\n .pipe(takeUntil(this._ngUnsubscribe))\n .pipe(filter(() => !this._ngSelect.searchable))\n .subscribe(() => {\n this._ngZone.runOutsideAngular(() => {\n window.requestAnimationFrame(() => {\n if (this._ngSelect.dropdownPanel) {\n this._markedItem = this._ngSelect.dropdownPanel.markedItem\n }\n this._checkMarked = true\n })\n })\n })\n }\n\n private _disableKeyPressWorkaround() {\n if (this._keyPressWorkaroundSub) {\n this._keyPressWorkaroundSub.unsubscribe()\n this._keyPressWorkaroundSub = null\n }\n }\n\n}\n","import { coerceNumberProperty } from '@angular/cdk/coercion'\nimport { AfterViewInit, Directive, ElementRef, HostBinding, inject, Input, OnDestroy } from '@angular/core'\nimport { fromEvent, Subject } from 'rxjs'\nimport { filter, takeUntil, tap } from 'rxjs/operators'\n\nimport { QuillEditorComponent } from 'ngx-quill'\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: 'quill-editor',\n exportAs: 'seamNgxQuillExtra',\n})\nexport class TheSeamNgxQuillExtraDirective implements OnDestroy, AfterViewInit {\n\n private readonly _elementRef: ElementRef<HTMLElement> = inject(ElementRef<HTMLElement>)\n private readonly _quillEditor: QuillEditorComponent = inject(QuillEditorComponent)\n\n private readonly _ngUnsubscribe = new Subject<void>()\n\n private _tabIndex = -1\n\n /**\n * Set the tab index to `-1` to allow the root element of the\n * component to receive `focus` event from javascript, but not get focused by\n * keyboard navigation.\n */\n @Input()\n set tabIndex(value: number) { this._tabIndex = coerceNumberProperty(value) }\n get tabIndex(): number { return this._tabIndex }\n\n @HostBinding('attr.tabindex')\n get _attrTabIndex() { return this._quillEditor.disabled ? -1 : (this.tabIndex || 0) }\n\n ngOnDestroy() {\n this._ngUnsubscribe.next(undefined)\n this._ngUnsubscribe.complete()\n }\n\n ngAfterViewInit() {\n const parent = this._getParentElementForLabelFocusIssue()\n if (parent) {\n // NOTE: This is a hack to avoid an issue letting a label with \"for\"\n // attribute focus the control.\n fromEvent(parent, 'click').pipe(\n takeUntil(this._ngUnsubscribe),\n filter(e => (e.target as HTMLElement)?.getAttribute('for') === this._elementRef.nativeElement.id),\n tap(() => this._quillEditor.quillEditor.focus())\n ).subscribe()\n }\n }\n\n private _getParentElementForLabelFocusIssue(): HTMLElement | undefined {\n const findElem = (elem: HTMLElement): any => {\n if (elem.nodeName.toLowerCase() === 'seam-form-field') {\n return elem\n }\n\n if (elem.parentElement) {\n return findElem(elem.parentElement)\n }\n\n return elem\n }\n\n return findElem(this._elementRef.nativeElement)\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core'\n\nimport { padEnd, padStart } from '@theseam/ui-common/utils'\n\n@Pipe({\n name: 'maskChars',\n})\nexport class TheSeamMaskCharsPipe implements PipeTransform {\n\n transform(value: string, replacementChar: string = '*', ignoreCount: number = 0, ignoreFrom: 'left' | 'right' = 'right'): string {\n if (ignoreFrom === 'right') {\n const s = value || ''\n return padStart(s.substring(s.length - ignoreCount, s.length), s.length, replacementChar)\n } else if (ignoreFrom === 'left') {\n const s = value || ''\n return padEnd(s.substring(0, ignoreCount), s.length, replacementChar)\n }\n\n return value\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core'\n\n@Pipe({\n name: 'truncate',\n})\nexport class TheSeamTruncatePipe implements PipeTransform {\n\n transform(value: string, length: number = 30, appendEllipsis: boolean = true): string {\n let val = value\n\n if (value && typeof value === 'string' && value.length > length) {\n val = value.substr(0, length)\n if (appendEllipsis) {\n val += '...'\n }\n }\n\n return val\n }\n\n}\n","import { NgModule } from '@angular/core'\n\nimport { TheSeamAutoFocusDirective } from './directives/auto-focus.directive'\nimport { TheSeamClickOutsideDirective } from './directives/click-outside.directive'\nimport { TheSeamDisableControlDirective } from './directives/disable-control.directive'\nimport { TheSeamElemResizedDirective } from './directives/elem-resized.directive'\nimport { TheSeamHoverClassToggleDirective } from './directives/hover-class-toggle.directive'\nimport { TheSeamHoverClassDirective } from './directives/hover-class.directive'\nimport { TheSeamNgSelectExtraDirective } from './directives/ng-select-extra.directive'\nimport { TheSeamNgxQuillExtraDirective } from './directives/ngx-quill-extra.directive'\n\nimport { TheSeamMaskCharsPipe } from './pipes/mask-chars.pipe'\nimport { TheSeamTruncatePipe } from './pipes/truncate.pipe'\n\nimport { TheSeamPasswordInputRevealComponent } from './components/password-input-reveal/password-input-reveal.component'\n\n@NgModule({\n imports: [\n TheSeamAutoFocusDirective,\n TheSeamElemResizedDirective,\n TheSeamHoverClassToggleDirective,\n TheSeamNgSelectExtraDirective,\n TheSeamHoverClassDirective,\n TheSeamClickOutsideDirective,\n TheSeamDisableControlDirective,\n TheSeamNgxQuillExtraDirective,\n TheSeamMaskCharsPipe,\n TheSeamTruncatePipe,\n TheSeamPasswordInputRevealComponent,\n ],\n exports: [\n TheSeamAutoFocusDirective,\n TheSeamElemResizedDirective,\n TheSeamPasswordInputRevealComponent,\n TheSeamNgSelectExtraDirective,\n TheSeamHoverClassDirective,\n TheSeamHoverClassToggleDirective,\n TheSeamClickOutsideDirective,\n TheSeamDisableControlDirective,\n TheSeamMaskCharsPipe,\n TheSeamTruncatePipe,\n TheSeamNgxQuillExtraDirective,\n ]\n})\nexport class TheSeamSharedModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAuCa,mCAAmC,CAAA;IAC9C,OAAO,iCAAiC;IAE/B,KAAK,GAAG,KAAK;IACb,UAAU,GAAG,UAAU;IAEhC,IACI,QAAQ,KAA0C,OAAO,IAAI,CAAC,cAAc,CAAA,CAAC;IACjF,IAAI,QAAQ,CAAC,KAA0C,EAAA;AACrD,QAAA,IAAI,CAAC,cAAc,GAAG,KAAK;QAC3B,IAAI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4BAA4B;wBAC5B,8BAA8B;wBAC9B,6BAA6B;wBAC7B,oBAAoB;wBACpB,mBAAmB;wBACnB,mCAAmC;AACpC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,yBAAyB;wBACzB,2BAA2B;wBAC3B,mCAAmC;wBACnC,6BAA6B;wBAC7B,0BAA0B;wBAC1B,gCAAgC;wBAChC,4BAA4B;wBAC5B,8BAA8B;wBAC9B,oBAAoB;wBACpB,mBAAmB;wBACnB,6BAA6B;AAC9B;AACF,iBAAA;;;AC3CD;;AAEG;;;;"}
1
+ {"version":3,"file":"theseam-ui-common-shared.mjs","sources":["../../../projects/ui-common/shared/components/password-input-reveal/password-input-reveal.component.ts","../../../projects/ui-common/shared/directives/auto-focus.directive.ts","../../../projects/ui-common/shared/directives/click-outside.directive.ts","../../../projects/ui-common/shared/directives/disable-control.directive.ts","../../../projects/ui-common/shared/directives/elem-resized.directive.ts","../../../projects/ui-common/shared/directives/hover-class-toggle.directive.ts","../../../projects/ui-common/shared/directives/hover-class.directive.ts","../../../projects/ui-common/shared/directives/ng-select-extra.directive.ts","../../../projects/ui-common/shared/directives/ngx-quill-extra.directive.ts","../../../projects/ui-common/shared/pipes/mask-chars.pipe.ts","../../../projects/ui-common/shared/pipes/truncate.pipe.ts","../../../projects/ui-common/shared/shared.module.ts","../../../projects/ui-common/shared/theseam-ui-common-shared.ts"],"sourcesContent":["import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'\nimport { Component, Input } from '@angular/core'\n\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome'\nimport { faEye, faEyeSlash } from '@fortawesome/free-regular-svg-icons'\n\n@Component({\n selector: 'seam-password-input-reveal',\n template: `\n <fa-icon [icon]=\"passwordVisible ? faEyeSlash : faEye\" class=\"password-reveal-icon\" (click)=\"revealPassword()\"></fa-icon>\n `,\n styles: [`\n :host {\n display: flex;\n align-items: center;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 30px;\n transform: translateZ(0);\n z-index: 50;\n }\n\n :host fa-icon {\n opacity: 1;\n color: #bababa;\n /* margin-top: 3px; */ /* Not needed now? */\n cursor: pointer;\n }\n\n :host fa-icon ::ng-deep .svg-inline--fa {\n vertical-align: middle;\n }\n `],\n imports: [\n FontAwesomeModule,\n ],\n})\nexport class TheSeamPasswordInputRevealComponent {\n static ngAcceptInputType_passwordVisible: BooleanInput\n\n readonly faEye = faEye\n readonly faEyeSlash = faEyeSlash\n\n @Input()\n get inputRef(): HTMLInputElement | undefined | null { return this._passwordInput }\n set inputRef(value: HTMLInputElement | undefined | null) {\n this._passwordInput = value\n this.updateRevealState()\n if (this._passwordInput) {\n this._passwordInput.style.paddingRight = '40px'\n this._passwordInput.classList.add('no-native-eye')\n }\n }\n private _passwordInput: HTMLInputElement | undefined | null\n\n @Input()\n get passwordVisible() { return this._passwordVisible }\n set passwordVisible(value: boolean) {\n this._passwordVisible = coerceBooleanProperty(value)\n this.updateRevealState()\n }\n public _passwordVisible = false\n\n public updateRevealState(): void {\n if (this._passwordInput) {\n this._passwordInput.type = this.passwordVisible ? 'text' : 'password'\n }\n }\n\n public revealPassword(): void {\n this.passwordVisible = !this.passwordVisible\n }\n\n}\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'\nimport { Directive, ElementRef, inject, Input, OnInit } from '@angular/core'\n\nimport { getClosestModal, Modal, ModalRef } from '@theseam/ui-common/modal'\n\n/**\n * Directive that will focus the element when initialized.\n *\n * If the element is inside a modal, it will wait until the modal is opened before focusing.\n *\n * If the element will be initialized multiple times or while a form is being filled out\n * don't use this directive.\n *\n * Usage:\n * ```html\n * <input type=\"text\" seamAutoFocus />\n * ```\n */\n@Directive({\n selector: '[seamAutoFocus]',\n exportAs: 'seamAutoFocus',\n})\nexport class TheSeamAutoFocusDirective implements OnInit {\n static ngAcceptInputType_seamAutoFocus: BooleanInput\n\n private readonly _elementRef = inject(ElementRef<HTMLElement>)\n private readonly _modal = inject(Modal, { optional: true })\n private readonly _modalRef = inject(ModalRef, { optional: true })\n\n private _focus = true\n\n public modalRef: ModalRef<any> | undefined | null = this._modalRef\n\n @Input()\n set seamAutoFocus(condition: boolean) {\n this._focus = coerceBooleanProperty(condition) !== false\n }\n\n ngOnInit() {\n if (!this.modalRef && this._modal) {\n // When this directive is included in a dialog via TemplateRef (rather than being\n // in a Component), the DialogRef isn't available via injection because embedded\n // views cannot be given a custom injector. Instead, we look up the DialogRef by\n // ID. This must occur in `onInit`, as the ID binding for the dialog container won't\n // be resolved at constructor time.\n this.modalRef = getClosestModal(this._elementRef, this._modal.openDialogs)\n }\n\n if (!this.modalRef) {\n if (this._focus) {\n setTimeout(() => { this.focus() })\n }\n } else {\n this.modalRef.afterOpened().subscribe(() => {\n setTimeout(() => { this.focus() })\n })\n }\n }\n\n public focus() {\n this._elementRef.nativeElement.focus()\n }\n}\n","import { Directive, ElementRef, EventEmitter, HostListener, inject, Input, Output } from '@angular/core'\n\n@Directive({\n selector: '[seamClickOutside]',\n exportAs: 'seamClickOutside',\n})\nexport class TheSeamClickOutsideDirective {\n\n private readonly _elementRef = inject(ElementRef<HTMLElement>)\n\n @Input()\n get seamClickOutsideActive(): boolean {\n return this._active\n }\n set seamClickOutsideActive(value: boolean) {\n if (this._active === value) { return }\n\n if (value) {\n // `setTimeout` is used to avoid the click event triggering when the value\n // changes if the value was changed with a click.\n setTimeout(() => { this._active = value })\n } else {\n this._active = value\n }\n }\n private _active = true\n\n @Output() seamClickOutside = new EventEmitter<MouseEvent>()\n\n // NOTE: This should probably be changed from a `HostListener` to allow the\n // subscription to be unsubscribed.\n @HostListener('document:click', ['$event'])\n public onDocumentClick(event: MouseEvent): void {\n if (this._active) {\n const targetElement = event.target as HTMLElement\n // Check if the click was outside the element\n if (targetElement && !this._elementRef.nativeElement.contains(targetElement)) {\n this.seamClickOutside.emit(event)\n }\n }\n }\n\n}\n","import { Directive, inject, Input } from '@angular/core'\nimport { NgControl } from '@angular/forms'\n\n// Source: https://netbasal.com/disabling-form-controls-when-working-with-reactive-forms-in-angular-549dd7b42110\n\n@Directive({\n selector: '[seamDisableControl]',\n exportAs: 'seamDisableControl',\n})\nexport class TheSeamDisableControlDirective {\n\n private readonly _ngControl = inject(NgControl)\n\n @Input() set seamDisableControl(condition: boolean) {\n const action = condition ? 'disable' : 'enable'\n const control = this._ngControl.control\n if (control) {\n control[action]()\n }\n }\n\n}\n","import { AfterViewInit, Directive, ElementRef, EventEmitter, inject, OnDestroy, Output } from '@angular/core'\n\nimport { ResizeSensor } from 'css-element-queries'\n\nexport interface TheSeamElementResizedEvent {\n element: HTMLElement\n size: { width: number, height: number }\n}\n\n@Directive({\n selector: '[seamElemResized]',\n exportAs: 'seamElemResized',\n})\nexport class TheSeamElemResizedDirective implements OnDestroy, AfterViewInit {\n\n private readonly _elementRef = inject(ElementRef<HTMLElement>)\n\n @Output() seamElemResized = new EventEmitter<TheSeamElementResizedEvent>()\n\n sensor?: ResizeSensor\n\n ngAfterViewInit() {\n this.sensor = new ResizeSensor(this._elementRef.nativeElement, event => {\n this.seamElemResized.emit({ element: this._elementRef.nativeElement, size: event })\n })\n }\n\n ngOnDestroy() {\n this.sensor?.detach()\n }\n\n}\n","import { Directive, ElementRef, HostListener, inject, Input } from '@angular/core'\n\ndeclare type _PointerEvent = PointerEvent | PointerEvent\n\nexport interface TheSeamHoverClassToggleRecord {\n default: string\n hover: string\n}\n\n/**\n * Don't use this directive unless there is a reason not to use css `:hover`,\n * because the accuracy of detecting the hover is not as good. If an element is\n * moved while the mouse is idle the hover class will remain until the mouse\n * enters and leaves again.\n *\n * I have tried multiple ways of detecting the mouse no longer hovering, but all\n * have introduced a slight performance issue that just builds for each element\n * containing this directive.\n */\n@Directive({\n selector: '[seamHoverClassToggle]',\n exportAs: 'seamHoverClassToggle',\n})\nexport class TheSeamHoverClassToggleDirective {\n\n private readonly _elementRef = inject(ElementRef<HTMLElement>)\n\n private _hovered = false\n private _defaultClasses: string[] = []\n private _hoverClasses: string[] = []\n\n @HostListener('mouseover', ['$event']) onMouseOver($event: MouseEvent) {\n this._setHovered(true)\n }\n\n @HostListener('mouseout', ['$event']) onMouseOut($event: MouseEvent) {\n this._setHovered(false)\n }\n\n @HostListener('pointerover', ['$event']) onPointerOver($event: _PointerEvent) {\n this._setHovered(true)\n }\n\n @HostListener('pointerout', ['$event']) onPointerOut($event: _PointerEvent) {\n this._setHovered(false)\n }\n\n @Input()\n set seamHoverClassToggle(value: TheSeamHoverClassToggleRecord) {\n if (value) {\n if (value.default) {\n this._defaultClasses = value.default.split(' ').filter(c => c.length > 0)\n }\n if (value.hover) {\n this._hoverClasses = value.hover.split(' ').filter(c => c.length > 0)\n }\n }\n\n this._hoverClasses = this._hoverClasses.filter(v => !this._defaultClasses.find(_v => _v === v))\n\n this._update()\n }\n\n private _update(): void {\n for (const c of this._defaultClasses) {\n this._hovered ? this._removeClass(c) : this._addClass(c)\n }\n for (const c of this._hoverClasses) {\n this._hovered ? this._addClass(c) : this._removeClass(c)\n }\n }\n\n private _setHovered(hovered: boolean) {\n const doUpdate = this._hovered !== hovered\n this._hovered = hovered\n if (doUpdate) {\n this._update()\n }\n }\n\n private _addClass(c: string): void {\n this._elementRef.nativeElement.classList.add(c)\n }\n\n public _removeClass(c: string): void {\n this._elementRef.nativeElement.classList.remove(c)\n }\n\n}\n","import { Directive, ElementRef, HostListener, inject, Input } from '@angular/core'\n\ndeclare type _PointerEvent = PointerEvent | PointerEvent\n\n/**\n * Changes a css class on mouse pointer hover.\n *\n * NOTE: Only use this if css `:hover` can't be used, because css is more\n * accurate and better performing.\n *\n * NOTE: Don't use this directive unless there is a reason not to use css\n * `:hover`, because the accuracy of detecting the hover is not as good. If an\n * element is moved while the mouse is idle the hover class will remain until\n * the mouse enters and leaves again.\n *\n * NOTE: I have tried multiple ways of detecting the mouse no longer hovering,\n * but all have introduced a slight performance issue that just builds for each\n * element containing this directive.\n */\n@Directive({\n selector: '[seamHoverClass]',\n exportAs: 'seamHoverClass',\n})\nexport class TheSeamHoverClassDirective {\n\n private readonly _elementRef = inject(ElementRef<HTMLElement>)\n\n private _hovered = false\n private _classes: string[] = []\n\n @HostListener('mouseover', ['$event']) onMouseOver($event: MouseEvent) {\n this._setHovered(true)\n }\n\n @HostListener('mouseout', ['$event']) onMouseOut($event: MouseEvent) {\n this._setHovered(false)\n }\n\n @HostListener('pointerover', ['$event']) onPointerOver($event: _PointerEvent) {\n this._setHovered(true)\n }\n\n @HostListener('pointerout', ['$event']) onPointerOut($event: _PointerEvent) {\n this._setHovered(false)\n }\n\n @Input()\n set seamHoverClass(classList: string) {\n const newClasses = classList.split(' ').filter(c => c.length > 0)\n for (const c of this._classes) {\n if (newClasses.indexOf(c) !== 0) {\n this._removeClass(c)\n }\n }\n this._classes = newClasses\n this._update()\n }\n\n private _update(): void {\n for (const c of this._classes) {\n this._hovered ? this._addClass(c) : this._removeClass(c)\n }\n }\n\n private _setHovered(hovered: boolean) {\n const doUpdate = this._hovered !== hovered\n this._hovered = hovered\n if (doUpdate) {\n this._update()\n }\n }\n\n private _addClass(c: string): void {\n this._elementRef.nativeElement.classList.add(c)\n }\n\n public _removeClass(c: string): void {\n this._elementRef.nativeElement.classList.remove(c)\n }\n\n}\n","import {\n AfterViewChecked,\n Directive,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n inject,\n NgZone,\n OnDestroy,\n OnInit,\n} from '@angular/core'\nimport { NgControl } from '@angular/forms'\nimport { Subject, Subscription } from 'rxjs'\nimport { filter, takeUntil } from 'rxjs/operators'\n\nimport { NgOption, NgSelectComponent } from '@ng-select/ng-select'\n// import { ResizeSensor } from 'css-element-queries'\n\n// import { TheSeamElementResizedEvent } from './elem-resized.directive'\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: 'ng-select',\n exportAs: 'seamNgSelectExtra',\n})\nexport class TheSeamNgSelectExtraDirective implements OnInit, AfterViewChecked, OnDestroy {\n\n private readonly _elementRef = inject(ElementRef<HTMLElement>)\n private readonly _ngSelect = inject(NgSelectComponent)\n private readonly _ngControl = inject<NgControl | null>(NgControl, { optional: true, self: true })\n\n /**\n * Set the tab index to `-1` to allow the root element of the ng-select\n * component to receive `focus` event from javascript, but not get focused by\n * keyboard navigation.\n */\n @HostBinding('attr.tabIndex')\n get _tabIndex() { return this._ngSelect.disabled() ? undefined : -1 }\n\n /**\n * Listening for focus event on root of component to allow javascript\n * `focus()` function to trigger the components focus.\n */\n @HostListener('focus', ['$event']) onFocus($event: FocusEvent) {\n const target = $event.target as HTMLElement\n if (target === this._elementRef.nativeElement && !this._ngSelect.disabled()) {\n this._ngSelect.focus()\n }\n }\n\n @HostBinding('class.is-invalid') get _isInvalid() {\n return this._ngControl ? this._ngControl.invalid && (this._ngControl.dirty || this._ngControl.touched) : false\n }\n\n @HostBinding('class.ng-empty-string-value') get _isEmptyStringValue() {\n return this._ngControl ? this._ngControl.value === '' : false\n }\n\n ngOnInit() {\n // this._ngSelect.focusEvent\n // .subscribe(v => this._enableKeyPressWorkaround())\n\n // this._ngSelect.blurEvent\n // .subscribe(v => this._disableKeyPressWorkaround())\n\n window.addEventListener('scroll', this._onScroll, true)\n\n // When the input is allowed to change its height the position doesn't update itself.\n // this._resizedEvent.pipe(\n // auditTime(30)\n // ).subscribe(event => {\n // if (this._elementRef && this._elementRef.nativeElement) {\n // if (this._elementRef.nativeElement.classList.contains('ng-select-value-grow-h')) {\n // if (this._ngSelect.isOpen && this._ngSelect.dropdownPanel) {\n // this._ngSelect.dropdownPanel.updateDropdownPosition()\n // }\n // } else {\n // this._elementRef.nativeElement.classList.remove('ng-select-value-grow-h')\n // }\n // }\n // })\n\n // this._patch_ngSelect_open()\n }\n\n ngOnDestroy() {\n // this._resizeSensor?.detach()\n\n window.removeEventListener('scroll', this._onScroll, true)\n\n // this._ngUnsubscribe.next(undefined)\n // this._ngUnsubscribe.complete()\n }\n\n ngAfterViewChecked() {\n // const dropPanel = this._ngSelect.dropdownPanel() as any\n // if (dropPanel) {\n // if (this._checkMarked) {\n // if (dropPanel && this._markedItem !== null) {\n // if (this._markedItem.index !== dropPanel.markedItem.index) {\n // dropPanel.scrollTo(dropPanel.markedItem)\n // }\n // }\n // }\n // }\n // this._checkMarked = false\n\n // this._resizeSensor = new ResizeSensor(this._elementRef.nativeElement, event => {\n // this._resizedEvent.emit({ element: this._elementRef.nativeElement, size: event })\n // })\n }\n\n private _onScroll = (event: any) => {\n if (this._ngSelect && this._ngSelect.isOpen()) {\n const isScrollingInScrollHost = (event.target.className as string).indexOf('ng-dropdown-panel-items') !== -1\n const isInSensor = (event.target.className as string).indexOf('resize-sensor-shrink') !== -1 ||\n (event.target.className as string).indexOf('os-resize-observer-host') !== -1\n if (isScrollingInScrollHost || isInSensor) { return }\n this._ngSelect.close()\n }\n }\n\n /**\n * Temp fix for: https://github.com/ng-select/ng-select/issues/1122\n */\n // private _patch_ngSelect_open() {\n // const original = this._ngSelect.open\n // const _self = this\n // this._ngSelect.open = function() {\n // original.apply(this, arguments)\n // _self._patch_ngSelectDropdownPanel_updateDropdownPosition()\n // }\n // }\n\n /** Should ONLY be called by `_patch_ngSelect_open`. */\n // private _patch_ngSelectDropdownPanel_updateDropdownPosition() {\n // if (!this._ngSelect.dropdownPanel) { return }\n // const drop: any = this._ngSelect.dropdownPanel\n // // Only needed once, to update the position before the timeout in\n // // `updateDropdownPosition()`. So, using this variable to check if I already called\n // // `_updateAppendedDropdownPosition()`.\n // if (!drop.__libPatched) {\n // drop.__libPatched = 'patched'\n // const original = drop.updateDropdownPosition\n // const _self = this\n // drop.updateDropdownPosition = function() {\n // original.apply(this, arguments)\n // if (!!_self._ngSelect.appendTo) {\n // drop._updateAppendedDropdownPosition()\n // }\n // }\n // }\n // }\n\n // private _enableKeyPressWorkaround() {\n // if (this._keyPressWorkaroundSub) { return }\n // const _ngSelect = this._ngSelect as any\n\n // this._keyPressWorkaroundSub = _ngSelect._keyPress$\n // .pipe(takeUntil(this._ngUnsubscribe))\n // .pipe(filter(() => !this._ngSelect.searchable()))\n // .subscribe(() => {\n // this._ngZone.runOutsideAngular(() => {\n // window.requestAnimationFrame(() => {\n // if (this._ngSelect.dropdownPanel()) {\n // this._markedItem = this._ngSelect.dropdownPanel().markedItem()\n // }\n // this._checkMarked = true\n // })\n // })\n // })\n // }\n\n // private _disableKeyPressWorkaround() {\n // if (this._keyPressWorkaroundSub) {\n // this._keyPressWorkaroundSub.unsubscribe()\n // this._keyPressWorkaroundSub = null\n // }\n // }\n\n}\n","import { coerceNumberProperty } from '@angular/cdk/coercion'\nimport { AfterViewInit, Directive, ElementRef, HostBinding, inject, Input, OnDestroy } from '@angular/core'\nimport { fromEvent, Subject } from 'rxjs'\nimport { filter, takeUntil, tap } from 'rxjs/operators'\n\nimport { QuillEditorComponent } from 'ngx-quill'\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: 'quill-editor',\n exportAs: 'seamNgxQuillExtra',\n})\nexport class TheSeamNgxQuillExtraDirective implements OnDestroy, AfterViewInit {\n\n private readonly _elementRef: ElementRef<HTMLElement> = inject(ElementRef<HTMLElement>)\n private readonly _quillEditor: QuillEditorComponent = inject(QuillEditorComponent)\n\n private readonly _ngUnsubscribe = new Subject<void>()\n\n private _tabIndex = -1\n\n /**\n * Set the tab index to `-1` to allow the root element of the\n * component to receive `focus` event from javascript, but not get focused by\n * keyboard navigation.\n */\n @Input()\n set tabIndex(value: number) { this._tabIndex = coerceNumberProperty(value) }\n get tabIndex(): number { return this._tabIndex }\n\n @HostBinding('attr.tabindex')\n get _attrTabIndex() { return this._quillEditor.disabled ? -1 : (this.tabIndex || 0) }\n\n ngOnDestroy() {\n this._ngUnsubscribe.next(undefined)\n this._ngUnsubscribe.complete()\n }\n\n ngAfterViewInit() {\n const parent = this._getParentElementForLabelFocusIssue()\n if (parent) {\n // NOTE: This is a hack to avoid an issue letting a label with \"for\"\n // attribute focus the control.\n fromEvent(parent, 'click').pipe(\n takeUntil(this._ngUnsubscribe),\n filter(e => (e.target as HTMLElement)?.getAttribute('for') === this._elementRef.nativeElement.id),\n tap(() => this._quillEditor.quillEditor.focus())\n ).subscribe()\n }\n }\n\n private _getParentElementForLabelFocusIssue(): HTMLElement | undefined {\n const findElem = (elem: HTMLElement): any => {\n if (elem.nodeName.toLowerCase() === 'seam-form-field') {\n return elem\n }\n\n if (elem.parentElement) {\n return findElem(elem.parentElement)\n }\n\n return elem\n }\n\n return findElem(this._elementRef.nativeElement)\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core'\n\nimport { padEnd, padStart } from '@theseam/ui-common/utils'\n\n@Pipe({\n name: 'maskChars',\n})\nexport class TheSeamMaskCharsPipe implements PipeTransform {\n\n transform(value: string, replacementChar: string = '*', ignoreCount: number = 0, ignoreFrom: 'left' | 'right' = 'right'): string {\n if (ignoreFrom === 'right') {\n const s = value || ''\n return padStart(s.substring(s.length - ignoreCount, s.length), s.length, replacementChar)\n } else if (ignoreFrom === 'left') {\n const s = value || ''\n return padEnd(s.substring(0, ignoreCount), s.length, replacementChar)\n }\n\n return value\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core'\n\n@Pipe({\n name: 'truncate',\n})\nexport class TheSeamTruncatePipe implements PipeTransform {\n\n transform(value: string, length: number = 30, appendEllipsis: boolean = true): string {\n let val = value\n\n if (value && typeof value === 'string' && value.length > length) {\n val = value.substr(0, length)\n if (appendEllipsis) {\n val += '...'\n }\n }\n\n return val\n }\n\n}\n","import { NgModule } from '@angular/core'\n\nimport { TheSeamAutoFocusDirective } from './directives/auto-focus.directive'\nimport { TheSeamClickOutsideDirective } from './directives/click-outside.directive'\nimport { TheSeamDisableControlDirective } from './directives/disable-control.directive'\nimport { TheSeamElemResizedDirective } from './directives/elem-resized.directive'\nimport { TheSeamHoverClassToggleDirective } from './directives/hover-class-toggle.directive'\nimport { TheSeamHoverClassDirective } from './directives/hover-class.directive'\nimport { TheSeamNgSelectExtraDirective } from './directives/ng-select-extra.directive'\nimport { TheSeamNgxQuillExtraDirective } from './directives/ngx-quill-extra.directive'\n\nimport { TheSeamMaskCharsPipe } from './pipes/mask-chars.pipe'\nimport { TheSeamTruncatePipe } from './pipes/truncate.pipe'\n\nimport { TheSeamPasswordInputRevealComponent } from './components/password-input-reveal/password-input-reveal.component'\n\n@NgModule({\n imports: [\n TheSeamAutoFocusDirective,\n TheSeamElemResizedDirective,\n TheSeamHoverClassToggleDirective,\n TheSeamNgSelectExtraDirective,\n TheSeamHoverClassDirective,\n TheSeamClickOutsideDirective,\n TheSeamDisableControlDirective,\n TheSeamNgxQuillExtraDirective,\n TheSeamMaskCharsPipe,\n TheSeamTruncatePipe,\n TheSeamPasswordInputRevealComponent,\n ],\n exports: [\n TheSeamAutoFocusDirective,\n TheSeamElemResizedDirective,\n TheSeamPasswordInputRevealComponent,\n TheSeamNgSelectExtraDirective,\n TheSeamHoverClassDirective,\n TheSeamHoverClassToggleDirective,\n TheSeamClickOutsideDirective,\n TheSeamDisableControlDirective,\n TheSeamMaskCharsPipe,\n TheSeamTruncatePipe,\n TheSeamNgxQuillExtraDirective,\n ]\n})\nexport class TheSeamSharedModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAuCa,mCAAmC,CAAA;IAC9C,OAAO,iCAAiC;IAE/B,KAAK,GAAG,KAAK;IACb,UAAU,GAAG,UAAU;IAEhC,IACI,QAAQ,KAA0C,OAAO,IAAI,CAAC,cAAc,CAAA,CAAC;IACjF,IAAI,QAAQ,CAAC,KAA0C,EAAA;AACrD,QAAA,IAAI,CAAC,cAAc,GAAG,KAAK;QAC3B,IAAI,CAAC,iBAAiB,EAAE;AACxB,QAAA,IAAI,IAAI,CAAC,cAAc,EAAE;YACvB,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,GAAG,MAAM;YAC/C,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC;QACpD;IACF;AACQ,IAAA,cAAc;IAEtB,IACI,eAAe,KAAK,OAAO,IA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