mobicloud-core 1.0.273 → 1.0.274
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/mobicloud-core-components.umd.js +20 -3
- package/bundles/mobicloud-core-components.umd.js.map +1 -1
- package/components/service-object/service-object-inventory/service-object-inventory.component.d.ts +2 -0
- package/esm2015/components/service-object/service-object-inventory/service-object-inventory.component.js +21 -4
- package/fesm2015/mobicloud-core-components.js +20 -3
- package/fesm2015/mobicloud-core-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -8257,10 +8257,11 @@
|
|
|
8257
8257
|
this.initializeDataSource();
|
|
8258
8258
|
this.createInventLocationDataSource();
|
|
8259
8259
|
this.createWMSLocationDataSource();
|
|
8260
|
+
this.createAssetDataSource();
|
|
8260
8261
|
};
|
|
8261
8262
|
ServiceObjectInventoryComponent.prototype.initializeDataSource = function () {
|
|
8262
8263
|
return __awaiter(this, void 0, void 0, function () {
|
|
8263
|
-
return __generator(this, function (
|
|
8264
|
+
return __generator(this, function (_d) {
|
|
8264
8265
|
this.serviceObject_store = new ODataStore__default["default"]({
|
|
8265
8266
|
url: this.cloudDataService.getMobiManagementODataUrl("ServiceObject"),
|
|
8266
8267
|
withCredentials: true,
|
|
@@ -8318,13 +8319,14 @@
|
|
|
8318
8319
|
};
|
|
8319
8320
|
ServiceObjectInventoryComponent.prototype.saveServiceObject = function () {
|
|
8320
8321
|
var _this = this;
|
|
8321
|
-
var _a, _b;
|
|
8322
|
+
var _a, _b, _c;
|
|
8322
8323
|
if (this.serviceObject_store && this.serviceObject) {
|
|
8323
8324
|
this.isLoadingData = true;
|
|
8324
8325
|
this.loadingText = $localize(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject([":@@Updating-Text-ServiceObject:Updating service object..."], [":@@Updating-Text-ServiceObject:Updating service object..."])));
|
|
8325
8326
|
var data = {
|
|
8326
8327
|
InventLocationId: (_a = this.formserviceObject) === null || _a === void 0 ? void 0 : _a.InventLocationId,
|
|
8327
8328
|
WMSLocationId: (_b = this.formserviceObject) === null || _b === void 0 ? void 0 : _b.WMSLocationId,
|
|
8329
|
+
AssetId: (_c = this.formserviceObject) === null || _c === void 0 ? void 0 : _c.AssetId
|
|
8328
8330
|
};
|
|
8329
8331
|
this.serviceObject_store.update(this.serviceObject.Id, data)
|
|
8330
8332
|
.then(function (dataObj) {
|
|
@@ -8380,10 +8382,25 @@
|
|
|
8380
8382
|
}
|
|
8381
8383
|
});
|
|
8382
8384
|
};
|
|
8385
|
+
ServiceObjectInventoryComponent.prototype.createAssetDataSource = function () {
|
|
8386
|
+
this.asset_ds = new DataSource__default["default"]({
|
|
8387
|
+
store: new ODataStore__default["default"]({
|
|
8388
|
+
url: this.cloudDataService.getMobiManagementODataUrl("Asset"),
|
|
8389
|
+
withCredentials: true,
|
|
8390
|
+
key: "Id",
|
|
8391
|
+
keyType: "Guid",
|
|
8392
|
+
version: 4,
|
|
8393
|
+
}),
|
|
8394
|
+
requireTotalCount: true,
|
|
8395
|
+
map: function (dataItem) {
|
|
8396
|
+
return Object.assign(new i2.Asset(), dataItem);
|
|
8397
|
+
}
|
|
8398
|
+
});
|
|
8399
|
+
};
|
|
8383
8400
|
return ServiceObjectInventoryComponent;
|
|
8384
8401
|
}());
|
|
8385
8402
|
ServiceObjectInventoryComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServiceObjectInventoryComponent, deps: [{ token: i1__namespace$1.MobicloudCoreService }, { token: i2__namespace$1.MobiCloudDataService }, { token: i3__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8386
|
-
ServiceObjectInventoryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ServiceObjectInventoryComponent, selector: "mobicloud-service-object-inventory", inputs: { serviceObject: "serviceObject", serviceObject_expands: "serviceObject_expands", editAllowed: "editAllowed", inEditMode: "inEditMode", width: "width", contentheight: "contentheight", isLoadingData: "isLoadingData", loadingText: "loadingText", hasErrors: "hasErrors", errorText: "errorText" }, outputs: { serviceObjectChanged: "serviceObjectChanged" }, viewQueries: [{ propertyName: "form", first: true, predicate: ["form"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<mobicloud-group-box title=\"Inventory\" i18n-title=\"@@CaptionHeader-Inventory\" [width]=\"[width]\" [contentheight]=[contentheight] class=\"serviceObjectInventoryForm\" [isLoadingData]=\"isLoadingData\" [loadingText]=\"loadingText\" \n [editAllowed]=\"editAllowed\" [inEditMode]=\"inEditMode\" [hasErrors]=\"hasErrors\" errorCaption=\"Error\" i18n-errorCaption=\"@@CaptionHeader-Error\" [errorText]=\"errorText\" [enableRetryOnError]=\"true\"\n (Edit_Click)=\"onEditClick()\" (Save_Click)=\"onSaveClick()\" (CancelEdit_Click)=\"onCancelEditClick()\" (Retry_Click)=\"onRetryClick()\">\n\n <dx-form #form id=\"form\"\n [formData]=\"formserviceObject\"\n [readOnly]=\"!inEditMode\"\n [showColonAfterLabel]=\"true\"\n labelLocation=\"top\"\n [showValidationSummary]=\"false\" \n [showRequiredMark] = \"false\"\n validationGroup=\"formServiceObjectData_Inventory\">\n\n <dxi-item itemType=\"group\" caption=\"\" [colCount]=\"1\">\n\n <dxi-item dataField=\"InventLocationId\" [colSpan]=\"2\" #responsible editorType=\"dxLookup\" [editorOptions]=\"{ itemTemplate:'inventLocation_itemTemplate', fieldTemplate: 'inventLocation_fieldTemplate', dataSource: inventLocation_ds, valueExpr: 'Id', displayExpr: 'Name', searchEnabled: true, searchExpr: ['InventLocationId','Name'], showClearButton: true }\">\n <dxo-label text=\"Invent location\" i18n-text=\"@@FieldCaption-InventLocation\"></dxo-label> \n </dxi-item> \n \n <dxi-item dataField=\"WMSLocationId\" [colSpan]=\"2\" #responsible editorType=\"dxLookup\" [editorOptions]=\"{ itemTemplate:'wmsLocation_itemTemplate', fieldTemplate: 'wmsLocation_fieldTemplate', dataSource: wmsLocation_ds, valueExpr: 'Id', displayExpr: 'Name', searchEnabled: true, searchExpr: ['WMSLocationId','Name'], showClearButton: true }\">\n <dxo-label text=\"WMS location\" i18n-text=\"@@FieldCaption-WMSLocation\"></dxo-label> \n </dxi-item> \n \n </dxi-item> \n\n <!-- Templates -->\n <div *dxTemplate=\"let item of 'inventLocation_itemTemplate'\">\n {{item?.Name}} {{ item?.InventLocationId ? ('(' + item.InventLocationId + ')') : ('') }}\n </div> \n <div *dxTemplate=\"let item of 'inventLocation_fieldTemplate'\" [ngClass]=\"{'lookup-field-template-container':!inEditMode, 'lookup-field-template-container-readonly':!inEditMode}\">\n {{item?.Name}} {{ item?.InventLocationId ? ('(' + item.InventLocationId + ')') : ('') }}\n </div> \n \n <div *dxTemplate=\"let item of 'wmsLocation_itemTemplate'\">\n {{item?.Name}} {{ item?.WMSLocationId ? ('(' + item.WMSLocationId + ')') : ('') }}\n </div> \n <div *dxTemplate=\"let item of 'wmsLocation_fieldTemplate'\" [ngClass]=\"{'lookup-field-template-container':!inEditMode, 'lookup-field-template-container-readonly':!inEditMode}\">\n {{item?.Name}} {{ item?.WMSLocationId ? ('(' + item.WMSLocationId + ')') : ('') }}\n </div> \n </dx-form>\n\n</mobicloud-group-box>", styles: [""], components: [{ type: GroupBoxComponent, selector: "mobicloud-group-box", inputs: ["width", "contentheight", "noBackgroundHeader", "title", "isLoadingData", "loadingText", "hasErrors", "errorCaption", "errorText", "enableRetryOnError", "editAllowed", "inEditMode"], outputs: ["Edit_Click", "Save_Click", "CancelEdit_Click", "Retry_Click"] }, { type: i5__namespace$3.DxFormComponent, selector: "dx-form", inputs: ["accessKey", "activeStateEnabled", "alignItemLabels", "alignItemLabelsInAllGroups", "colCount", "colCountByScreen", "customizeItem", "disabled", "elementAttr", "focusStateEnabled", "formData", "height", "hint", "hoverStateEnabled", "items", "labelLocation", "labelMode", "minColWidth", "optionalMark", "readOnly", "requiredMark", "requiredMessage", "rtlEnabled", "screenByWidth", "scrollingEnabled", "showColonAfterLabel", "showOptionalMark", "showRequiredMark", "showValidationSummary", "tabIndex", "validationGroup", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onEditorEnterKey", "onFieldDataChanged", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "alignItemLabelsChange", "alignItemLabelsInAllGroupsChange", "colCountChange", "colCountByScreenChange", "customizeItemChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "formDataChange", "heightChange", "hintChange", "hoverStateEnabledChange", "itemsChange", "labelLocationChange", "labelModeChange", "minColWidthChange", "optionalMarkChange", "readOnlyChange", "requiredMarkChange", "requiredMessageChange", "rtlEnabledChange", "screenByWidthChange", "scrollingEnabledChange", "showColonAfterLabelChange", "showOptionalMarkChange", "showRequiredMarkChange", "showValidationSummaryChange", "tabIndexChange", "validationGroupChange", "visibleChange", "widthChange"] }, { type: i6__namespace.DxiItemComponent, selector: "dxi-item", inputs: ["disabled", "html", "icon", "template", "text", "title", "titleTemplate", "visible", "onClick", "stylingMode", "type", "baseSize", "box", "ratio", "shrink", "elementAttr", "hint", "beginGroup", "closeMenuOnClick", "items", "selectable", "selected", "colSpan", "cssClass", "dataField", "editorOptions", "editorType", "helpText", "isRequired", "itemType", "label", "name", "validationRules", "visibleIndex", "alignItemLabels", "caption", "colCount", "colCountByScreen", "tabPanelOptions", "tabs", "badge", "tabTemplate", "buttonOptions", "horizontalAlignment", "verticalAlignment", "locateInMenu", "location", "menuItemTemplate", "options", "showText", "widget", "height", "width", "imageAlt", "imageSrc", "acceptedValues", "formatName", "formatValues", "key", "showChevron", "heightRatio", "widthRatio", "expanded", "hasItems", "id", "parentId"] }, { type: i6__namespace.DxoLabelComponent, selector: "dxo-label", inputs: ["connectorColor", "connectorWidth", "customizeText", "font", "format", "indent", "visible", "horizontalAlignment", "position", "text", "verticalAlignment", "alignment", "customizeHint", "displayMode", "indentFromAxis", "overlappingBehavior", "rotationAngle", "staggeringSpacing", "template", "textOverflow", "wordWrap", "argumentFormat", "backgroundColor", "border", "connector", "displayFormat", "horizontalOffset", "showForZeroValues", "verticalOffset", "hideFirstOrLast", "indentFromTick", "useRangeColors", "location", "showColon", "radialOffset", "topIndent", "shadow", "useNodeColors", "dataField", "enabled"] }], directives: [{ type: i7__namespace$1.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { type: i4__namespace$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i9__namespace$2.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }] });
|
|
8403
|
+
ServiceObjectInventoryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ServiceObjectInventoryComponent, selector: "mobicloud-service-object-inventory", inputs: { serviceObject: "serviceObject", serviceObject_expands: "serviceObject_expands", editAllowed: "editAllowed", inEditMode: "inEditMode", width: "width", contentheight: "contentheight", isLoadingData: "isLoadingData", loadingText: "loadingText", hasErrors: "hasErrors", errorText: "errorText" }, outputs: { serviceObjectChanged: "serviceObjectChanged" }, viewQueries: [{ propertyName: "form", first: true, predicate: ["form"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<mobicloud-group-box title=\"Inventory\" i18n-title=\"@@CaptionHeader-Inventory\" [width]=\"[width]\" [contentheight]=[contentheight] class=\"serviceObjectInventoryForm\" [isLoadingData]=\"isLoadingData\" [loadingText]=\"loadingText\" \n [editAllowed]=\"editAllowed\" [inEditMode]=\"inEditMode\" [hasErrors]=\"hasErrors\" errorCaption=\"Error\" i18n-errorCaption=\"@@CaptionHeader-Error\" [errorText]=\"errorText\" [enableRetryOnError]=\"true\"\n (Edit_Click)=\"onEditClick()\" (Save_Click)=\"onSaveClick()\" (CancelEdit_Click)=\"onCancelEditClick()\" (Retry_Click)=\"onRetryClick()\">\n\n <dx-form #form id=\"form\"\n [formData]=\"formserviceObject\"\n [readOnly]=\"!inEditMode\"\n [showColonAfterLabel]=\"true\"\n labelLocation=\"top\"\n [showValidationSummary]=\"false\" \n [showRequiredMark] = \"false\"\n validationGroup=\"formServiceObjectData_Inventory\">\n\n <dxi-item itemType=\"group\" caption=\"\" [colCount]=\"1\">\n\n <dxi-item dataField=\"InventLocationId\" [colSpan]=\"2\" #responsible editorType=\"dxLookup\" [editorOptions]=\"{ itemTemplate:'inventLocation_itemTemplate', fieldTemplate: 'inventLocation_fieldTemplate', dataSource: inventLocation_ds, valueExpr: 'Id', displayExpr: 'Name', searchEnabled: true, searchExpr: ['InventLocationId','Name'], showClearButton: true }\">\n <dxo-label text=\"Invent location\" i18n-text=\"@@FieldCaption-InventLocation\"></dxo-label> \n </dxi-item> \n \n <dxi-item dataField=\"WMSLocationId\" [colSpan]=\"2\" #responsible editorType=\"dxLookup\" [editorOptions]=\"{ itemTemplate:'wmsLocation_itemTemplate', fieldTemplate: 'wmsLocation_fieldTemplate', dataSource: wmsLocation_ds, valueExpr: 'Id', displayExpr: 'Name', searchEnabled: true, searchExpr: ['WMSLocationId','Name'], showClearButton: true }\">\n <dxo-label text=\"WMS location\" i18n-text=\"@@FieldCaption-WMSLocation\"></dxo-label> \n </dxi-item> \n \n <dxi-item dataField=\"AssetId\" [colSpan]=\"2\" #responsible editorType=\"dxLookup\" [editorOptions]=\"{ itemTemplate:'asset_itemTemplate', fieldTemplate: 'asset_fieldTemplate', dataSource:asset_ds, valueExpr: 'Id', displayExpr: 'AssetId', searchEnabled: true, searchExpr: ['AssetId','Name'], showClearButton: true }\">\n <dxo-label text=\"Asset\" i18n-text=\"@@FieldCaption-Asset\"></dxo-label> \n </dxi-item> \n </dxi-item> \n\n <!-- Templates -->\n <div *dxTemplate=\"let item of 'inventLocation_itemTemplate'\">\n {{item?.Name}} {{ item?.InventLocationId ? ('(' + item.InventLocationId + ')') : ('') }}\n </div> \n <div *dxTemplate=\"let item of 'inventLocation_fieldTemplate'\" [ngClass]=\"{'lookup-field-template-container':!inEditMode, 'lookup-field-template-container-readonly':!inEditMode}\">\n {{item?.Name}} {{ item?.InventLocationId ? ('(' + item.InventLocationId + ')') : ('') }}\n </div> \n \n <div *dxTemplate=\"let item of 'wmsLocation_itemTemplate'\">\n {{item?.Name}} {{ item?.WMSLocationId ? ('(' + item.WMSLocationId + ')') : ('') }}\n </div> \n <div *dxTemplate=\"let item of 'wmsLocation_fieldTemplate'\" [ngClass]=\"{'lookup-field-template-container':!inEditMode, 'lookup-field-template-container-readonly':!inEditMode}\">\n {{item?.Name}} {{ item?.WMSLocationId ? ('(' + item.WMSLocationId + ')') : ('') }}\n </div> \n\n <div *dxTemplate=\"let item of 'asset_itemTemplate'\">\n {{item?.Name}} {{ item?.AssetId ? ('(' + item.AssetId + ')') : ('') }}\n </div> \n <div *dxTemplate=\"let item of 'asset_fieldTemplate'\" [ngClass]=\"{'lookup-field-template-container':!inEditMode, 'lookup-field-template-container-readonly':!inEditMode}\">\n {{item?.Name}} {{ item?.AssetId ? ('(' + item.AssetId + ')') : ('') }}\n </div> \n </dx-form>\n\n</mobicloud-group-box>", styles: [""], components: [{ type: GroupBoxComponent, selector: "mobicloud-group-box", inputs: ["width", "contentheight", "noBackgroundHeader", "title", "isLoadingData", "loadingText", "hasErrors", "errorCaption", "errorText", "enableRetryOnError", "editAllowed", "inEditMode"], outputs: ["Edit_Click", "Save_Click", "CancelEdit_Click", "Retry_Click"] }, { type: i5__namespace$3.DxFormComponent, selector: "dx-form", inputs: ["accessKey", "activeStateEnabled", "alignItemLabels", "alignItemLabelsInAllGroups", "colCount", "colCountByScreen", "customizeItem", "disabled", "elementAttr", "focusStateEnabled", "formData", "height", "hint", "hoverStateEnabled", "items", "labelLocation", "labelMode", "minColWidth", "optionalMark", "readOnly", "requiredMark", "requiredMessage", "rtlEnabled", "screenByWidth", "scrollingEnabled", "showColonAfterLabel", "showOptionalMark", "showRequiredMark", "showValidationSummary", "tabIndex", "validationGroup", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onEditorEnterKey", "onFieldDataChanged", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "alignItemLabelsChange", "alignItemLabelsInAllGroupsChange", "colCountChange", "colCountByScreenChange", "customizeItemChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "formDataChange", "heightChange", "hintChange", "hoverStateEnabledChange", "itemsChange", "labelLocationChange", "labelModeChange", "minColWidthChange", "optionalMarkChange", "readOnlyChange", "requiredMarkChange", "requiredMessageChange", "rtlEnabledChange", "screenByWidthChange", "scrollingEnabledChange", "showColonAfterLabelChange", "showOptionalMarkChange", "showRequiredMarkChange", "showValidationSummaryChange", "tabIndexChange", "validationGroupChange", "visibleChange", "widthChange"] }, { type: i6__namespace.DxiItemComponent, selector: "dxi-item", inputs: ["disabled", "html", "icon", "template", "text", "title", "titleTemplate", "visible", "onClick", "stylingMode", "type", "baseSize", "box", "ratio", "shrink", "elementAttr", "hint", "beginGroup", "closeMenuOnClick", "items", "selectable", "selected", "colSpan", "cssClass", "dataField", "editorOptions", "editorType", "helpText", "isRequired", "itemType", "label", "name", "validationRules", "visibleIndex", "alignItemLabels", "caption", "colCount", "colCountByScreen", "tabPanelOptions", "tabs", "badge", "tabTemplate", "buttonOptions", "horizontalAlignment", "verticalAlignment", "locateInMenu", "location", "menuItemTemplate", "options", "showText", "widget", "height", "width", "imageAlt", "imageSrc", "acceptedValues", "formatName", "formatValues", "key", "showChevron", "heightRatio", "widthRatio", "expanded", "hasItems", "id", "parentId"] }, { type: i6__namespace.DxoLabelComponent, selector: "dxo-label", inputs: ["connectorColor", "connectorWidth", "customizeText", "font", "format", "indent", "visible", "horizontalAlignment", "position", "text", "verticalAlignment", "alignment", "customizeHint", "displayMode", "indentFromAxis", "overlappingBehavior", "rotationAngle", "staggeringSpacing", "template", "textOverflow", "wordWrap", "argumentFormat", "backgroundColor", "border", "connector", "displayFormat", "horizontalOffset", "showForZeroValues", "verticalOffset", "hideFirstOrLast", "indentFromTick", "useRangeColors", "location", "showColon", "radialOffset", "topIndent", "shadow", "useNodeColors", "dataField", "enabled"] }], directives: [{ type: i7__namespace$1.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { type: i4__namespace$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i9__namespace$2.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }] });
|
|
8387
8404
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServiceObjectInventoryComponent, decorators: [{
|
|
8388
8405
|
type: i0.Component,
|
|
8389
8406
|
args: [{
|