@spicainternational/ngx-sds-components 2.32.1 → 2.33.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 (57) hide show
  1. package/esm2020/public-api.mjs +3 -1
  2. package/esm2020/src/lib/date-picker/date-picker.component.mjs +8 -5
  3. package/esm2020/src/lib/highlight-text/directives/highlight-text.directive.mjs +60 -0
  4. package/esm2020/src/lib/highlight-text/directives/index.mjs +2 -0
  5. package/esm2020/src/lib/highlight-text/highlight-text.module.mjs +31 -0
  6. package/esm2020/src/lib/highlight-text/pipes/highlight-text.pipe.mjs +29 -0
  7. package/esm2020/src/lib/highlight-text/pipes/index.mjs +2 -0
  8. package/esm2020/src/lib/highlight-text/public-api.mjs +4 -0
  9. package/esm2020/src/lib/highlight-text/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs +5 -0
  10. package/esm2020/src/lib/highlight-text/utils/highlight-text.utils.mjs +97 -0
  11. package/esm2020/src/lib/highlight-text/utils/index.mjs +2 -0
  12. package/esm2020/src/lib/message/message.component.mjs +41 -0
  13. package/esm2020/src/lib/message/message.module.mjs +30 -0
  14. package/esm2020/src/lib/message/public-api.mjs +3 -0
  15. package/esm2020/src/lib/message/spicainternational-ngx-sds-components-src-lib-message.mjs +5 -0
  16. package/esm2020/src/lib/modal/dialog/dialog.component.mjs +53 -5
  17. package/esm2020/src/lib/modal/modal.component.mjs +19 -5
  18. package/fesm2015/spicainternational-ngx-sds-components-src-lib-date-picker.mjs +7 -4
  19. package/fesm2015/spicainternational-ngx-sds-components-src-lib-date-picker.mjs.map +1 -1
  20. package/fesm2015/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs +217 -0
  21. package/fesm2015/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs.map +1 -0
  22. package/fesm2015/spicainternational-ngx-sds-components-src-lib-message.mjs +75 -0
  23. package/fesm2015/spicainternational-ngx-sds-components-src-lib-message.mjs.map +1 -0
  24. package/fesm2015/spicainternational-ngx-sds-components-src-lib-modal.mjs +71 -7
  25. package/fesm2015/spicainternational-ngx-sds-components-src-lib-modal.mjs.map +1 -1
  26. package/fesm2015/spicainternational-ngx-sds-components.mjs +2 -0
  27. package/fesm2015/spicainternational-ngx-sds-components.mjs.map +1 -1
  28. package/fesm2020/spicainternational-ngx-sds-components-src-lib-date-picker.mjs +7 -4
  29. package/fesm2020/spicainternational-ngx-sds-components-src-lib-date-picker.mjs.map +1 -1
  30. package/fesm2020/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs +214 -0
  31. package/fesm2020/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs.map +1 -0
  32. package/fesm2020/spicainternational-ngx-sds-components-src-lib-message.mjs +75 -0
  33. package/fesm2020/spicainternational-ngx-sds-components-src-lib-message.mjs.map +1 -0
  34. package/fesm2020/spicainternational-ngx-sds-components-src-lib-modal.mjs +69 -7
  35. package/fesm2020/spicainternational-ngx-sds-components-src-lib-modal.mjs.map +1 -1
  36. package/fesm2020/spicainternational-ngx-sds-components.mjs +2 -0
  37. package/fesm2020/spicainternational-ngx-sds-components.mjs.map +1 -1
  38. package/package.json +17 -1
  39. package/public-api.d.ts +2 -0
  40. package/src/lib/date-picker/date-picker.component.d.ts +2 -1
  41. package/src/lib/highlight-text/directives/highlight-text.directive.d.ts +33 -0
  42. package/src/lib/highlight-text/directives/index.d.ts +1 -0
  43. package/src/lib/highlight-text/highlight-text.module.d.ts +9 -0
  44. package/src/lib/highlight-text/package.json +10 -0
  45. package/src/lib/highlight-text/pipes/highlight-text.pipe.d.ts +11 -0
  46. package/src/lib/highlight-text/pipes/index.d.ts +1 -0
  47. package/src/lib/highlight-text/public-api.d.ts +3 -0
  48. package/src/lib/highlight-text/spicainternational-ngx-sds-components-src-lib-highlight-text.d.ts +5 -0
  49. package/src/lib/highlight-text/utils/highlight-text.utils.d.ts +23 -0
  50. package/src/lib/highlight-text/utils/index.d.ts +1 -0
  51. package/src/lib/message/message.component.d.ts +18 -0
  52. package/src/lib/message/message.module.d.ts +9 -0
  53. package/src/lib/message/package.json +10 -0
  54. package/src/lib/message/public-api.d.ts +2 -0
  55. package/src/lib/message/spicainternational-ngx-sds-components-src-lib-message.d.ts +5 -0
  56. package/src/lib/modal/dialog/dialog.component.d.ts +9 -1
  57. package/src/lib/modal/modal.component.d.ts +5 -1
