@wavemaker/app-ng-runtime 12.0.0-next.44005 → 12.0.0-next.45001
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-prop/custom-widget-prop.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 +477 -404
- 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-prop/custom-widget-prop.build.mjs +10 -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/navigation/menu/menu.build.mjs +14 -2
- app-ng-runtime/build-task/esm2022/public_api.mjs +4 -1
- app-ng-runtime/build-task/fesm2022/index.mjs +479 -405
- app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/build-task/public_api.d.ts +3 -0
- app-ng-runtime/components/advanced/custom/bundles/index.umd.js +275 -0
- app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +14 -0
- app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget.props.d.ts +1 -0
- app-ng-runtime/components/advanced/custom/custom-widget-container-prop/custom-widget-container-prop.directive.d.ts +20 -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 +11 -0
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +73 -0
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget.props.mjs +9 -0
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container-prop/custom-widget-container-prop.directive.mjs +70 -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 +39 -0
- app-ng-runtime/components/advanced/custom/esm2022/index.mjs +5 -0
- app-ng-runtime/components/advanced/custom/esm2022/public_api.mjs +5 -0
- app-ng-runtime/components/advanced/custom/fesm2022/index.mjs +256 -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 +4 -0
- app-ng-runtime/components/base/bundles/index.umd.js +65 -9
- 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/widgets/common/base/base.component.mjs +28 -10
- app-ng-runtime/components/base/esm2022/widgets/common/base/custom-widget-container.directive.mjs +39 -0
- app-ng-runtime/components/base/fesm2022/index.mjs +65 -10
- 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 +9 -3
- app-ng-runtime/components/base/widgets/common/base/custom-widget-container.directive.d.ts +14 -0
- app-ng-runtime/components/basic/default/audio/audio.component.d.ts +1 -0
- app-ng-runtime/components/basic/default/bundles/index.umd.js +5 -4
- app-ng-runtime/components/basic/default/esm2022/audio/audio.component.mjs +6 -5
- app-ng-runtime/components/basic/default/fesm2022/index.mjs +5 -4
- app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/bundles/index.umd.js +3 -2
- app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +4 -3
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs +3 -2
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/progress-circle/progress-circle.component.d.ts +1 -0
- app-ng-runtime/components/data/form/bundles/index.umd.js +4 -3
- app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +1 -2
- app-ng-runtime/components/data/form/esm2022/live-form/live-form.directive.mjs +5 -3
- app-ng-runtime/components/data/form/fesm2022/index.mjs +4 -3
- app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +46 -53
- app-ng-runtime/components/input/default/esm2022/caption-position.directive.mjs +2 -3
- app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +44 -53
- app-ng-runtime/components/input/default/esm2022/text/base/base-input.mjs +4 -1
- app-ng-runtime/components/input/default/fesm2022/index.mjs +47 -54
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/select/select.component.d.ts +1 -2
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +19 -7
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +1 -0
- app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +9 -3
- app-ng-runtime/components/input/epoch/esm2022/date/imaskUtil.mjs +8 -2
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +3 -3
- app-ng-runtime/components/input/epoch/esm2022/time/time.component.mjs +3 -3
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +19 -7
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +10 -0
- 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/types/types.mjs +4 -1
- app-ng-runtime/core/esm2022/utils/build-utils.mjs +6 -1
- app-ng-runtime/core/fesm2022/index.mjs +10 -1
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/types/types.d.ts +5 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +254 -4
- app-ng-runtime/runtime/base/components/base-custom-widget.component.d.ts +71 -0
- app-ng-runtime/runtime/base/esm2022/components/base-custom-widget.component.mjs +253 -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/types/types.mjs +2 -1
- app-ng-runtime/runtime/base/fesm2022/index.mjs +251 -1
- 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 +2 -1
- app-ng-runtime/runtime/dynamic/bundles/index.umd.js +26 -9
- app-ng-runtime/runtime/dynamic/esm2022/app/app.module.mjs +5 -2
- app-ng-runtime/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +22 -7
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs +25 -7
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +1 -0
- 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
|
@@ -86,6 +86,7 @@ import { PopoverModule as PopoverModule$1 } from '@wm/components/navigation/popo
|
|
|
86
86
|
import { CarouselModule as CarouselModule$1 } from '@wm/components/advanced/carousel';
|
|
87
87
|
import { LoginModule } from '@wm/components/advanced/login';
|
|
88
88
|
import { MarqueeModule } from '@wm/components/advanced/marquee';
|
|
89
|
+
import { CustomModule } from '@wm/components/advanced/custom';
|
|
89
90
|
import { TimepickerModule } from 'ngx-bootstrap/timepicker';
|
|
90
91
|
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
91
92
|
import { PaginationModule } from 'ngx-bootstrap/pagination';
|
|
@@ -101,6 +102,7 @@ var ComponentType;
|
|
|
101
102
|
ComponentType[ComponentType["PAGE"] = 0] = "PAGE";
|
|
102
103
|
ComponentType[ComponentType["PREFAB"] = 1] = "PREFAB";
|
|
103
104
|
ComponentType[ComponentType["PARTIAL"] = 2] = "PARTIAL";
|
|
105
|
+
ComponentType[ComponentType["WIDGET"] = 3] = "WIDGET";
|
|
104
106
|
})(ComponentType || (ComponentType = {}));
|
|
105
107
|
class ComponentRefProvider {
|
|
106
108
|
clearComponentFactoryRefCache() { }
|
|
@@ -1440,6 +1442,250 @@ class BasePageComponent extends FragmentMonitor {
|
|
|
1440
1442
|
args: ['window:beforeunload']
|
|
1441
1443
|
}] }); })();
|
|
1442
1444
|
|
|
1445
|
+
// export const commonPartialWidgets = {};
|
|
1446
|
+
class BaseCustomWidgetComponent extends FragmentMonitor {
|
|
1447
|
+
constructor() {
|
|
1448
|
+
super(...arguments);
|
|
1449
|
+
this.BaseWidget = {};
|
|
1450
|
+
this.compileContent = false;
|
|
1451
|
+
this.destroy$ = new Subject();
|
|
1452
|
+
this.viewInit$ = new Subject();
|
|
1453
|
+
this.invokeEvent = (eventName) => {
|
|
1454
|
+
this.events[eventName]();
|
|
1455
|
+
};
|
|
1456
|
+
}
|
|
1457
|
+
getContainerWidgetInjector() {
|
|
1458
|
+
return this.containerWidget.inj || this.containerWidget.injector;
|
|
1459
|
+
}
|
|
1460
|
+
init() {
|
|
1461
|
+
let resolveFn;
|
|
1462
|
+
const promise = new Promise((res) => resolveFn = res);
|
|
1463
|
+
this.App = this.injector ? this.injector.get(App) : inject(App);
|
|
1464
|
+
//making the code compatible in both the JIT and AOT modes
|
|
1465
|
+
this.containerWidget = this.injector ? this.injector.get(WidgetRef) : inject(WidgetRef);
|
|
1466
|
+
this.i18nService = this.injector ? this.injector.get(AbstractI18nService) : inject(AbstractI18nService);
|
|
1467
|
+
this.scriptLoaderService = this.injector ? this.injector.get(ScriptLoaderService) : inject(ScriptLoaderService);
|
|
1468
|
+
this.Viewport = this.injector ? this.injector.get(Viewport) : inject(Viewport);
|
|
1469
|
+
// this.viewContainerRef = this.getContainerWidgetInjector().get(ViewContainerRef);
|
|
1470
|
+
// Replacing this.getContainerWidgetInjector().view.component as viewParent
|
|
1471
|
+
// this.viewParent = (this.viewContainerRef as any).parentInjector._lView[8];
|
|
1472
|
+
this.viewParent = this.containerWidget.viewParent;
|
|
1473
|
+
if (this.viewParent.registerFragment) {
|
|
1474
|
+
this.viewParent.registerFragment();
|
|
1475
|
+
}
|
|
1476
|
+
// register functions for binding evaluation
|
|
1477
|
+
this.registerExpressions();
|
|
1478
|
+
this.initUserScript();
|
|
1479
|
+
this.registerProps(resolveFn);
|
|
1480
|
+
// Using promise to make sure the props are registered in the container widget before registering events, Otherwise no events will be registered
|
|
1481
|
+
promise.then(() => this.registerEvents());
|
|
1482
|
+
this.registerWidgets();
|
|
1483
|
+
this.initVariables();
|
|
1484
|
+
this.activePageName = this.App.activePageName; // Todo: remove this
|
|
1485
|
+
this.registerPageParams();
|
|
1486
|
+
this.defineI18nProps();
|
|
1487
|
+
this.viewInit$.subscribe(noop$1, noop$1, () => {
|
|
1488
|
+
this.pageParams = this.containerWidget.props;
|
|
1489
|
+
});
|
|
1490
|
+
if (this.spa) {
|
|
1491
|
+
this.pageDirective = this.injector ? this.injector.get(SpaPageDirective) : inject(SpaPageDirective);
|
|
1492
|
+
}
|
|
1493
|
+
else {
|
|
1494
|
+
this.pageDirective = this.injector ? this.injector.get(PageDirective) : inject(PageDirective);
|
|
1495
|
+
}
|
|
1496
|
+
if (this.pageDirective) {
|
|
1497
|
+
this.registerDestroyListener(this.pageDirective.subscribe('attach', data => this.ngOnAttach(data.refreshData)));
|
|
1498
|
+
this.registerDestroyListener(this.pageDirective.subscribe('detach', () => this.ngOnDetach()));
|
|
1499
|
+
}
|
|
1500
|
+
super.init();
|
|
1501
|
+
}
|
|
1502
|
+
registerWidgets() {
|
|
1503
|
+
// common partial widgets should be accessible from page
|
|
1504
|
+
this.Widgets = Object.create(commonPartialWidgets);
|
|
1505
|
+
// expose current page widgets on app
|
|
1506
|
+
this.App.Widgets = Object.create(this.Widgets);
|
|
1507
|
+
}
|
|
1508
|
+
registerBaseWidget() {
|
|
1509
|
+
for (let widget in this.Widgets) {
|
|
1510
|
+
let widgetInstance = this.Widgets[widget];
|
|
1511
|
+
if (widgetInstance.widget.$attrs.has('base-widget')) {
|
|
1512
|
+
this.BaseWidget = widgetInstance;
|
|
1513
|
+
break;
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
registerEvents() {
|
|
1518
|
+
this.events = {};
|
|
1519
|
+
this.containerWidget.eventHandlers.forEach((callback, key) => {
|
|
1520
|
+
this.events[key] = (...args) => {
|
|
1521
|
+
this.containerWidget.invokeEventCallback(key, { $event: args[0], $data: args[1] });
|
|
1522
|
+
};
|
|
1523
|
+
});
|
|
1524
|
+
}
|
|
1525
|
+
registerDestroyListener(fn) {
|
|
1526
|
+
this.destroy$.subscribe(noop$1, noop$1, () => fn());
|
|
1527
|
+
}
|
|
1528
|
+
registerChangeListeners() {
|
|
1529
|
+
this.containerWidget.registerPropertyChangeListener(this.onPropertyChange);
|
|
1530
|
+
this.containerWidget.registerStyleChangeListener(this.onPropertyChange);
|
|
1531
|
+
}
|
|
1532
|
+
initUserScript() {
|
|
1533
|
+
try {
|
|
1534
|
+
// partials inside prefab should have access to Prefab properties and events
|
|
1535
|
+
if (this.viewParent.prefabName) {
|
|
1536
|
+
// for partial within partial within prefabs, just assign the parent partial's prefab object
|
|
1537
|
+
if (this.viewParent.Prefab) {
|
|
1538
|
+
this.Prefab = this.viewParent.Prefab;
|
|
1539
|
+
}
|
|
1540
|
+
else {
|
|
1541
|
+
this.Prefab = this.viewParent;
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
this.evalUserScript(this, this.App, this.injector ? this.injector.get(UtilsService) : inject(UtilsService));
|
|
1545
|
+
}
|
|
1546
|
+
catch (e) {
|
|
1547
|
+
console.error(`Error in evaluating partial (${this.customWidgetName}) script\n`, e);
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
initVariables() {
|
|
1551
|
+
const variablesService = this.injector ? this.injector.get(VariablesService) : inject(VariablesService);
|
|
1552
|
+
// get variables and actions instances for the page
|
|
1553
|
+
const variableCollection = variablesService.register(this.customWidgetName, this.getVariables(), this);
|
|
1554
|
+
// create namespace for Variables nad Actions on page/partial, which inherits the Variables and Actions from App instance
|
|
1555
|
+
this.Variables = Object.create(this.App.Variables);
|
|
1556
|
+
this.Actions = Object.create(this.App.Actions);
|
|
1557
|
+
this.containerWidget.Variables = this.Variables;
|
|
1558
|
+
this.containerWidget.Actions = this.Actions;
|
|
1559
|
+
// assign all the page variables to the pageInstance
|
|
1560
|
+
Object.entries(variableCollection.Variables).forEach(([name, variable]) => this.Variables[name] = variable);
|
|
1561
|
+
Object.entries(variableCollection.Actions).forEach(([name, action]) => this.Actions[name] = action);
|
|
1562
|
+
this.viewInit$.subscribe(noop$1, noop$1, () => {
|
|
1563
|
+
// TEMP: triggering watchers so variables watching over params are updated
|
|
1564
|
+
$invokeWatchers(true, true);
|
|
1565
|
+
variableCollection.callback(variableCollection.Variables).catch(noop$1);
|
|
1566
|
+
variableCollection.callback(variableCollection.Actions);
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1569
|
+
/**
|
|
1570
|
+
* function to register bind expressions generated in this partial instance
|
|
1571
|
+
* getExpressions function is defined in the generated page.comp.ts file
|
|
1572
|
+
* @param expressions, map of bind expression vs generated function
|
|
1573
|
+
*/
|
|
1574
|
+
registerExpressions() {
|
|
1575
|
+
const expressions = this.getExpressions();
|
|
1576
|
+
_.each(expressions, (fn, expr) => {
|
|
1577
|
+
registerFnByExpr(expr, fn[0], fn[1]);
|
|
1578
|
+
});
|
|
1579
|
+
}
|
|
1580
|
+
registerPageParams() {
|
|
1581
|
+
this.pageParams = this.containerWidget.props;
|
|
1582
|
+
}
|
|
1583
|
+
defineI18nProps() {
|
|
1584
|
+
this.appLocale = this.i18nService.getAppLocale();
|
|
1585
|
+
}
|
|
1586
|
+
invokeOnReady() {
|
|
1587
|
+
let params;
|
|
1588
|
+
if (this.containerWidget.userComponentParams) {
|
|
1589
|
+
params = this.containerWidget.userComponentParams;
|
|
1590
|
+
}
|
|
1591
|
+
this.onReady(params);
|
|
1592
|
+
if (this.viewParent.resolveFragment) {
|
|
1593
|
+
this.viewParent.resolveFragment();
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
loadScripts() {
|
|
1597
|
+
// return new Promise<void>((resolve) => {
|
|
1598
|
+
// const scriptsRequired = this.partialDirective.$element.attr('scripts-to-load');
|
|
1599
|
+
// if (scriptsRequired) {
|
|
1600
|
+
// this.scriptLoaderService
|
|
1601
|
+
// .load(...scriptsRequired.split(','))
|
|
1602
|
+
// .then(resolve);
|
|
1603
|
+
// } else {
|
|
1604
|
+
// resolve();
|
|
1605
|
+
// }
|
|
1606
|
+
// });
|
|
1607
|
+
}
|
|
1608
|
+
registerProps(resolveFn) {
|
|
1609
|
+
window['resourceCache'].get(`./custom-widgets/${this.customWidgetName}/page.min.json`).then(({ config }) => {
|
|
1610
|
+
if (config) {
|
|
1611
|
+
Object.entries((config.properties || {})).forEach(([key, prop]) => {
|
|
1612
|
+
let expr;
|
|
1613
|
+
const value = _.trim(prop.value);
|
|
1614
|
+
if (_.startsWith(value, 'bind:')) {
|
|
1615
|
+
expr = value.replace('bind:', '');
|
|
1616
|
+
}
|
|
1617
|
+
Object.defineProperty(this, key, {
|
|
1618
|
+
get: () => this.containerWidget[key],
|
|
1619
|
+
set: nv => this.containerWidget.widget[key] = nv
|
|
1620
|
+
});
|
|
1621
|
+
if (expr) {
|
|
1622
|
+
//[Todo-CSP]: expr will be generated with prefab.comp.expr.ts
|
|
1623
|
+
this.registerDestroyListener($watch(expr, this, {}, nv => this.containerWidget.widget[key] = nv));
|
|
1624
|
+
}
|
|
1625
|
+
});
|
|
1626
|
+
}
|
|
1627
|
+
this.containerWidget.setProps(config, resolveFn);
|
|
1628
|
+
// Reassigning the proxy handler for prefab inbound properties as we
|
|
1629
|
+
// will get them only after the prefab config call.
|
|
1630
|
+
if (isIE()) {
|
|
1631
|
+
this.containerWidget.widget = this.containerWidget.createProxy();
|
|
1632
|
+
}
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
mute() {
|
|
1636
|
+
const m = o => { o && o.mute && o.mute(); };
|
|
1637
|
+
_.each(this.Widgets, m);
|
|
1638
|
+
_.each(this.Variables, m);
|
|
1639
|
+
_.each(this.Actions, m);
|
|
1640
|
+
}
|
|
1641
|
+
unmute() {
|
|
1642
|
+
const um = o => { o && o.unmute && o.unmute(); };
|
|
1643
|
+
_.each(this.Widgets, um);
|
|
1644
|
+
_.each(this.Variables, um);
|
|
1645
|
+
_.each(this.Actions, um);
|
|
1646
|
+
}
|
|
1647
|
+
// ngOnInit() {
|
|
1648
|
+
// this.init();
|
|
1649
|
+
// }
|
|
1650
|
+
ngAfterViewInit() {
|
|
1651
|
+
// this.loadScripts().then(() => {
|
|
1652
|
+
// this.compileContent = true;
|
|
1653
|
+
// setTimeout(() => {
|
|
1654
|
+
// this.viewInit$.complete();
|
|
1655
|
+
// this.fragmentsLoaded$.subscribe(noop, noop, () => this.invokeOnReady());
|
|
1656
|
+
// }, 100);
|
|
1657
|
+
// });
|
|
1658
|
+
this.registerChangeListeners();
|
|
1659
|
+
this.registerBaseWidget();
|
|
1660
|
+
this.invokeOnReady();
|
|
1661
|
+
}
|
|
1662
|
+
ngOnDestroy() {
|
|
1663
|
+
this.destroy$.complete();
|
|
1664
|
+
}
|
|
1665
|
+
ngOnAttach(refreshData) {
|
|
1666
|
+
this.unmute();
|
|
1667
|
+
if (refreshData) {
|
|
1668
|
+
const refresh = v => { v && v.startUpdate && v.invoke && v.invoke(); };
|
|
1669
|
+
_.each(this.Variables, refresh);
|
|
1670
|
+
_.each(this.Actions, refresh);
|
|
1671
|
+
}
|
|
1672
|
+
_.each(this.Widgets, w => w && w.ngOnAttach && w.ngOnAttach());
|
|
1673
|
+
}
|
|
1674
|
+
ngOnDetach() {
|
|
1675
|
+
this.mute();
|
|
1676
|
+
_.each(this.Widgets, w => w && w.ngOnDetach && w.ngOnDetach());
|
|
1677
|
+
}
|
|
1678
|
+
// user overrides this
|
|
1679
|
+
onPropertyChange() { }
|
|
1680
|
+
onReady(params) {
|
|
1681
|
+
}
|
|
1682
|
+
static { this.ɵfac = /*@__PURE__*/ function () { let ɵBaseCustomWidgetComponent_BaseFactory; return function BaseCustomWidgetComponent_Factory(t) { return (ɵBaseCustomWidgetComponent_BaseFactory || (ɵBaseCustomWidgetComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BaseCustomWidgetComponent)))(t || BaseCustomWidgetComponent); }; }(); }
|
|
1683
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseCustomWidgetComponent, features: [i0.ɵɵInheritDefinitionFeature] }); }
|
|
1684
|
+
}
|
|
1685
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseCustomWidgetComponent, [{
|
|
1686
|
+
type: Directive
|
|
1687
|
+
}], null, null); })();
|
|
1688
|
+
|
|
1443
1689
|
class BasePrefabComponent extends FragmentMonitor {
|
|
1444
1690
|
constructor() {
|
|
1445
1691
|
super(...arguments);
|
|
@@ -4726,6 +4972,7 @@ const REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS = [
|
|
|
4726
4972
|
CarouselModule$1,
|
|
4727
4973
|
LoginModule,
|
|
4728
4974
|
MarqueeModule,
|
|
4975
|
+
CustomModule,
|
|
4729
4976
|
PageModule,
|
|
4730
4977
|
FooterModule,
|
|
4731
4978
|
HeaderModule,
|
|
@@ -4920,6 +5167,7 @@ class RuntimeBaseModule {
|
|
|
4920
5167
|
CarouselModule$1,
|
|
4921
5168
|
LoginModule,
|
|
4922
5169
|
MarqueeModule,
|
|
5170
|
+
CustomModule,
|
|
4923
5171
|
PageModule,
|
|
4924
5172
|
FooterModule,
|
|
4925
5173
|
HeaderModule,
|
|
@@ -5050,6 +5298,7 @@ class RuntimeBaseModule {
|
|
|
5050
5298
|
CarouselModule$1,
|
|
5051
5299
|
LoginModule,
|
|
5052
5300
|
MarqueeModule,
|
|
5301
|
+
CustomModule,
|
|
5053
5302
|
PageModule,
|
|
5054
5303
|
FooterModule,
|
|
5055
5304
|
HeaderModule,
|
|
@@ -5134,6 +5383,7 @@ class RuntimeBaseModule {
|
|
|
5134
5383
|
CarouselModule$1,
|
|
5135
5384
|
LoginModule,
|
|
5136
5385
|
MarqueeModule,
|
|
5386
|
+
CustomModule,
|
|
5137
5387
|
PageModule,
|
|
5138
5388
|
FooterModule,
|
|
5139
5389
|
HeaderModule,
|
|
@@ -5222,5 +5472,5 @@ class SecurityConfigResolve {
|
|
|
5222
5472
|
* Generated bundle index. Do not edit.
|
|
5223
5473
|
*/
|
|
5224
5474
|
|
|
5225
|
-
export { AccessrolesDirective, AppComponent, AppDefaultsService, AppExtensionJSResolve, AppExtensionProvider, AppJSProvider, AppJSResolve, AppManagerService, AppRef, AppSpinnerComponent, AppVariablesProvider, AppVariablesResolve, AuthGuard, BaseLayoutComponent, BasePageComponent, BasePartialComponent, BasePrefabComponent, BaseSpaPageComponent, CACHE_PAGE, CanDeactivateNgPageGuard, CanDeactivatePageGuard, ComponentRefProvider, ComponentType, CustomToasterComponent, DynamicComponentRefProviderService, EmptyPageComponent, FragmentMonitor, HttpCallInterceptor, I18nResolve, I18nServiceImpl, InitializeApp, MAX_CACHE_AGE, MAX_CACHE_SIZE, MetadataResolve, NavigationServiceImpl, PageNotFoundGuard, PipeProvider, PipeService, PrefabConfigProvider, PrefabDirective, PrefabManagerService, PrefabPreviewComponent, REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS, RoleGuard, RuntimeBaseModule, SecurityConfigResolve, SpinnerServiceImpl, ToasterServiceImpl, WM_MODULES_FOR_ROOT, WmDefaultRouteReuseStrategy, WmNgRouteReuseStrategy, WmRouteReuseStrategy, commonPartialWidgets, getPrefabBaseUrl, getPrefabConfigUrl, getPrefabMinJsonUrl, getPrefabPartialJsonUrl, isPrefabInPreview, setAngularLocale };
|
|
5475
|
+
export { AccessrolesDirective, AppComponent, AppDefaultsService, AppExtensionJSResolve, AppExtensionProvider, AppJSProvider, AppJSResolve, AppManagerService, AppRef, AppSpinnerComponent, AppVariablesProvider, AppVariablesResolve, AuthGuard, BaseCustomWidgetComponent, BaseLayoutComponent, BasePageComponent, BasePartialComponent, BasePrefabComponent, BaseSpaPageComponent, CACHE_PAGE, CanDeactivateNgPageGuard, CanDeactivatePageGuard, ComponentRefProvider, ComponentType, CustomToasterComponent, DynamicComponentRefProviderService, EmptyPageComponent, FragmentMonitor, HttpCallInterceptor, I18nResolve, I18nServiceImpl, InitializeApp, MAX_CACHE_AGE, MAX_CACHE_SIZE, MetadataResolve, NavigationServiceImpl, PageNotFoundGuard, PipeProvider, PipeService, PrefabConfigProvider, PrefabDirective, PrefabManagerService, PrefabPreviewComponent, REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS, RoleGuard, RuntimeBaseModule, SecurityConfigResolve, SpinnerServiceImpl, ToasterServiceImpl, WM_MODULES_FOR_ROOT, WmDefaultRouteReuseStrategy, WmNgRouteReuseStrategy, WmRouteReuseStrategy, commonPartialWidgets, getPrefabBaseUrl, getPrefabConfigUrl, getPrefabMinJsonUrl, getPrefabPartialJsonUrl, isPrefabInPreview, setAngularLocale };
|
|
5226
5476
|
//# sourceMappingURL=index.mjs.map
|