@wavemaker/app-ng-runtime 11.4.0-next.28152 → 11.4.0-rc.121
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/basic/tree/tree.build.d.ts +1 -2
- app-ng-runtime/build-task/bundles/index.umd.js +8 -10
- app-ng-runtime/build-task/bundles/index.umd.js.map +1 -1
- app-ng-runtime/build-task/esm2015/basic/tree/tree.build.js +3 -4
- app-ng-runtime/build-task/esm2015/data/form/form-field/form-field.build.js +2 -2
- app-ng-runtime/build-task/esm2015/navigation/popover/popover.build.js +3 -3
- app-ng-runtime/build-task/fesm2015/index.js +8 -10
- app-ng-runtime/build-task/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +44 -8
- app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/base/esm2015/directives/show-in-device.directive.js +16 -5
- app-ng-runtime/components/base/esm2015/public_api.js +2 -2
- app-ng-runtime/components/base/esm2015/utils/widget-utils.js +22 -4
- app-ng-runtime/components/base/esm2015/widgets/common/base/base-field-validations.js +3 -2
- app-ng-runtime/components/base/esm2015/widgets/common/dialog/dialog.service.js +7 -1
- app-ng-runtime/components/base/fesm2015/index.js +45 -10
- app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/base/index.metadata.json +1 -1
- app-ng-runtime/components/base/public_api.d.ts +1 -1
- app-ng-runtime/components/base/utils/widget-utils.d.ts +8 -1
- app-ng-runtime/components/basic/tree/bundles/index.umd.js +369 -245
- app-ng-runtime/components/basic/tree/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/basic/tree/esm2015/public_api.js +2 -2
- app-ng-runtime/components/basic/tree/esm2015/tree.component.js +403 -0
- app-ng-runtime/components/basic/tree/esm2015/tree.module.js +3 -3
- app-ng-runtime/components/basic/tree/fesm2015/index.js +333 -240
- app-ng-runtime/components/basic/tree/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/basic/tree/index.metadata.json +1 -1
- app-ng-runtime/components/basic/tree/public_api.d.ts +1 -1
- app-ng-runtime/components/basic/tree/tree.component.d.ts +43 -0
- app-ng-runtime/components/chart/bundles/index.umd.js +1 -1
- app-ng-runtime/components/chart/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/chart/esm2015/chart.component.js +2 -2
- app-ng-runtime/components/chart/fesm2015/index.js +1 -1
- app-ng-runtime/components/chart/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +39 -23
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/containers/tabs/esm2015/tab-pane/tab-pane.component.js +8 -1
- app-ng-runtime/components/containers/tabs/esm2015/tabs.animator.js +33 -13
- app-ng-runtime/components/containers/tabs/fesm2015/index.js +40 -13
- app-ng-runtime/components/containers/tabs/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/containers/tabs/tabs.animator.d.ts +5 -1
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js +43 -2
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/containers/wizard/esm2015/wizard-step/wizard-step.props.js +3 -2
- app-ng-runtime/components/containers/wizard/esm2015/wizard.component.js +42 -2
- app-ng-runtime/components/containers/wizard/fesm2015/index.js +43 -2
- app-ng-runtime/components/containers/wizard/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/containers/wizard/index.metadata.json +1 -1
- app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -0
- app-ng-runtime/components/data/form/bundles/index.umd.js +37 -13
- app-ng-runtime/components/data/form/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/form/esm2015/form-field/form-field.directive.js +26 -7
- app-ng-runtime/components/data/form/esm2015/form.component.js +10 -5
- app-ng-runtime/components/data/form/fesm2015/index.js +34 -10
- app-ng-runtime/components/data/form/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/form/index.metadata.json +1 -1
- app-ng-runtime/components/data/list/bundles/index.umd.js +52 -43
- app-ng-runtime/components/data/list/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/list/esm2015/list.component.js +52 -43
- app-ng-runtime/components/data/list/fesm2015/index.js +51 -42
- app-ng-runtime/components/data/list/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/list/index.metadata.json +1 -1
- app-ng-runtime/components/data/list/list.component.d.ts +1 -1
- app-ng-runtime/components/data/pagination/bundles/index.umd.js +22 -5
- app-ng-runtime/components/data/pagination/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/pagination/esm2015/pagination.component.js +23 -6
- app-ng-runtime/components/data/pagination/fesm2015/index.js +22 -5
- app-ng-runtime/components/data/pagination/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/pagination/index.metadata.json +1 -1
- app-ng-runtime/components/data/pagination/pagination.component.d.ts +1 -0
- app-ng-runtime/components/data/table/bundles/index.umd.js +64 -12
- app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/table/esm2015/table.component.js +63 -13
- app-ng-runtime/components/data/table/esm2015/table.props.js +3 -1
- app-ng-runtime/components/data/table/fesm2015/index.js +64 -12
- app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/table/index.metadata.json +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +9 -0
- app-ng-runtime/components/dialogs/default/base-dialog.d.ts +1 -0
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +17 -3
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/dialogs/default/esm2015/base-dialog.js +18 -5
- app-ng-runtime/components/dialogs/default/fesm2015/index.js +17 -4
- app-ng-runtime/components/dialogs/default/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/dialogs/default/index.metadata.json +1 -1
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +1 -0
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +78 -35
- app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/input/epoch/date-time/date-time-picker.component.d.ts +1 -0
- app-ng-runtime/components/input/epoch/esm2015/base-date-time.component.js +55 -31
- app-ng-runtime/components/input/epoch/esm2015/date/date.component.js +3 -3
- app-ng-runtime/components/input/epoch/esm2015/date-time/date-time-picker.component.js +31 -11
- app-ng-runtime/components/input/epoch/esm2015/date-time/date-time.component.js +2 -2
- app-ng-runtime/components/input/epoch/fesm2015/index.js +87 -43
- app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/input/epoch/index.metadata.json +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +25 -19
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/navigation/menu/esm2015/menu-dropdown-item/menu-dropdown-item.component.js +15 -5
- app-ng-runtime/components/navigation/menu/esm2015/menu.component.js +14 -19
- app-ng-runtime/components/navigation/menu/fesm2015/index.js +25 -20
- app-ng-runtime/components/navigation/menu/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/navigation/menu/index.metadata.json +1 -1
- app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +7 -4
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +3 -7
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js +3 -1
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/navigation/popover/esm2015/popover.component.js +5 -3
- app-ng-runtime/components/navigation/popover/fesm2015/index.js +4 -2
- app-ng-runtime/components/navigation/popover/fesm2015/index.js.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +19 -3
- app-ng-runtime/core/bundles/index.umd.js.map +1 -1
- app-ng-runtime/core/esm2015/services/pagination.service.js +8 -2
- app-ng-runtime/core/esm2015/services/viewport.service.js +6 -4
- app-ng-runtime/core/esm2015/utils/utils.js +11 -3
- app-ng-runtime/core/fesm2015/index.js +22 -6
- app-ng-runtime/core/fesm2015/index.js.map +1 -1
- app-ng-runtime/core/index.metadata.json +1 -1
- app-ng-runtime/core/utils/utils.d.ts +2 -2
- app-ng-runtime/mobile/components/page/default/bundles/index.umd.js +24 -6
- app-ng-runtime/mobile/components/page/default/bundles/index.umd.js.map +1 -1
- app-ng-runtime/mobile/components/page/default/esm2015/page.directive.js +20 -3
- app-ng-runtime/mobile/components/page/default/fesm2015/index.js +19 -2
- app-ng-runtime/mobile/components/page/default/fesm2015/index.js.map +1 -1
- app-ng-runtime/mobile/components/page/default/index.metadata.json +1 -1
- app-ng-runtime/mobile/components/page/default/page.directive.d.ts +4 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +164 -133
- app-ng-runtime/runtime/base/bundles/index.umd.js.map +1 -1
- app-ng-runtime/runtime/base/esm2015/components/app-component/app.component.js +2 -2
- app-ng-runtime/runtime/base/esm2015/public_api.js +2 -1
- app-ng-runtime/runtime/base/esm2015/runtime-base.module.js +3 -1
- app-ng-runtime/runtime/base/esm2015/services/app.service.js +3 -1
- app-ng-runtime/runtime/base/esm2015/services/pipe.service.js +33 -0
- app-ng-runtime/runtime/base/fesm2015/index.js +149 -120
- app-ng-runtime/runtime/base/fesm2015/index.js.map +1 -1
- app-ng-runtime/runtime/base/index.metadata.json +1 -1
- app-ng-runtime/runtime/base/public_api.d.ts +1 -0
- app-ng-runtime/runtime/base/services/pipe.service.d.ts +9 -0
- app-ng-runtime/scripts/datatable/datatable.js +86 -36
- app-ng-runtime/scripts/tree-keyboard-navigation/keyboard-navigation.js +251 -0
- app-ng-runtime/variables/bundles/index.umd.js +37 -22
- app-ng-runtime/variables/bundles/index.umd.js.map +1 -1
- app-ng-runtime/variables/esm2015/manager/action/notification-action.manager.js +29 -24
- app-ng-runtime/variables/esm2015/service/variables.service.js +8 -1
- app-ng-runtime/variables/fesm2015/index.js +35 -24
- app-ng-runtime/variables/fesm2015/index.js.map +1 -1
- app-ng-runtime/variables/index.metadata.json +1 -1
- app-ng-runtime/variables/manager/action/notification-action.manager.d.ts +1 -0
- app-ng-runtime/variables/service/variables.service.d.ts +4 -0
- app-ng-runtime/components/basic/tree/esm2015/tree.directive.js +0 -310
- app-ng-runtime/components/basic/tree/tree.directive.d.ts +0 -35
|
@@ -988,9 +988,10 @@ class ListComponent extends StylableComponent {
|
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
990
|
// Triggers after the sorting.
|
|
991
|
-
onUpdate(evt, ui) {
|
|
991
|
+
onUpdate(evt, ui, presentIndex) {
|
|
992
992
|
const data = this.fieldDefs;
|
|
993
|
-
|
|
993
|
+
// If ui is not present then it is called from drag and drop using keyboard
|
|
994
|
+
const newIndex = ui === undefined ? presentIndex : ui.item.index();
|
|
994
995
|
const oldIndex = this.$ulEle.data('oldIndex');
|
|
995
996
|
const minIndex = _.min([newIndex, oldIndex]);
|
|
996
997
|
const maxIndex = _.max([newIndex, oldIndex]);
|
|
@@ -1095,7 +1096,7 @@ class ListComponent extends StylableComponent {
|
|
|
1095
1096
|
}
|
|
1096
1097
|
handleKeyDown($event, action) {
|
|
1097
1098
|
$event.stopPropagation();
|
|
1098
|
-
if ($event.keyCode !== 13 && $event.keyCode !== 9 && !($event.target.classList.contains('form-control') && $event.keyCode === 32)) {
|
|
1099
|
+
if ($event.keyCode !== 13 && $event.keyCode !== 9 && !(($event.target.classList.contains('form-control') || $event.target.classList.contains('note-editable')) && $event.keyCode === 32)) {
|
|
1099
1100
|
$event.preventDefault();
|
|
1100
1101
|
}
|
|
1101
1102
|
const listItems = this.listItems;
|
|
@@ -1136,27 +1137,20 @@ class ListComponent extends StylableComponent {
|
|
|
1136
1137
|
}
|
|
1137
1138
|
if (action === 'focusPrev') {
|
|
1138
1139
|
if (this.isListElementMovable) {
|
|
1139
|
-
let prev;
|
|
1140
1140
|
presentIndex = presentIndex <= 0 ? 0 : (presentIndex);
|
|
1141
|
-
this.lastSelectedItem = this.getListItemByIndex(presentIndex);
|
|
1142
1141
|
if (presentIndex === 0) {
|
|
1143
|
-
prev = this.listItems.last;
|
|
1144
1142
|
return;
|
|
1145
1143
|
}
|
|
1146
|
-
this.
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
this.ariaText = "selected ";
|
|
1157
|
-
}
|
|
1158
|
-
prev = $liItem;
|
|
1159
|
-
});
|
|
1144
|
+
this.lastSelectedItem = this.getListItemByIndex(presentIndex);
|
|
1145
|
+
const prevElt = this.getListItemByIndex(presentIndex - 1);
|
|
1146
|
+
prevElt.nativeElement.before(this.lastSelectedItem.nativeElement);
|
|
1147
|
+
this.lastSelectedItem.nativeElement.focus();
|
|
1148
|
+
this.statePersistence.removeWidgetState(this, 'selectedItem');
|
|
1149
|
+
const arr = this.listItems.toArray();
|
|
1150
|
+
[arr[presentIndex - 1], arr[presentIndex]] = [arr[presentIndex], arr[presentIndex - 1]];
|
|
1151
|
+
this.listItems.reset(arr);
|
|
1152
|
+
this.currentIndex = presentIndex;
|
|
1153
|
+
this.ariaText = "selected ";
|
|
1160
1154
|
}
|
|
1161
1155
|
else {
|
|
1162
1156
|
presentIndex = presentIndex <= 0 ? 0 : (presentIndex - 1);
|
|
@@ -1168,27 +1162,20 @@ class ListComponent extends StylableComponent {
|
|
|
1168
1162
|
}
|
|
1169
1163
|
else if (action === 'focusNext') {
|
|
1170
1164
|
if (this.isListElementMovable) {
|
|
1171
|
-
let prev;
|
|
1172
1165
|
presentIndex = presentIndex < (listItems.length - 1) ? (presentIndex) : (listItems.length - 1);
|
|
1173
|
-
this.lastSelectedItem = this.getListItemByIndex(presentIndex);
|
|
1174
1166
|
if (presentIndex === this.listItems.length - 1) {
|
|
1175
|
-
prev = this.listItems.first;
|
|
1176
1167
|
return;
|
|
1177
1168
|
}
|
|
1178
|
-
this.
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
this.ariaText = "selected ";
|
|
1189
|
-
}
|
|
1190
|
-
prev = $liItem;
|
|
1191
|
-
});
|
|
1169
|
+
this.lastSelectedItem = this.getListItemByIndex(presentIndex);
|
|
1170
|
+
const nextElt = this.getListItemByIndex(presentIndex + 1);
|
|
1171
|
+
nextElt.nativeElement.after(this.lastSelectedItem.nativeElement);
|
|
1172
|
+
this.lastSelectedItem.nativeElement.focus();
|
|
1173
|
+
this.statePersistence.removeWidgetState(this, 'selectedItem');
|
|
1174
|
+
const arr = this.listItems.toArray();
|
|
1175
|
+
[arr[presentIndex], arr[presentIndex + 1]] = [arr[presentIndex + 1], arr[presentIndex]];
|
|
1176
|
+
this.listItems.reset(arr);
|
|
1177
|
+
this.currentIndex = presentIndex + 2;
|
|
1178
|
+
this.ariaText = "selected ";
|
|
1192
1179
|
}
|
|
1193
1180
|
else {
|
|
1194
1181
|
presentIndex = presentIndex < (listItems.length - 1) ? (presentIndex + 1) : (listItems.length - 1);
|
|
@@ -1214,12 +1201,13 @@ class ListComponent extends StylableComponent {
|
|
|
1214
1201
|
this.isListElementMovable = !this.isListElementMovable;
|
|
1215
1202
|
this.onItemClick($event, this.getListItemByIndex(presentIndex));
|
|
1216
1203
|
this.currentIndex = presentIndex + 1;
|
|
1217
|
-
let name = this.getListItemByIndex(presentIndex).item.name;
|
|
1218
1204
|
if (this.isListElementMovable) {
|
|
1219
|
-
this.ariaText =
|
|
1205
|
+
this.ariaText = `Item ${this.currentIndex} grabbed, current position `;
|
|
1206
|
+
this.$ulEle.data('oldIndex', presentIndex);
|
|
1220
1207
|
}
|
|
1221
1208
|
else {
|
|
1222
|
-
this.ariaText =
|
|
1209
|
+
this.ariaText = `Item ${this.currentIndex} dropped, final position `;
|
|
1210
|
+
this.onUpdate($event, undefined, presentIndex);
|
|
1223
1211
|
}
|
|
1224
1212
|
}
|
|
1225
1213
|
}
|
|
@@ -1271,11 +1259,13 @@ class ListComponent extends StylableComponent {
|
|
|
1271
1259
|
this.dataNavigator.maxResults = nv;
|
|
1272
1260
|
}
|
|
1273
1261
|
else if (key === 'enablereorder') {
|
|
1274
|
-
if (nv) {
|
|
1262
|
+
if (nv && this.$ulEle) {
|
|
1263
|
+
this.$ulEle.attr('aria-describedby', this.titleId);
|
|
1275
1264
|
this.configureDnD();
|
|
1276
1265
|
this.$ulEle.sortable('enable');
|
|
1277
1266
|
}
|
|
1278
1267
|
else if (this.$ulEle && !nv) {
|
|
1268
|
+
this.$ulEle.removeAttr('aria-describedby');
|
|
1279
1269
|
this.$ulEle.sortable('disable');
|
|
1280
1270
|
}
|
|
1281
1271
|
}
|
|
@@ -1439,9 +1429,18 @@ class ListComponent extends StylableComponent {
|
|
|
1439
1429
|
super.ngAfterViewInit();
|
|
1440
1430
|
this.setUpCUDHandlers();
|
|
1441
1431
|
this.selectedItemWidgets = this.multiselect ? [] : {};
|
|
1432
|
+
var ele = $(this.nativeElement).find('.app-livelist-container');
|
|
1442
1433
|
if (this.enablereorder && !this.groupby) {
|
|
1434
|
+
if (ele) {
|
|
1435
|
+
ele.attr('aria-describedby', this.titleId);
|
|
1436
|
+
}
|
|
1443
1437
|
this.configureDnD();
|
|
1444
1438
|
}
|
|
1439
|
+
if (!this.enablereorder) {
|
|
1440
|
+
if (ele) {
|
|
1441
|
+
ele.removeAttr('aria-describedby');
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1445
1444
|
if (this.groupby && this.collapsible) {
|
|
1446
1445
|
this.handleHeaderClick = handleHeaderClick;
|
|
1447
1446
|
this.toggleAllHeaders = toggleAllHeaders.bind(undefined, this);
|
|
@@ -1451,6 +1450,16 @@ class ListComponent extends StylableComponent {
|
|
|
1451
1450
|
this.setupHandlers();
|
|
1452
1451
|
const $ul = this.nativeElement.querySelector('ul.app-livelist-container');
|
|
1453
1452
|
styler($ul, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);
|
|
1453
|
+
if (this.enablereorder) {
|
|
1454
|
+
if ($ul) {
|
|
1455
|
+
$ul.setAttribute('aria-describedby', this.titleId);
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
if (!this.enablereorder) {
|
|
1459
|
+
if ($ul) {
|
|
1460
|
+
$ul.removeAttribute('aria-describedby');
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1454
1463
|
if (isMobileApp() && $ul.querySelector('.app-list-item-action-panel')) {
|
|
1455
1464
|
this._listAnimator = new ListAnimator(this);
|
|
1456
1465
|
}
|
|
@@ -1471,7 +1480,7 @@ ListComponent.initializeProps = registerProps();
|
|
|
1471
1480
|
ListComponent.decorators = [
|
|
1472
1481
|
{ type: Component, args: [{
|
|
1473
1482
|
selector: 'div[wmList]',
|
|
1474
|
-
template: "<div class=\"panel-heading\" *ngIf=\"title || subheading || iconclass\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <i class=\"app-icon panel-icon {{iconclass}}\" aria-hidden=\"true\" [hidden]=\"!iconclass\"></i>\n </div>\n <div class=\"pull-left\">\n <div class=\"heading\" [innerHTML]=\"title\"></div>\n <div class=\"description\" [innerHTML]=\"subheading\"></div>\n </div>\n </h3>\n</div>\n\n<
|
|
1483
|
+
template: "<div class=\"panel-heading\" *ngIf=\"title || subheading || iconclass\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <i class=\"app-icon panel-icon {{iconclass}}\" aria-hidden=\"true\" [hidden]=\"!iconclass\"></i>\n </div>\n <div class=\"pull-left\">\n <div class=\"heading\" [innerHTML]=\"title\"></div>\n <div class=\"description\" [innerHTML]=\"subheading\"></div>\n </div>\n </h3>\n</div>\n\n<div class=\"app-datanavigator\" [attr.aria-disabled]=\"dataNavigator.isDisablePrevious\" aria-label=\"Page navigation\" *ngIf=\"navigation === 'Inline' && !noDataFound\">\n <ul class=\"pager\">\n <li class=\"previous\" [ngClass]=\"{'disabled': (dataNavigator ? dataNavigator.isDisablePrevious : true)}\">\n <a href=\"javascript:void(0);\" (click)=\"dataNavigator.navigatePage('prev', $event)\"\n [attr.aria-disabled]=\"dataNavigator.isDisablePrevious\">\n <i class=\"wi wi-chevron-left\" aria-hidden=\"true\"></i>\n <span class=\"sr-only\">Go to Previous page {{dataNavigator.isDisablePrevious ? ', Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n</div>\n<div *ngIf=\"navigation === 'Inline' && !noDataFound\" aria-live=\"polite\" aria-atomic=\"true\" class=\"sr-only\"> {{'Page ' + dataNavigator.dn.currentPage + ' of ' + dataNavigator.pageCount }}</div>\n\n<div>\n <div id={{titleId}} class=\"sr-only\" *ngIf=\"enablereorder\">\n Press space bar to toggle drag drop mode, use arrow keys to move selected elements.\n </div>\n\n <div aria-live=\"assertive\" *ngIf=\"listItems && enablereorder && currentIndex\" class=\"sr-only\" >\n {{ariaText + currentIndex + ' of ' + listItems.length}}\n </div>\n</div>\n\n<ul [attr.tabindex]=\"tabindex\" class=\"app-livelist-container clearfix {{direction === 'horizontal' ? 'app-horizontal-list': ''}} {{listclass}}\" role=\"list\"\n (keydown.enter)=\"handleKeyDown($event, 'select')\"\n\n (keydown.space)=\"handleKeyDown($event, 'space')\"\n\n (keydown.arrowup)=\"handleKeyDown($event, 'focusPrev')\"\n (keydown.arrowdown)=\"handleKeyDown($event, 'focusNext')\"\n (keydown.arrowleft)=\"handleKeyDown($event, 'focusPrev')\"\n (keydown.arrowright)=\"handleKeyDown($event, 'focusNext')\"\n\n (keydown.shift.arrowup)=\"handleKeyDown($event, 'selectPrev')\"\n (keydown.shift.arrowdown)=\"handleKeyDown($event, 'selectNext')\"\n (keydown.shift.arrowleft)=\"handleKeyDown($event, 'selectPrev')\"\n (keydown.shift.arrowright)=\"handleKeyDown($event, 'selectNext')\"\n [hidden]=\"noDataFound && !variableInflight\"\n>\n <ng-template [ngIf]=\"!groupby\" [ngIfElse]=\"groupedListTemplate\">\n <li *ngFor=\"let item of fieldDefs; index as $index; first as $first; last as $last;\" class=\"app-list-item {{direction === 'horizontal' ? '' : itemsPerRowClass}}\" [ngClass]=\"listItemRef.itemClass\"\n [wmListItem]=\"item\"\n #listItemRef=\"listItemRef\"\n [attr.tabindex]=\"tabindex\"\n role=\"listitem\">\n <ng-container [ngTemplateOutlet]=\"listTemplate\" [ngTemplateOutletContext]=\"{item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}\"></ng-container>\n </li>\n </ng-template>\n <ng-container [ngTemplateOutlet]=\"listLeftActionTemplate\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"listRightActionTemplate\"></ng-container>\n</ul>\n\n<div class=\"no-data-msg\" *ngIf=\"noDataFound && !variableInflight\" [textContent]=\"nodatamessage\"></div>\n\n<div class=\"loading-data-msg\" *ngIf=\"variableInflight && !pulltorefresh\">\n <span>\n <i class=\"app-icon panel-icon fa-spin\" aria-hidden=\"true\" [ngClass]=\"loadingicon\"></i>\n <span class=\"sr-only\">Loading</span>\n <span class=\"loading-text\" [textContent]=\"loadingdatamsg\"></span>\n </span>\n</div>\n\n<div class=\"app-datanavigator\" [attr.aria-disabled]=\"dataNavigator.isDisableNext\" *ngIf=\"navigation === 'Inline' && !noDataFound\">\n <ul class=\"pager\">\n <li class=\"next\" [ngClass]=\"{'disabled': (dataNavigator ? dataNavigator.isDisableNext : true)}\">\n <a href=\"javascript:void(0);\" (click)=\"dataNavigator.navigatePage('next', $event)\"\n [attr.aria-disabled]=\"dataNavigator.isDisableNext\">\n <i class=\"wi wi-chevron-right\" aria-hidden=\"true\"></i>\n <span class=\"sr-only\">Go to Next page {{dataNavigator.isDisableNext ? ', Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n</div>\n\n<div class=\"panel-footer\" *ngIf=\"navigation !== 'None'\" [hidden]=\"!showNavigation || (onDemandLoad && dataNavigator.isDisableNext) || (dataNavigator.dataSize <= pagesize) || (!dataNavigator.dataSize && !dataNavigator.datasource?.pagination?.next)\">\n <nav wmPagination\n navigationalign.bind=\"navigationalign\"\n navigation.bind=\"navControls\"\n showrecordcount.bind=\"showrecordcount\"\n maxsize.bind=\"maxsize\"\n boundarylinks.bind=\"boundarylinks\"\n forceellipses.bind=\"forceellipses\"\n directionlinks.bind=\"directionlinks\"\n show.bind=\"!onDemandLoad\"\n paginationchange.event=\"beforePaginationChange($event, $index)\"\n ></nav>\n <a *ngIf=\"onDemandLoad\" href=\"javascript:void(0);\"\n (click)=\"dataNavigator.navigatePage('next', $event)\"\n class=\"app-button btn btn-block\"\n [ngClass]=\"paginationclass\"\n [textContent]=\"ondemandmessage\"\n ></a>\n</div>\n\n<!--This template will be displayed when groupby is specified-->\n<ng-template #groupedListTemplate>\n <li *ngFor=\"let groupObj of groupedData\" class=\"app-list-item-group clearfix\">\n <ul [attr.tabindex]=\"tabindex\" class=\"list-group item-group\" [ngClass]=\"listclass\">\n <li class=\"app-list-item-header list-item list-group-header\" (click)=\"handleHeaderClick($event)\" [ngClass]=\"{'collapsible-content': collapsible}\">\n <h4>{{groupObj.key}}\n <div class=\"header-action\">\n <i class=\"app-icon wi action wi-chevron-up\" *ngIf=\"collapsible\"></i>\n <span *ngIf=\"showcount\" class=\"label label-default\">{{groupObj.data.length}}</span>\n </div>\n </h4>\n </li>\n <ul class=\"list-group clearfix {{direction === 'horizontal' ? 'app-horizontal-list': ''}}\">\n <li *ngFor=\"let item of groupObj.data; index as $index; first as $first; last as $last;\" [attr.tabindex]=\"tabindex\"\n class=\"app-list-item group-list-item {{itemsPerRowClass}}\"\n [ngClass]=\"listItemRef.itemClass\"\n [wmListItem]=\"item\" #listItemRef=\"listItemRef\">\n <ng-container [ngTemplateOutlet]=\"listTemplate\" [ngTemplateOutletContext]=\"{item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}\"></ng-container>\n </li>\n </ul>\n </ul>\n </li>\n</ng-template>\n",
|
|
1475
1484
|
providers: [
|
|
1476
1485
|
provideAsWidgetRef(ListComponent)
|
|
1477
1486
|
]
|