@@ -1 +1 @@
1
- {"version":3,"file":"spicainternational-ngx-sds-components-src-lib-modal.mjs","sources":["../../../projects/ngx-sds-components/src/lib/modal/modal.component.ts","../../../projects/ngx-sds-components/src/lib/modal/modal.component.html","../../../projects/ngx-sds-components/src/lib/modal/dialog/dialog.component.ts","../../../projects/ngx-sds-components/src/lib/modal/dialog/dialog.component.html","../../../projects/ngx-sds-components/src/lib/modal/modal.module.ts","../../../projects/ngx-sds-components/src/lib/modal/spicainternational-ngx-sds-components-src-lib-modal.ts"],"sourcesContent":["import {\r\n Component,\r\n ElementRef,\r\n Input,\r\n OnInit,\r\n Output,\r\n ViewChild,\r\n EventEmitter,\r\n ContentChild,\r\n HostListener,\r\n} from '@angular/core';\r\nimport { faXmark } from '@fortawesome/pro-regular-svg-icons';\r\nimport { ModalTranslations } from './modal.model';\r\n\r\n@Component({\r\n selector: 'sds-modal',\r\n templateUrl: './modal.component.html',\r\n styleUrls: ['./modal.component.scss'],\r\n})\r\nexport class SdsModalComponent implements OnInit {\r\n @ContentChild('header') headerContent: ElementRef = { nativeElement: undefined };\r\n\r\n @Input() public modalTitle?: string;\r\n @Input() public showHeader: boolean = true;\r\n @Input() public showFooter: boolean = true;\r\n @Input() public size: 'sm' | 'md' | 'lg' | 'xl' = 'md';\r\n @Input() public modalDialogId?: string;\r\n @Input() public showCloseButton: boolean = true;\r\n\r\n @Input() public translations: ModalTranslations;\r\n @Input() public isScrollable = true;\r\n @Input() public closeOnEscape = false;\r\n\r\n @Output() public modalOpen: EventEmitter<void> = new EventEmitter<void>();\r\n @Output() public modalClose: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n @Output() public closeClick: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n public closeIcon = faXmark;\r\n\r\n @ViewChild('modal', { static: false }) private _modal: ElementRef | undefined;\r\n \r\n\r\n constructor() {\r\n this.translations = {\r\n close: undefined\r\n }\r\n }\r\n\r\n ngOnInit(): void {}\r\n\r\n public open(): void {\r\n if (this._modal != undefined) {\r\n this._modal.nativeElement.style.display = 'block';\r\n this._modal.nativeElement.focus();\r\n this.modalOpen.emit();\r\n }\r\n }\r\n\r\n public close(): void {\r\n if (this._modal != undefined) {\r\n this._modal.nativeElement.style.display = 'none';\r\n this.modalClose.emit();\r\n }\r\n }\r\n\r\n public onCloseButtonClick(){\r\n this.closeClick.emit();\r\n this.close();\r\n }\r\n\r\n onKeydown(event: KeyboardEvent){\r\n if (\r\n event.code === 'Escape' &&\r\n this. closeOnEscape && \r\n this._modal != undefined && \r\n this._modal.nativeElement.style.display === 'block'){\r\n // console.log(`${this.constructor.name} got event: ${event.code}`);\r\n this.close();\r\n }\r\n }\r\n}\r\n","<div #modal class=\"modal\" (keydown)=\"onKeydown($event)\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\">\r\n <div\r\n class=\"modal-dialog modal-dialog-centered\"\r\n [class.modal-dialog-scrollable] = \"isScrollable\"\r\n [id]=\"modalDialogId\"\r\n [ngClass]=\"'modal-' + size\"\r\n role=\"document\"\r\n >\r\n <div class=\"modal-content\">\r\n\r\n <div *ngIf=\"showHeader && headerContent\" class=\"modal-header\">\r\n <ng-content select='header'></ng-content>\r\n </div> \r\n\r\n <div *ngIf=\"showHeader && !headerContent\" class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{modalTitle}}</h5>\r\n <button \r\n *ngIf=\"showCloseButton\"\r\n type=\"button\" \r\n class=\"close rounded\" \r\n [title]=\"translations.close ?? ''\"\r\n (click)=\"onCloseButtonClick()\">\r\n <fa-icon [icon]=\"closeIcon\"></fa-icon>\r\n </button>\r\n </div>\r\n\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <div *ngIf=\"showFooter\" class=\"modal-footer\">\r\n <ng-content select=\"footer\"></ng-content>\r\n </div> \r\n </div>\r\n </div>\r\n</div>","import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges, ViewChild } from '@angular/core';\r\nimport { SdsModalComponent } from '../modal.component';\r\nimport { ButtonType } from './dialog.types';\r\n\r\ntype modalButton = 'primary' | 'secondary' | 'close';\r\n\r\n@Component({\r\n selector: 'sds-dialog',\r\n templateUrl: './dialog.component.html',\r\n styleUrls: ['./dialog.component.scss'],\r\n})\r\nexport class SdsDialogComponent implements OnInit {\r\n @Input() public title: string = '';\r\n @Input() public closeText?: string = 'close';\r\n @Input() public size: 'sm' | 'md' | 'lg' | 'xl' = 'md';\r\n\r\n @Input() public primaryButtonText: string = 'Ok';\r\n @Input() public primaryButtonClass: string = 'btn-primary';\r\n @Input() public primaryButtonType: ButtonType = 'button';\r\n \r\n @Input() public secondaryButtonText: string = 'Cancel';\r\n @Input() public secondaryButtonClass: string = 'btn-secondary';\r\n @Input() public secondaryButtonType: ButtonType = 'button';\r\n\r\n @Input() public showHeader: boolean = true;\r\n @Input() public showCloseButton: boolean = true;\r\n @Input() public showPrimaryButton: boolean = true;\r\n @Input() public showSecondaryButton: boolean = true;\r\n\r\n @Output() public dialogOpen: EventEmitter<void> = new EventEmitter<void>();\r\n @Output() public dialogClose: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n @ViewChild('modal', { static: true }) private _modal: SdsModalComponent | undefined;\r\n\r\n private _callback?: Function;\r\n private _callbackData: any;\r\n\r\n constructor() {}\r\n\r\n ngOnInit(): void {}\r\n\r\n public open(callback?: (button: modalButton, data: any) => void, data?: any): void{\r\n this._callback = callback;\r\n this._callbackData = data;\r\n\r\n if (this._modal != undefined) {\r\n this._modal.open();\r\n }\r\n }\r\n\r\n private close(): void {\r\n if (this._modal != undefined) {\r\n this._modal.close();\r\n }\r\n }\r\n\r\n public onSecondaryClick(): void {\r\n if (this._callback) {\r\n this._callback('secondary', this._callbackData);\r\n }\r\n this.close();\r\n }\r\n\r\n public onPrimaryClick(): void {\r\n if (this._callback) {\r\n this._callback('primary', this._callbackData);\r\n }\r\n this.close();\r\n }\r\n\r\n public onCloseClick(): void {\r\n if (this._callback) {\r\n this._callback('close', this._callbackData);\r\n }\r\n }\r\n\r\n public onModalClose(): void {\r\n this.dialogClose.emit();\r\n }\r\n\r\n public onModalOpen(): void {\r\n this.dialogOpen.emit();\r\n } \r\n\r\n}\r\n\r\n\r\n\r\n","<sds-modal\r\n #modal\r\n [modalTitle]=\"title\"\r\n [size]=\"size\"\r\n [showCloseButton]=\"showCloseButton\"\r\n [showHeader]=\"showHeader\"\r\n [translations]=\"{ close: closeText}\"\r\n (closeClick)=\"onCloseClick()\"\r\n (modalClose)=\"onModalClose()\"\r\n (modalOpen)=\"onModalOpen()\"\r\n>\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <ng-container #footer ngProjectAs='footer'>\r\n <button\r\n *ngIf=\"showSecondaryButton\"\r\n class=\"btn\"\r\n [class]=\"secondaryButtonClass\"\r\n (click)=\"onSecondaryClick()\"\r\n >{{secondaryButtonText}}</button>\r\n <button\r\n *ngIf=\"showPrimaryButton\"\r\n class=\"btn\"\r\n [class]=\"primaryButtonClass\"\r\n (click)=\"onPrimaryClick()\"\r\n >{{primaryButtonText}}</button>\r\n </ng-container>\r\n</sds-modal>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SdsModalComponent } from './modal.component';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\nimport { SdsDialogComponent } from './dialog/dialog.component';\r\nimport { A11yModule } from '@angular/cdk/a11y';\r\n\r\n\r\nconst components = [\r\n SdsModalComponent,\r\n SdsDialogComponent\r\n];\r\n\r\n@NgModule({\r\n declarations: [\r\n ...components\r\n ],\r\n imports: [\r\n CommonModule,\r\n A11yModule,\r\n FontAwesomeModule\r\n ],\r\n exports: [\r\n ...components\r\n]\r\n})\r\nexport class SdsModalModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.SdsModalComponent","i2"],"mappings":";;;;;;;;;;MAmBa,iBAAiB,CAAA;AAwB1B,IAAA,WAAA,GAAA;AAvBwB,QAAA,IAAA,CAAA,aAAa,GAAe,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC;QAGjE,IAAU,CAAA,UAAA,GAAY,IAAI,CAAC;QAC3B,IAAU,CAAA,UAAA,GAAY,IAAI,CAAC;QAC3B,IAAI,CAAA,IAAA,GAA8B,IAAI,CAAC;QAEvC,IAAe,CAAA,eAAA,GAAY,IAAI,CAAC;QAGhC,IAAY,CAAA,YAAA,GAAG,IAAI,CAAC;QACpB,IAAa,CAAA,aAAA,GAAG,KAAK,CAAC;AAErB,QAAA,IAAA,CAAA,SAAS,GAAuB,IAAI,YAAY,EAAQ,CAAC;AACzD,QAAA,IAAA,CAAA,UAAU,GAAuB,IAAI,YAAY,EAAQ,CAAC;AAE1D,QAAA,IAAA,CAAA,UAAU,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAEpE,IAAS,CAAA,SAAA,GAAG,OAAO,CAAC;QAMvB,IAAI,CAAC,YAAY,GAAG;AAChB,YAAA,KAAK,EAAE,SAAS;SACnB,CAAA;KACJ;AAED,IAAA,QAAQ,MAAW;IAEZ,IAAI,GAAA;AACP,QAAA,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,EAAE;YAC1B,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;AAClD,YAAA,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;AAClC,YAAA,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;AACzB,SAAA;KACJ;IAEM,KAAK,GAAA;AACR,QAAA,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,EAAE;YAC1B,IAA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A,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,iBAjBvB,iBAAiB;AACjB,QAAA,kBAAkB,aAQlB,YAAY;QACZ,UAAU;AACV,QAAA,iBAAiB,aAXjB,iBAAiB;QACjB,kBAAkB,CAAA,EAAA,CAAA,CAAA;AAgBT,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,EAThB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,UAAU;YACV,iBAAiB;AAClB,SAAA,CAAA,EAAA,CAAA,CAAA;2FAKU,cAAc,EAAA,UAAA,EAAA,CAAA;kBAb1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;AACZ,wBAAA,GAAG,UAAU;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,UAAU;wBACV,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;AACP,wBAAA,GAAG,UAAU;AAChB,qBAAA;AACA,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
1
+ {"version":3,"file":"spicainternational-ngx-sds-components-src-lib-modal.mjs","sources":["../../../projects/ngx-sds-components/src/lib/modal/modal.component.ts","../../../projects/ngx-sds-components/src/lib/modal/modal.component.html","../../../projects/ngx-sds-components/src/lib/modal/dialog/dialog.component.ts","../../../projects/ngx-sds-components/src/lib/modal/dialog/dialog.component.html","../../../projects/ngx-sds-components/src/lib/modal/modal.module.ts","../../../projects/ngx-sds-components/src/lib/modal/spicainternational-ngx-sds-components-src-lib-modal.ts"],"sourcesContent":["import {\r\n Component,\r\n ElementRef,\r\n Input,\r\n OnInit,\r\n Output,\r\n ViewChild,\r\n EventEmitter,\r\n ContentChild\r\n} from '@angular/core';\r\nimport { faXmark } from '@fortawesome/pro-regular-svg-icons';\r\nimport { ModalTranslations } from './modal.model';\r\n\r\n@Component({\r\n selector: 'sds-modal',\r\n templateUrl: './modal.component.html',\r\n styleUrls: ['./modal.component.scss'],\r\n})\r\nexport class SdsModalComponent implements OnInit {\r\n @ContentChild('header') headerContent: ElementRef = { nativeElement: undefined };\r\n\r\n @Input() public modalTitle?: string;\r\n @Input() public showHeader: boolean = true;\r\n @Input() public showFooter: boolean = true;\r\n @Input() public size: 'sm' | 'md' | 'lg' | 'xl' = 'md';\r\n @Input() public modalDialogId?: string;\r\n @Input() public showCloseButton: boolean = true;\r\n @Input() public autoFocusCloseButton: boolean = false;\r\n\r\n @Input() public translations: ModalTranslations;\r\n @Input() public isScrollable = true;\r\n @Input() public closeOnEscape = false;\r\n\r\n @Output() public modalOpen: EventEmitter<void> = new EventEmitter<void>();\r\n @Output() public modalClose: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n @Output() public closeClick: EventEmitter<void> = new EventEmitter<void>();\r\n @Output() public closeEscapeKeypress: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n public closeIcon = faXmark;\r\n\r\n public isOpen: boolean = false;\r\n\r\n @ViewChild('modal', { static: false }) private _modal: ElementRef | undefined;\r\n @ViewChild('closeButton', { static: false }) private _closeButton: ElementRef | undefined;\r\n \r\n\r\n constructor() {\r\n this.translations = {\r\n close: undefined\r\n }\r\n }\r\n\r\n ngOnInit(): void {}\r\n\r\n public open(): void {\r\n if (this._modal != undefined) {\r\n this._modal.nativeElement.style.display = 'block';\r\n this.isOpen = true;\r\n if(this.autoFocusCloseButton)\r\n this._closeButton?.nativeElement.focus();\r\n this.modalOpen.emit();\r\n }\r\n }\r\n\r\n public close(): void {\r\n if (this._modal != undefined) {\r\n this._modal.nativeElement.style.display = 'none';\r\n this.isOpen = false;\r\n this.modalClose.emit();\r\n }\r\n }\r\n\r\n public onCloseButtonClick(){\r\n this.closeClick.emit();\r\n this.close();\r\n }\r\n\r\n onKeydown(event: KeyboardEvent){\r\n if (\r\n event.code === 'Escape' &&\r\n this.closeOnEscape && \r\n this._modal != undefined && \r\n this._modal.nativeElement.style.display === 'block'){\r\n // console.log(`${this.constructor.name} got event: ${event.code}`);\r\n this.closeEscapeKeypress.emit();\r\n this.close();\r\n }\r\n }\r\n}\r\n","<div #modal class=\"modal\" (keydown)=\"onKeydown($event)\" [cdkTrapFocus]=\"isOpen\" [cdkTrapFocusAutoCapture]=\"true\" >\r\n <div\r\n class=\"modal-dialog modal-dialog-centered\"\r\n [class.modal-dialog-scrollable] = \"isScrollable\"\r\n [attr.id]=\"modalDialogId\"\r\n [ngClass]=\"'modal-' + size\"\r\n role=\"document\"\r\n >\r\n <div class=\"modal-content\">\r\n\r\n <div *ngIf=\"showHeader && headerContent\" class=\"modal-header\">\r\n <ng-content select='header'></ng-content>\r\n </div> \r\n\r\n <div *ngIf=\"showHeader && !headerContent\" class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{modalTitle}}</h5>\r\n <button \r\n #closeButton\r\n *ngIf=\"showCloseButton\"\r\n type=\"button\" \r\n class=\"close rounded\" \r\n [title]=\"translations.close ?? ''\"\r\n (click)=\"onCloseButtonClick()\">\r\n <fa-icon [icon]=\"closeIcon\"></fa-icon>\r\n </button>\r\n </div>\r\n\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <div *ngIf=\"showFooter\" class=\"modal-footer\">\r\n <ng-content select=\"footer\"></ng-content>\r\n </div> \r\n </div>\r\n </div>\r\n</div>","import { Component, ElementRef, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges, ViewChild } from '@angular/core';\r\nimport { SdsModalComponent } from '../modal.component';\r\nimport { ButtonType } from './dialog.types';\r\n\r\ntype modalButton = 'primary' | 'secondary' | 'close';\r\n\r\n@Component({\r\n selector: 'sds-dialog',\r\n templateUrl: './dialog.component.html',\r\n styleUrls: ['./dialog.component.scss'],\r\n})\r\nexport class SdsDialogComponent implements OnInit {\r\n @Input() public title: string = '';\r\n @Input() public closeText?: string = 'close';\r\n @Input() public size: 'sm' | 'md' | 'lg' | 'xl' = 'md';\r\n\r\n @Input() public primaryButtonText: string = 'Ok';\r\n @Input() public primaryButtonClass: string = 'btn-primary';\r\n @Input() public primaryButtonType: ButtonType = 'button';\r\n \r\n @Input() public secondaryButtonText: string = 'Cancel'; \r\n @Input() public secondaryButtonClass: string = 'btn-secondary';\r\n @Input() public secondaryButtonType: ButtonType = 'button';\r\n\r\n @Input() public closeOnEscape: boolean = true;\r\n @Input() public showHeader: boolean = true;\r\n @Input() public showCloseButton: boolean = true;\r\n @Input() public showPrimaryButton: boolean = true;\r\n @Input() public showSecondaryButton: boolean = true;\r\n @Input() public autofocusElement: 'primary' | 'secondary' | 'close' | 'content' = 'primary';\r\n\r\n @Input() public modalDialogId?: string;\r\n\r\n\r\n @Output() public dialogOpen: EventEmitter<void> = new EventEmitter<void>();\r\n @Output() public dialogClose: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n @ViewChild('modal', { static: true }) private _modal: SdsModalComponent | undefined;\r\n @ViewChild('content', { read: ElementRef, static: true }) private _content?: ElementRef;\r\n @ViewChild('primaryButton', { read: ElementRef, static: false }) private _primaryButton?: ElementRef;\r\n @ViewChild('secondaryButton', { read: ElementRef, static: false }) private _secondaryButton?: ElementRef;\r\n\r\n private _callback?: Function;\r\n private _callbackData: any;\r\n\r\n public isOpen: boolean = false;\r\n\r\n constructor() {}\r\n\r\n ngOnInit(): void {\r\n if (this.autofocusElement == 'primary' && !this.showPrimaryButton) {\r\n this.autofocusElement = 'secondary';\r\n }\r\n if (this.autofocusElement == 'secondary' && !this.showSecondaryButton) {\r\n this.autofocusElement = 'close';\r\n }\r\n if (this.autofocusElement == 'close' && !this.showCloseButton) {\r\n this.autofocusElement = 'content';\r\n }\r\n }\r\n\r\n public open(callback?: (button: modalButton, data: any) => void, data?: any): void{\r\n this._callback = callback;\r\n this._callbackData = data;\r\n\r\n if (this._modal != undefined) {\r\n this.isOpen = true;\r\n this._modal.open();\r\n }\r\n }\r\n\r\n private close(): void {\r\n if (this._modal != undefined) {\r\n this.isOpen = false;\r\n this._modal.close();\r\n }\r\n }\r\n\r\n public onSecondaryClick(): void {\r\n if (this._callback) {\r\n this._callback('secondary', this._callbackData);\r\n }\r\n this.close();\r\n }\r\n\r\n public onPrimaryClick(): void {\r\n if (this._callback) {\r\n this._callback('primary', this._callbackData);\r\n }\r\n this.close();\r\n }\r\n\r\n public onCloseClick(): void {\r\n if (this._callback) {\r\n this._callback('close', this._callbackData);\r\n }\r\n }\r\n\r\n public onCloseEscapeKeypress(): void {\r\n if (this._callback) {\r\n this._callback('close', this._callbackData);\r\n }\r\n }\r\n\r\n public onModalClose(): void {\r\n this.dialogClose.emit();\r\n }\r\n\r\n public onModalOpen(): void {\r\n this.dialogOpen.emit();\r\n switch (this.autofocusElement) {\r\n case 'primary':\r\n this._primaryButton?.nativeElement.focus();\r\n break;\r\n case 'secondary':\r\n this._secondaryButton?.nativeElement.focus();\r\n break;\r\n case 'content':\r\n this._content?.nativeElement.focus();\r\n break;\r\n default:\r\n break;\r\n }\r\n } \r\n\r\n}\r\n\r\n\r\n\r\n","<sds-modal\r\n #modal\r\n [modalTitle]=\"title\"\r\n [size]=\"size\"\r\n [modalDialogId]=\"modalDialogId\"\r\n [showCloseButton]=\"showCloseButton\"\r\n [showHeader]=\"showHeader\"\r\n [translations]=\"{ close: closeText}\"\r\n [autoFocusCloseButton]=\"autofocusElement === 'close'\"\r\n [closeOnEscape]=\"closeOnEscape\"\r\n (closeClick)=\"onCloseClick()\"\r\n (closeEscapeKeypress)=\"onCloseEscapeKeypress()\"\r\n (modalClose)=\"onModalClose()\"\r\n (modalOpen)=\"onModalOpen()\"\r\n>\r\n\r\n <div #content [attr.tabindex]=\"autofocusElement === 'content' ? 0 : undefined\" >\r\n <ng-content></ng-content>\r\n </div>\r\n <ng-container #footer ngProjectAs='footer'>\r\n <button\r\n #secondaryButton\r\n *ngIf=\"showSecondaryButton\"\r\n class=\"btn\"\r\n [class]=\"secondaryButtonClass\"\r\n (click)=\"onSecondaryClick()\"\r\n >{{secondaryButtonText}}</button>\r\n <button\r\n #primaryButton\r\n *ngIf=\"showPrimaryButton\"\r\n class=\"btn\"\r\n [class]=\"primaryButtonClass\"\r\n (click)=\"onPrimaryClick()\"\r\n >{{primaryButtonText}}</button>\r\n </ng-container>\r\n</sds-modal>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SdsModalComponent } from './modal.component';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\nimport { SdsDialogComponent } from './dialog/dialog.component';\r\nimport { A11yModule } from '@angular/cdk/a11y';\r\n\r\n\r\nconst components = [\r\n SdsModalComponent,\r\n SdsDialogComponent\r\n];\r\n\r\n@NgModule({\r\n declarations: [\r\n ...components\r\n ],\r\n imports: [\r\n CommonModule,\r\n A11yModule,\r\n FontAwesomeModule\r\n ],\r\n exports: [\r\n ...components\r\n]\r\n})\r\nexport class SdsModalModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.SdsModalComponent","i2"],"mappings":";;;;;;;;;;MAkBa,iBAAiB,CAAA;AA6B1B,IAAA,WAAA,GAAA;AA5BwB,QAAA,IAAA,CAAA,aAAa,GAAe,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC;QAGjE,IAAU,CAAA,UAAA,GAAY,IAAI,CAAC;QAC3B,IAAU,CAAA,UAAA,GAAY,IAAI,CAAC;QAC3B,IAAI,CAAA,IAAA,GAA8B,IAAI,CAAC;QAEvC,IAAe,CAAA,eAAA,GAAY,IAAI,CAAC;QAChC,IAAoB,CAAA,oBAAA,GAAY,KAAK,CAAC;QAGtC,IAAY,CAAA,YAAA,GAAG,IAAI,CAAC;QACpB,IAAa,CAAA,aAAA,GAAG,KAAK,CAAC;AAErB,QAAA,IAAA,CAAA,SAAS,GAAuB,IAAI,YAAY,EAAQ,CAAC;AACzD,QAAA,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,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;AACZ,wBAAA,GAAG,UAAU;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,UAAU;wBACV,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;AACP,wBAAA,GAAG,UAAU;AAChB,qBAAA;AACA,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
@@ -8,7 +8,9 @@ export * from '@spicainternational/ngx-sds-components/src/lib/date-picker';
8
8
  export * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';
9
9
  export * from '@spicainternational/ngx-sds-components/src/lib/duration-pipe';
10
10
  export * from '@spicainternational/ngx-sds-components/src/lib/duration-box';
11
+ export * from '@spicainternational/ngx-sds-components/src/lib/highlight-text';
11
12
  export * from '@spicainternational/ngx-sds-components/src/lib/layout';
13
+ export * from '@spicainternational/ngx-sds-components/src/lib/message';
12
14
  export * from '@spicainternational/ngx-sds-components/src/lib/modal';
13
15
  export * from '@spicainternational/ngx-sds-components/src/lib/navigation';
14
16
  export * from '@spicainternational/ngx-sds-components/src/lib/page-header';
@@ -1 +1 @@
1
- {"version":3,"file":"spicainternational-ngx-sds-components.mjs","sources":["../../../projects/ngx-sds-components/src/public-api.ts","../../../projects/ngx-sds-components/src/spicainternational-ngx-sds-components.ts"],"sourcesContent":["/*\r\n * Public API Surface of ngx-sds-components\r\n */\r\n\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/app-switcher';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/avatar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/badge';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/callout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/color-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-pipe';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-box';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/layout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/modal';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/navigation';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/page-header';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/pane';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/quick-info';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/side-bar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/tooltip';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;AAEG;;ACFH;;AAEG"}
1
+ {"version":3,"file":"spicainternational-ngx-sds-components.mjs","sources":["../../../projects/ngx-sds-components/src/public-api.ts","../../../projects/ngx-sds-components/src/spicainternational-ngx-sds-components.ts"],"sourcesContent":["/*\r\n * Public API Surface of ngx-sds-components\r\n */\r\n\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/app-switcher';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/avatar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/badge';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/callout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/color-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-pipe';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-box';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/highlight-text';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/layout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/message';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/modal';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/navigation';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/page-header';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/pane';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/quick-info';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/side-bar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/tooltip';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG;;ACFH;;AAEG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spicainternational/ngx-sds-components",
3
- "version": "2.32.1",
3
+ "version": "2.33.0",
4
4
  "description": "Spica design system angular components.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=13.3.0",
@@ -118,6 +118,14 @@
118
118
  "node": "./fesm2015/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs",
119
119
  "default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs"
120
120
  },
121
+ "./src/lib/highlight-text": {
122
+ "types": "./src/lib/highlight-text/spicainternational-ngx-sds-components-src-lib-highlight-text.d.ts",
123
+ "esm2020": "./esm2020/src/lib/highlight-text/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs",
124
+ "es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs",
125
+ "es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs",
126
+ "node": "./fesm2015/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs",
127
+ "default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs"
128
+ },
121
129
  "./src/lib/layout": {
122
130
  "types": "./src/lib/layout/spicainternational-ngx-sds-components-src-lib-layout.d.ts",
123
131
  "esm2020": "./esm2020/src/lib/layout/spicainternational-ngx-sds-components-src-lib-layout.mjs",
@@ -126,6 +134,14 @@
126
134
  "node": "./fesm2015/spicainternational-ngx-sds-components-src-lib-layout.mjs",
127
135
  "default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-layout.mjs"
128
136
  },
137
+ "./src/lib/message": {
138
+ "types": "./src/lib/message/spicainternational-ngx-sds-components-src-lib-message.d.ts",
139
+ "esm2020": "./esm2020/src/lib/message/spicainternational-ngx-sds-components-src-lib-message.mjs",
140
+ "es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-message.mjs",
141
+ "es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-message.mjs",
142
+ "node": "./fesm2015/spicainternational-ngx-sds-components-src-lib-message.mjs",
143
+ "default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-message.mjs"
144
+ },
129
145
  "./src/lib/modal": {
130
146
  "types": "./src/lib/modal/spicainternational-ngx-sds-components-src-lib-modal.d.ts",
131
147
  "esm2020": "./esm2020/src/lib/modal/spicainternational-ngx-sds-components-src-lib-modal.mjs",
package/public-api.d.ts CHANGED
@@ -8,7 +8,9 @@ export * from '@spicainternational/ngx-sds-components/src/lib/date-picker';
8
8
  export * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';
9
9
  export * from '@spicainternational/ngx-sds-components/src/lib/duration-pipe';
10
10
  export * from '@spicainternational/ngx-sds-components/src/lib/duration-box';
11
+ export * from '@spicainternational/ngx-sds-components/src/lib/highlight-text';
11
12
  export * from '@spicainternational/ngx-sds-components/src/lib/layout';
13
+ export * from '@spicainternational/ngx-sds-components/src/lib/message';
12
14
  export * from '@spicainternational/ngx-sds-components/src/lib/modal';
13
15
  export * from '@spicainternational/ngx-sds-components/src/lib/navigation';
14
16
  export * from '@spicainternational/ngx-sds-components/src/lib/page-header';
@@ -35,6 +35,7 @@ export declare class SdsDatePickerComponent implements OnInit, OnChanges {
35
35
  getNextDateCallback: (currentDate: string | number | Date) => string | number | Date;
36
36
  getPreviousRangeCallback: (currentStartDate: string | number | Date, currentEndDate: string | number | Date) => [string | number | Date, string | number | Date];
37
37
  getNextRangeCallback: (currentStartDate: string | number | Date, currentEndDate: string | number | Date) => [string | number | Date, string | number | Date];
38
+ useCustomDisplayContent: boolean;
38
39
  previousPeriodIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
39
40
  nextPeriodIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
40
41
  calendarIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
@@ -107,5 +108,5 @@ export declare class SdsDatePickerComponent implements OnInit, OnChanges {
107
108
  private formatDate;
108
109
  private generateDateRanges;
109
110
  static ɵfac: i0.ɵɵFactoryDeclaration<SdsDatePickerComponent, never>;
110
- static ɵcmp: i0.ɵɵComponentDeclaration<SdsDatePickerComponent, "sds-date-picker", never, { "selectionKind": "selectionKind"; "dateRangeDefinitions": "dateRangeDefinitions"; "selectedDate": "selectedDate"; "selectedDateStart": "selectedDateStart"; "selectedDateEnd": "selectedDateEnd"; "minDate": "minDate"; "maxDate": "maxDate"; "locales": "locales"; "disabled": "disabled"; "validationError": "validationError"; "isValid": "isValid"; "disabledDates": "disabledDates"; "applyText": "applyText"; "cancelText": "cancelText"; "translations": "translations"; "firstDayOfWeek": "firstDayOfWeek"; "dateRangeDefinitionsWidth": "dateRangeDefinitionsWidth"; "showPreviousAndNextButtons": "showPreviousAndNextButtons"; "width": "width"; "dropdownWrapperClass": "dropdownWrapperClass"; "dropdownWrapperId": "dropdownWrapperId"; "getPreviousDateCallback": "getPreviousDateCallback"; "getNextDateCallback": "getNextDateCallback"; "getPreviousRangeCallback": "getPreviousRangeCallback"; "getNextRangeCallback": "getNextRangeCallback"; }, { "selectedDateChange": "selectedDateChange"; "selectedDateStartChange": "selectedDateStartChange"; "selectedDateEndChange": "selectedDateEndChange"; "periodChange": "periodChange"; }, ["displayContent"], ["display"]>;
111
+ static ɵcmp: i0.ɵɵComponentDeclaration<SdsDatePickerComponent, "sds-date-picker", never, { "selectionKind": "selectionKind"; "dateRangeDefinitions": "dateRangeDefinitions"; "selectedDate": "selectedDate"; "selectedDateStart": "selectedDateStart"; "selectedDateEnd": "selectedDateEnd"; "minDate": "minDate"; "maxDate": "maxDate"; "locales": "locales"; "disabled": "disabled"; "validationError": "validationError"; "isValid": "isValid"; "disabledDates": "disabledDates"; "applyText": "applyText"; "cancelText": "cancelText"; "translations": "translations"; "firstDayOfWeek": "firstDayOfWeek"; "dateRangeDefinitionsWidth": "dateRangeDefinitionsWidth"; "showPreviousAndNextButtons": "showPreviousAndNextButtons"; "width": "width"; "dropdownWrapperClass": "dropdownWrapperClass"; "dropdownWrapperId": "dropdownWrapperId"; "getPreviousDateCallback": "getPreviousDateCallback"; "getNextDateCallback": "getNextDateCallback"; "getPreviousRangeCallback": "getPreviousRangeCallback"; "getNextRangeCallback": "getNextRangeCallback"; "useCustomDisplayContent": "useCustomDisplayContent"; }, { "selectedDateChange": "selectedDateChange"; "selectedDateStartChange": "selectedDateStartChange"; "selectedDateEndChange": "selectedDateEndChange"; "periodChange": "periodChange"; }, ["displayContent"], ["display"]>;
111
112
  }
@@ -0,0 +1,33 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { DomSanitizer } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HighlightTextDirective {
5
+ private readonly _elementRef;
6
+ private readonly _sanitizer;
7
+ /**
8
+ * INPUTS
9
+ */
10
+ /**
11
+ * CSS classes to be appended to the marked text
12
+ */
13
+ additionalClasses: string;
14
+ /**
15
+ * Search term that should be found
16
+ */
17
+ private _search;
18
+ get highlightText(): string;
19
+ set highlightText(value: string);
20
+ /**
21
+ * OTHER PROPS
22
+ */
23
+ content: string;
24
+ /**
25
+ * For now make this case insensitive. We might change this to
26
+ * input latter if needed
27
+ */
28
+ protected caseSensitive: boolean;
29
+ constructor(_elementRef: ElementRef, _sanitizer: DomSanitizer);
30
+ protected markSearchedText(highlightText: string): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<HighlightTextDirective, never>;
32
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightTextDirective, "[highlightText]", never, { "additionalClasses": "additionalClasses"; "highlightText": "highlightText"; }, {}, never>;
33
+ }
@@ -0,0 +1 @@
1
+ export * from './highlight-text.directive';
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./directives/highlight-text.directive";
3
+ import * as i2 from "./pipes/highlight-text.pipe";
4
+ import * as i3 from "@angular/common";
5
+ export declare class SdsHighlightTextModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SdsHighlightTextModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SdsHighlightTextModule, [typeof i1.HighlightTextDirective, typeof i2.HighlightTextPipe], [typeof i3.CommonModule], [typeof i1.HighlightTextDirective, typeof i2.HighlightTextPipe]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<SdsHighlightTextModule>;
9
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "module": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs",
3
+ "es2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs",
4
+ "esm2020": "../../../esm2020/src/lib/highlight-text/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs",
5
+ "fesm2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs",
6
+ "fesm2015": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs",
7
+ "typings": "spicainternational-ngx-sds-components-src-lib-highlight-text.d.ts",
8
+ "sideEffects": false,
9
+ "name": "@spicainternational/ngx-sds-components/src/lib/highlight-text"
10
+ }
@@ -0,0 +1,11 @@
1
+ import { ElementRef, PipeTransform } from '@angular/core';
2
+ import { DomSanitizer } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HighlightTextPipe implements PipeTransform {
5
+ private readonly _elementRef;
6
+ private readonly _sanitizer;
7
+ constructor(_elementRef: ElementRef, _sanitizer: DomSanitizer);
8
+ transform(highlightText: string, stringToBeChecked: string, additionalClasses?: string): string;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<HighlightTextPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<HighlightTextPipe, "highlightText">;
11
+ }
@@ -0,0 +1 @@
1
+ export * from './highlight-text.pipe';
@@ -0,0 +1,3 @@
1
+ export * from './highlight-text.module';
2
+ export * from './directives';
3
+ export * from './pipes';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@spicainternational/ngx-sds-components/src/lib/highlight-text" />
5
+ export * from './public-api';
@@ -0,0 +1,23 @@
1
+ import { DomSanitizer } from '@angular/platform-browser';
2
+ /**
3
+ * @public @function escapeRegex
4
+ * @description
5
+ * Function responsible for substitution of chars that are a no-go for regex
6
+ * @param { string } phrase
7
+ * @returns { string }
8
+ */
9
+ export declare const escapeRegex: (phrase: string) => string;
10
+ /**
11
+ * @public @function highlightSearchedText
12
+ * @description
13
+ * Function responsible for returning html string
14
+ * with included marker that contains string that matches
15
+ * provided search phrase
16
+ * @param { string } highlightText
17
+ * @param { string } stringToBeChecked
18
+ * @param { string } existingHtmlContent
19
+ * @param { string } additionalClasses
20
+ * @param { string } sanitizer
21
+ * @returns { string }
22
+ */
23
+ export declare const highlightSearchedText: (highlightText: string, stringToBeChecked: string, existingHtmlContent: string, sanitizer: DomSanitizer, additionalClasses?: string | undefined) => string;
@@ -0,0 +1 @@
1
+ export * from './highlight-text.utils';
@@ -0,0 +1,18 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SdsMessageComponent implements OnInit {
5
+ icon?: IconProp;
6
+ text: string;
7
+ showCloseButton: boolean;
8
+ close: EventEmitter<void>;
9
+ showLearnMoreLink: boolean;
10
+ learnMoreLinkText: string;
11
+ learnMoreLinkUrl: string;
12
+ showMessage: boolean;
13
+ constructor();
14
+ ngOnInit(): void;
15
+ onCloseButtonClick(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SdsMessageComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<SdsMessageComponent, "sds-message", never, { "icon": "icon"; "text": "text"; "showCloseButton": "showCloseButton"; "showLearnMoreLink": "showLearnMoreLink"; "learnMoreLinkText": "learnMoreLinkText"; "learnMoreLinkUrl": "learnMoreLinkUrl"; }, { "close": "close"; }, never, never>;
18
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./message.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@fortawesome/angular-fontawesome";
5
+ export declare class SdsMessageModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SdsMessageModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SdsMessageModule, [typeof i1.SdsMessageComponent], [typeof i2.CommonModule, typeof i3.FontAwesomeModule], [typeof i1.SdsMessageComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<SdsMessageModule>;
9
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "module": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-message.mjs",
3
+ "es2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-message.mjs",
4
+ "esm2020": "../../../esm2020/src/lib/message/spicainternational-ngx-sds-components-src-lib-message.mjs",
5
+ "fesm2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-message.mjs",
6
+ "fesm2015": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-message.mjs",
7
+ "typings": "spicainternational-ngx-sds-components-src-lib-message.d.ts",
8
+ "sideEffects": false,
9
+ "name": "@spicainternational/ngx-sds-components/src/lib/message"
10
+ }
@@ -0,0 +1,2 @@
1
+ export * from './message.module';
2
+ export * from './message.component';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@spicainternational/ngx-sds-components/src/lib/message" />
5
+ export * from './public-api';
@@ -12,15 +12,22 @@ export declare class SdsDialogComponent implements OnInit {
12
12
  secondaryButtonText: string;
13
13
  secondaryButtonClass: string;
14
14
  secondaryButtonType: ButtonType;
15
+ closeOnEscape: boolean;
15
16
  showHeader: boolean;
16
17
  showCloseButton: boolean;
17
18
  showPrimaryButton: boolean;
18
19
  showSecondaryButton: boolean;
20
+ autofocusElement: 'primary' | 'secondary' | 'close' | 'content';
21
+ modalDialogId?: string;
19
22
  dialogOpen: EventEmitter<void>;
20
23
  dialogClose: EventEmitter<void>;
21
24
  private _modal;
25
+ private _content?;
26
+ private _primaryButton?;
27
+ private _secondaryButton?;
22
28
  private _callback?;
23
29
  private _callbackData;
30
+ isOpen: boolean;
24
31
  constructor();
25
32
  ngOnInit(): void;
26
33
  open(callback?: (button: modalButton, data: any) => void, data?: any): void;
@@ -28,9 +35,10 @@ export declare class SdsDialogComponent implements OnInit {
28
35
  onSecondaryClick(): void;
29
36
  onPrimaryClick(): void;
30
37
  onCloseClick(): void;
38
+ onCloseEscapeKeypress(): void;
31
39
  onModalClose(): void;
32
40
  onModalOpen(): void;
33
41
  static ɵfac: i0.ɵɵFactoryDeclaration<SdsDialogComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<SdsDialogComponent, "sds-dialog", never, { "title": "title"; "closeText": "closeText"; "size": "size"; "primaryButtonText": "primaryButtonText"; "primaryButtonClass": "primaryButtonClass"; "primaryButtonType": "primaryButtonType"; "secondaryButtonText": "secondaryButtonText"; "secondaryButtonClass": "secondaryButtonClass"; "secondaryButtonType": "secondaryButtonType"; "showHeader": "showHeader"; "showCloseButton": "showCloseButton"; "showPrimaryButton": "showPrimaryButton"; "showSecondaryButton": "showSecondaryButton"; }, { "dialogOpen": "dialogOpen"; "dialogClose": "dialogClose"; }, never, ["*"]>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<SdsDialogComponent, "sds-dialog", never, { "title": "title"; "closeText": "closeText"; "size": "size"; "primaryButtonText": "primaryButtonText"; "primaryButtonClass": "primaryButtonClass"; "primaryButtonType": "primaryButtonType"; "secondaryButtonText": "secondaryButtonText"; "secondaryButtonClass": "secondaryButtonClass"; "secondaryButtonType": "secondaryButtonType"; "closeOnEscape": "closeOnEscape"; "showHeader": "showHeader"; "showCloseButton": "showCloseButton"; "showPrimaryButton": "showPrimaryButton"; "showSecondaryButton": "showSecondaryButton"; "autofocusElement": "autofocusElement"; "modalDialogId": "modalDialogId"; }, { "dialogOpen": "dialogOpen"; "dialogClose": "dialogClose"; }, never, ["*"]>;
35
43
  }
36
44
  export {};
@@ -9,14 +9,18 @@ export declare class SdsModalComponent implements OnInit {
9
9
  size: 'sm' | 'md' | 'lg' | 'xl';
10
10
  modalDialogId?: string;
11
11
  showCloseButton: boolean;
12
+ autoFocusCloseButton: boolean;
12
13
  translations: ModalTranslations;
13
14
  isScrollable: boolean;
14
15
  closeOnEscape: boolean;
15
16
  modalOpen: EventEmitter<void>;
16
17
  modalClose: EventEmitter<void>;
17
18
  closeClick: EventEmitter<void>;
19
+ closeEscapeKeypress: EventEmitter<void>;
18
20
  closeIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
21
+ isOpen: boolean;
19
22
  private _modal;
23
+ private _closeButton;
20
24
  constructor();
21
25
  ngOnInit(): void;
22
26
  open(): void;
@@ -24,5 +28,5 @@ export declare class SdsModalComponent implements OnInit {
24
28
  onCloseButtonClick(): void;
25
29
  onKeydown(event: KeyboardEvent): void;
26
30
  static ɵfac: i0.ɵɵFactoryDeclaration<SdsModalComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<SdsModalComponent, "sds-modal", never, { "modalTitle": "modalTitle"; "showHeader": "showHeader"; "showFooter": "showFooter"; "size": "size"; "modalDialogId": "modalDialogId"; "showCloseButton": "showCloseButton"; "translations": "translations"; "isScrollable": "isScrollable"; "closeOnEscape": "closeOnEscape"; }, { "modalOpen": "modalOpen"; "modalClose": "modalClose"; "closeClick": "closeClick"; }, ["headerContent"], ["header", "*", "footer"]>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<SdsModalComponent, "sds-modal", never, { "modalTitle": "modalTitle"; "showHeader": "showHeader"; "showFooter": "showFooter"; "size": "size"; "modalDialogId": "modalDialogId"; "showCloseButton": "showCloseButton"; "autoFocusCloseButton": "autoFocusCloseButton"; "translations": "translations"; "isScrollable": "isScrollable"; "closeOnEscape": "closeOnEscape"; }, { "modalOpen": "modalOpen"; "modalClose": "modalClose"; "closeClick": "closeClick"; "closeEscapeKeypress": "closeEscapeKeypress"; }, ["headerContent"], ["header", "*", "footer"]>;
28
32
  }