@wavemaker/app-ng-runtime 11.4.3-next.30202 → 11.4.3-rc.126
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/bundles/index.umd.js +1 -1
- app-ng-runtime/build-task/bundles/index.umd.js.map +1 -1
- app-ng-runtime/build-task/esm2015/input/default/button/button.build.js +2 -2
- app-ng-runtime/build-task/fesm2015/index.js +1 -1
- app-ng-runtime/build-task/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +21 -3
- app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/base/esm2015/widgets/common/base/base-field-validations.js +22 -4
- app-ng-runtime/components/base/fesm2015/index.js +21 -3
- app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/basic/search/bundles/index.umd.js +1 -1
- app-ng-runtime/components/basic/search/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/basic/search/esm2015/search.component.js +2 -2
- app-ng-runtime/components/basic/search/fesm2015/index.js +1 -1
- app-ng-runtime/components/basic/search/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/basic/search/index.metadata.json +1 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js +6 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/table/esm2015/table.component.js +7 -2
- app-ng-runtime/components/data/table/fesm2015/index.js +6 -1
- app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +1 -1
- app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/dialogs/alert-dialog/esm2015/alert-dialog.component.js +2 -2
- app-ng-runtime/components/dialogs/alert-dialog/fesm2015/index.js +1 -1
- app-ng-runtime/components/dialogs/alert-dialog/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/dialogs/alert-dialog/index.metadata.json +1 -1
- app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +2 -2
- app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/esm2015/dialog.component.js +2 -2
- app-ng-runtime/components/dialogs/design-dialog/esm2015/dialog.props.js +2 -2
- app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.js +2 -2
- app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +3 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/input/default/esm2015/base-form-custom.component.js +4 -2
- app-ng-runtime/components/input/default/fesm2015/index.js +3 -1
- app-ng-runtime/components/input/default/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +8 -2
- app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/input/epoch/esm2015/date/date.component.js +7 -1
- app-ng-runtime/components/input/epoch/esm2015/date/date.props.js +2 -2
- app-ng-runtime/components/input/epoch/esm2015/date-time/date-time.props.js +2 -2
- app-ng-runtime/components/input/epoch/fesm2015/index.js +8 -2
- app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js +1 -1
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/navigation/popover/esm2015/popover.props.js +2 -2
- app-ng-runtime/components/navigation/popover/fesm2015/index.js +1 -1
- app-ng-runtime/components/navigation/popover/fesm2015/index.js.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +3 -1
- app-ng-runtime/core/bundles/index.umd.js.map +1 -1
- app-ng-runtime/core/esm2015/services/state-persistence.service.js +4 -2
- app-ng-runtime/core/fesm2015/index.js +3 -1
- app-ng-runtime/core/fesm2015/index.js.map +1 -1
- app-ng-runtime/http/bundles/index.umd.js +3 -3
- app-ng-runtime/http/bundles/index.umd.js.map +1 -1
- app-ng-runtime/http/esm2015/http.service.js +4 -4
- app-ng-runtime/http/fesm2015/index.js +3 -3
- app-ng-runtime/http/fesm2015/index.js.map +1 -1
- app-ng-runtime/http/http.service.d.ts +2 -2
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +6 -0
- app-ng-runtime/variables/bundles/index.umd.js +1 -0
- app-ng-runtime/variables/bundles/index.umd.js.map +1 -1
- app-ng-runtime/variables/esm2015/service/variables.service.js +2 -1
- app-ng-runtime/variables/fesm2015/index.js +1 -0
- app-ng-runtime/variables/fesm2015/index.js.map +1 -1
|
@@ -9,7 +9,7 @@ const registerProps = () => {
|
|
|
9
9
|
register('wm-dialog', new Map([
|
|
10
10
|
['animation', PROP_STRING],
|
|
11
11
|
['class', PROP_STRING],
|
|
12
|
-
['closable', { value: true, PROP_BOOLEAN
|
|
12
|
+
['closable', Object.assign({ value: true }, PROP_BOOLEAN)],
|
|
13
13
|
['iconclass', { value: 'wi wi-file-text', PROP_STRING }],
|
|
14
14
|
['iconheight', PROP_STRING],
|
|
15
15
|
['iconmargin', PROP_STRING],
|
|
@@ -42,7 +42,7 @@ class DialogComponent extends BaseDialog {
|
|
|
42
42
|
super(inj, WIDGET_INFO, {
|
|
43
43
|
class: `${DIALOG_CLS} ${dialogClass || ''}`,
|
|
44
44
|
backdrop,
|
|
45
|
-
keyboard: !toBoolean(modal)
|
|
45
|
+
keyboard: toBoolean(closable) ? true : !toBoolean(modal)
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
getTemplateRef() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.props.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/design-dialog.module.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-dialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, PROP_BOOLEAN}],\n ['iconclass', {value: 'wi wi-file-text', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['modal', {value: true, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['showheader', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', {value: 'Information', ...PROP_STRING}],\n ['eventsource', PROP_ANY]\n ]\n )\n );\n};\n","import { Attribute, Component, ContentChild, Inject, Injector, OnInit, Self, TemplateRef, ViewChild } from '@angular/core';\n\nimport { toBoolean } from '@wm/core';\nimport { Context, provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog';\n\nconst WIDGET_INFO = {widgetType: 'wm-dialog'};\n\n@Component({\n selector: 'div[wmDialog]',\n templateUrl: './dialog.component.html',\n providers: [\n provideAsWidgetRef(DialogComponent),\n provideAsDialogRef(DialogComponent),\n {provide: Context, useValue: {}, multi: true}\n ]\n})\nexport class DialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n\n @ViewChild('dialogTemplate', { static: true, read: TemplateRef }) dialogTemplate: TemplateRef<any>;\n @ContentChild('dialogBody', /* TODO: add static flag */ { read: TemplateRef }) dialogBody: TemplateRef<any>;\n @ContentChild('dialogFooter', /* TODO: add static flag */ { read: TemplateRef }) dialogFooter: 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 @Self() @Inject(Context) contexts: Array<any>\n ) {\n if (modal === null || modal === undefined) {\n modal = true;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // contexts[0] will refer to the self context provided by this component\n contexts[0].closeDialog = () => this.close();\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 );\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\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 { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { DialogComponent } from './dialog.component';\n\nconst components = [\n DialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components],\n entryComponents: []\n})\nexport class DesignDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {registerProps as ɵa} from './dialog.props';"],"names":[],"mappings":";;;;;;;MAEa,aAAa,GAAG;IACzB,QAAQ,CACJ,WAAW,EACX,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.props.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/design-dialog.module.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-dialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, ...PROP_BOOLEAN}],\n ['iconclass', {value: 'wi wi-file-text', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['modal', {value: true, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['showheader', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', {value: 'Information', ...PROP_STRING}],\n ['eventsource', PROP_ANY]\n ]\n )\n );\n};\n","import { Attribute, Component, ContentChild, Inject, Injector, OnInit, Self, TemplateRef, ViewChild } from '@angular/core';\n\nimport { toBoolean } from '@wm/core';\nimport { Context, provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog';\n\nconst WIDGET_INFO = {widgetType: 'wm-dialog'};\n\n@Component({\n selector: 'div[wmDialog]',\n templateUrl: './dialog.component.html',\n providers: [\n provideAsWidgetRef(DialogComponent),\n provideAsDialogRef(DialogComponent),\n {provide: Context, useValue: {}, multi: true}\n ]\n})\nexport class DialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n\n @ViewChild('dialogTemplate', { static: true, read: TemplateRef }) dialogTemplate: TemplateRef<any>;\n @ContentChild('dialogBody', /* TODO: add static flag */ { read: TemplateRef }) dialogBody: TemplateRef<any>;\n @ContentChild('dialogFooter', /* TODO: add static flag */ { read: TemplateRef }) dialogFooter: 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 @Self() @Inject(Context) contexts: Array<any>\n ) {\n if (modal === null || modal === undefined) {\n modal = true;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // contexts[0] will refer to the self context provided by this component\n contexts[0].closeDialog = () => this.close();\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(closable) ? true : !toBoolean(modal)\n\n }\n );\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\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 { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { DialogComponent } from './dialog.component';\n\nconst components = [\n DialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components],\n entryComponents: []\n})\nexport class DesignDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {registerProps as ɵa} from './dialog.props';"],"names":[],"mappings":";;;;;;;MAEa,aAAa,GAAG;IACzB,QAAQ,CACJ,WAAW,EACX,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,UAAU,kBAAG,KAAK,EAAE,IAAI,IAAK,YAAY,EAAE;QAC5C,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAC,CAAC;QACtD,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B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AQ,EAAE,CAAC;QACjB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KAClC;;AA9CM,+BAAe,GAAG,aAAa,EAAE,CAAC;;YAV5C,SAAS,SAAC;gBACP,QAAQ,EAAE,eAAe;gBACzB,4jBAAsC;gBACtC,SAAS,EAAE;oBACP,kBAAkB,CAAC,eAAe,CAAC;oBACnC,kBAAkB,CAAC,eAAe,CAAC;oBACnC,EAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,IAAI,EAAE,KAAK,EAAE,IAAI,EAAC;iBAChD;aACJ;;;YApBoD,QAAQ;yCA8BpD,SAAS,SAAC,OAAO;4CACjB,SAAS,SAAC,OAAO;4CACjB,SAAS,SAAC,UAAU;YACc,KAAK,uBAAvC,IAAI,YAAI,MAAM,SAAC,OAAO;;;6BAT1B,SAAS,SAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE;yBAC/D,YAAY,SAAC,YAAY,8BAA8B,EAAE,IAAI,EAAE,WAAW,EAAE;2BAC5E,YAAY,SAAC,cAAc,8BAA8B,EAAE,IAAI,EAAE,WAAW,EAAE;;;ACjBnF,MAAM,UAAU,GAAG;IACf,eAAe;CAClB,CAAC;MAaW,kBAAkB;;;YAX9B,QAAQ,SAAC;gBACN,OAAO,EAAE;oBACL,YAAY;oBACZ,YAAY;oBACZ,WAAW;oBACX,kBAAkB;iBACrB;gBACD,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;gBAC7B,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;gBACxB,eAAe,EAAE,EAAE;aACtB;;;ACvBD;;;;;;"}
|
|
@@ -572,7 +572,9 @@
|
|
|
572
572
|
BaseFormCustomComponent.prototype.invokeOnChange = function (value, $event, valid) {
|
|
573
573
|
// let the angular know about the change
|
|
574
574
|
this._onChange(value);
|
|
575
|
-
|
|
575
|
+
if (valid) {
|
|
576
|
+
_super.prototype.invokeOnChange.call(this, value, $event);
|
|
577
|
+
}
|
|
576
578
|
};
|
|
577
579
|
BaseFormCustomComponent.prototype.invokeOnTouched = function ($event) {
|
|
578
580
|
this._onTouched();
|