@wavemaker/app-ng-runtime 12.0.0-next.140535 → 12.0.0-next.141130
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.
- app-ng-runtime/build-task/advanced/custom-widget-container/custom-widget-container.build.d.ts +2 -0
- app-ng-runtime/build-task/advanced/custom-widget-wrapper/custom-widget-wrapper.build.d.ts +2 -0
- app-ng-runtime/build-task/bundles/index.umd.js +451 -405
- app-ng-runtime/build-task/esm2022/advanced/custom-widget-container/custom-widget-container.build.mjs +15 -0
- app-ng-runtime/build-task/esm2022/advanced/custom-widget-wrapper/custom-widget-wrapper.build.mjs +26 -0
- app-ng-runtime/build-task/esm2022/data/form/form-field/form-field.build.mjs +3 -2
- app-ng-runtime/build-task/esm2022/public_api.mjs +3 -1
- app-ng-runtime/build-task/fesm2022/index.mjs +454 -406
- app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/build-task/public_api.d.ts +2 -0
- app-ng-runtime/components/advanced/custom/.npmignore +2 -0
- app-ng-runtime/components/advanced/custom/bundles/index.umd.js +232 -0
- app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +19 -0
- app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget.props.d.ts +2 -0
- app-ng-runtime/components/advanced/custom/custom-widget-prop.d.ts +1 -0
- app-ng-runtime/components/advanced/custom/custom-widget.directive.d.ts +19 -0
- app-ng-runtime/components/advanced/custom/custom-widget.module.d.ts +10 -0
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +102 -0
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget.props.mjs +12 -0
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-prop.mjs +8 -0
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget.directive.mjs +68 -0
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget.module.mjs +32 -0
- app-ng-runtime/components/advanced/custom/esm2022/index.mjs +5 -0
- app-ng-runtime/components/advanced/custom/esm2022/public_api.mjs +4 -0
- app-ng-runtime/components/advanced/custom/fesm2022/index.mjs +215 -0
- app-ng-runtime/components/advanced/custom/fesm2022/index.mjs.map +1 -0
- app-ng-runtime/components/advanced/custom/index.d.ts +5 -0
- app-ng-runtime/components/advanced/custom/package.json +23 -0
- app-ng-runtime/components/advanced/custom/public_api.d.ts +3 -0
- app-ng-runtime/components/base/bundles/index.umd.js +63 -21
- app-ng-runtime/components/base/components.module.d.ts +12 -11
- app-ng-runtime/components/base/esm2022/components.module.mjs +5 -1
- app-ng-runtime/components/base/esm2022/public_api.mjs +2 -1
- app-ng-runtime/components/base/esm2022/utils/live-utils.mjs +2 -8
- app-ng-runtime/components/base/esm2022/widgets/common/base/base.component.mjs +25 -15
- app-ng-runtime/components/base/esm2022/widgets/common/base/custom-widget-container.directive.mjs +39 -0
- app-ng-runtime/components/base/fesm2022/index.mjs +63 -22
- app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/base/public_api.d.ts +1 -0
- app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +10 -5
- app-ng-runtime/components/base/widgets/common/base/custom-widget-container.directive.d.ts +14 -0
- app-ng-runtime/components/basic/search/bundles/index.umd.js +36 -24
- app-ng-runtime/components/basic/search/esm2022/search.component.mjs +33 -24
- app-ng-runtime/components/basic/search/esm2022/search.props.mjs +5 -2
- app-ng-runtime/components/basic/search/fesm2022/index.mjs +36 -24
- app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/search.component.d.ts +3 -0
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +14 -6
- app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +14 -7
- app-ng-runtime/components/containers/tabs/esm2022/tabs.props.mjs +3 -2
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +14 -6
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/tabs.component.d.ts +1 -0
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js +0 -17
- app-ng-runtime/components/containers/wizard/esm2022/wizard.component.mjs +1 -18
- app-ng-runtime/components/containers/wizard/fesm2022/index.mjs +0 -17
- app-ng-runtime/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/wizard.component.d.ts +0 -1
- app-ng-runtime/components/data/form/bundles/index.umd.js +0 -4
- app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +3 -5
- app-ng-runtime/components/data/form/fesm2022/index.mjs +2 -4
- app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +0 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js +2 -2
- app-ng-runtime/components/data/table/esm2022/table.component.mjs +3 -3
- app-ng-runtime/components/data/table/fesm2022/index.mjs +2 -2
- app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +1 -1
- app-ng-runtime/components/dialogs/default/base-dialog.d.ts +2 -0
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +17 -17
- app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +1 -12
- app-ng-runtime/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +14 -2
- app-ng-runtime/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +6 -7
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +18 -18
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +21 -3
- app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +3 -2
- app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +22 -4
- app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +21 -3
- app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +116 -115
- app-ng-runtime/components/input/default/checkboxset/checkboxset.component.d.ts +1 -0
- app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +8 -5
- app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +8 -5
- app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +29 -59
- app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +64 -38
- app-ng-runtime/components/input/default/esm2022/switch/switch.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/base/base-input.mjs +4 -1
- app-ng-runtime/components/input/default/esm2022/text/locale/number-locale.mjs +2 -2
- app-ng-runtime/components/input/default/esm2022/textarea/textarea.component.mjs +1 -4
- app-ng-runtime/components/input/default/fesm2022/index.mjs +117 -116
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/radioset/radioset.component.d.ts +1 -0
- app-ng-runtime/components/input/default/select/select.component.d.ts +4 -2
- app-ng-runtime/components/input/default/switch/switch.component.d.ts +2 -0
- app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +2 -3
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +0 -3
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +1 -4
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +0 -3
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/bundles/index.umd.js +5 -31
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +8 -34
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +6 -32
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +2 -6
- app-ng-runtime/components/input/rating/bundles/index.umd.js +26 -35
- app-ng-runtime/components/input/rating/esm2022/rating.component.mjs +26 -37
- app-ng-runtime/components/input/rating/esm2022/rating.props.mjs +3 -1
- app-ng-runtime/components/input/rating/fesm2022/index.mjs +27 -36
- app-ng-runtime/components/input/rating/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/rating/rating.component.d.ts +3 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +2 -2
- app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +2 -2
- app-ng-runtime/components/navigation/menu/esm2022/nav/nav.component.mjs +2 -2
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +2 -2
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/bundles/index.umd.js +6 -2
- app-ng-runtime/components/page/left-panel/esm2022/left-panel.directive.mjs +9 -5
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +8 -4
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/left-panel.directive.d.ts +2 -2
- app-ng-runtime/components/page/right-panel/bundles/index.umd.js +6 -2
- app-ng-runtime/components/page/right-panel/esm2022/right-panel.directive.mjs +9 -5
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +8 -4
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/right-panel.directive.d.ts +2 -2
- app-ng-runtime/core/bundles/index.umd.js +28 -6
- app-ng-runtime/core/enums/enums.d.ts +2 -1
- app-ng-runtime/core/esm2022/enums/enums.mjs +2 -1
- app-ng-runtime/core/esm2022/public_api.mjs +2 -2
- app-ng-runtime/core/esm2022/types/types.mjs +4 -1
- app-ng-runtime/core/esm2022/utils/build-utils.mjs +6 -1
- app-ng-runtime/core/esm2022/utils/utils.mjs +11 -4
- app-ng-runtime/core/fesm2022/index.mjs +22 -4
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/public_api.d.ts +1 -1
- app-ng-runtime/core/types/types.d.ts +5 -1
- app-ng-runtime/core/utils/utils.d.ts +2 -1
- app-ng-runtime/mobile/core/bundles/index.umd.js +2 -18
- app-ng-runtime/mobile/core/esm2022/native.xhr.mjs +3 -19
- app-ng-runtime/mobile/core/fesm2022/index.mjs +2 -18
- app-ng-runtime/mobile/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +296 -5
- app-ng-runtime/runtime/base/components/base-custom-widget.component.d.ts +73 -0
- app-ng-runtime/runtime/base/esm2022/components/base-custom-widget.component.mjs +294 -0
- app-ng-runtime/runtime/base/esm2022/public_api.mjs +2 -1
- app-ng-runtime/runtime/base/esm2022/runtime-base.module.mjs +6 -1
- app-ng-runtime/runtime/base/esm2022/services/i18n.service.mjs +2 -2
- app-ng-runtime/runtime/base/esm2022/types/types.mjs +4 -1
- app-ng-runtime/runtime/base/fesm2022/index.mjs +294 -4
- app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/public_api.d.ts +1 -0
- app-ng-runtime/runtime/base/runtime-base.module.d.ts +9 -8
- app-ng-runtime/runtime/base/types/types.d.ts +5 -1
- app-ng-runtime/runtime/dynamic/app/services/customwidget-config-provider.service.d.ts +8 -0
- app-ng-runtime/runtime/dynamic/bundles/index.umd.js +49 -13
- app-ng-runtime/runtime/dynamic/esm2022/app/app.module.mjs +8 -3
- app-ng-runtime/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +23 -7
- app-ng-runtime/runtime/dynamic/esm2022/app/services/customwidget-config-provider.service.mjs +22 -0
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs +50 -11
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/scripts/@wavemaker/nvd3/build/nv.d3.min.js +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +4 -7
- app-ng-runtime/scripts/summernote/dist/summernote-lite.min.js +3 -2
- app-ng-runtime/transpiler/bundles/index.umd.js +5 -0
- app-ng-runtime/transpiler/esm2022/build.mjs +4 -1
- app-ng-runtime/transpiler/esm2022/imports.mjs +3 -1
- app-ng-runtime/transpiler/fesm2022/index.mjs +5 -0
- app-ng-runtime/transpiler/fesm2022/index.mjs.map +1 -1
app-ng-runtime/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@angular/common'), require('@wm/core'), require('@wm/security'), require('@wm/variables'), require('lodash-es'), require('@wm/components/page'), require('rxjs'), require('@wm/components/base'), require('tslib'), require('@wm/components/prefab'), require('@angular/common/http'), require('@angular/platform-browser'), require('@angular/forms'), require('ngx-toastr'), require('@wm/components/dialogs'), require('@wm/components/dialogs/confirm-dialog'), require('@wm/components/dialogs/design-dialog'), require('@wm/mobile/runtime'), require('@wm/http'), require('@wm/oAuth'), require('ngx-bootstrap/chronos'), require('ngx-bootstrap/datepicker'), require('ngx-bootstrap/utils'), require('@wm/components/dialogs/alert-dialog'), require('rxjs/operators'), require('@wm/transpiler'), require('@wm/build-task'), require('@wm/components/page/footer'), require('@wm/components/page/header'), require('@wm/components/page/left-panel'), require('@wm/components/page/right-panel'), require('@wm/components/page/top-nav'), require('@wm/components/basic'), require('@wm/components/basic/progress'), require('@wm/components/basic/rich-text-editor'), require('@wm/components/basic/search'), require('@wm/components/basic/tree'), require('@wm/components/input/calendar'), require('@wm/components/input/chips'), require('@wm/components/input/color-picker'), require('@wm/components/input/currency'), require('@wm/components/input/epoch'), require('@wm/components/input/file-upload'), require('@wm/components/input
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/router', '@angular/common', '@wm/core', '@wm/security', '@wm/variables', 'lodash-es', '@wm/components/page', 'rxjs', '@wm/components/base', 'tslib', '@wm/components/prefab', '@angular/common/http', '@angular/platform-browser', '@angular/forms', 'ngx-toastr', '@wm/components/dialogs', '@wm/components/dialogs/confirm-dialog', '@wm/components/dialogs/design-dialog', '@wm/mobile/runtime', '@wm/http', '@wm/oAuth', 'ngx-bootstrap/chronos', 'ngx-bootstrap/datepicker', 'ngx-bootstrap/utils', '@wm/components/dialogs/alert-dialog', 'rxjs/operators', '@wm/transpiler', '@wm/build-task', '@wm/components/page/footer', '@wm/components/page/header', '@wm/components/page/left-panel', '@wm/components/page/right-panel', '@wm/components/page/top-nav', '@wm/components/basic', '@wm/components/basic/progress', '@wm/components/basic/rich-text-editor', '@wm/components/basic/search', '@wm/components/basic/tree', '@wm/components/input/calendar', '@wm/components/input/chips', '@wm/components/input/color-picker', '@wm/components/input/currency', '@wm/components/input/epoch', '@wm/components/input/file-upload', '@wm/components/input
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.runtime = global.wm.runtime || {}, global.wm.runtime.base = {}), global.ng.core, global.ng.router, global.ng.common, global.wm.core, global.wm.security, global.wm.variables, global._, global.wm.components.page, global.rxjs, global.wm.components.base, global.tslib, global.wm.components.prefab, global.ng.common.http, global.ng.platformBrowser, global.ng.forms, global.ngxToastr, global.wm.components.dialogs, global.wm.components.dialogs.confirmdialog, global.wm.components.dialogs.designdialog, global.wm.mobile.runtime, global.wm.http, global.wm.oAuth, global.chronos, global.datepicker, global.utils, global.wm.components.dialogs.alertdialog, global.rxjs.operators, global.wm.transpiler, global.wm.buildTask, global.wm.components.page.footer, global.wm.components.page.header, global.wm.components.page.leftpanel, global.wm.components.page.rightpanel, global.wm.components.page.topnav, global.wm.components.basic, global.wm.components.basic.progress, global.wm.components.basic.richtexteditor, global.wm.components.basic.search, global.wm.components.basic.tree, global.wm.components.input.calendar, global.wm.components.input.chips, global.wm.components.input.colorpicker, global.wm.components.input.currency, global.wm.components.input.epoch, global.wm.components.input.fileupload, global.wm.components.input
|
|
5
|
-
})(this, (function (exports, i0, i1$1, i1$2, i1, i2, i4, lodashEs, page, rxjs, i3, tslib, i2$3, i1$5, i1$4, forms, i1$3, dialogs, i9, i10, i1$6, http, i2$2, chronos, i2$1, utils, i11, operators, transpiler, buildTask, footer, header, leftPanel, rightPanel, topNav, basic, progress, richTextEditor, search, tree, calendar, chips, colorPicker, currency, epoch, fileUpload,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@angular/common'), require('@wm/core'), require('@wm/security'), require('@wm/variables'), require('lodash-es'), require('@wm/components/page'), require('rxjs'), require('@wm/components/base'), require('tslib'), require('@wm/components/input'), require('@wm/components/prefab'), require('@angular/common/http'), require('@angular/platform-browser'), require('@angular/forms'), require('ngx-toastr'), require('@wm/components/dialogs'), require('@wm/components/dialogs/confirm-dialog'), require('@wm/components/dialogs/design-dialog'), require('@wm/mobile/runtime'), require('@wm/http'), require('@wm/oAuth'), require('ngx-bootstrap/chronos'), require('ngx-bootstrap/datepicker'), require('ngx-bootstrap/utils'), require('@wm/components/dialogs/alert-dialog'), require('rxjs/operators'), require('@wm/transpiler'), require('@wm/build-task'), require('@wm/components/page/footer'), require('@wm/components/page/header'), require('@wm/components/page/left-panel'), require('@wm/components/page/right-panel'), require('@wm/components/page/top-nav'), require('@wm/components/basic'), require('@wm/components/basic/progress'), require('@wm/components/basic/rich-text-editor'), require('@wm/components/basic/search'), require('@wm/components/basic/tree'), require('@wm/components/input/calendar'), require('@wm/components/input/chips'), require('@wm/components/input/color-picker'), require('@wm/components/input/currency'), require('@wm/components/input/epoch'), require('@wm/components/input/file-upload'), require('@wm/components/input/rating'), require('@wm/components/input/slider'), require('@wm/components/data/card'), require('@wm/components/data/form'), require('@wm/components/data/list'), require('@wm/components/data/live-table'), require('@wm/components/data/pagination'), require('@wm/components/data/table'), require('@wm/components/chart'), require('@wm/components/containers/accordion'), require('@wm/components/containers/linear-layout'), require('@wm/components/containers/layout-grid'), require('@wm/components/containers/panel'), require('@wm/components/containers/tabs'), require('@wm/components/containers/tile'), require('@wm/components/containers/wizard'), require('@wm/components/dialogs/iframe-dialog'), require('@wm/components/dialogs/login-dialog'), require('@wm/components/dialogs/partial-dialog'), require('@wm/components/navigation/breadcrumb'), require('@wm/components/navigation/menu'), require('@wm/components/navigation/navbar'), require('@wm/components/navigation/popover'), require('@wm/components/advanced/carousel'), require('@wm/components/advanced/login'), require('@wm/components/advanced/marquee'), require('@wm/components/advanced/custom'), require('ngx-bootstrap/timepicker'), require('ngx-bootstrap/dropdown'), require('ngx-bootstrap/pagination'), require('ngx-bootstrap/typeahead'), require('ngx-bootstrap/progressbar'), require('ngx-bootstrap/carousel'), require('ngx-bootstrap/popover'), require('ng-circle-progress'), require('ngx-bootstrap/tooltip')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/router', '@angular/common', '@wm/core', '@wm/security', '@wm/variables', 'lodash-es', '@wm/components/page', 'rxjs', '@wm/components/base', 'tslib', '@wm/components/input', '@wm/components/prefab', '@angular/common/http', '@angular/platform-browser', '@angular/forms', 'ngx-toastr', '@wm/components/dialogs', '@wm/components/dialogs/confirm-dialog', '@wm/components/dialogs/design-dialog', '@wm/mobile/runtime', '@wm/http', '@wm/oAuth', 'ngx-bootstrap/chronos', 'ngx-bootstrap/datepicker', 'ngx-bootstrap/utils', '@wm/components/dialogs/alert-dialog', 'rxjs/operators', '@wm/transpiler', '@wm/build-task', '@wm/components/page/footer', '@wm/components/page/header', '@wm/components/page/left-panel', '@wm/components/page/right-panel', '@wm/components/page/top-nav', '@wm/components/basic', '@wm/components/basic/progress', '@wm/components/basic/rich-text-editor', '@wm/components/basic/search', '@wm/components/basic/tree', '@wm/components/input/calendar', '@wm/components/input/chips', '@wm/components/input/color-picker', '@wm/components/input/currency', '@wm/components/input/epoch', '@wm/components/input/file-upload', '@wm/components/input/rating', '@wm/components/input/slider', '@wm/components/data/card', '@wm/components/data/form', '@wm/components/data/list', '@wm/components/data/live-table', '@wm/components/data/pagination', '@wm/components/data/table', '@wm/components/chart', '@wm/components/containers/accordion', '@wm/components/containers/linear-layout', '@wm/components/containers/layout-grid', '@wm/components/containers/panel', '@wm/components/containers/tabs', '@wm/components/containers/tile', '@wm/components/containers/wizard', '@wm/components/dialogs/iframe-dialog', '@wm/components/dialogs/login-dialog', '@wm/components/dialogs/partial-dialog', '@wm/components/navigation/breadcrumb', '@wm/components/navigation/menu', '@wm/components/navigation/navbar', '@wm/components/navigation/popover', '@wm/components/advanced/carousel', '@wm/components/advanced/login', '@wm/components/advanced/marquee', '@wm/components/advanced/custom', 'ngx-bootstrap/timepicker', 'ngx-bootstrap/dropdown', 'ngx-bootstrap/pagination', 'ngx-bootstrap/typeahead', 'ngx-bootstrap/progressbar', 'ngx-bootstrap/carousel', 'ngx-bootstrap/popover', 'ng-circle-progress', 'ngx-bootstrap/tooltip'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.runtime = global.wm.runtime || {}, global.wm.runtime.base = {}), global.ng.core, global.ng.router, global.ng.common, global.wm.core, global.wm.security, global.wm.variables, global._, global.wm.components.page, global.rxjs, global.wm.components.base, global.tslib, global.wm.components.input, global.wm.components.prefab, global.ng.common.http, global.ng.platformBrowser, global.ng.forms, global.ngxToastr, global.wm.components.dialogs, global.wm.components.dialogs.confirmdialog, global.wm.components.dialogs.designdialog, global.wm.mobile.runtime, global.wm.http, global.wm.oAuth, global.chronos, global.datepicker, global.utils, global.wm.components.dialogs.alertdialog, global.rxjs.operators, global.wm.transpiler, global.wm.buildTask, global.wm.components.page.footer, global.wm.components.page.header, global.wm.components.page.leftpanel, global.wm.components.page.rightpanel, global.wm.components.page.topnav, global.wm.components.basic, global.wm.components.basic.progress, global.wm.components.basic.richtexteditor, global.wm.components.basic.search, global.wm.components.basic.tree, global.wm.components.input.calendar, global.wm.components.input.chips, global.wm.components.input.colorpicker, global.wm.components.input.currency, global.wm.components.input.epoch, global.wm.components.input.fileupload, global.wm.components.input.rating, global.wm.components.input.slider, global.wm.components.data.card, global.wm.components.data.form, global.wm.components.data.list, global.wm.components.data.livetable, global.wm.components.data.pagination, global.wm.components.data.table, global.wm.components.chart, global.wm.components.containers.accordion, global.wm.components.containers.linearlayout, global.wm.components.containers.layoutgrid, global.wm.components.containers.panel, global.wm.components.containers.tabs, global.wm.components.containers.tile, global.wm.components.containers.wizard, global.wm.components.dialogs.iframedialog, global.wm.components.dialogs.logindialog, global.wm.components.dialogs.partialdialog, global.wm.components.navigation.breadcrumb, global.wm.components.navigation.menu, global.wm.components.navigation.navbar, global.wm.components.navigation.popover, global.wm.components.advanced.carousel, global.wm.components.advanced.login, global.wm.components.advanced.marquee, global.wm.components.advanced.custom, global.timepicker, global.dropdown, global.pagination, global.typeahead, global.progressbar, global.carousel, global.popover, global.ngCircleProgress, global.tooltip));
|
|
5
|
+
})(this, (function (exports, i0, i1$1, i1$2, i1, i2, i4, lodashEs, page, rxjs, i3, tslib, input, i2$3, i1$5, i1$4, forms, i1$3, dialogs, i9, i10, i1$6, http, i2$2, chronos, i2$1, utils, i11, operators, transpiler, buildTask, footer, header, leftPanel, rightPanel, topNav, basic, progress, richTextEditor, search, tree, calendar, chips, colorPicker, currency, epoch, fileUpload, rating, slider, card, form, list, liveTable, pagination$1, table, chart, accordion, linearLayout, layoutGrid, panel, tabs, tile, wizard, iframeDialog, loginDialog, partialDialog, breadcrumb, menu, navbar, popover$1, carousel$1, login, marquee, custom, timepicker, dropdown, pagination, typeahead, progressbar, carousel, popover, ngCircleProgress, tooltip) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
ComponentType[ComponentType["PAGE"] = 0] = "PAGE";
|
|
45
45
|
ComponentType[ComponentType["PREFAB"] = 1] = "PREFAB";
|
|
46
46
|
ComponentType[ComponentType["PARTIAL"] = 2] = "PARTIAL";
|
|
47
|
+
ComponentType[ComponentType["WIDGET"] = 3] = "WIDGET";
|
|
47
48
|
})(exports.ComponentType || (exports.ComponentType = {}));
|
|
48
49
|
class ComponentRefProvider {
|
|
49
50
|
clearComponentFactoryRefCache() { }
|
|
@@ -51,6 +52,8 @@
|
|
|
51
52
|
}
|
|
52
53
|
class PrefabConfigProvider {
|
|
53
54
|
}
|
|
55
|
+
class CustomwidgetConfigProvider {
|
|
56
|
+
}
|
|
54
57
|
class AppJSProvider {
|
|
55
58
|
}
|
|
56
59
|
class AppVariablesProvider {
|
|
@@ -1383,6 +1386,288 @@
|
|
|
1383
1386
|
args: ['window:beforeunload']
|
|
1384
1387
|
}] }); })();
|
|
1385
1388
|
|
|
1389
|
+
// export const commonPartialWidgets = {};
|
|
1390
|
+
class BaseCustomWidgetComponent extends FragmentMonitor {
|
|
1391
|
+
constructor() {
|
|
1392
|
+
super(...arguments);
|
|
1393
|
+
this.BaseWidget = {};
|
|
1394
|
+
this.compileContent = false;
|
|
1395
|
+
this.destroy$ = new rxjs.Subject();
|
|
1396
|
+
this.viewInit$ = new rxjs.Subject();
|
|
1397
|
+
this.invokeEvent = (eventName) => {
|
|
1398
|
+
this.events[eventName]();
|
|
1399
|
+
};
|
|
1400
|
+
}
|
|
1401
|
+
getContainerWidgetInjector() {
|
|
1402
|
+
return this.containerWidget.inj || this.containerWidget.injector;
|
|
1403
|
+
}
|
|
1404
|
+
init() {
|
|
1405
|
+
let resolveFn;
|
|
1406
|
+
const promise = new Promise((res) => resolveFn = res);
|
|
1407
|
+
this.App = this.injector ? this.injector.get(i1.App) : i0.inject(i1.App);
|
|
1408
|
+
//making the code compatible in both the JIT and AOT modes
|
|
1409
|
+
this.containerWidget = this.injector ? this.injector.get(i3.WidgetRef) : i0.inject(i3.WidgetRef);
|
|
1410
|
+
this.i18nService = this.injector ? this.injector.get(i1.AbstractI18nService) : i0.inject(i1.AbstractI18nService);
|
|
1411
|
+
this.scriptLoaderService = this.injector ? this.injector.get(i1.ScriptLoaderService) : i0.inject(i1.ScriptLoaderService);
|
|
1412
|
+
this.Viewport = this.injector ? this.injector.get(i1.Viewport) : i0.inject(i1.Viewport);
|
|
1413
|
+
this.customwidgetConfigProvider = this.injector ? this.injector.get(CustomwidgetConfigProvider) : i0.inject(CustomwidgetConfigProvider);
|
|
1414
|
+
// this.viewContainerRef = this.getContainerWidgetInjector().get(ViewContainerRef);
|
|
1415
|
+
// Replacing this.getContainerWidgetInjector().view.component as viewParent
|
|
1416
|
+
// this.viewParent = (this.viewContainerRef as any).parentInjector._lView[8];
|
|
1417
|
+
this.viewParent = this.containerWidget.viewParent;
|
|
1418
|
+
if (this.viewParent.registerFragment) {
|
|
1419
|
+
this.viewParent.registerFragment();
|
|
1420
|
+
}
|
|
1421
|
+
// register functions for binding evaluation
|
|
1422
|
+
this.registerExpressions();
|
|
1423
|
+
this.initUserScript();
|
|
1424
|
+
this.registerPropsInContainerWidget(resolveFn);
|
|
1425
|
+
// Using promise to make sure the props are registered in the container widget before registering events, Otherwise no events will be registered
|
|
1426
|
+
promise.then(() => this.registerEvents());
|
|
1427
|
+
this.registerWidgets();
|
|
1428
|
+
this.initVariables();
|
|
1429
|
+
this.activePageName = this.App.activePageName; // Todo: remove this
|
|
1430
|
+
this.registerProps();
|
|
1431
|
+
this.defineI18nProps();
|
|
1432
|
+
this.viewInit$.subscribe(i1.noop, i1.noop, () => {
|
|
1433
|
+
this.props = this.containerWidget.props;
|
|
1434
|
+
});
|
|
1435
|
+
if (this.spa) {
|
|
1436
|
+
this.pageDirective = this.injector ? this.injector.get(page.SpaPageDirective) : i0.inject(page.SpaPageDirective);
|
|
1437
|
+
}
|
|
1438
|
+
else {
|
|
1439
|
+
this.pageDirective = this.injector ? this.injector.get(page.PageDirective) : i0.inject(page.PageDirective);
|
|
1440
|
+
}
|
|
1441
|
+
if (this.pageDirective) {
|
|
1442
|
+
this.registerDestroyListener(this.pageDirective.subscribe('attach', data => this.ngOnAttach(data.refreshData)));
|
|
1443
|
+
this.registerDestroyListener(this.pageDirective.subscribe('detach', () => this.ngOnDetach()));
|
|
1444
|
+
}
|
|
1445
|
+
super.init();
|
|
1446
|
+
}
|
|
1447
|
+
registerWidgets() {
|
|
1448
|
+
// common partial widgets should be accessible from page
|
|
1449
|
+
this.Widgets = Object.create(commonPartialWidgets);
|
|
1450
|
+
// expose current page widgets on app
|
|
1451
|
+
this.App.Widgets = Object.create(this.Widgets);
|
|
1452
|
+
}
|
|
1453
|
+
initializeComponentData(children) {
|
|
1454
|
+
Array.from(children).forEach((child) => {
|
|
1455
|
+
if (!child.hasAttribute('wmcustomwidget'))
|
|
1456
|
+
this.initializeComponentData(child.children);
|
|
1457
|
+
else {
|
|
1458
|
+
const asAttr = child.getAttribute('as') || '';
|
|
1459
|
+
if (!asAttr) {
|
|
1460
|
+
return;
|
|
1461
|
+
}
|
|
1462
|
+
let baseWidget, splitArr = asAttr.split('-'), modifiedArr = [];
|
|
1463
|
+
modifiedArr = splitArr.map((item) => {
|
|
1464
|
+
item = item !== 'wm' ? lodashEs.capitalize(item) : item;
|
|
1465
|
+
return item;
|
|
1466
|
+
});
|
|
1467
|
+
baseWidget = modifiedArr.join('');
|
|
1468
|
+
switch (baseWidget) {
|
|
1469
|
+
case 'wmCheckboxset':
|
|
1470
|
+
this[baseWidget] = new input.CheckboxsetComponent(this.injector, undefined);
|
|
1471
|
+
this[baseWidget]["_select"] = (item, $event) => {
|
|
1472
|
+
const keys = [];
|
|
1473
|
+
lodashEs.forEach(this[baseWidget].datasetItems, (datasetItem) => {
|
|
1474
|
+
if (datasetItem.key === item.key)
|
|
1475
|
+
datasetItem.selected = !datasetItem.selected;
|
|
1476
|
+
if (datasetItem.selected)
|
|
1477
|
+
keys.push(datasetItem.key);
|
|
1478
|
+
});
|
|
1479
|
+
this[baseWidget].triggerInvokeOnChange(keys, $event);
|
|
1480
|
+
};
|
|
1481
|
+
break;
|
|
1482
|
+
case 'wmRadioset':
|
|
1483
|
+
this[baseWidget] = new input.RadiosetComponent(this.injector, undefined);
|
|
1484
|
+
this[baseWidget]["_select"] = (item, $event) => {
|
|
1485
|
+
this[baseWidget].triggerInvokeOnChange(item.key, $event);
|
|
1486
|
+
};
|
|
1487
|
+
break;
|
|
1488
|
+
}
|
|
1489
|
+
for (let [key, value] of this.containerWidget.$attrs) {
|
|
1490
|
+
if (key.startsWith('base-')) {
|
|
1491
|
+
let modifiedKey = key.replace('base-', '');
|
|
1492
|
+
this[baseWidget][modifiedKey] = value;
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
this[baseWidget].initDatasetItems();
|
|
1496
|
+
this.containerWidget[baseWidget] = this[baseWidget];
|
|
1497
|
+
}
|
|
1498
|
+
});
|
|
1499
|
+
}
|
|
1500
|
+
registerBaseWidget() {
|
|
1501
|
+
this.initializeComponentData(this.containerWidget.nativeElement.children);
|
|
1502
|
+
}
|
|
1503
|
+
registerEvents() {
|
|
1504
|
+
this.events = {};
|
|
1505
|
+
this.containerWidget.eventHandlers.forEach((callback, key) => {
|
|
1506
|
+
this.events[key] = (...args) => {
|
|
1507
|
+
this.containerWidget.invokeEventCallback(key, { $event: args[0], $data: args[1] });
|
|
1508
|
+
};
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1511
|
+
registerDestroyListener(fn) {
|
|
1512
|
+
this.destroy$.subscribe(i1.noop, i1.noop, () => fn());
|
|
1513
|
+
}
|
|
1514
|
+
registerChangeListeners() {
|
|
1515
|
+
this.containerWidget.registerPropertyChangeListener(this.onPropertyChange);
|
|
1516
|
+
this.containerWidget.registerStyleChangeListener(this.onPropertyChange);
|
|
1517
|
+
}
|
|
1518
|
+
initUserScript() {
|
|
1519
|
+
try {
|
|
1520
|
+
// partials inside prefab should have access to Prefab properties and events
|
|
1521
|
+
if (this.viewParent.prefabName) {
|
|
1522
|
+
// for partial within partial within prefabs, just assign the parent partial's prefab object
|
|
1523
|
+
if (this.viewParent.Prefab) {
|
|
1524
|
+
this.Prefab = this.viewParent.Prefab;
|
|
1525
|
+
}
|
|
1526
|
+
else {
|
|
1527
|
+
this.Prefab = this.viewParent;
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
this.evalUserScript(this, this.App, this.injector ? this.injector.get(i1.UtilsService) : i0.inject(i1.UtilsService));
|
|
1531
|
+
}
|
|
1532
|
+
catch (e) {
|
|
1533
|
+
console.error(`Error in evaluating partial (${this.customWidgetName}) script\n`, e);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
initVariables() {
|
|
1537
|
+
const variablesService = this.injector ? this.injector.get(i4.VariablesService) : i0.inject(i4.VariablesService);
|
|
1538
|
+
// get variables and actions instances for the page
|
|
1539
|
+
const variableCollection = variablesService.register(this.customWidgetName, this.getVariables(), this);
|
|
1540
|
+
// create namespace for Variables nad Actions on page/partial, which inherits the Variables and Actions from App instance
|
|
1541
|
+
this.Variables = Object.create(this.App.Variables);
|
|
1542
|
+
this.Actions = Object.create(this.App.Actions);
|
|
1543
|
+
this.containerWidget.Variables = this.Variables;
|
|
1544
|
+
this.containerWidget.Actions = this.Actions;
|
|
1545
|
+
// assign all the page variables to the pageInstance
|
|
1546
|
+
Object.entries(variableCollection.Variables).forEach(([name, variable]) => this.Variables[name] = variable);
|
|
1547
|
+
Object.entries(variableCollection.Actions).forEach(([name, action]) => this.Actions[name] = action);
|
|
1548
|
+
this.viewInit$.subscribe(i1.noop, i1.noop, () => {
|
|
1549
|
+
// TEMP: triggering watchers so variables watching over params are updated
|
|
1550
|
+
i1.$invokeWatchers(true, true);
|
|
1551
|
+
variableCollection.callback(variableCollection.Variables).catch(i1.noop);
|
|
1552
|
+
variableCollection.callback(variableCollection.Actions);
|
|
1553
|
+
});
|
|
1554
|
+
}
|
|
1555
|
+
/**
|
|
1556
|
+
* function to register bind expressions generated in this partial instance
|
|
1557
|
+
* getExpressions function is defined in the generated page.comp.ts file
|
|
1558
|
+
* @param expressions, map of bind expression vs generated function
|
|
1559
|
+
*/
|
|
1560
|
+
registerExpressions() {
|
|
1561
|
+
// const expressions = this.getExpressions();
|
|
1562
|
+
// _.each(expressions, (fn, expr)=>{
|
|
1563
|
+
// registerFnByExpr(expr, fn[0], fn[1]);
|
|
1564
|
+
// });
|
|
1565
|
+
}
|
|
1566
|
+
registerProps() {
|
|
1567
|
+
this.props = this.containerWidget.props;
|
|
1568
|
+
}
|
|
1569
|
+
defineI18nProps() {
|
|
1570
|
+
this.appLocale = this.i18nService.getAppLocale();
|
|
1571
|
+
}
|
|
1572
|
+
invokeOnReady() {
|
|
1573
|
+
let params;
|
|
1574
|
+
if (this.containerWidget.userComponentParams) {
|
|
1575
|
+
params = this.containerWidget.userComponentParams;
|
|
1576
|
+
}
|
|
1577
|
+
this.onReady(params);
|
|
1578
|
+
if (this.viewParent.resolveFragment) {
|
|
1579
|
+
this.viewParent.resolveFragment();
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
loadScripts() {
|
|
1583
|
+
// return new Promise<void>((resolve) => {
|
|
1584
|
+
// const scriptsRequired = this.partialDirective.$element.attr('scripts-to-load');
|
|
1585
|
+
// if (scriptsRequired) {
|
|
1586
|
+
// this.scriptLoaderService
|
|
1587
|
+
// .load(...scriptsRequired.split(','))
|
|
1588
|
+
// .then(resolve);
|
|
1589
|
+
// } else {
|
|
1590
|
+
// resolve();
|
|
1591
|
+
// }
|
|
1592
|
+
// });
|
|
1593
|
+
}
|
|
1594
|
+
registerPropsInContainerWidget(resolveFn) {
|
|
1595
|
+
this.customwidgetConfigProvider.getConfig(this.customWidgetName).then((config) => {
|
|
1596
|
+
if (config) {
|
|
1597
|
+
Object.entries((config.properties || {})).forEach(([key, prop]) => {
|
|
1598
|
+
let expr;
|
|
1599
|
+
const value = _.trim(prop.value);
|
|
1600
|
+
if (_.startsWith(value, 'bind:')) {
|
|
1601
|
+
expr = value.replace('bind:', '');
|
|
1602
|
+
}
|
|
1603
|
+
Object.defineProperty(this, key, {
|
|
1604
|
+
get: () => this.containerWidget[key],
|
|
1605
|
+
set: nv => this.containerWidget.widget[key] = nv
|
|
1606
|
+
});
|
|
1607
|
+
if (expr) {
|
|
1608
|
+
//[Todo-CSP]: expr will be generated with prefab.comp.expr.ts
|
|
1609
|
+
this.registerDestroyListener(i1.$watch(expr, this, {}, nv => this.containerWidget.widget[key] = nv));
|
|
1610
|
+
}
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
this.containerWidget.setProps(config, resolveFn);
|
|
1614
|
+
// Reassigning the proxy handler for prefab inbound properties as we
|
|
1615
|
+
// will get them only after the prefab config call.
|
|
1616
|
+
if (i1.isIE()) {
|
|
1617
|
+
this.containerWidget.widget = this.containerWidget.createProxy();
|
|
1618
|
+
}
|
|
1619
|
+
});
|
|
1620
|
+
}
|
|
1621
|
+
mute() {
|
|
1622
|
+
const m = o => { o && o.mute && o.mute(); };
|
|
1623
|
+
_.each(this.Widgets, m);
|
|
1624
|
+
_.each(this.Variables, m);
|
|
1625
|
+
_.each(this.Actions, m);
|
|
1626
|
+
}
|
|
1627
|
+
unmute() {
|
|
1628
|
+
const um = o => { o && o.unmute && o.unmute(); };
|
|
1629
|
+
_.each(this.Widgets, um);
|
|
1630
|
+
_.each(this.Variables, um);
|
|
1631
|
+
_.each(this.Actions, um);
|
|
1632
|
+
}
|
|
1633
|
+
// ngOnInit() {
|
|
1634
|
+
// this.init();
|
|
1635
|
+
// }
|
|
1636
|
+
ngAfterViewInit() {
|
|
1637
|
+
this.registerChangeListeners();
|
|
1638
|
+
this.registerBaseWidget();
|
|
1639
|
+
setTimeout(() => {
|
|
1640
|
+
this.viewInit$.complete();
|
|
1641
|
+
this.fragmentsLoaded$.subscribe(i1.noop, i1.noop, () => this.invokeOnReady());
|
|
1642
|
+
}, 100);
|
|
1643
|
+
}
|
|
1644
|
+
ngOnDestroy() {
|
|
1645
|
+
this.destroy$.complete();
|
|
1646
|
+
}
|
|
1647
|
+
ngOnAttach(refreshData) {
|
|
1648
|
+
this.unmute();
|
|
1649
|
+
if (refreshData) {
|
|
1650
|
+
const refresh = v => { v && v.startUpdate && v.invoke && v.invoke(); };
|
|
1651
|
+
_.each(this.Variables, refresh);
|
|
1652
|
+
_.each(this.Actions, refresh);
|
|
1653
|
+
}
|
|
1654
|
+
_.each(this.Widgets, w => w && w.ngOnAttach && w.ngOnAttach());
|
|
1655
|
+
}
|
|
1656
|
+
ngOnDetach() {
|
|
1657
|
+
this.mute();
|
|
1658
|
+
_.each(this.Widgets, w => w && w.ngOnDetach && w.ngOnDetach());
|
|
1659
|
+
}
|
|
1660
|
+
// user overrides this
|
|
1661
|
+
onPropertyChange() { }
|
|
1662
|
+
onReady(params) {
|
|
1663
|
+
}
|
|
1664
|
+
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBaseCustomWidgetComponent_BaseFactory; return function BaseCustomWidgetComponent_Factory(t) { return (ɵBaseCustomWidgetComponent_BaseFactory || (ɵBaseCustomWidgetComponent_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(BaseCustomWidgetComponent)))(t || BaseCustomWidgetComponent); }; })(); }
|
|
1665
|
+
static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: BaseCustomWidgetComponent, features: [i0__namespace.ɵɵInheritDefinitionFeature] }); }
|
|
1666
|
+
}
|
|
1667
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BaseCustomWidgetComponent, [{
|
|
1668
|
+
type: i0.Directive
|
|
1669
|
+
}], null, null); })();
|
|
1670
|
+
|
|
1386
1671
|
class BasePrefabComponent extends FragmentMonitor {
|
|
1387
1672
|
constructor() {
|
|
1388
1673
|
super(...arguments);
|
|
@@ -2853,7 +3138,7 @@
|
|
|
2853
3138
|
return locale === moment.tz(timezoneName).format('Z');
|
|
2854
3139
|
});
|
|
2855
3140
|
}
|
|
2856
|
-
|
|
3141
|
+
this.formatsByLocale.timezone = locale;
|
|
2857
3142
|
const localeData = compInstance && compInstance.formatsByLocale ? compInstance.formatsByLocale : this.formatsByLocale;
|
|
2858
3143
|
Object.assign(localeData, localeObj);
|
|
2859
3144
|
resolve();
|
|
@@ -4663,6 +4948,7 @@
|
|
|
4663
4948
|
carousel$1.CarouselModule,
|
|
4664
4949
|
login.LoginModule,
|
|
4665
4950
|
marquee.MarqueeModule,
|
|
4951
|
+
custom.CustomModule,
|
|
4666
4952
|
page.PageModule,
|
|
4667
4953
|
footer.FooterModule,
|
|
4668
4954
|
header.HeaderModule,
|
|
@@ -4857,6 +5143,7 @@
|
|
|
4857
5143
|
carousel$1.CarouselModule,
|
|
4858
5144
|
login.LoginModule,
|
|
4859
5145
|
marquee.MarqueeModule,
|
|
5146
|
+
custom.CustomModule,
|
|
4860
5147
|
page.PageModule,
|
|
4861
5148
|
footer.FooterModule,
|
|
4862
5149
|
header.HeaderModule,
|
|
@@ -4987,6 +5274,7 @@
|
|
|
4987
5274
|
carousel$1.CarouselModule,
|
|
4988
5275
|
login.LoginModule,
|
|
4989
5276
|
marquee.MarqueeModule,
|
|
5277
|
+
custom.CustomModule,
|
|
4990
5278
|
page.PageModule,
|
|
4991
5279
|
footer.FooterModule,
|
|
4992
5280
|
header.HeaderModule,
|
|
@@ -5071,6 +5359,7 @@
|
|
|
5071
5359
|
carousel$1.CarouselModule,
|
|
5072
5360
|
login.LoginModule,
|
|
5073
5361
|
marquee.MarqueeModule,
|
|
5362
|
+
custom.CustomModule,
|
|
5074
5363
|
page.PageModule,
|
|
5075
5364
|
footer.FooterModule,
|
|
5076
5365
|
header.HeaderModule,
|
|
@@ -5168,6 +5457,7 @@
|
|
|
5168
5457
|
exports.AppVariablesProvider = AppVariablesProvider;
|
|
5169
5458
|
exports.AppVariablesResolve = AppVariablesResolve;
|
|
5170
5459
|
exports.AuthGuard = AuthGuard;
|
|
5460
|
+
exports.BaseCustomWidgetComponent = BaseCustomWidgetComponent;
|
|
5171
5461
|
exports.BaseLayoutComponent = BaseLayoutComponent;
|
|
5172
5462
|
exports.BasePageComponent = BasePageComponent;
|
|
5173
5463
|
exports.BasePartialComponent = BasePartialComponent;
|
|
@@ -5178,6 +5468,7 @@
|
|
|
5178
5468
|
exports.CanDeactivatePageGuard = CanDeactivatePageGuard;
|
|
5179
5469
|
exports.ComponentRefProvider = ComponentRefProvider;
|
|
5180
5470
|
exports.CustomToasterComponent = CustomToasterComponent;
|
|
5471
|
+
exports.CustomwidgetConfigProvider = CustomwidgetConfigProvider;
|
|
5181
5472
|
exports.DynamicComponentRefProviderService = DynamicComponentRefProviderService;
|
|
5182
5473
|
exports.EmptyPageComponent = EmptyPageComponent;
|
|
5183
5474
|
exports.FragmentMonitor = FragmentMonitor;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { AfterViewInit, Injector, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { AbstractI18nService, AbstractNavigationService, App, Viewport, ScriptLoaderService } from '@wm/core';
|
|
5
|
+
import { PageDirective, SpaPageDirective } from '@wm/components/page';
|
|
6
|
+
import { PrefabDirective } from '@wm/components/prefab';
|
|
7
|
+
import { CustomwidgetConfigProvider } from '../types/types';
|
|
8
|
+
import { FragmentMonitor } from '../util/fragment-monitor';
|
|
9
|
+
import { AppManagerService } from '../services/app.manager.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare abstract class BaseCustomWidgetComponent extends FragmentMonitor implements AfterViewInit, OnDestroy {
|
|
12
|
+
Widgets: any;
|
|
13
|
+
BaseWidget: any;
|
|
14
|
+
Variables: any;
|
|
15
|
+
Actions: any;
|
|
16
|
+
App: App;
|
|
17
|
+
injector: Injector;
|
|
18
|
+
customWidgetName: string;
|
|
19
|
+
activePageName: string;
|
|
20
|
+
route: ActivatedRoute;
|
|
21
|
+
appManager: AppManagerService;
|
|
22
|
+
navigationService: AbstractNavigationService;
|
|
23
|
+
router: Router;
|
|
24
|
+
props: any;
|
|
25
|
+
containerWidget: any;
|
|
26
|
+
i18nService: AbstractI18nService;
|
|
27
|
+
appLocale: any;
|
|
28
|
+
pageDirective: PageDirective | SpaPageDirective;
|
|
29
|
+
Prefab: PrefabDirective;
|
|
30
|
+
scriptLoaderService: ScriptLoaderService;
|
|
31
|
+
customwidgetConfigProvider: CustomwidgetConfigProvider;
|
|
32
|
+
Viewport: Viewport;
|
|
33
|
+
compileContent: boolean;
|
|
34
|
+
spa: boolean;
|
|
35
|
+
events: any;
|
|
36
|
+
destroy$: Subject<unknown>;
|
|
37
|
+
viewInit$: Subject<unknown>;
|
|
38
|
+
private viewParent;
|
|
39
|
+
abstract evalUserScript(prefabContext: any, appContext: any, utils: any): any;
|
|
40
|
+
abstract getVariables(): any;
|
|
41
|
+
getContainerWidgetInjector(): any;
|
|
42
|
+
init(): void;
|
|
43
|
+
registerWidgets(): void;
|
|
44
|
+
initializeComponentData(children: any): void;
|
|
45
|
+
registerBaseWidget(): void;
|
|
46
|
+
invokeEvent: (eventName: string) => void;
|
|
47
|
+
registerEvents(): void;
|
|
48
|
+
registerDestroyListener(fn: Function): void;
|
|
49
|
+
registerChangeListeners(): void;
|
|
50
|
+
initUserScript(): void;
|
|
51
|
+
initVariables(): void;
|
|
52
|
+
/**
|
|
53
|
+
* function to register bind expressions generated in this partial instance
|
|
54
|
+
* getExpressions function is defined in the generated page.comp.ts file
|
|
55
|
+
* @param expressions, map of bind expression vs generated function
|
|
56
|
+
*/
|
|
57
|
+
registerExpressions(): void;
|
|
58
|
+
registerProps(): void;
|
|
59
|
+
defineI18nProps(): void;
|
|
60
|
+
invokeOnReady(): void;
|
|
61
|
+
private loadScripts;
|
|
62
|
+
registerPropsInContainerWidget(resolveFn: Function): void;
|
|
63
|
+
mute(): void;
|
|
64
|
+
unmute(): void;
|
|
65
|
+
ngAfterViewInit(): void;
|
|
66
|
+
ngOnDestroy(): void;
|
|
67
|
+
ngOnAttach(refreshData: any): void;
|
|
68
|
+
ngOnDetach(): void;
|
|
69
|
+
onPropertyChange(): void;
|
|
70
|
+
onReady(params?: any): void;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseCustomWidgetComponent, never>;
|
|
72
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseCustomWidgetComponent, never, never, {}, {}, never, never, false, never>;
|
|
73
|
+
}
|