@wavemaker/app-ng-runtime 11.10.3-next.25128 → 11.10.3-rc.6079
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/components/basic/default/bundles/index.umd.js +68 -68
- package/components/basic/default/esm2022/anchor/anchor.component.mjs +18 -18
- package/components/basic/default/esm2022/icon/icon.component.mjs +13 -12
- package/components/basic/default/esm2022/iframe/iframe.component.mjs +10 -9
- package/components/basic/default/esm2022/spinner/spinner.component.mjs +21 -21
- package/components/basic/default/esm2022/video/video.component.mjs +15 -14
- package/components/basic/default/fesm2022/index.mjs +68 -68
- package/components/basic/default/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/bundles/index.umd.js +17 -16
- package/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +8 -7
- package/components/basic/progress/fesm2022/index.mjs +9 -8
- package/components/basic/progress/fesm2022/index.mjs.map +1 -1
- package/components/basic/rich-text-editor/bundles/index.umd.js +12 -11
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +9 -8
- package/components/basic/rich-text-editor/fesm2022/index.mjs +8 -7
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/bundles/index.umd.js +67 -63
- package/components/basic/search/esm2022/search.component.mjs +67 -63
- package/components/basic/search/esm2022/search.module.mjs +2 -2
- package/components/basic/search/fesm2022/index.mjs +67 -63
- 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 +96 -91
- package/components/data/form/esm2022/form.component.mjs +97 -92
- package/components/data/form/fesm2022/index.mjs +96 -91
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/list/bundles/index.umd.js +173 -171
- package/components/data/list/esm2022/list.component.mjs +173 -171
- package/components/data/list/esm2022/list.module.mjs +2 -2
- package/components/data/list/fesm2022/index.mjs +173 -171
- 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 +38 -39
- package/components/data/table/esm2022/table.component.mjs +39 -40
- package/components/data/table/fesm2022/index.mjs +38 -39
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/default/bundles/index.umd.js +95 -66
- package/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +96 -67
- package/components/dialogs/default/fesm2022/index.mjs +95 -66
- 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 +25 -24
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +16 -15
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +15 -14
- 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 +209 -201
- package/components/input/default/esm2022/button/button.component.mjs +18 -18
- package/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +69 -68
- package/components/input/default/esm2022/radioset/radioset.component.mjs +69 -68
- package/components/input/default/esm2022/select/select.component.mjs +27 -21
- 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 +209 -201
- package/components/input/default/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/bundles/index.umd.js +164 -171
- package/components/input/epoch/esm2022/date/date.component.mjs +15 -14
- package/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +59 -64
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +19 -18
- package/components/input/epoch/esm2022/picker/picker.component.mjs +25 -26
- package/components/input/epoch/esm2022/time/time.component.mjs +18 -17
- package/components/input/epoch/fesm2022/index.mjs +117 -124
- package/components/input/epoch/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/bundles/index.umd.js +114 -111
- package/components/input/file-upload/esm2022/file-upload.component.mjs +115 -112
- package/components/input/file-upload/fesm2022/index.mjs +114 -111
- 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 +40 -39
- package/components/input/slider/esm2022/slider.component.mjs +11 -10
- package/components/input/slider/fesm2022/index.mjs +10 -9
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/navigation/breadcrumb/bundles/index.umd.js +15 -16
- package/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +16 -17
- package/components/navigation/breadcrumb/fesm2022/index.mjs +15 -16
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/bundles/index.umd.js +71 -69
- 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 +26 -22
- package/components/navigation/menu/esm2022/menu.module.mjs +4 -4
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +24 -26
- package/components/navigation/menu/fesm2022/index.mjs +71 -69
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- 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 +111 -102
- package/mobile/components/basic/default/esm2022/file-browser/file-browser.component.mjs +40 -39
- package/mobile/components/basic/default/esm2022/network-info-toaster/network-info-toaster.component.mjs +44 -35
- package/mobile/components/basic/default/esm2022/process-manager/process-manager.component.mjs +28 -27
- package/mobile/components/basic/default/fesm2022/index.mjs +107 -98
- 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 +9 -8
- 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 +215 -219
- package/runtime/base/esm2022/components/app-component/app.component.mjs +41 -38
- package/runtime/base/esm2022/components/app-spinner.component.mjs +21 -25
- package/runtime/base/esm2022/components/custom-toaster.component.mjs +16 -18
- package/runtime/base/fesm2022/index.mjs +95 -99
- package/runtime/base/fesm2022/index.mjs.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/iframe-dialog/src/iframe-dialog.props.ts","../../../../../projects/components/widgets/dialogs/iframe-dialog/src/iframe-dialog.component.html","../../../../../projects/components/widgets/dialogs/iframe-dialog/src/iframe-dialog.component.ts","../../../../../projects/components/widgets/dialogs/iframe-dialog/src/iframe-dialog.module.ts","../../../../../projects/components/widgets/dialogs/iframe-dialog/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-iframedialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, PROP_BOOLEAN}],\n ['encodeurl', {value: false, ...PROP_BOOLEAN}],\n ['height', {value: '400px', ...PROP_STRING}],\n ['iconclass', {value: 'wi wi-globe', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['modal', {value: false, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['oktext', {value: 'OK', ...PROP_STRING}],\n ['showactions', {value: true, ...PROP_BOOLEAN}],\n ['showheader', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['headinglevel', {value: 'h4', ...PROP_STRING}],\n ['title', {value: 'External Content', ...PROP_STRING}],\n ['url', {value: '//www.wavemaker.com', ...PROP_STRING}]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n @if (showheader) {\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"\n ></div>\n }\n <div wmDialogBody>\n <div wmIframe encodeurl.bind=\"encodeurl\" iframesrc.bind=\"url\" height.bind=\"height\" width.bind=\"width\" hint.bind=\"hint\"></div>\n </div>\n @if (showactions) {\n <div wmDialogFooter>\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n }\n</ng-template>\n","import {\n Attribute,\n Component,\n Inject,\n Injector,\n OnInit,\n Optional,\n SkipSelf,\n TemplateRef,\n ViewChild\n} from '@angular/core';\n\nimport {toBoolean} from '@wm/core';\nimport { provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './iframe-dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog app-iframe-dialog';\nconst WIDGET_INFO = {widgetType: 'wm-iframedialog'};\n\n@Component({\n selector: 'div[wmIframeDialog]',\n templateUrl: './iframe-dialog.component.html',\n providers: [\n provideAsWidgetRef(IframeDialogComponent),\n provideAsDialogRef(IframeDialogComponent)\n ]\n})\nexport class IframeDialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n\n @ViewChild('dialogTemplate' , { static: true }) dialogTemplate: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n if (modal === null || modal === undefined) {\n modal = false;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop: boolean | 'static' = toBoolean(modal) ? 'static' : true;\n\n super(\n inj,\n WIDGET_INFO,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: !toBoolean(modal)\n },\n explicitContext\n );\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n /**\n * Click event handler for the ok button\n * invokes on-ok event callback\n * @param {Event} $event\n */\n onOk($event: Event) {\n this.invokeEventCallback('ok', {$event});\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { BasicModule } from '@wm/components/basic';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { IframeDialogComponent } from './iframe-dialog.component';\n\nconst components = [\n IframeDialogComponent\n];\n\n@NgModule({\n imports: [\n BasicModule,\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class IframeDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,iBAAiB,EACjB,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,YAAY,EAAC,CAAC;QACzC,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,EAAC,CAAC;QAC9C,CAAC,QAAQ,EAAE,EAAC,KAAK,EAAE,OAAO,EAAE,GAAG,WAAW,EAAC,CAAC;QAC5C,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,aAAa,EAAE,WAAW,EAAC,CAAC;QAClD,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,EAAC,CAAC;QAC1C,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,QAAQ,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,WAAW,EAAC,CAAC;QACzC,CAAC,aAAa,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;QAC/C,CAAC,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI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AAA,CAAA,EAAA,GAAA;;ACnBlC,MAAM,UAAU,GAAG;IACf;CACH;MAaY,kBAAkB,CAAA;mHAAlB,kBAAkB,GAAA,CAAA,EAAA,CAAA;mEAAlB,kBAAkB,EAAA,CAAA,CAAA;uEATvB,WAAW;YACX,YAAY;YACZ,YAAY;YACZ,WAAW;YACX,kBAAkB,CAAA,EAAA,CAAA,CAAA;;iFAKb,kBAAkB,EAAA,CAAA;cAX9B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,WAAW;oBACX,YAAY;oBACZ,YAAY;oBACZ,WAAW;oBACX;AACH,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU;AAC1B,aAAA;;wFACY,kBAAkB,EAAA,EAAA,YAAA,EAAA,CAd3B,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAKjB,WAAW;QACX,YAAY;QACZ,YAAY;QACZ,WAAW;AACX,QAAA,kBAAkB,aATtB,qBAAqB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACXzB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/iframe-dialog/src/iframe-dialog.props.ts","../../../../../projects/components/widgets/dialogs/iframe-dialog/src/iframe-dialog.component.html","../../../../../projects/components/widgets/dialogs/iframe-dialog/src/iframe-dialog.component.ts","../../../../../projects/components/widgets/dialogs/iframe-dialog/src/iframe-dialog.module.ts","../../../../../projects/components/widgets/dialogs/iframe-dialog/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-iframedialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, PROP_BOOLEAN}],\n ['encodeurl', {value: false, ...PROP_BOOLEAN}],\n ['height', {value: '400px', ...PROP_STRING}],\n ['iconclass', {value: 'wi wi-globe', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['modal', {value: false, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['oktext', {value: 'OK', ...PROP_STRING}],\n ['showactions', {value: true, ...PROP_BOOLEAN}],\n ['showheader', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['headinglevel', {value: 'h4', ...PROP_STRING}],\n ['title', {value: 'External Content', ...PROP_STRING}],\n ['url', {value: '//www.wavemaker.com', ...PROP_STRING}]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n *ngIf=\"showheader\"\n [title]=\"title\"\n [titleid]=\"titleId\"\n ></div>\n <div wmDialogBody>\n <div wmIframe encodeurl.bind=\"encodeurl\" iframesrc.bind=\"url\" height.bind=\"height\" width.bind=\"width\" hint.bind=\"hint\"></div>\n </div>\n <div wmDialogFooter *ngIf=\"showactions\">\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n</ng-template>\n","import {\n Attribute,\n Component,\n Inject,\n Injector,\n OnInit,\n Optional,\n SkipSelf,\n TemplateRef,\n ViewChild\n} from '@angular/core';\n\nimport {toBoolean} from '@wm/core';\nimport { provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './iframe-dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog app-iframe-dialog';\nconst WIDGET_INFO = {widgetType: 'wm-iframedialog'};\n\n@Component({\n selector: 'div[wmIframeDialog]',\n templateUrl: './iframe-dialog.component.html',\n providers: [\n provideAsWidgetRef(IframeDialogComponent),\n provideAsDialogRef(IframeDialogComponent)\n ]\n})\nexport class IframeDialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n\n @ViewChild('dialogTemplate' , { static: true }) dialogTemplate: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n if (modal === null || modal === undefined) {\n modal = false;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop: boolean | 'static' = toBoolean(modal) ? 'static' : true;\n\n super(\n inj,\n WIDGET_INFO,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: !toBoolean(modal)\n },\n explicitContext\n );\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n /**\n * Click event handler for the ok button\n * invokes on-ok event callback\n * @param {Event} $event\n */\n onOk($event: Event) {\n this.invokeEventCallback('ok', {$event});\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { BasicModule } from '@wm/components/basic';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { IframeDialogComponent } from './iframe-dialog.component';\n\nconst components = [\n IframeDialogComponent\n];\n\n@NgModule({\n imports: [\n BasicModule,\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class IframeDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],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AAG;IACf;CACH;MAaY,kBAAkB,CAAA;mHAAlB,kBAAkB,GAAA,CAAA,EAAA,CAAA;mEAAlB,kBAAkB,EAAA,CAAA,CAAA;uEATvB,WAAW;YACX,YAAY;YACZ,YAAY;YACZ,WAAW;YACX,kBAAkB,CAAA,EAAA,CAAA,CAAA;;iFAKb,kBAAkB,EAAA,CAAA;cAX9B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,WAAW;oBACX,YAAY;oBACZ,YAAY;oBACZ,WAAW;oBACX;AACH,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU;AAC1B,aAAA;;wFACY,kBAAkB,EAAA,EAAA,YAAA,EAAA,CAd3B,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAKjB,WAAW;QACX,YAAY;QACZ,YAAY;QACZ,WAAW;AACX,QAAA,kBAAkB,aATtB,qBAAqB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACXzB;;AAEG;;;;"}
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
function PartialDialogComponent_ng_template_0_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
55
55
|
i0__namespace.ɵɵelementContainer(0);
|
|
56
56
|
} }
|
|
57
|
-
function
|
|
57
|
+
function PartialDialogComponent_ng_template_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
58
58
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
59
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
60
|
-
i0__namespace.ɵɵlistener("click", function
|
|
59
|
+
i0__namespace.ɵɵelementStart(0, "div", 5)(1, "button", 6);
|
|
60
|
+
i0__namespace.ɵɵlistener("click", function PartialDialogComponent_ng_template_0_div_3_Template_button_click_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); const ctx_r1 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r1.onOk($event)); });
|
|
61
61
|
i0__namespace.ɵɵelementEnd()();
|
|
62
62
|
} if (rf & 2) {
|
|
63
63
|
const ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
@@ -69,14 +69,14 @@
|
|
|
69
69
|
i0__namespace.ɵɵelementStart(1, "div", 2);
|
|
70
70
|
i0__namespace.ɵɵtemplate(2, PartialDialogComponent_ng_template_0_ng_container_2_Template, 1, 0, "ng-container", 3);
|
|
71
71
|
i0__namespace.ɵɵelementEnd();
|
|
72
|
-
i0__namespace.ɵɵtemplate(3,
|
|
72
|
+
i0__namespace.ɵɵtemplate(3, PartialDialogComponent_ng_template_0_div_3_Template, 2, 1, "div", 4);
|
|
73
73
|
} if (rf & 2) {
|
|
74
74
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
75
75
|
i0__namespace.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("title", ctx_r1.title)("titleid", ctx_r1.titleId);
|
|
76
76
|
i0__namespace.ɵɵadvance(2);
|
|
77
77
|
i0__namespace.ɵɵproperty("ngTemplateOutlet", ctx_r1.dialogContent);
|
|
78
78
|
i0__namespace.ɵɵadvance();
|
|
79
|
-
i0__namespace.ɵɵ
|
|
79
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.showactions);
|
|
80
80
|
} }
|
|
81
81
|
const DIALOG_CLS = 'app-dialog modal-dialog app-page-dialog';
|
|
82
82
|
const WIDGET_INFO = { widgetType: 'wm-partialdialog' };
|
|
@@ -144,16 +144,16 @@
|
|
|
144
144
|
} }, features: [i0__namespace.ɵɵProvidersFeature([
|
|
145
145
|
base.provideAsWidgetRef(PartialDialogComponent),
|
|
146
146
|
base.provideAsDialogRef(PartialDialogComponent)
|
|
147
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c2, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "title", "titleid"], ["wmDialogBody", ""], [4, "ngTemplateOutlet"], ["wmDialogFooter", ""], ["caption.bind", "oktext", "wmButton", "", 1, "btn-primary", "ok-action", 3, "click"]], template: function PartialDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
147
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c2, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "title", "titleid"], ["wmDialogBody", ""], [4, "ngTemplateOutlet"], ["wmDialogFooter", "", 4, "ngIf"], ["wmDialogFooter", ""], ["caption.bind", "oktext", "wmButton", "", 1, "btn-primary", "ok-action", 3, "click"]], template: function PartialDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
148
148
|
i0__namespace.ɵɵtemplate(0, PartialDialogComponent_ng_template_0_Template, 4, 12, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
|
|
149
|
-
} }, dependencies: [i2__namespace.NgTemplateOutlet, i3__namespace.DialogBodyDirective, i3__namespace.DialogFooterDirective, i3__namespace.DialogHeaderComponent, i4__namespace.ButtonComponent], encapsulation: 2 }); }
|
|
149
|
+
} }, dependencies: [i2__namespace.NgIf, i2__namespace.NgTemplateOutlet, i3__namespace.DialogBodyDirective, i3__namespace.DialogFooterDirective, i3__namespace.DialogHeaderComponent, i4__namespace.ButtonComponent], encapsulation: 2 }); }
|
|
150
150
|
}
|
|
151
151
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PartialDialogComponent, [{
|
|
152
152
|
type: i0.Component,
|
|
153
153
|
args: [{ selector: 'div[wmPartialDialog]', providers: [
|
|
154
154
|
base.provideAsWidgetRef(PartialDialogComponent),
|
|
155
155
|
base.provideAsDialogRef(PartialDialogComponent)
|
|
156
|
-
], template: "<ng-template #dialogTemplate>\n
|
|
156
|
+
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"\n ></div>\n <div wmDialogBody>\n <ng-container *ngTemplateOutlet=\"dialogContent\"></ng-container>\n </div>\n <div wmDialogFooter *ngIf=\"showactions\">\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n</ng-template>\n" }]
|
|
157
157
|
}], () => [{ type: i0__namespace.Injector }, { type: i1__namespace.App }, { type: undefined, decorators: [{
|
|
158
158
|
type: i0.Attribute,
|
|
159
159
|
args: ['class']
|
|
@@ -14,10 +14,10 @@ const _c2 = ["wmPartialDialog", ""];
|
|
|
14
14
|
function PartialDialogComponent_ng_template_0_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
15
15
|
i0.ɵɵelementContainer(0);
|
|
16
16
|
} }
|
|
17
|
-
function
|
|
17
|
+
function PartialDialogComponent_ng_template_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
18
18
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
19
|
-
i0.ɵɵelementStart(0, "div",
|
|
20
|
-
i0.ɵɵlistener("click", function
|
|
19
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "button", 6);
|
|
20
|
+
i0.ɵɵlistener("click", function PartialDialogComponent_ng_template_0_div_3_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onOk($event)); });
|
|
21
21
|
i0.ɵɵelementEnd()();
|
|
22
22
|
} if (rf & 2) {
|
|
23
23
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -29,14 +29,14 @@ function PartialDialogComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
29
29
|
i0.ɵɵelementStart(1, "div", 2);
|
|
30
30
|
i0.ɵɵtemplate(2, PartialDialogComponent_ng_template_0_ng_container_2_Template, 1, 0, "ng-container", 3);
|
|
31
31
|
i0.ɵɵelementEnd();
|
|
32
|
-
i0.ɵɵtemplate(3,
|
|
32
|
+
i0.ɵɵtemplate(3, PartialDialogComponent_ng_template_0_div_3_Template, 2, 1, "div", 4);
|
|
33
33
|
} if (rf & 2) {
|
|
34
34
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
35
35
|
i0.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("title", ctx_r1.title)("titleid", ctx_r1.titleId);
|
|
36
36
|
i0.ɵɵadvance(2);
|
|
37
37
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.dialogContent);
|
|
38
38
|
i0.ɵɵadvance();
|
|
39
|
-
i0.ɵɵ
|
|
39
|
+
i0.ɵɵproperty("ngIf", ctx_r1.showactions);
|
|
40
40
|
} }
|
|
41
41
|
const DIALOG_CLS = 'app-dialog modal-dialog app-page-dialog';
|
|
42
42
|
const WIDGET_INFO = { widgetType: 'wm-partialdialog' };
|
|
@@ -107,16 +107,16 @@ export class PartialDialogComponent extends BaseDialog {
|
|
|
107
107
|
} }, features: [i0.ɵɵProvidersFeature([
|
|
108
108
|
provideAsWidgetRef(PartialDialogComponent),
|
|
109
109
|
provideAsDialogRef(PartialDialogComponent)
|
|
110
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c2, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "title", "titleid"], ["wmDialogBody", ""], [4, "ngTemplateOutlet"], ["wmDialogFooter", ""], ["caption.bind", "oktext", "wmButton", "", 1, "btn-primary", "ok-action", 3, "click"]], template: function PartialDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
110
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c2, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "title", "titleid"], ["wmDialogBody", ""], [4, "ngTemplateOutlet"], ["wmDialogFooter", "", 4, "ngIf"], ["wmDialogFooter", ""], ["caption.bind", "oktext", "wmButton", "", 1, "btn-primary", "ok-action", 3, "click"]], template: function PartialDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
111
111
|
i0.ɵɵtemplate(0, PartialDialogComponent_ng_template_0_Template, 4, 12, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
112
|
-
} }, dependencies: [i2.NgTemplateOutlet, i3.DialogBodyDirective, i3.DialogFooterDirective, i3.DialogHeaderComponent, i4.ButtonComponent], encapsulation: 2 }); }
|
|
112
|
+
} }, dependencies: [i2.NgIf, i2.NgTemplateOutlet, i3.DialogBodyDirective, i3.DialogFooterDirective, i3.DialogHeaderComponent, i4.ButtonComponent], encapsulation: 2 }); }
|
|
113
113
|
}
|
|
114
114
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PartialDialogComponent, [{
|
|
115
115
|
type: Component,
|
|
116
116
|
args: [{ selector: 'div[wmPartialDialog]', providers: [
|
|
117
117
|
provideAsWidgetRef(PartialDialogComponent),
|
|
118
118
|
provideAsDialogRef(PartialDialogComponent)
|
|
119
|
-
], template: "<ng-template #dialogTemplate>\n
|
|
119
|
+
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"\n ></div>\n <div wmDialogBody>\n <ng-container *ngTemplateOutlet=\"dialogContent\"></ng-container>\n </div>\n <div wmDialogFooter *ngIf=\"showactions\">\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n</ng-template>\n" }]
|
|
120
120
|
}], () => [{ type: i0.Injector }, { type: i1.App }, { type: undefined, decorators: [{
|
|
121
121
|
type: Attribute,
|
|
122
122
|
args: ['class']
|
|
@@ -142,4 +142,4 @@ export class PartialDialogComponent extends BaseDialog {
|
|
|
142
142
|
args: ['partial']
|
|
143
143
|
}] }); })();
|
|
144
144
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PartialDialogComponent, { className: "PartialDialogComponent", filePath: "partial-dialog.component.ts", lineNumber: 31 }); })();
|
|
145
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
145
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFydGlhbC1kaWFsb2cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29tcG9uZW50cy93aWRnZXRzL2RpYWxvZ3MvcGFydGlhbC1kaWFsb2cvc3JjL3BhcnRpYWwtZGlhbG9nLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvd2lkZ2V0cy9kaWFsb2dzL3BhcnRpYWwtZGlhbG9nL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XG4gICAgICAgICBbdGl0bGVdPVwidGl0bGVcIlxuICAgICAgICAgW3RpdGxlaWRdPVwidGl0bGVJZFwiXG4gICAgPjwvZGl2PlxuICAgIDxkaXYgd21EaWFsb2dCb2R5PlxuICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwiZGlhbG9nQ29udGVudFwiPjwvbmctY29udGFpbmVyPlxuICAgIDwvZGl2PlxuICAgIDxkaXYgd21EaWFsb2dGb290ZXIgKm5nSWY9XCJzaG93YWN0aW9uc1wiPlxuICAgICAgICA8YnV0dG9uIChjbGljayk9XCJvbk9rKCRldmVudClcIiBbYXR0ci5hcmlhLWxhYmVsXT1cIm9rdGV4dFwiIGNhcHRpb24uYmluZD1cIm9rdGV4dFwiIGNsYXNzPVwiYnRuLXByaW1hcnkgb2stYWN0aW9uXCJcbiAgICAgICAgICAgICAgICB3bUJ1dHRvbj48L2J1dHRvbj5cbiAgICA8L2Rpdj5cbjwvbmctdGVtcGxhdGU+XG4iXX0=
|
|
@@ -37,10 +37,10 @@ const _c2 = ["wmPartialDialog", ""];
|
|
|
37
37
|
function PartialDialogComponent_ng_template_0_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
38
38
|
i0.ɵɵelementContainer(0);
|
|
39
39
|
} }
|
|
40
|
-
function
|
|
40
|
+
function PartialDialogComponent_ng_template_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
41
41
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
42
|
-
i0.ɵɵelementStart(0, "div",
|
|
43
|
-
i0.ɵɵlistener("click", function
|
|
42
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "button", 6);
|
|
43
|
+
i0.ɵɵlistener("click", function PartialDialogComponent_ng_template_0_div_3_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onOk($event)); });
|
|
44
44
|
i0.ɵɵelementEnd()();
|
|
45
45
|
} if (rf & 2) {
|
|
46
46
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -52,14 +52,14 @@ function PartialDialogComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
52
52
|
i0.ɵɵelementStart(1, "div", 2);
|
|
53
53
|
i0.ɵɵtemplate(2, PartialDialogComponent_ng_template_0_ng_container_2_Template, 1, 0, "ng-container", 3);
|
|
54
54
|
i0.ɵɵelementEnd();
|
|
55
|
-
i0.ɵɵtemplate(3,
|
|
55
|
+
i0.ɵɵtemplate(3, PartialDialogComponent_ng_template_0_div_3_Template, 2, 1, "div", 4);
|
|
56
56
|
} if (rf & 2) {
|
|
57
57
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
58
58
|
i0.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("title", ctx_r1.title)("titleid", ctx_r1.titleId);
|
|
59
59
|
i0.ɵɵadvance(2);
|
|
60
60
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.dialogContent);
|
|
61
61
|
i0.ɵɵadvance();
|
|
62
|
-
i0.ɵɵ
|
|
62
|
+
i0.ɵɵproperty("ngIf", ctx_r1.showactions);
|
|
63
63
|
} }
|
|
64
64
|
const DIALOG_CLS = 'app-dialog modal-dialog app-page-dialog';
|
|
65
65
|
const WIDGET_INFO = { widgetType: 'wm-partialdialog' };
|
|
@@ -130,16 +130,16 @@ class PartialDialogComponent extends BaseDialog {
|
|
|
130
130
|
} }, features: [i0.ɵɵProvidersFeature([
|
|
131
131
|
provideAsWidgetRef(PartialDialogComponent),
|
|
132
132
|
provideAsDialogRef(PartialDialogComponent)
|
|
133
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c2, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "title", "titleid"], ["wmDialogBody", ""], [4, "ngTemplateOutlet"], ["wmDialogFooter", ""], ["caption.bind", "oktext", "wmButton", "", 1, "btn-primary", "ok-action", 3, "click"]], template: function PartialDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
133
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c2, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "title", "titleid"], ["wmDialogBody", ""], [4, "ngTemplateOutlet"], ["wmDialogFooter", "", 4, "ngIf"], ["wmDialogFooter", ""], ["caption.bind", "oktext", "wmButton", "", 1, "btn-primary", "ok-action", 3, "click"]], template: function PartialDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
134
134
|
i0.ɵɵtemplate(0, PartialDialogComponent_ng_template_0_Template, 4, 12, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
135
|
-
} }, dependencies: [i2.NgTemplateOutlet, i3.DialogBodyDirective, i3.DialogFooterDirective, i3.DialogHeaderComponent, i4.ButtonComponent], encapsulation: 2 }); }
|
|
135
|
+
} }, dependencies: [i2.NgIf, i2.NgTemplateOutlet, i3.DialogBodyDirective, i3.DialogFooterDirective, i3.DialogHeaderComponent, i4.ButtonComponent], encapsulation: 2 }); }
|
|
136
136
|
}
|
|
137
137
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PartialDialogComponent, [{
|
|
138
138
|
type: Component,
|
|
139
139
|
args: [{ selector: 'div[wmPartialDialog]', providers: [
|
|
140
140
|
provideAsWidgetRef(PartialDialogComponent),
|
|
141
141
|
provideAsDialogRef(PartialDialogComponent)
|
|
142
|
-
], template: "<ng-template #dialogTemplate>\n
|
|
142
|
+
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"\n ></div>\n <div wmDialogBody>\n <ng-container *ngTemplateOutlet=\"dialogContent\"></ng-container>\n </div>\n <div wmDialogFooter *ngIf=\"showactions\">\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n</ng-template>\n" }]
|
|
143
143
|
}], () => [{ type: i0.Injector }, { type: i1.App }, { type: undefined, decorators: [{
|
|
144
144
|
type: Attribute,
|
|
145
145
|
args: ['class']
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/partial-dialog/src/partial-dialog.props.ts","../../../../../projects/components/widgets/dialogs/partial-dialog/src/partial-dialog.component.html","../../../../../projects/components/widgets/dialogs/partial-dialog/src/partial-dialog.component.ts","../../../../../projects/components/widgets/dialogs/partial-dialog/src/partial-dialog.module.ts","../../../../../projects/components/widgets/dialogs/partial-dialog/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-partialdialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, PROP_BOOLEAN}],\n ['content', PROP_STRING],\n ['iconclass', {value: 'wi wi-file', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['modal', {value: false, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['oktext', {value: 'OK', ...PROP_STRING}],\n ['showactions', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['headinglevel', {value: 'h4', ...PROP_STRING}],\n ['title', {value: 'Page Content', ...PROP_STRING}]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"\n ></div>\n <div wmDialogBody>\n <ng-container *ngTemplateOutlet=\"dialogContent\"></ng-container>\n </div>\n @if (showactions) {\n <div wmDialogFooter>\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n }\n</ng-template>\n","import {\n Attribute,\n Component,\n ContentChild,\n Inject,\n Injector,\n OnInit,\n Optional,\n SkipSelf,\n TemplateRef,\n ViewChild\n} from '@angular/core';\n\nimport {App, toBoolean} from '@wm/core';\nimport { provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './partial-dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog app-page-dialog';\nconst WIDGET_INFO = {widgetType: 'wm-partialdialog'};\n\n@Component({\n selector: 'div[wmPartialDialog]',\n templateUrl: './partial-dialog.component.html',\n providers: [\n provideAsWidgetRef(PartialDialogComponent),\n provideAsDialogRef(PartialDialogComponent)\n ]\n})\nexport class PartialDialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n @ViewChild('dialogTemplate', { static: true }) dialogTemplate: TemplateRef<any>;\n @ContentChild(TemplateRef) dialogContent: TemplateRef<any>;\n @ContentChild('partial') partialRef;\n\n protected app;\n protected Widgets;\n protected Variables;\n protected Actions;\n\n constructor(\n inj: Injector,\n app: App,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n if (modal === null || modal === undefined) {\n modal = false;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop: boolean | 'static' = toBoolean(modal) ? 'static' : true;\n\n super(\n inj,\n WIDGET_INFO,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: !toBoolean(modal)\n },\n explicitContext\n );\n this.app = app;\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n /**\n * Click event handler for the ok button\n * invokes on-ok event callback\n * @param {Event} $event\n */\n onOk($event: Event) {\n this.invokeEventCallback('ok', {$event});\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n\n private setPartialLoadListener() {\n const cancelSubscription = this.app.subscribe('partialLoaded', () => {\n const parEle = this.partialRef.nativeElement;\n let partialScope;\n if (parEle) {\n partialScope = parEle.widget;\n this.Widgets = partialScope.Widgets;\n this.Variables = partialScope.Variables;\n this.Actions = partialScope.Actions;\n }\n cancelSubscription();\n });\n }\n\n public open(initState?: any) {\n super.open(initState);\n // WMS-19410 - Set the partial load listener to access widgets, variables and actions of page dialog\n this.setPartialLoadListener();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { PartialDialogComponent } from './partial-dialog.component';\n\nconst components = [\n PartialDialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class PartialDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;AA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AAA,SAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACrBnC,MAAM,UAAU,GAAG;IACf;CACH;MAYY,mBAAmB,CAAA;oHAAnB,mBAAmB,GAAA,CAAA,EAAA,CAAA;mEAAnB,mBAAmB,EAAA,CAAA,CAAA;uEARxB,YAAY;YACZ,YAAY;YACZ,WAAW;YACX,kBAAkB,CAAA,EAAA,CAAA,CAAA;;iFAKb,mBAAmB,EAAA,CAAA;cAV/B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,YAAY;oBACZ,WAAW;oBACX;AACH,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU;AAC1B,aAAA;;wFACY,mBAAmB,EAAA,EAAA,YAAA,EAAA,CAb5B,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAKlB,YAAY;QACZ,YAAY;QACZ,WAAW;AACX,QAAA,kBAAkB,aARtB,sBAAsB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACV1B;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/partial-dialog/src/partial-dialog.props.ts","../../../../../projects/components/widgets/dialogs/partial-dialog/src/partial-dialog.component.html","../../../../../projects/components/widgets/dialogs/partial-dialog/src/partial-dialog.component.ts","../../../../../projects/components/widgets/dialogs/partial-dialog/src/partial-dialog.module.ts","../../../../../projects/components/widgets/dialogs/partial-dialog/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-partialdialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, PROP_BOOLEAN}],\n ['content', PROP_STRING],\n ['iconclass', {value: 'wi wi-file', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['modal', {value: false, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['oktext', {value: 'OK', ...PROP_STRING}],\n ['showactions', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['headinglevel', {value: 'h4', ...PROP_STRING}],\n ['title', {value: 'Page Content', ...PROP_STRING}]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"\n ></div>\n <div wmDialogBody>\n <ng-container *ngTemplateOutlet=\"dialogContent\"></ng-container>\n </div>\n <div wmDialogFooter *ngIf=\"showactions\">\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n</ng-template>\n","import {\n Attribute,\n Component,\n ContentChild,\n Inject,\n Injector,\n OnInit,\n Optional,\n SkipSelf,\n TemplateRef,\n ViewChild\n} from '@angular/core';\n\nimport {App, toBoolean} from '@wm/core';\nimport { provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './partial-dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog app-page-dialog';\nconst WIDGET_INFO = {widgetType: 'wm-partialdialog'};\n\n@Component({\n selector: 'div[wmPartialDialog]',\n templateUrl: './partial-dialog.component.html',\n providers: [\n provideAsWidgetRef(PartialDialogComponent),\n provideAsDialogRef(PartialDialogComponent)\n ]\n})\nexport class PartialDialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n @ViewChild('dialogTemplate', { static: true }) dialogTemplate: TemplateRef<any>;\n @ContentChild(TemplateRef) dialogContent: TemplateRef<any>;\n @ContentChild('partial') partialRef;\n\n protected app;\n protected Widgets;\n protected Variables;\n protected Actions;\n\n constructor(\n inj: Injector,\n app: App,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n if (modal === null || modal === undefined) {\n modal = false;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop: boolean | 'static' = toBoolean(modal) ? 'static' : true;\n\n super(\n inj,\n WIDGET_INFO,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: !toBoolean(modal)\n },\n explicitContext\n );\n this.app = app;\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n /**\n * Click event handler for the ok button\n * invokes on-ok event callback\n * @param {Event} $event\n */\n onOk($event: Event) {\n this.invokeEventCallback('ok', {$event});\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n\n private setPartialLoadListener() {\n const cancelSubscription = this.app.subscribe('partialLoaded', () => {\n const parEle = this.partialRef.nativeElement;\n let partialScope;\n if (parEle) {\n partialScope = parEle.widget;\n this.Widgets = partialScope.Widgets;\n this.Variables = partialScope.Variables;\n this.Actions = partialScope.Actions;\n }\n cancelSubscription();\n });\n }\n\n public open(initState?: any) {\n super.open(initState);\n // WMS-19410 - Set the partial load listener to access widgets, variables and actions of page dialog\n this.setPartialLoadListener();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { PartialDialogComponent } from './partial-dialog.component';\n\nconst components = [\n PartialDialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class PartialDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,kBAAkB,EAClB,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,YAAY,EAAC,CAAC;QACzC,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,YAAY,EAAE,WAAW,EAAC,CAAC;QACjD,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,EAAC,CAAC;QAC1C,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,QAAQ,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,WAAW,EAAC,CAAC;QACzC,CAAC,aAAa,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;QAC/C,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,CAAC,EAAE,GAAG,WAAW,EAAC,CAAC;QACxC,CAAC,cAAc,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,WAAW,EAAC,CAAC;QAC/C,CAAC,OAAO,EAAE,EAAC,KAAK,EAAE,cAAc,EAAE,GAAG,WA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({ "no-drag": a0, "chip-duplicate bg-danger": a1, "chip-picture": a2 });
|
|
80
|
-
function
|
|
81
|
-
i0__namespace.ɵɵelement(0, "img",
|
|
80
|
+
function ChipsComponent_li_0_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
81
|
+
i0__namespace.ɵɵelement(0, "img", 9);
|
|
82
82
|
} if (rf & 2) {
|
|
83
83
|
const item_r3 = i0__namespace.ɵɵnextContext().$implicit;
|
|
84
84
|
i0__namespace.ɵɵproperty("src", item_r3.imgSrc, i0__namespace.ɵɵsanitizeUrl);
|
|
85
85
|
} }
|
|
86
|
-
function
|
|
86
|
+
function ChipsComponent_li_0_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
87
87
|
const _r10 = i0__namespace.ɵɵgetCurrentView();
|
|
88
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
89
|
-
i0__namespace.ɵɵlistener("click", function
|
|
90
|
-
i0__namespace.ɵɵelement(1, "i",
|
|
88
|
+
i0__namespace.ɵɵelementStart(0, "button", 10);
|
|
89
|
+
i0__namespace.ɵɵlistener("click", function ChipsComponent_li_0_button_4_Template_button_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r10); const ctx_r10 = i0__namespace.ɵɵnextContext(); const item_r3 = ctx_r10.$implicit; const $index_r6 = ctx_r10.index; const ctx_r3 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r3.removeItem($event, item_r3, $index_r6)); });
|
|
90
|
+
i0__namespace.ɵɵelement(1, "i", 11);
|
|
91
91
|
i0__namespace.ɵɵelementEnd();
|
|
92
92
|
} if (rf & 2) {
|
|
93
93
|
const item_r3 = i0__namespace.ɵɵnextContext().$implicit;
|
|
94
94
|
i0__namespace.ɵɵattribute("aria-label", "Clear " + item_r3.label);
|
|
95
95
|
} }
|
|
96
|
-
function
|
|
96
|
+
function ChipsComponent_li_0_Template(rf, ctx) { if (rf & 1) {
|
|
97
97
|
const _r2 = i0__namespace.ɵɵgetCurrentView();
|
|
98
98
|
i0__namespace.ɵɵelementStart(0, "li", 4)(1, "a", 5);
|
|
99
|
-
i0__namespace.ɵɵlistener("click", function
|
|
100
|
-
i0__namespace.ɵɵtemplate(2,
|
|
99
|
+
i0__namespace.ɵɵlistener("click", function ChipsComponent_li_0_Template_a_click_1_listener($event) { const item_r3 = i0__namespace.ɵɵrestoreView(_r2).$implicit; const ctx_r3 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r3.handleChipClick($event, item_r3)); })("keydown.delete", function ChipsComponent_li_0_Template_a_keydown_delete_1_listener($event) { const ctx_r4 = i0__namespace.ɵɵrestoreView(_r2); const item_r3 = ctx_r4.$implicit; const $index_r6 = ctx_r4.index; const ctx_r3 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r3.onDelete($event, item_r3, $index_r6)); })("keydown.backspace", function ChipsComponent_li_0_Template_a_keydown_backspace_1_listener($event) { const ctx_r6 = i0__namespace.ɵɵrestoreView(_r2); const item_r3 = ctx_r6.$implicit; const $index_r6 = ctx_r6.index; const ctx_r3 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r3.onBackspace($event, item_r3, $index_r6)); })("keydown.arrowleft", function ChipsComponent_li_0_Template_a_keydown_arrowleft_1_listener() { const ctx_r7 = i0__namespace.ɵɵrestoreView(_r2); const item_r3 = ctx_r7.$implicit; const $index_r6 = ctx_r7.index; const ctx_r3 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r3.onArrowLeft(item_r3, $index_r6)); })("keydown.arrowright", function ChipsComponent_li_0_Template_a_keydown_arrowright_1_listener() { const ctx_r8 = i0__namespace.ɵɵrestoreView(_r2); const item_r3 = ctx_r8.$implicit; const $index_r6 = ctx_r8.index; const ctx_r3 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r3.onArrowRight(item_r3, $index_r6)); })("focus", function ChipsComponent_li_0_Template_a_focus_1_listener($event) { const item_r3 = i0__namespace.ɵɵrestoreView(_r2).$implicit; const ctx_r3 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r3.handleChipFocus($event, item_r3)); })("blur", function ChipsComponent_li_0_Template_a_blur_1_listener() { const item_r3 = i0__namespace.ɵɵrestoreView(_r2).$implicit; const ctx_r3 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r3.readonly ? 0 : item_r3.active = false); });
|
|
100
|
+
i0__namespace.ɵɵtemplate(2, ChipsComponent_li_0_img_2_Template, 1, 1, "img", 6);
|
|
101
101
|
i0__namespace.ɵɵelement(3, "span", 7);
|
|
102
|
-
i0__namespace.ɵɵtemplate(4,
|
|
102
|
+
i0__namespace.ɵɵtemplate(4, ChipsComponent_li_0_button_4_Template, 2, 1, "button", 8);
|
|
103
103
|
i0__namespace.ɵɵelementEnd()();
|
|
104
104
|
} if (rf & 2) {
|
|
105
105
|
const item_r3 = ctx.$implicit;
|
|
@@ -109,11 +109,11 @@
|
|
|
109
109
|
i0__namespace.ɵɵadvance();
|
|
110
110
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction3(12, _c3, !ctx_r3.enablereorder, item_r3.isDuplicate, item_r3.imgSrc));
|
|
111
111
|
i0__namespace.ɵɵadvance();
|
|
112
|
-
i0__namespace.ɵɵ
|
|
112
|
+
i0__namespace.ɵɵproperty("ngIf", item_r3.imgSrc);
|
|
113
113
|
i0__namespace.ɵɵadvance();
|
|
114
114
|
i0__namespace.ɵɵproperty("textContent", item_r3.label)("title", item_r3.label);
|
|
115
115
|
i0__namespace.ɵɵadvance();
|
|
116
|
-
i0__namespace.ɵɵ
|
|
116
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r3.readonly);
|
|
117
117
|
} }
|
|
118
118
|
const WIDGET_CONFIG = {
|
|
119
119
|
widgetType: 'wm-chips',
|
|
@@ -706,24 +706,24 @@
|
|
|
706
706
|
} }, features: [i0__namespace.ɵɵProvidersFeature([
|
|
707
707
|
i3.provideAs(ChipsComponent, forms.NG_VALUE_ACCESSOR, true),
|
|
708
708
|
i3.provideAsWidgetRef(ChipsComponent)
|
|
709
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0, decls:
|
|
709
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0, decls: 4, vars: 4, consts: [["search", ""], [3, "class", "ngClass", 4, "ngFor", "ngForOf"], [1, "app-chip-search", 3, "ngClass"], ["wmSearch", "", "name", "app-chip-search", "submit.event", "addItem($event, widget)", "beforeservicecall.event", "invokeOnBeforeServiceCall(inputData)", "disabled.bind", "disabled || readonly || saturate", "datafield.bind", "datafield", "allowonlyselect.bind", "allowonlyselect", "searchkey.bind", "searchkey", "orderby.bind", "orderby", "placeholder.bind", "saturate ? maxSizeReached : placeholder", "showsearchicon.bind", "showsearchicon", "tabindex.bind", "tabindex", "minchars.bind", "minchars", "debouncetime.bind", "debouncetime", "matchmode.bind", "matchmode", "datacompletemsg.bind", "datacompletemsg", "groupby.bind", "groupby", "match.bind", "match", "dateformat.bind", "dateformat", 1, "app-chip-input", 3, "keydown.enter", "keydown.delete", "keydown.backspace", "keydown.arrowleft", "keydown.arrowright"], [3, "ngClass"], ["href", "javascript:void(0)", 1, "app-chip", 3, "click", "keydown.delete", "keydown.backspace", "keydown.arrowleft", "keydown.arrowright", "focus", "blur", "ngClass"], ["data-identifier", "img", "alt", "Chip Image", "class", "button-image-icon", 3, "src", 4, "ngIf"], [1, "app-chip-title", 3, "textContent", "title"], ["type", "button", "class", "btn btn-transparent", 3, "click", 4, "ngIf"], ["data-identifier", "img", "alt", "Chip Image", 1, "button-image-icon", 3, "src"], ["type", "button", 1, "btn", "btn-transparent", 3, "click"], [1, "app-icon", "wi", "wi-close"]], template: function ChipsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
710
710
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
711
|
-
i0__namespace.ɵɵ
|
|
712
|
-
i0__namespace.ɵɵelementStart(
|
|
713
|
-
i0__namespace.ɵɵlistener("keydown.enter", function
|
|
711
|
+
i0__namespace.ɵɵtemplate(0, ChipsComponent_li_0_Template, 5, 16, "li", 1);
|
|
712
|
+
i0__namespace.ɵɵelementStart(1, "li", 2)(2, "div", 3, 0);
|
|
713
|
+
i0__namespace.ɵɵlistener("keydown.enter", function ChipsComponent_Template_div_keydown_enter_2_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.stopEvent($event)); })("keydown.delete", function ChipsComponent_Template_div_keydown_delete_2_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onTextDelete($event)); })("keydown.backspace", function ChipsComponent_Template_div_keydown_backspace_2_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onInputClear($event)); })("keydown.arrowleft", function ChipsComponent_Template_div_keydown_arrowleft_2_listener() { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onArrowLeft()); })("keydown.arrowright", function ChipsComponent_Template_div_keydown_arrowright_2_listener() { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onArrowRight()); });
|
|
714
714
|
i0__namespace.ɵɵelementEnd()();
|
|
715
715
|
} if (rf & 2) {
|
|
716
|
-
i0__namespace.ɵɵ
|
|
717
|
-
i0__namespace.ɵɵadvance(
|
|
718
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(
|
|
719
|
-
} }, dependencies: [i1__namespace.NgClass, i2__namespace.SearchComponent, i3__namespace.TextContentDirective], encapsulation: 2 }); }
|
|
716
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx.chipsList);
|
|
717
|
+
i0__namespace.ɵɵadvance();
|
|
718
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c1, ctx.inputwidth === "full"));
|
|
719
|
+
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace.NgIf, i2__namespace.SearchComponent, i3__namespace.TextContentDirective], encapsulation: 2 }); }
|
|
720
720
|
}
|
|
721
721
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ChipsComponent, [{
|
|
722
722
|
type: i0.Component,
|
|
723
723
|
args: [{ selector: '[wmChips]', providers: [
|
|
724
724
|
i3.provideAs(ChipsComponent, forms.NG_VALUE_ACCESSOR, true),
|
|
725
725
|
i3.provideAsWidgetRef(ChipsComponent)
|
|
726
|
-
], template: "
|
|
726
|
+
], template: "<li class=\"chip-item {{chipclass && !bindChipclass ? chipclass : ''}}\"\n *ngFor=\"let item of chipsList; let $index = index;\"\n [ngClass]=\"{'active': item.active, 'disabled': disabled}\">\n <a href=\"javascript:void(0)\" class=\"app-chip\"\n (click)=\"handleChipClick($event, item)\"\n (keydown.delete)=\"onDelete($event, item, $index)\"\n (keydown.backspace)=\"onBackspace($event, item, $index)\"\n (keydown.arrowleft)=\"onArrowLeft(item, $index)\"\n (keydown.arrowright)=\"onArrowRight(item, $index)\"\n (focus)=\"handleChipFocus($event, item)\"\n (blur)=\"readonly ? 0 : item.active = false\"\n [ngClass]=\"{'no-drag': !enablereorder,'chip-duplicate bg-danger': item.isDuplicate, 'chip-picture': item.imgSrc}\">\n <img data-identifier=\"img\" alt=\"Chip Image\" class=\"button-image-icon\" [src]=\"item.imgSrc\" *ngIf=\"item.imgSrc\"/>\n <span class=\"app-chip-title\" [textContent]=\"item.label\" [title]=\"item.label\"></span>\n <button type=\"button\" [attr.aria-label]=\"'Clear ' + item.label\" class=\"btn btn-transparent\"\n (click)=\"removeItem($event, item, $index);\" *ngIf=\"!readonly\">\n <i class=\"app-icon wi wi-close\"></i>\n </button>\n </a>\n</li>\n<li class=\"app-chip-search\" [ngClass]=\"{'full-width': inputwidth === 'full'}\">\n <div #search wmSearch class=\"app-chip-input\"\n name=\"app-chip-search\"\n submit.event=\"addItem($event, widget)\"\n beforeservicecall.event=\"invokeOnBeforeServiceCall(inputData)\"\n disabled.bind=\"disabled || readonly || saturate\"\n datafield.bind=\"datafield\"\n allowonlyselect.bind=\"allowonlyselect\"\n searchkey.bind=\"searchkey\"\n orderby.bind=\"orderby\"\n placeholder.bind=\"saturate ? maxSizeReached : placeholder\"\n showsearchicon.bind=\"showsearchicon\"\n tabindex.bind=\"tabindex\"\n minchars.bind=\"minchars\"\n debouncetime.bind=\"debouncetime\"\n matchmode.bind=\"matchmode\"\n datacompletemsg.bind = \"datacompletemsg\"\n groupby.bind=\"groupby\"\n match.bind=\"match\"\n dateformat.bind=\"dateformat\"\n (keydown.enter)=\"stopEvent($event)\"\n (keydown.delete)=\"onTextDelete($event)\"\n (keydown.backspace)=\"onInputClear($event)\"\n (keydown.arrowleft)=\"onArrowLeft()\"\n (keydown.arrowright)=\"onArrowRight()\">\n </div>\n</li>\n" }]
|
|
727
727
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
728
728
|
type: i0.Attribute,
|
|
729
729
|
args: ['displayfield.bind']
|