@wavemaker/app-ng-runtime 11.10.2-rc.203 → 11.10.3-next.25128
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.
- package/build-task/bundles/index.umd.js +5 -3
- package/build-task/esm2022/advanced/carousel/carousel-template/carousel-template.build.mjs +4 -2
- package/build-task/esm2022/data/form/form-field/form-field.build.mjs +3 -3
- package/build-task/fesm2022/index.mjs +5 -3
- package/build-task/fesm2022/index.mjs.map +1 -1
- package/components/basic/default/bundles/index.umd.js +68 -71
- package/components/basic/default/esm2022/anchor/anchor.component.mjs +18 -18
- package/components/basic/default/esm2022/icon/icon.component.mjs +12 -13
- package/components/basic/default/esm2022/iframe/iframe.component.mjs +9 -10
- package/components/basic/default/esm2022/picture/picture.directive.mjs +2 -5
- package/components/basic/default/esm2022/spinner/spinner.component.mjs +21 -21
- package/components/basic/default/esm2022/video/video.component.mjs +14 -15
- package/components/basic/default/fesm2022/index.mjs +68 -71
- package/components/basic/default/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/bundles/index.umd.js +16 -17
- package/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +7 -8
- package/components/basic/progress/fesm2022/index.mjs +8 -9
- package/components/basic/progress/fesm2022/index.mjs.map +1 -1
- package/components/basic/rich-text-editor/bundles/index.umd.js +11 -12
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +8 -9
- package/components/basic/rich-text-editor/fesm2022/index.mjs +7 -8
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/bundles/index.umd.js +63 -67
- package/components/basic/search/esm2022/search.component.mjs +63 -67
- package/components/basic/search/esm2022/search.module.mjs +2 -2
- package/components/basic/search/fesm2022/index.mjs +63 -67
- package/components/basic/search/fesm2022/index.mjs.map +1 -1
- package/components/chart/bundles/index.umd.js +17 -17
- package/components/chart/esm2022/chart.component.mjs +18 -18
- package/components/chart/fesm2022/index.mjs +17 -17
- package/components/chart/fesm2022/index.mjs.map +1 -1
- package/components/containers/panel/bundles/index.umd.js +39 -39
- package/components/containers/panel/esm2022/panel.component.mjs +40 -40
- package/components/containers/panel/fesm2022/index.mjs +39 -39
- package/components/containers/panel/fesm2022/index.mjs.map +1 -1
- package/components/containers/tabs/bundles/index.umd.js +29 -29
- package/components/containers/tabs/esm2022/tabs.component.mjs +30 -30
- package/components/containers/tabs/fesm2022/index.mjs +29 -29
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/bundles/index.umd.js +49 -49
- package/components/containers/wizard/esm2022/wizard.component.mjs +50 -50
- package/components/containers/wizard/fesm2022/index.mjs +49 -49
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- package/components/data/card/bundles/index.umd.js +29 -29
- package/components/data/card/esm2022/card.component.mjs +30 -30
- package/components/data/card/fesm2022/index.mjs +29 -29
- package/components/data/card/fesm2022/index.mjs.map +1 -1
- package/components/data/form/bundles/index.umd.js +91 -96
- package/components/data/form/esm2022/form.component.mjs +92 -97
- package/components/data/form/fesm2022/index.mjs +91 -96
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/list/bundles/index.umd.js +171 -173
- package/components/data/list/esm2022/list.component.mjs +171 -173
- package/components/data/list/esm2022/list.module.mjs +2 -2
- package/components/data/list/fesm2022/index.mjs +171 -173
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/bundles/index.umd.js +32 -32
- package/components/data/pagination/esm2022/pagination.component.mjs +33 -33
- package/components/data/pagination/fesm2022/index.mjs +32 -32
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/table/bundles/index.umd.js +69 -39
- package/components/data/table/esm2022/table-column/table-column.directive.mjs +2 -1
- package/components/data/table/esm2022/table-column/table-column.props.mjs +2 -1
- package/components/data/table/esm2022/table-filter.directive.mjs +29 -2
- package/components/data/table/esm2022/table.component.mjs +40 -39
- package/components/data/table/esm2022/table.props.mjs +2 -1
- package/components/data/table/fesm2022/index.mjs +72 -41
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/table-column/table-column.directive.d.ts +1 -0
- package/components/data/table/table-filter.directive.d.ts +1 -0
- package/components/dialogs/default/bundles/index.umd.js +66 -95
- package/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +67 -96
- package/components/dialogs/default/fesm2022/index.mjs +66 -95
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/design-dialog/bundles/index.umd.js +7 -7
- package/components/dialogs/design-dialog/esm2022/dialog.component.mjs +8 -8
- package/components/dialogs/design-dialog/fesm2022/index.mjs +7 -7
- package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/iframe-dialog/bundles/index.umd.js +24 -25
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +15 -16
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +14 -15
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/partial-dialog/bundles/index.umd.js +8 -8
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +9 -9
- package/components/dialogs/partial-dialog/fesm2022/index.mjs +8 -8
- package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- package/components/input/chips/bundles/index.umd.js +21 -21
- package/components/input/chips/esm2022/chips.component.mjs +22 -22
- package/components/input/chips/fesm2022/index.mjs +21 -21
- package/components/input/chips/fesm2022/index.mjs.map +1 -1
- package/components/input/default/bundles/index.umd.js +201 -209
- package/components/input/default/esm2022/button/button.component.mjs +18 -18
- package/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +68 -69
- package/components/input/default/esm2022/radioset/radioset.component.mjs +68 -69
- package/components/input/default/esm2022/select/select.component.mjs +21 -27
- package/components/input/default/esm2022/switch/switch.component.mjs +24 -24
- package/components/input/default/esm2022/textarea/textarea.component.mjs +8 -8
- package/components/input/default/fesm2022/index.mjs +201 -209
- package/components/input/default/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/bundles/index.umd.js +171 -164
- package/components/input/epoch/esm2022/date/date.component.mjs +14 -15
- package/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +64 -59
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +18 -19
- package/components/input/epoch/esm2022/picker/picker.component.mjs +26 -25
- package/components/input/epoch/esm2022/time/time.component.mjs +17 -18
- package/components/input/epoch/fesm2022/index.mjs +124 -117
- package/components/input/epoch/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/bundles/index.umd.js +111 -114
- package/components/input/file-upload/esm2022/file-upload.component.mjs +112 -115
- package/components/input/file-upload/fesm2022/index.mjs +111 -114
- package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- package/components/input/rating/bundles/index.umd.js +14 -14
- package/components/input/rating/esm2022/rating.component.mjs +15 -15
- package/components/input/rating/fesm2022/index.mjs +14 -14
- package/components/input/rating/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/bundles/index.umd.js +39 -40
- package/components/input/slider/esm2022/slider.component.mjs +10 -11
- package/components/input/slider/fesm2022/index.mjs +9 -10
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/navigation/breadcrumb/bundles/index.umd.js +16 -15
- package/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +17 -16
- package/components/navigation/breadcrumb/fesm2022/index.mjs +16 -15
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/bundles/index.umd.js +82 -74
- package/components/navigation/menu/esm2022/menu-adapator.component.mjs +14 -4
- package/components/navigation/menu/esm2022/menu-dropdown/menu-dropdown.component.mjs +7 -7
- package/components/navigation/menu/esm2022/menu-dropdown-item/menu-dropdown-item.component.mjs +15 -15
- package/components/navigation/menu/esm2022/menu.component.mjs +22 -26
- package/components/navigation/menu/esm2022/menu.module.mjs +4 -4
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +26 -24
- package/components/navigation/menu/fesm2022/index.mjs +82 -74
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/menu-adapator.component.d.ts +1 -0
- package/components/navigation/navbar/bundles/index.umd.js +12 -12
- package/components/navigation/navbar/esm2022/navbar.component.mjs +13 -13
- package/components/navigation/navbar/fesm2022/index.mjs +12 -12
- package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
- package/mobile/components/basic/default/bundles/index.umd.js +102 -111
- package/mobile/components/basic/default/esm2022/file-browser/file-browser.component.mjs +39 -40
- package/mobile/components/basic/default/esm2022/network-info-toaster/network-info-toaster.component.mjs +35 -44
- package/mobile/components/basic/default/esm2022/process-manager/process-manager.component.mjs +27 -28
- package/mobile/components/basic/default/fesm2022/index.mjs +98 -107
- package/mobile/components/basic/default/fesm2022/index.mjs.map +1 -1
- package/mobile/components/containers/segmented-control/bundles/index.umd.js +16 -16
- package/mobile/components/containers/segmented-control/esm2022/segment-content/segment-content.component.mjs +8 -9
- package/mobile/components/containers/segmented-control/esm2022/segmented-control.component.mjs +10 -10
- package/mobile/components/containers/segmented-control/fesm2022/index.mjs +16 -16
- package/mobile/components/containers/segmented-control/fesm2022/index.mjs.map +1 -1
- package/mobile/components/data/media-list/bundles/index.umd.js +28 -28
- package/mobile/components/data/media-list/esm2022/media-list.component.mjs +29 -29
- package/mobile/components/data/media-list/fesm2022/index.mjs +28 -28
- package/mobile/components/data/media-list/fesm2022/index.mjs.map +1 -1
- package/mobile/components/page/mobile-navbar/bundles/index.umd.js +29 -29
- package/mobile/components/page/mobile-navbar/esm2022/mobile-navbar.component.mjs +30 -30
- package/mobile/components/page/mobile-navbar/fesm2022/index.mjs +29 -29
- package/mobile/components/page/mobile-navbar/fesm2022/index.mjs.map +1 -1
- package/mobile/components/page/tab-bar/bundles/index.umd.js +28 -28
- package/mobile/components/page/tab-bar/esm2022/tabbar.component.mjs +29 -29
- package/mobile/components/page/tab-bar/fesm2022/index.mjs +28 -28
- package/mobile/components/page/tab-bar/fesm2022/index.mjs.map +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +219 -215
- package/runtime/base/esm2022/components/app-component/app.component.mjs +38 -41
- package/runtime/base/esm2022/components/app-spinner.component.mjs +25 -21
- package/runtime/base/esm2022/components/custom-toaster.component.mjs +18 -16
- package/runtime/base/fesm2022/index.mjs +99 -95
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/scripts/datatable/datatable.js +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.props.ts","../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.component.html","../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.component.ts","../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.module.ts","../../../../../projects/components/widgets/basic/rich-text-editor/src/index.ts"],"sourcesContent":["import {PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register, registerFormWidget} from '@wm/components/base';\nimport {FormWidgetType} from '@wm/core';\n\nexport const richTextProps = new Map(\n [\n ['class', PROP_STRING],\n ['datavaluesource', PROP_ANY],\n ['datavalue', PROP_STRING],\n ['height', PROP_STRING],\n ['hint', PROP_STRING],\n ['arialabel', PROP_STRING],\n ['name', PROP_STRING],\n ['placeholder', PROP_STRING],\n ['readonly', PROP_BOOLEAN],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['showpreview', {value: false, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}]\n ]\n);\n\nexport const registerProps = () => {\n register(\n 'wm-richtexteditor',\n richTextProps\n );\n registerFormWidget(\n FormWidgetType.RICHTEXT,\n new Map(richTextProps)\n );\n};\n","<div richTextEditor></div>\n<div [innerHTML]=\"proxyModel\" class=\"ta-preview\" *ngIf=\"showpreview\"></div>\n<input class=\"model-holder\" [disabled]=\"disabled\" hidden>\n","import {Component, Inject, Injector, NgZone, OnDestroy, OnInit, Optional, SecurityContext} from '@angular/core';\nimport {NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {setAttr, setCSS, setHtml} from '@wm/core';\nimport {APPLY_STYLES_TYPE, provideAs, provideAsWidgetRef, SanitizePipe, styler} from '@wm/components/base';\nimport {BaseFormCustomComponent} from '@wm/components/input';\n\nimport {registerProps} from './rich-text-editor.props';\nimport {extend} from \"lodash-es\";\n\n\nconst WIDGET_INFO = {widgetType: 'wm-richtexteditor', hostClass: 'app-richtexteditor clearfix'};\n\nconst getChangeEvt = () => {\n let changeEvt;\n // for IE the event constructor doesn't work so use the createEvent proto\n if (typeof(Event) === 'function') {\n changeEvt = new Event('change');\n } else {\n changeEvt = document.createEvent('Event');\n changeEvt.initEvent('change', true, true);\n }\n return changeEvt;\n};\n\ndeclare const _, $;\n\nconst overrideSummerNote = () => {\n if (!$.summernote.__overidden) {\n // override summernote methods\n\n const origFn = $.summernote.ui_template().button.bind($.summernote);\n\n $.summernote.ui_template.button = (...args) => {\n\n const retVal = origFn(...args);\n const origCallback = retVal.callback;\n\n retVal.callback = ($node, options) => {\n // add bs3 btn class to the buttons\n $node.addClass('btn');\n return origCallback($node, options);\n };\n return retVal;\n };\n $.summernote.__overidden = true;\n }\n};\n\n@Component({\n selector: 'div[wmRichTextEditor]',\n templateUrl: './rich-text-editor.component.html',\n providers: [\n provideAs(RichTextEditorComponent, NG_VALUE_ACCESSOR, true),\n provideAsWidgetRef(RichTextEditorComponent)\n ],\n exportAs: 'wmRichTextEditor'\n})\nexport class RichTextEditorComponent extends BaseFormCustomComponent implements OnInit, OnDestroy {\n static initializeProps = registerProps();\n\n $richTextEditor;\n $hiddenInputEle;\n\n proxyModel;\n _operationStack = [];\n isEditorLoaded = false;\n\n public showpreview: any;\n public disabled: boolean;\n\n EDITOR_DEFAULT_OPTIONS = {\n toolbar: [\n // [groupName, [list of button]]\n ['misc', ['undo', 'redo']],\n ['style', ['style']],\n ['fontname', ['fontname']],\n ['fontsize', ['fontsize']],\n ['height', ['height']],\n ['style', ['bold', 'italic', 'underline', 'clear']],\n ['font', ['strikethrough', 'superscript', 'subscript']],\n ['color', ['color']],\n ['insert', ['table', 'picture', 'link', 'video', 'hr']],\n ['para', ['ul', 'ol', 'paragraph']],\n ['misc', ['codeview', 'fullscreen', 'help']]\n ],\n callbacks: {\n onInit: () => {\n this.isEditorLoaded = true;\n if (this._operationStack.length) {\n this._operationStack.forEach(operationParam => {\n const key = Array.from(operationParam.keys())[0],\n val = operationParam.get(key);\n this.performEditorOperation(key, val);\n });\n this._operationStack = [];\n }\n },\n onChange: (contents, editable) => {\n this.proxyModel = this.sanitizePipe.transform(contents, SecurityContext.HTML);\n this.invokeOnChange(contents, getChangeEvt(), true);\n this.invokeOnTouched();\n }\n },\n fontNames: ['Arial', 'Arial Black', 'Comic Sans MS', 'Courier New', 'Merriweather'],\n placeholder: 'write here...',\n minHeight: 100,\n disableResizeEditor: true\n };\n\n get htmlcontent() {\n return this.performEditorOperation('code');\n }\n\n // @ts-ignore\n get datavalue() {\n return this.htmlcontent;\n }\n\n // @ts-ignore\n set datavalue(nv) {\n if (nv !== undefined && nv !== null) {\n this.$hiddenInputEle.val(nv);\n this.performEditorOperation('reset');\n this.performEditorOperation('code', nv);\n }\n }\n\n constructor(inj: Injector, private sanitizePipe: SanitizePipe, private ngZone: NgZone, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_INFO, explicitContext);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER, ['height']);\n overrideSummerNote();\n }\n\n ngOnInit() {\n this.$richTextEditor = $(this.nativeElement.querySelector('[richTextEditor]'));\n this.$hiddenInputEle = $(this.nativeElement.querySelector('input.model-holder'));\n super.ngOnInit();\n this.initEditor();\n $('.note-editable').attr('aria-label', 'textbox');\n }\n\n initEditor() {\n this.ngZone.runOutsideAngular(() => {\n this.invokeEventCallback('beforerender', {'$event' : {}});\n this.$richTextEditor.summernote(this.EDITOR_DEFAULT_OPTIONS);\n });\n\n }\n\n getDefaultOptions() {\n return this.EDITOR_DEFAULT_OPTIONS;\n }\n\n getLib() {\n return 'summernote';\n }\n\n overrideDefaults(options) {\n extend(this.EDITOR_DEFAULT_OPTIONS, options);\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'placeholder') {\n this.performEditorOperation('placeholder', nv);\n } else if (key === 'disabled' || key === 'readonly') {\n this.performEditorOperation(nv ? 'disable' : 'enable');\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n onStyleChange(key, nv, ov) {\n if (key === 'height') {\n this.performEditorOperation('height', nv);\n }\n }\n\n performEditorOperation(key, value?) {\n if (this.isEditorLoaded) {\n if (key === 'height') {\n setCSS(this.nativeElement.querySelector('div.note-editable'), key, value, true);\n } else if (key === 'placeholder') {\n setAttr(this.nativeElement, key, value);\n setHtml(this.nativeElement.querySelector('div.note-placeholder'), value, true);\n } else {\n // if editor content is empty then summernote('code') is returning empty p tags like <p></br></p>. So checking for empty and returning undefined.\n if (arguments.length === 1 && key === 'code' && this.$richTextEditor.summernote('isEmpty')) {\n const content = this.$richTextEditor.summernote('code');\n return content === '' ? content : undefined;\n }\n return this.$richTextEditor.summernote(key, value);\n }\n } else {\n const op: any = new Map();\n op.set(key, value);\n this._operationStack.push(op);\n return;\n }\n }\n\n getCurrentPosition() {\n return this.performEditorOperation('createRange');\n }\n\n undo() {\n this.performEditorOperation('undo');\n }\n\n focus() {\n this.performEditorOperation('focus');\n }\n\n ngOnDestroy() {\n this.performEditorOperation('destroy');\n super.ngOnDestroy();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { RichTextEditorComponent } from './rich-text-editor.component';\n\nconst components = [\n RichTextEditorComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class RichTextEditor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;AACH,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU;AAC1B,aAAA;;wFACY,oBAAoB,EAAA,EAAA,YAAA,EAAA,CAX7B,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAKnB,YAAY;AACZ,QAAA,kBAAkB,aANtB,uBAAuB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACR3B;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.props.ts","../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.component.html","../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.component.ts","../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.module.ts","../../../../../projects/components/widgets/basic/rich-text-editor/src/index.ts"],"sourcesContent":["import {PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register, registerFormWidget} from '@wm/components/base';\nimport {FormWidgetType} from '@wm/core';\n\nexport const richTextProps = new Map(\n [\n ['class', PROP_STRING],\n ['datavaluesource', PROP_ANY],\n ['datavalue', PROP_STRING],\n ['height', PROP_STRING],\n ['hint', PROP_STRING],\n ['arialabel', PROP_STRING],\n ['name', PROP_STRING],\n ['placeholder', PROP_STRING],\n ['readonly', PROP_BOOLEAN],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['showpreview', {value: false, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}]\n ]\n);\n\nexport const registerProps = () => {\n register(\n 'wm-richtexteditor',\n richTextProps\n );\n registerFormWidget(\n FormWidgetType.RICHTEXT,\n new Map(richTextProps)\n );\n};\n","<div richTextEditor></div>\n@if (showpreview) {\n <div [innerHTML]=\"proxyModel\" class=\"ta-preview\"></div>\n}\n<input class=\"model-holder\" [disabled]=\"disabled\" hidden>\n","import {Component, Inject, Injector, NgZone, OnDestroy, OnInit, Optional, SecurityContext} from '@angular/core';\nimport {NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {setAttr, setCSS, setHtml} from '@wm/core';\nimport {APPLY_STYLES_TYPE, provideAs, provideAsWidgetRef, SanitizePipe, styler} from '@wm/components/base';\nimport {BaseFormCustomComponent} from '@wm/components/input';\n\nimport {registerProps} from './rich-text-editor.props';\nimport {extend} from \"lodash-es\";\n\n\nconst WIDGET_INFO = {widgetType: 'wm-richtexteditor', hostClass: 'app-richtexteditor clearfix'};\n\nconst getChangeEvt = () => {\n let changeEvt;\n // for IE the event constructor doesn't work so use the createEvent proto\n if (typeof(Event) === 'function') {\n changeEvt = new Event('change');\n } else {\n changeEvt = document.createEvent('Event');\n changeEvt.initEvent('change', true, true);\n }\n return changeEvt;\n};\n\ndeclare const _, $;\n\nconst overrideSummerNote = () => {\n if (!$.summernote.__overidden) {\n // override summernote methods\n\n const origFn = $.summernote.ui_template().button.bind($.summernote);\n\n $.summernote.ui_template.button = (...args) => {\n\n const retVal = origFn(...args);\n const origCallback = retVal.callback;\n\n retVal.callback = ($node, options) => {\n // add bs3 btn class to the buttons\n $node.addClass('btn');\n return origCallback($node, options);\n };\n return retVal;\n };\n $.summernote.__overidden = true;\n }\n};\n\n@Component({\n selector: 'div[wmRichTextEditor]',\n templateUrl: './rich-text-editor.component.html',\n providers: [\n provideAs(RichTextEditorComponent, NG_VALUE_ACCESSOR, true),\n provideAsWidgetRef(RichTextEditorComponent)\n ],\n exportAs: 'wmRichTextEditor'\n})\nexport class RichTextEditorComponent extends BaseFormCustomComponent implements OnInit, OnDestroy {\n static initializeProps = registerProps();\n\n $richTextEditor;\n $hiddenInputEle;\n\n proxyModel;\n _operationStack = [];\n isEditorLoaded = false;\n\n public showpreview: any;\n public disabled: boolean;\n\n EDITOR_DEFAULT_OPTIONS = {\n toolbar: [\n // [groupName, [list of button]]\n ['misc', ['undo', 'redo']],\n ['style', ['style']],\n ['fontname', ['fontname']],\n ['fontsize', ['fontsize']],\n ['height', ['height']],\n ['style', ['bold', 'italic', 'underline', 'clear']],\n ['font', ['strikethrough', 'superscript', 'subscript']],\n ['color', ['color']],\n ['insert', ['table', 'picture', 'link', 'video', 'hr']],\n ['para', ['ul', 'ol', 'paragraph']],\n ['misc', ['codeview', 'fullscreen', 'help']]\n ],\n callbacks: {\n onInit: () => {\n this.isEditorLoaded = true;\n if (this._operationStack.length) {\n this._operationStack.forEach(operationParam => {\n const key = Array.from(operationParam.keys())[0],\n val = operationParam.get(key);\n this.performEditorOperation(key, val);\n });\n this._operationStack = [];\n }\n },\n onChange: (contents, editable) => {\n this.proxyModel = this.sanitizePipe.transform(contents, SecurityContext.HTML);\n this.invokeOnChange(contents, getChangeEvt(), true);\n this.invokeOnTouched();\n }\n },\n fontNames: ['Arial', 'Arial Black', 'Comic Sans MS', 'Courier New', 'Merriweather'],\n placeholder: 'write here...',\n minHeight: 100,\n disableResizeEditor: true\n };\n\n get htmlcontent() {\n return this.performEditorOperation('code');\n }\n\n // @ts-ignore\n get datavalue() {\n return this.htmlcontent;\n }\n\n // @ts-ignore\n set datavalue(nv) {\n if (nv !== undefined && nv !== null) {\n this.$hiddenInputEle.val(nv);\n this.performEditorOperation('reset');\n this.performEditorOperation('code', nv);\n }\n }\n\n constructor(inj: Injector, private sanitizePipe: SanitizePipe, private ngZone: NgZone, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_INFO, explicitContext);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER, ['height']);\n overrideSummerNote();\n }\n\n ngOnInit() {\n this.$richTextEditor = $(this.nativeElement.querySelector('[richTextEditor]'));\n this.$hiddenInputEle = $(this.nativeElement.querySelector('input.model-holder'));\n super.ngOnInit();\n this.initEditor();\n $('.note-editable').attr('aria-label', 'textbox');\n }\n\n initEditor() {\n this.ngZone.runOutsideAngular(() => {\n this.invokeEventCallback('beforerender', {'$event' : {}});\n this.$richTextEditor.summernote(this.EDITOR_DEFAULT_OPTIONS);\n });\n\n }\n\n getDefaultOptions() {\n return this.EDITOR_DEFAULT_OPTIONS;\n }\n\n getLib() {\n return 'summernote';\n }\n\n overrideDefaults(options) {\n extend(this.EDITOR_DEFAULT_OPTIONS, options);\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'placeholder') {\n this.performEditorOperation('placeholder', nv);\n } else if (key === 'disabled' || key === 'readonly') {\n this.performEditorOperation(nv ? 'disable' : 'enable');\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n onStyleChange(key, nv, ov) {\n if (key === 'height') {\n this.performEditorOperation('height', nv);\n }\n }\n\n performEditorOperation(key, value?) {\n if (this.isEditorLoaded) {\n if (key === 'height') {\n setCSS(this.nativeElement.querySelector('div.note-editable'), key, value, true);\n } else if (key === 'placeholder') {\n setAttr(this.nativeElement, key, value);\n setHtml(this.nativeElement.querySelector('div.note-placeholder'), value, true);\n } else {\n // if editor content is empty then summernote('code') is returning empty p tags like <p></br></p>. So checking for empty and returning undefined.\n if (arguments.length === 1 && key === 'code' && this.$richTextEditor.summernote('isEmpty')) {\n const content = this.$richTextEditor.summernote('code');\n return content === '' ? content : undefined;\n }\n return this.$richTextEditor.summernote(key, value);\n }\n } else {\n const op: any = new Map();\n op.set(key, value);\n this._operationStack.push(op);\n return;\n }\n }\n\n getCurrentPosition() {\n return this.performEditorOperation('createRange');\n }\n\n undo() {\n this.performEditorOperation('undo');\n }\n\n focus() {\n this.performEditorOperation('focus');\n }\n\n ngOnDestroy() {\n this.performEditorOperation('destroy');\n super.ngOnDestroy();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { RichTextEditorComponent } from './rich-text-editor.component';\n\nconst components = [\n RichTextEditorComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class RichTextEditorModule {\n}\n","/**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AO,EAAE,CAAC,GAAG,UAAU;AAC1B,aAAA;;wFACY,oBAAoB,EAAA,EAAA,YAAA,EAAA,CAX7B,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAKnB,YAAY;AACZ,QAAA,kBAAkB,aANtB,uBAAuB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACR3B;;AAEG;;;;"}
|
|
@@ -318,18 +318,18 @@
|
|
|
318
318
|
const _c6 = () => ({ standalone: true });
|
|
319
319
|
const _c7 = a0 => ({ "show-btn": a0 });
|
|
320
320
|
const _c8 = a0 => ({ "disabled": a0 });
|
|
321
|
-
function
|
|
322
|
-
i0__namespace.ɵɵelement(0, "img",
|
|
321
|
+
function SearchComponent_ng_template_0_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
322
|
+
i0__namespace.ɵɵelement(0, "img", 7);
|
|
323
323
|
} if (rf & 2) {
|
|
324
324
|
const model_r1 = i0__namespace.ɵɵnextContext(2).item;
|
|
325
325
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
326
326
|
i0__namespace.ɵɵstyleProp("width", ctx_r1.imagewidth);
|
|
327
327
|
i0__namespace.ɵɵproperty("src", model_r1.imgSrc, i0__namespace.ɵɵsanitizeUrl);
|
|
328
328
|
} }
|
|
329
|
-
function
|
|
329
|
+
function SearchComponent_ng_template_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
330
330
|
i0__namespace.ɵɵelementStart(0, "a");
|
|
331
|
-
i0__namespace.ɵɵtemplate(1,
|
|
332
|
-
i0__namespace.ɵɵelement(2, "span",
|
|
331
|
+
i0__namespace.ɵɵtemplate(1, SearchComponent_ng_template_0_Conditional_0_Conditional_1_Template, 1, 3, "img", 5);
|
|
332
|
+
i0__namespace.ɵɵelement(2, "span", 6);
|
|
333
333
|
i0__namespace.ɵɵelementEnd();
|
|
334
334
|
} if (rf & 2) {
|
|
335
335
|
const ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
@@ -338,13 +338,13 @@
|
|
|
338
338
|
const match_r5 = ctx_r2.match;
|
|
339
339
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
340
340
|
i0__namespace.ɵɵadvance();
|
|
341
|
-
i0__namespace.ɵɵ
|
|
341
|
+
i0__namespace.ɵɵconditional(model_r1.imgSrc ? 1 : -1);
|
|
342
342
|
i0__namespace.ɵɵadvance();
|
|
343
343
|
i0__namespace.ɵɵproperty("title", model_r1.label)("innerHtml", ctx_r1.highlight(match_r5, query_r4) || model_r1.label, i0__namespace.ɵɵsanitizeHtml);
|
|
344
344
|
} }
|
|
345
|
-
function
|
|
346
|
-
i0__namespace.ɵɵelementStart(0, "a",
|
|
347
|
-
i0__namespace.ɵɵelement(1, "div",
|
|
345
|
+
function SearchComponent_ng_template_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
346
|
+
i0__namespace.ɵɵelementStart(0, "a", 4);
|
|
347
|
+
i0__namespace.ɵɵelement(1, "div", 8);
|
|
348
348
|
i0__namespace.ɵɵelementEnd();
|
|
349
349
|
} if (rf & 2) {
|
|
350
350
|
const match_r5 = i0__namespace.ɵɵnextContext().match;
|
|
@@ -352,15 +352,15 @@
|
|
|
352
352
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(3, _c3, ctx_r1.content))("wmItemTemplate", ctx_r1.content)("userComponentParams", match_r5.item);
|
|
353
353
|
} }
|
|
354
354
|
function SearchComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
355
|
-
i0__namespace.ɵɵtemplate(0,
|
|
355
|
+
i0__namespace.ɵɵtemplate(0, SearchComponent_ng_template_0_Conditional_0_Template, 3, 3, "a")(1, SearchComponent_ng_template_0_Conditional_1_Template, 2, 5, "a", 4);
|
|
356
356
|
} if (rf & 2) {
|
|
357
357
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
358
|
-
i0__namespace.ɵɵ
|
|
358
|
+
i0__namespace.ɵɵconditional(!ctx_r1.content ? 0 : -1);
|
|
359
359
|
i0__namespace.ɵɵadvance();
|
|
360
|
-
i0__namespace.ɵɵ
|
|
360
|
+
i0__namespace.ɵɵconditional(ctx_r1.content ? 1 : -1);
|
|
361
361
|
} }
|
|
362
|
-
function
|
|
363
|
-
i0__namespace.ɵɵelementStart(0, "h4",
|
|
362
|
+
function SearchComponent_ng_template_2_For_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
363
|
+
i0__namespace.ɵɵelementStart(0, "h4", 15);
|
|
364
364
|
i0__namespace.ɵɵtext(1);
|
|
365
365
|
i0__namespace.ɵɵelementEnd();
|
|
366
366
|
} if (rf & 2) {
|
|
@@ -368,47 +368,47 @@
|
|
|
368
368
|
i0__namespace.ɵɵadvance();
|
|
369
369
|
i0__namespace.ɵɵtextInterpolate(match_r7.value);
|
|
370
370
|
} }
|
|
371
|
-
function
|
|
372
|
-
i0__namespace.ɵɵelementContainer(0,
|
|
371
|
+
function SearchComponent_ng_template_2_For_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
372
|
+
i0__namespace.ɵɵelementContainer(0, 16);
|
|
373
373
|
} if (rf & 2) {
|
|
374
374
|
const ctx_r7 = i0__namespace.ɵɵnextContext();
|
|
375
375
|
const match_r7 = ctx_r7.$implicit;
|
|
376
|
-
const
|
|
376
|
+
const ɵ$index_20_r9 = ctx_r7.$index;
|
|
377
377
|
const ctx_r9 = i0__namespace.ɵɵnextContext();
|
|
378
378
|
const itemTemplate_r11 = ctx_r9.itemTemplate;
|
|
379
379
|
const query_r12 = ctx_r9.query;
|
|
380
|
-
i0__namespace.ɵɵproperty("ngTemplateOutlet", itemTemplate_r11)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction4(2, _c5, match_r7.item,
|
|
380
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", itemTemplate_r11)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction4(2, _c5, match_r7.item, ɵ$index_20_r9, match_r7, query_r12));
|
|
381
381
|
} }
|
|
382
|
-
function
|
|
382
|
+
function SearchComponent_ng_template_2_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
383
383
|
const _r6 = i0__namespace.ɵɵgetCurrentView();
|
|
384
|
-
i0__namespace.ɵɵelementStart(0, "li",
|
|
385
|
-
i0__namespace.ɵɵlistener("mouseenter", function
|
|
386
|
-
i0__namespace.ɵɵtemplate(2,
|
|
384
|
+
i0__namespace.ɵɵelementStart(0, "li", 14, 3);
|
|
385
|
+
i0__namespace.ɵɵlistener("mouseenter", function SearchComponent_ng_template_2_For_3_Template_li_mouseenter_0_listener() { const match_r7 = i0__namespace.ɵɵrestoreView(_r6).$implicit; const ctx_r1 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r1.typeaheadContainer.selectActive(match_r7)); })("click", function SearchComponent_ng_template_2_For_3_Template_li_click_0_listener($event) { const match_r7 = i0__namespace.ɵɵrestoreView(_r6).$implicit; const ctx_r1 = i0__namespace.ɵɵnextContext(2); match_r7 && !match_r7.isHeader() && ctx_r1.typeaheadContainer.selectMatch(match_r7, $event); ctx_r1.$typeaheadEvent = $event; return i0__namespace.ɵɵresetView(ctx_r1.notifySubscriber()); });
|
|
386
|
+
i0__namespace.ɵɵtemplate(2, SearchComponent_ng_template_2_For_3_Conditional_2_Template, 2, 1, "h4", 15)(3, SearchComponent_ng_template_2_For_3_Conditional_3_Template, 1, 7, "ng-container", 16);
|
|
387
387
|
i0__namespace.ɵɵelementEnd();
|
|
388
388
|
} if (rf & 2) {
|
|
389
389
|
const match_r7 = ctx.$implicit;
|
|
390
390
|
const ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
391
391
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(3, _c4, ctx_r1.typeaheadContainer && ctx_r1.typeaheadContainer.isActive(match_r7), match_r7 && match_r7.isHeader()));
|
|
392
392
|
i0__namespace.ɵɵadvance(2);
|
|
393
|
-
i0__namespace.ɵɵ
|
|
393
|
+
i0__namespace.ɵɵconditional(match_r7.isHeader() ? 2 : -1);
|
|
394
394
|
i0__namespace.ɵɵadvance();
|
|
395
|
-
i0__namespace.ɵɵ
|
|
395
|
+
i0__namespace.ɵɵconditional(!match_r7.isHeader() ? 3 : -1);
|
|
396
396
|
} }
|
|
397
397
|
function SearchComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
398
|
-
i0__namespace.ɵɵelementStart(0, "ul",
|
|
399
|
-
i0__namespace.ɵɵ
|
|
400
|
-
i0__namespace.ɵɵelementStart(
|
|
401
|
-
i0__namespace.ɵɵelement(
|
|
398
|
+
i0__namespace.ɵɵelementStart(0, "ul", 9, 2);
|
|
399
|
+
i0__namespace.ɵɵrepeaterCreate(2, SearchComponent_ng_template_2_For_3_Template, 4, 6, "li", 10, i0__namespace.ɵɵrepeaterTrackByIdentity);
|
|
400
|
+
i0__namespace.ɵɵelementStart(4, "div", 11);
|
|
401
|
+
i0__namespace.ɵɵelement(5, "span", 12);
|
|
402
402
|
i0__namespace.ɵɵelementEnd();
|
|
403
|
-
i0__namespace.ɵɵelementStart(
|
|
404
|
-
i0__namespace.ɵɵelement(
|
|
403
|
+
i0__namespace.ɵɵelementStart(6, "div", 11);
|
|
404
|
+
i0__namespace.ɵɵelement(7, "i", 13)(8, "span", 12);
|
|
405
405
|
i0__namespace.ɵɵelementEnd()();
|
|
406
406
|
} if (rf & 2) {
|
|
407
407
|
const matches_r13 = ctx.matches;
|
|
408
408
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
409
409
|
i0__namespace.ɵɵadvance(2);
|
|
410
|
-
i0__namespace.ɵɵ
|
|
411
|
-
i0__namespace.ɵɵadvance();
|
|
410
|
+
i0__namespace.ɵɵrepeater(matches_r13);
|
|
411
|
+
i0__namespace.ɵɵadvance(2);
|
|
412
412
|
i0__namespace.ɵɵproperty("hidden", ctx_r1._loadingItems || !(ctx_r1.datacompletemsg && ctx_r1.dataProvider.isLastPage));
|
|
413
413
|
i0__namespace.ɵɵadvance();
|
|
414
414
|
i0__namespace.ɵɵproperty("textContent", ctx_r1.datacompletemsg);
|
|
@@ -417,22 +417,19 @@
|
|
|
417
417
|
i0__namespace.ɵɵadvance(2);
|
|
418
418
|
i0__namespace.ɵɵproperty("textContent", ctx_r1.loadingdatamsg);
|
|
419
419
|
} }
|
|
420
|
-
function
|
|
420
|
+
function SearchComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
421
421
|
const _r14 = i0__namespace.ɵɵgetCurrentView();
|
|
422
|
-
i0__namespace.ɵɵ
|
|
423
|
-
i0__namespace.ɵɵ
|
|
424
|
-
i0__namespace.ɵɵ
|
|
425
|
-
i0__namespace.ɵɵlistener("input", function SearchComponent_ng_container_4_Template_input_input_1_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.onInputChange($event)); })("keydown", function SearchComponent_ng_container_4_Template_input_keydown_1_listener() { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.listenQuery = true); })("keydown.enter", function SearchComponent_ng_container_4_Template_input_keydown_enter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); ctx_r1.$typeaheadEvent = $event; return i0__namespace.ɵɵresetView(ctx_r1.handleEnterEvent($event)); })("keydown.arrowdown", function SearchComponent_ng_container_4_Template_input_keydown_arrowdown_1_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.selectNext($event)); })("blur", function SearchComponent_ng_container_4_Template_input_blur_1_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.invokeOnTouched($event)); })("click", function SearchComponent_ng_container_4_Template_input_click_1_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.handleFocus($event)); })("focus", function SearchComponent_ng_container_4_Template_input_focus_1_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); ctx_r1._unsubscribeDv = false; ctx_r1.listenQuery = true; ctx_r1.handleFocus($event); return i0__namespace.ɵɵresetView(ctx_r1.invokeOnFocus($event)); })("focusout", function SearchComponent_ng_container_4_Template_input_focusout_1_listener() { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.onFocusOut()); })("typeaheadLoading", function SearchComponent_ng_container_4_Template_input_typeaheadLoading_1_listener() { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1._loadingItems); })("typeaheadOnSelect", function SearchComponent_ng_container_4_Template_input_typeaheadOnSelect_1_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.typeaheadOnSelect($event)); });
|
|
422
|
+
i0__namespace.ɵɵelementStart(0, "input", 17);
|
|
423
|
+
i0__namespace.ɵɵtwoWayListener("ngModelChange", function SearchComponent_Conditional_4_Template_input_ngModelChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); i0__namespace.ɵɵtwoWayBindingSet(ctx_r1.query, $event) || (ctx_r1.query = $event); return i0__namespace.ɵɵresetView($event); });
|
|
424
|
+
i0__namespace.ɵɵlistener("input", function SearchComponent_Conditional_4_Template_input_input_0_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.onInputChange($event)); })("keydown", function SearchComponent_Conditional_4_Template_input_keydown_0_listener() { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.listenQuery = true); })("keydown.enter", function SearchComponent_Conditional_4_Template_input_keydown_enter_0_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); ctx_r1.$typeaheadEvent = $event; return i0__namespace.ɵɵresetView(ctx_r1.handleEnterEvent($event)); })("keydown.arrowdown", function SearchComponent_Conditional_4_Template_input_keydown_arrowdown_0_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.selectNext($event)); })("blur", function SearchComponent_Conditional_4_Template_input_blur_0_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.invokeOnTouched($event)); })("click", function SearchComponent_Conditional_4_Template_input_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.handleFocus($event)); })("focus", function SearchComponent_Conditional_4_Template_input_focus_0_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); ctx_r1._unsubscribeDv = false; ctx_r1.listenQuery = true; ctx_r1.handleFocus($event); return i0__namespace.ɵɵresetView(ctx_r1.invokeOnFocus($event)); })("focusout", function SearchComponent_Conditional_4_Template_input_focusout_0_listener() { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.onFocusOut()); })("typeaheadLoading", function SearchComponent_Conditional_4_Template_input_typeaheadLoading_0_listener() { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1._loadingItems); })("typeaheadOnSelect", function SearchComponent_Conditional_4_Template_input_typeaheadOnSelect_0_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.typeaheadOnSelect($event)); });
|
|
426
425
|
i0__namespace.ɵɵelementEnd();
|
|
427
|
-
i0__namespace.ɵɵelementStart(
|
|
428
|
-
i0__namespace.ɵɵlistener("click", function
|
|
426
|
+
i0__namespace.ɵɵelementStart(1, "i", 18);
|
|
427
|
+
i0__namespace.ɵɵlistener("click", function SearchComponent_Conditional_4_Template_i_click_1_listener($event) { i0__namespace.ɵɵrestoreView(_r14); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.clearSearch($event)); });
|
|
429
428
|
i0__namespace.ɵɵelementEnd();
|
|
430
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
431
429
|
} if (rf & 2) {
|
|
432
430
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
433
431
|
const customItemTemplate_r15 = i0__namespace.ɵɵreference(1);
|
|
434
432
|
const customListTemplate_r16 = i0__namespace.ɵɵreference(3);
|
|
435
|
-
i0__namespace.ɵɵadvance();
|
|
436
433
|
i0__namespace.ɵɵproperty("title", ctx_r1.query || "")("placeholder", ctx_r1.placeholder || "")("disabled", ctx_r1.disabled);
|
|
437
434
|
i0__namespace.ɵɵtwoWayProperty("ngModel", ctx_r1.query);
|
|
438
435
|
i0__namespace.ɵɵproperty("ngModelOptions", i0__namespace.ɵɵpureFunction0(23, _c6))("readonly", ctx_r1.readonly)("typeahead", ctx_r1.typeaheadDataSource)("typeaheadWaitMs", ctx_r1.debouncetime)("typeaheadItemTemplate", customItemTemplate_r15)("optionsListTemplate", customListTemplate_r16)("typeaheadMinLength", ctx_r1.minchars)("typeaheadOptionsLimit", ctx_r1.limit)("typeaheadGroupField", ctx_r1.groupby ? "groupby" : null)("typeaheadAsync", true)("typeaheadScrollable", true)("adaptivePosition", true)("typeaheadOptionsInScrollableView", ctx_r1.optionslimitinscrollableview)("dropup", ctx_r1.dropup)("tabindex", ctx_r1.tabindex);
|
|
@@ -440,13 +437,13 @@
|
|
|
440
437
|
i0__namespace.ɵɵadvance();
|
|
441
438
|
i0__namespace.ɵɵproperty("hidden", !ctx_r1.showClosebtn);
|
|
442
439
|
} }
|
|
443
|
-
function
|
|
444
|
-
i0__namespace.ɵɵelement(0, "span",
|
|
440
|
+
function SearchComponent_Conditional_5_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
441
|
+
i0__namespace.ɵɵelement(0, "span", 23);
|
|
445
442
|
} }
|
|
446
|
-
function
|
|
443
|
+
function SearchComponent_Conditional_5_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
447
444
|
const _r18 = i0__namespace.ɵɵgetCurrentView();
|
|
448
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
449
|
-
i0__namespace.ɵɵlistener("click", function
|
|
445
|
+
i0__namespace.ɵɵelementStart(0, "span", 25)(1, "form")(2, "button", 26);
|
|
446
|
+
i0__namespace.ɵɵlistener("click", function SearchComponent_Conditional_5_Conditional_11_Template_button_click_2_listener($event) { i0__namespace.ɵɵrestoreView(_r18); const ctx_r1 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r1.onSearchSelect($event)); });
|
|
450
447
|
i0__namespace.ɵɵelement(3, "i");
|
|
451
448
|
i0__namespace.ɵɵelementEnd()()();
|
|
452
449
|
} if (rf & 2) {
|
|
@@ -457,29 +454,29 @@
|
|
|
457
454
|
i0__namespace.ɵɵadvance();
|
|
458
455
|
i0__namespace.ɵɵclassMapInterpolate1("app-icon ", ctx_r1.searchiconclass, "");
|
|
459
456
|
} }
|
|
460
|
-
function
|
|
457
|
+
function SearchComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
461
458
|
const _r17 = i0__namespace.ɵɵgetCurrentView();
|
|
462
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
463
|
-
i0__namespace.ɵɵlistener("click", function
|
|
459
|
+
i0__namespace.ɵɵelementStart(0, "button", 19);
|
|
460
|
+
i0__namespace.ɵɵlistener("click", function SearchComponent_Conditional_5_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r17); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.closeSearch()); });
|
|
464
461
|
i0__namespace.ɵɵelement(1, "i");
|
|
465
462
|
i0__namespace.ɵɵelementEnd();
|
|
466
|
-
i0__namespace.ɵɵelementStart(2, "span",
|
|
463
|
+
i0__namespace.ɵɵelementStart(2, "span", 20);
|
|
467
464
|
i0__namespace.ɵɵtext(3, "Back button");
|
|
468
465
|
i0__namespace.ɵɵelementEnd();
|
|
469
|
-
i0__namespace.ɵɵelementStart(4, "input",
|
|
470
|
-
i0__namespace.ɵɵtwoWayListener("ngModelChange", function
|
|
471
|
-
i0__namespace.ɵɵlistener("input", function
|
|
466
|
+
i0__namespace.ɵɵelementStart(4, "input", 21);
|
|
467
|
+
i0__namespace.ɵɵtwoWayListener("ngModelChange", function SearchComponent_Conditional_5_Template_input_ngModelChange_4_listener($event) { i0__namespace.ɵɵrestoreView(_r17); const ctx_r1 = i0__namespace.ɵɵnextContext(); i0__namespace.ɵɵtwoWayBindingSet(ctx_r1.query, $event) || (ctx_r1.query = $event); return i0__namespace.ɵɵresetView($event); });
|
|
468
|
+
i0__namespace.ɵɵlistener("input", function SearchComponent_Conditional_5_Template_input_input_4_listener($event) { i0__namespace.ɵɵrestoreView(_r17); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.onInputChange($event)); })("keydown", function SearchComponent_Conditional_5_Template_input_keydown_4_listener() { i0__namespace.ɵɵrestoreView(_r17); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.listenQuery = true); })("keydown.enter", function SearchComponent_Conditional_5_Template_input_keydown_enter_4_listener($event) { i0__namespace.ɵɵrestoreView(_r17); const ctx_r1 = i0__namespace.ɵɵnextContext(); ctx_r1.$typeaheadEvent = $event; return i0__namespace.ɵɵresetView(ctx_r1.handleEnterEvent($event)); })("keydown.arrowdown", function SearchComponent_Conditional_5_Template_input_keydown_arrowdown_4_listener($event) { i0__namespace.ɵɵrestoreView(_r17); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.selectNext($event)); })("blur", function SearchComponent_Conditional_5_Template_input_blur_4_listener($event) { i0__namespace.ɵɵrestoreView(_r17); const ctx_r1 = i0__namespace.ɵɵnextContext(); ctx_r1.invokeOnTouched($event); return i0__namespace.ɵɵresetView(ctx_r1.onFocusOut()); })("click", function SearchComponent_Conditional_5_Template_input_click_4_listener($event) { i0__namespace.ɵɵrestoreView(_r17); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.handleFocus($event)); })("focus", function SearchComponent_Conditional_5_Template_input_focus_4_listener($event) { i0__namespace.ɵɵrestoreView(_r17); const ctx_r1 = i0__namespace.ɵɵnextContext(); ctx_r1._unsubscribeDv = false; ctx_r1.listenQuery = true; ctx_r1.handleFocus($event); return i0__namespace.ɵɵresetView(ctx_r1.invokeOnFocus($event)); })("typeaheadLoading", function SearchComponent_Conditional_5_Template_input_typeaheadLoading_4_listener() { i0__namespace.ɵɵrestoreView(_r17); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1._loadingItems); })("typeaheadOnSelect", function SearchComponent_Conditional_5_Template_input_typeaheadOnSelect_4_listener($event) { i0__namespace.ɵɵrestoreView(_r17); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.typeaheadOnSelect($event)); });
|
|
472
469
|
i0__namespace.ɵɵelementEnd();
|
|
473
|
-
i0__namespace.ɵɵelement(5, "input",
|
|
474
|
-
i0__namespace.ɵɵtemplate(6,
|
|
475
|
-
i0__namespace.ɵɵelementStart(7, "button",
|
|
476
|
-
i0__namespace.ɵɵlistener("click", function
|
|
470
|
+
i0__namespace.ɵɵelement(5, "input", 22);
|
|
471
|
+
i0__namespace.ɵɵtemplate(6, SearchComponent_Conditional_5_Conditional_6_Template, 1, 0, "span", 23);
|
|
472
|
+
i0__namespace.ɵɵelementStart(7, "button", 24);
|
|
473
|
+
i0__namespace.ɵɵlistener("click", function SearchComponent_Conditional_5_Template_button_click_7_listener($event) { i0__namespace.ɵɵrestoreView(_r17); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.clearSearch($event, true)); });
|
|
477
474
|
i0__namespace.ɵɵelement(8, "i");
|
|
478
475
|
i0__namespace.ɵɵelementEnd();
|
|
479
|
-
i0__namespace.ɵɵelementStart(9, "span",
|
|
476
|
+
i0__namespace.ɵɵelementStart(9, "span", 20);
|
|
480
477
|
i0__namespace.ɵɵtext(10, "Clear button");
|
|
481
478
|
i0__namespace.ɵɵelementEnd();
|
|
482
|
-
i0__namespace.ɵɵtemplate(11,
|
|
479
|
+
i0__namespace.ɵɵtemplate(11, SearchComponent_Conditional_5_Conditional_11_Template, 4, 7, "span", 25);
|
|
483
480
|
} if (rf & 2) {
|
|
484
481
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
485
482
|
const customItemTemplate_r15 = i0__namespace.ɵɵreference(1);
|
|
@@ -492,13 +489,13 @@
|
|
|
492
489
|
i0__namespace.ɵɵproperty("ngModelOptions", i0__namespace.ɵɵpureFunction0(32, _c6))("readonly", ctx_r1.readonly)("typeahead", ctx_r1.typeaheadDataSource)("typeaheadWaitMs", ctx_r1.debouncetime)("typeaheadItemTemplate", customItemTemplate_r15)("optionsListTemplate", customListTemplate_r16)("typeaheadMinLength", ctx_r1.minchars)("typeaheadOptionsLimit", ctx_r1.limit)("typeaheadGroupField", ctx_r1.groupby ? "groupby" : null)("typeaheadAsync", true)("typeaheadScrollable", true)("adaptivePosition", true)("typeaheadOptionsInScrollableView", ctx_r1.optionslimitinscrollableview)("tabindex", ctx_r1.tabindex)("dropup", ctx_r1.dropup);
|
|
493
490
|
i0__namespace.ɵɵattribute("accesskey", ctx_r1.shortcutkey)("name", ctx_r1.name)("aria-label", ctx_r1.arialabel || "Search field");
|
|
494
491
|
i0__namespace.ɵɵadvance(2);
|
|
495
|
-
i0__namespace.ɵɵ
|
|
492
|
+
i0__namespace.ɵɵconditional(ctx_r1._loadingItems ? 6 : -1);
|
|
496
493
|
i0__namespace.ɵɵadvance();
|
|
497
494
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(33, _c7, ctx_r1.isQueryEntered()));
|
|
498
495
|
i0__namespace.ɵɵadvance();
|
|
499
496
|
i0__namespace.ɵɵclassMapInterpolate1("app-icon ", ctx_r1.clearsearchiconclass, "");
|
|
500
497
|
i0__namespace.ɵɵadvance(3);
|
|
501
|
-
i0__namespace.ɵɵ
|
|
498
|
+
i0__namespace.ɵɵconditional(ctx_r1.showsearchicon ? 11 : -1);
|
|
502
499
|
} }
|
|
503
500
|
const WIDGET_CONFIG = { widgetType: 'wm-search', hostClass: 'input-group' };
|
|
504
501
|
class SearchComponent extends input.DatasetAwareFormComponent {
|
|
@@ -1195,12 +1192,11 @@
|
|
|
1195
1192
|
i4.provideAs(SearchComponent, i2.NG_VALUE_ACCESSOR, true),
|
|
1196
1193
|
i4.provideAs(SearchComponent, i2.NG_VALIDATORS, true),
|
|
1197
1194
|
i4.provideAsWidgetRef(SearchComponent)
|
|
1198
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c2, decls:
|
|
1199
|
-
i0__namespace.ɵɵtemplate(0, SearchComponent_ng_template_0_Template, 2, 2, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor)(2, SearchComponent_ng_template_2_Template,
|
|
1195
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c2, decls: 6, vars: 1, consts: [["customItemTemplate", ""], ["customListTemplate", ""], ["ulElement", ""], ["liElements", ""], ["partialContainer", "", 3, "ngClass", "wmItemTemplate", "userComponentParams"], ["alt", "Search", 3, "src", "width"], [3, "title", "innerHtml"], ["alt", "Search", 3, "src"], ["partial-container-target", ""], ["scrollable", "", 1, "app-search", "dropdown-menu"], [3, "ngClass"], [1, "status", 3, "hidden"], [3, "textContent"], [1, "fa", "fa-circle-o-notch", "fa-spin"], [3, "mouseenter", "click", "ngClass"], [1, "group-title"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["type", "text", "focus-target", "", "container", "body", "autocomplete", "off", "typeaheadOptionField", "label", 1, "app-textbox", "form-control", "list-of-objs", "app-search-input", 3, "ngModelChange", "input", "keydown", "keydown.enter", "keydown.arrowdown", "blur", "click", "focus", "focusout", "typeaheadLoading", "typeaheadOnSelect", "title", "placeholder", "disabled", "ngModel", "ngModelOptions", "readonly", "typeahead", "typeaheadWaitMs", "typeaheadItemTemplate", "optionsListTemplate", "typeaheadMinLength", "typeaheadOptionsLimit", "typeaheadGroupField", "typeaheadAsync", "typeaheadScrollable", "adaptivePosition", "typeaheadOptionsInScrollableView", "dropup", "tabindex"], [1, "btn-close", "wi", "wi-cancel", 3, "click", "hidden"], ["aria-hidden", "true", 1, "btn", "btn-icon", "form-control-feedback", "back-btn", 3, "click"], [1, "sr-only"], ["type", "text", "focus-target", "", "autocomplete", "off", "typeaheadOptionField", "label", 1, "app-textbox", "form-control", "list-of-objs", "app-search-input", 3, "ngModelChange", "input", "keydown", "keydown.enter", "keydown.arrowdown", "blur", "click", "focus", "typeaheadLoading", "typeaheadOnSelect", "title", "placeholder", "container", "disabled", "ngModel", "ngModelOptions", "readonly", "typeahead", "typeaheadWaitMs", "typeaheadItemTemplate", "optionsListTemplate", "typeaheadMinLength", "typeaheadOptionsLimit", "typeaheadGroupField", "typeaheadAsync", "typeaheadScrollable", "adaptivePosition", "typeaheadOptionsInScrollableView", "tabindex", "dropup"], ["ng-model", "proxyModel", "ng-required", "required", "tabindex", "-1", "aria-hidden", "true", 1, "model-holder"], ["aria-hidden", "true", 1, "fa", "fa-circle-o-notch", "fa-spin", "form-control-feedback"], [1, "btn", "btn-icon", "form-control-feedback", "clear-btn", 3, "click", "ngClass"], [1, "input-group-addon", 3, "ngClass"], ["title", "Search", "type", "submit", 1, "app-search-button", "btn", "btn-icon", 3, "click", "disabled"]], template: function SearchComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1196
|
+
i0__namespace.ɵɵtemplate(0, SearchComponent_ng_template_0_Template, 2, 2, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor)(2, SearchComponent_ng_template_2_Template, 9, 4, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor)(4, SearchComponent_Conditional_4_Template, 2, 24)(5, SearchComponent_Conditional_5_Template, 12, 35);
|
|
1200
1197
|
} if (rf & 2) {
|
|
1201
|
-
const searchTemplate_r19 = i0__namespace.ɵɵreference(6);
|
|
1202
1198
|
i0__namespace.ɵɵadvance(4);
|
|
1203
|
-
i0__namespace.ɵɵ
|
|
1199
|
+
i0__namespace.ɵɵconditional(ctx.navsearchbar ? 4 : 5);
|
|
1204
1200
|
} }, encapsulation: 2 }); }
|
|
1205
1201
|
}
|
|
1206
1202
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchComponent, [{
|
|
@@ -1209,7 +1205,7 @@
|
|
|
1209
1205
|
i4.provideAs(SearchComponent, i2.NG_VALUE_ACCESSOR, true),
|
|
1210
1206
|
i4.provideAs(SearchComponent, i2.NG_VALIDATORS, true),
|
|
1211
1207
|
i4.provideAsWidgetRef(SearchComponent)
|
|
1212
|
-
], template: "<ng-template #customItemTemplate let-model=\"item\" let-index=\"index\" let-query=\"query\" let-match=\"match\">\n
|
|
1208
|
+
], template: "<ng-template #customItemTemplate let-model=\"item\" let-index=\"index\" let-query=\"query\" let-match=\"match\">\n <!-- Default item template -->\n @if (!content) {\n <a>\n @if (model.imgSrc) {\n <img [src]=\"model.imgSrc\" alt=\"Search\" [style.width]=\"imagewidth\">\n }\n <span [title]=\"model.label\" [innerHtml]=\"highlight(match, query) || model.label\"></span>\n </a>\n }\n <!-- Custom partial template -->\n @if (content) {\n <a [ngClass]=\"{customTemplate: content}\" partialContainer [wmItemTemplate]=\"content\" [userComponentParams]=\"match.item\">\n <div partial-container-target></div>\n </a>\n }\n</ng-template>\n\n<ng-template #customListTemplate let-matches=\"matches\" let-itemTemplate=\"itemTemplate\" let-query=\"query\">\n <ul #ulElement class=\"app-search dropdown-menu\" scrollable>\n @for (match of matches; track match; let i = $index) {\n <li #liElements [ngClass]=\"{active: typeaheadContainer && typeaheadContainer.isActive(match), 'list-group-header': match && match.isHeader()}\"\n (mouseenter)=\"typeaheadContainer.selectActive(match);\"\n (click)=\"match && !match.isHeader() && typeaheadContainer.selectMatch(match, $event); $typeaheadEvent = $event; notifySubscriber();\">\n <!-- itemTemplate comes from the <input> -->\n @if (match.isHeader()) {\n <h4 class=\"group-title\">{{match.value}}</h4>\n }\n @if (!match.isHeader()) {\n <ng-container [ngTemplateOutlet]=\"itemTemplate\"\n [ngTemplateOutletContext]=\"{item: match.item, index: i, match: match, query: query}\">\n </ng-container>\n }\n </li>\n }\n <div class=\"status\" [hidden]=\"_loadingItems || !(datacompletemsg && dataProvider.isLastPage)\">\n <span [textContent]=\"datacompletemsg\"></span>\n </div>\n <div class=\"status\" [hidden]=\"!_loadingItems\">\n <i class=\"fa fa-circle-o-notch fa-spin\"></i>\n <span [textContent]=\"loadingdatamsg\"></span>\n </div>\n </ul>\n</ng-template>\n\n<!--This template is for search inside mobile navbar.-->\n@if (navsearchbar) {\n <input [title]=\"query || ''\" type=\"text\" class=\"app-textbox form-control list-of-objs app-search-input\" [placeholder]=\"placeholder || ''\"\n focus-target\n container=\"body\"\n [disabled]=\"disabled\"\n [attr.accesskey]=\"shortcutkey\"\n autocomplete=\"off\"\n [(ngModel)]=\"query\"\n [ngModelOptions]=\"{standalone: true}\"\n [readonly]=\"readonly\"\n [typeahead]=\"typeaheadDataSource\"\n [typeaheadWaitMs]=\"debouncetime\"\n [typeaheadItemTemplate]=\"customItemTemplate\"\n [optionsListTemplate]=\"customListTemplate\"\n (input)=\"onInputChange($event)\"\n (keydown)=\"listenQuery = true\"\n (keydown.enter)=\"$typeaheadEvent = $event;handleEnterEvent($event)\"\n (keydown.arrowdown)=\"selectNext($event)\"\n (blur)=\"invokeOnTouched($event)\"\n (click)=\"handleFocus($event);\"\n (focus)=\"_unsubscribeDv = false; listenQuery = true; handleFocus($event); invokeOnFocus($event);\"\n (focusout)=\"onFocusOut()\"\n [typeaheadMinLength]=\"minchars\"\n [typeaheadOptionsLimit]=\"limit\"\n (typeaheadLoading)=\"_loadingItems\"\n (typeaheadOnSelect)=\"typeaheadOnSelect($event)\"\n typeaheadOptionField=\"label\"\n [typeaheadGroupField]=\"groupby ? 'groupby' : null\"\n [typeaheadAsync]=\"true\"\n [typeaheadScrollable]=\"true\"\n [adaptivePosition]=\"true\"\n [typeaheadOptionsInScrollableView]=\"optionslimitinscrollableview\"\n [dropup]=\"dropup\"\n [tabindex]=\"tabindex\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel || 'Search field'\"/>\n <i class=\"btn-close wi wi-cancel\" [hidden]=\"!showClosebtn\" (click)=\"clearSearch($event);\"></i>\n} @else {\n <button class=\"btn btn-icon form-control-feedback back-btn\" aria-hidden=\"true\" (click)=\"closeSearch()\"><i class=\"app-icon {{backsearchiconclass}}\"></i></button>\n <span class=\"sr-only\">Back button</span>\n <input [title]=\"query || ''\" type=\"text\" class=\"app-textbox form-control list-of-objs app-search-input\" [placeholder]=\"placeholder || ''\"\n focus-target\n [container]=\"containerTarget || '.wm-app'\"\n [disabled]=\"disabled\"\n [attr.accesskey]=\"shortcutkey\"\n autocomplete=\"off\"\n [(ngModel)]=\"query\"\n [ngModelOptions]=\"{standalone: true}\"\n [readonly]=\"readonly\"\n [typeahead]=\"typeaheadDataSource\"\n [typeaheadWaitMs]=\"debouncetime\"\n [typeaheadItemTemplate]=\"customItemTemplate\"\n [optionsListTemplate]=\"customListTemplate\"\n (input)=\"onInputChange($event)\"\n (keydown)=\"listenQuery = true\"\n (keydown.enter)=\"$typeaheadEvent = $event;handleEnterEvent($event)\"\n (keydown.arrowdown)=\"selectNext($event)\"\n (blur)=\"invokeOnTouched($event); onFocusOut()\"\n (click)=\"handleFocus($event);\"\n (focus)=\"_unsubscribeDv = false; listenQuery = true; handleFocus($event); invokeOnFocus($event)\"\n [typeaheadMinLength]=\"minchars\"\n [typeaheadOptionsLimit]=\"limit\"\n (typeaheadLoading)=\"_loadingItems\"\n (typeaheadOnSelect)=\"typeaheadOnSelect($event)\"\n typeaheadOptionField=\"label\"\n [typeaheadGroupField]=\"groupby ? 'groupby' : null\"\n [typeaheadAsync]=\"true\"\n [typeaheadScrollable]=\"true\"\n [adaptivePosition]=\"true\"\n [typeaheadOptionsInScrollableView]=\"optionslimitinscrollableview\"\n [tabindex]=\"tabindex\"\n [dropup]=\"dropup\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel || 'Search field'\">\n <input class=\"model-holder\" ng-model=\"proxyModel\" ng-required=\"required\" tabindex=\"-1\" aria-hidden=\"true\">\n @if (_loadingItems) {\n <span aria-hidden=\"true\" class=\"fa fa-circle-o-notch fa-spin form-control-feedback\"></span>\n }\n <button class=\"btn btn-icon form-control-feedback clear-btn\" [ngClass]=\"{'show-btn': isQueryEntered()}\" (click)=\"clearSearch($event, true)\"><i class=\"app-icon {{clearsearchiconclass}}\"></i></button>\n <span class=\"sr-only\">Clear button</span>\n @if (showsearchicon) {\n <span [ngClass]=\"{'disabled': disabled}\" class=\"input-group-addon\">\n <form>\n <button title=\"Search\" [disabled]=\"disabled\" class=\"app-search-button btn btn-icon\" type=\"submit\"\n (click)=\"onSearchSelect($event)\">\n <i class=\"app-icon {{searchiconclass}}\"></i></button>\n </form>\n </span>\n }\n }\n <!--This template is for both web and fullscreen mode in mobile.-->\n" }]
|
|
1213
1209
|
}], () => [{ type: i0__namespace.Injector }, { type: i1__namespace.App }, { type: undefined, decorators: [{
|
|
1214
1210
|
type: i0.Attribute,
|
|
1215
1211
|
args: ['datavalue.bind']
|
|
@@ -1295,7 +1291,7 @@
|
|
|
1295
1291
|
i3.TypeaheadModule,
|
|
1296
1292
|
i4.WmComponentsModule], exports: [SearchComponent,
|
|
1297
1293
|
ScrollableDirective] }); })();
|
|
1298
|
-
i0__namespace.ɵɵsetComponentScope(SearchComponent, [i1$1__namespace.NgClass, i1$1__namespace.
|
|
1294
|
+
i0__namespace.ɵɵsetComponentScope(SearchComponent, [i1$1__namespace.NgClass, i1$1__namespace.NgTemplateOutlet, i2__namespace.ɵNgNoValidate, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.NgControlStatusGroup, i2__namespace.NgModel, i2__namespace.NgForm, i3__namespace.TypeaheadDirective, i4__namespace.ItemTemplateDirective, i4__namespace.PartialParamHandlerDirective, i4__namespace.PartialContainerDirective, i4__namespace.TextContentDirective, ScrollableDirective], []);
|
|
1299
1295
|
|
|
1300
1296
|
exports.ScrollableDirective = ScrollableDirective;
|
|
1301
1297
|
exports.SearchComponent = SearchComponent;
|