@colijnit/corecomponents_v12 259.1.1 → 259.1.3
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/colijnit-corecomponents_v12.umd.js +61 -191
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12-259.1.2.tgz +0 -0
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +25 -2
- package/esm2015/lib/components/input-date-picker/input-date-picker.module.js +4 -2
- package/esm2015/lib/components/list-of-values/list-of-values.component.js +28 -6
- package/esm2015/lib/core/utils/file-utils.js +2 -2
- package/fesm2015/colijnit-corecomponents_v12.js +58 -146
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/input-date-picker/input-date-picker.component.d.ts +13 -0
- package/lib/components/list-of-values/list-of-values.component.d.ts +13 -1
- package/lib/core/utils/file-utils.d.ts +1 -1
- package/package.json +1 -1
- package/esm2015/lib/core/enum/co-document-image-display-kind.enum.js +0 -7
- package/esm2015/lib/core/enum/object-right-type.enum.js +0 -7
- package/esm2015/lib/core/enum/table-name.enum.js +0 -81
- package/esm2015/lib/core/model/co-document-right.bo.js +0 -3
- package/esm2015/lib/core/model/co-document.bo.js +0 -121
- package/lib/core/enum/co-document-image-display-kind.enum.d.ts +0 -5
- package/lib/core/enum/object-right-type.enum.d.ts +0 -5
- package/lib/core/enum/table-name.enum.d.ts +0 -79
- package/lib/core/model/co-document-right.bo.d.ts +0 -6
- package/lib/core/model/co-document.bo.d.ts +0 -61
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('rxjs'), require('@angular/platform-browser'), require('@angular/animations'), require('@angular/common'), require('@angular/common/http'), require('rxjs/operators'), require('three'), require('three/examples/jsm/renderers/CSS3DRenderer'), require('@tweenjs/tween.js'), require('hammerjs'), require('@angular/cdk/drag-drop'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('xlsx'), require('@colijnit/ioneconnector/build/enum/user-right-type.enum'), require('@angular/cdk/scrolling'), require('@colijnit/ioneconnector/build/utils/array-utils'), require('@colijnit/ioneconnector/build/model/default-get-object-configurations-params'), require('@colijnit/ioneconnector/build/model/object-configuration')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@colijnit/corecomponents_v12', ['exports', '@angular/core', '@angular/forms', 'rxjs', '@angular/platform-browser', '@angular/animations', '@angular/common', '@angular/common/http', 'rxjs/operators', 'three', 'three/examples/jsm/renderers/CSS3DRenderer', '@tweenjs/tween.js', 'hammerjs', '@angular/cdk/drag-drop', '@angular/cdk/overlay', '@angular/cdk/portal', 'xlsx', '@colijnit/ioneconnector/build/enum/user-right-type.enum', '@angular/cdk/scrolling', '@colijnit/ioneconnector/build/utils/array-utils', '@colijnit/ioneconnector/build/model/default-get-object-configurations-params', '@colijnit/ioneconnector/build/model/object-configuration'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.corecomponents_v12 = {}), global.ng.core, global.ng.forms, global.rxjs, global.ng.platformBrowser, global.ng.animations, global.ng.common, global.ng.common.http, global.rxjs.operators, global.three, global.CSS3DRenderer, global.TWEEN, null, global.ng.cdk.dragDrop, global.ng.cdk.overlay, global.ng.cdk.portal, global.XLSX, global.userRightType_enum, global.ng.cdk.scrolling, global.arrayUtils, global.defaultGetObjectConfigurationsParams, global.objectConfiguration));
|
|
5
|
-
})(this, (function (exports, i0, forms, rxjs, platformBrowser, animations, common, http, operators, three, CSS3DRenderer, TWEEN, hammerjs, dragDrop, i1, portal, XLSX, userRightType_enum, scrolling, arrayUtils, defaultGetObjectConfigurationsParams, objectConfiguration) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('rxjs'), require('@angular/platform-browser'), require('@angular/animations'), require('@angular/common'), require('@angular/common/http'), require('rxjs/operators'), require('three'), require('three/examples/jsm/renderers/CSS3DRenderer'), require('@tweenjs/tween.js'), require('hammerjs'), require('@angular/cdk/drag-drop'), require('@colijnit/mainapi/build/model/co-document.bo'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('xlsx'), require('@colijnit/ioneconnector/build/enum/user-right-type.enum'), require('@angular/cdk/scrolling'), require('@colijnit/ioneconnector/build/utils/array-utils'), require('@colijnit/ioneconnector/build/model/default-get-object-configurations-params'), require('@colijnit/ioneconnector/build/model/object-configuration')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@colijnit/corecomponents_v12', ['exports', '@angular/core', '@angular/forms', 'rxjs', '@angular/platform-browser', '@angular/animations', '@angular/common', '@angular/common/http', 'rxjs/operators', 'three', 'three/examples/jsm/renderers/CSS3DRenderer', '@tweenjs/tween.js', 'hammerjs', '@angular/cdk/drag-drop', '@colijnit/mainapi/build/model/co-document.bo', '@angular/cdk/overlay', '@angular/cdk/portal', 'xlsx', '@colijnit/ioneconnector/build/enum/user-right-type.enum', '@angular/cdk/scrolling', '@colijnit/ioneconnector/build/utils/array-utils', '@colijnit/ioneconnector/build/model/default-get-object-configurations-params', '@colijnit/ioneconnector/build/model/object-configuration'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.corecomponents_v12 = {}), global.ng.core, global.ng.forms, global.rxjs, global.ng.platformBrowser, global.ng.animations, global.ng.common, global.ng.common.http, global.rxjs.operators, global.three, global.CSS3DRenderer, global.TWEEN, null, global.ng.cdk.dragDrop, global.coDocument_bo, global.ng.cdk.overlay, global.ng.cdk.portal, global.XLSX, global.userRightType_enum, global.ng.cdk.scrolling, global.arrayUtils, global.defaultGetObjectConfigurationsParams, global.objectConfiguration));
|
|
5
|
+
})(this, (function (exports, i0, forms, rxjs, platformBrowser, animations, common, http, operators, three, CSS3DRenderer, TWEEN, hammerjs, dragDrop, coDocument_bo, i1, portal, XLSX, userRightType_enum, scrolling, arrayUtils, defaultGetObjectConfigurationsParams, objectConfiguration) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -5952,8 +5952,17 @@
|
|
|
5952
5952
|
|
|
5953
5953
|
var InputDatePickerComponent = /** @class */ (function (_super) {
|
|
5954
5954
|
__extends(InputDatePickerComponent, _super);
|
|
5955
|
-
function InputDatePickerComponent() {
|
|
5956
|
-
|
|
5955
|
+
function InputDatePickerComponent(formComponent, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
|
|
5956
|
+
var _this = _super.call(this, changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) || this;
|
|
5957
|
+
_this.formComponent = formComponent;
|
|
5958
|
+
_this.changeDetector = changeDetector;
|
|
5959
|
+
_this.overlayService = overlayService;
|
|
5960
|
+
_this.componentFactoryResolver = componentFactoryResolver;
|
|
5961
|
+
_this.formUserChangeListener = formUserChangeListener;
|
|
5962
|
+
_this.ngZoneWrapper = ngZoneWrapper;
|
|
5963
|
+
_this.elementRef = elementRef;
|
|
5964
|
+
_super.prototype._markAsOnPush.call(_this);
|
|
5965
|
+
return _this;
|
|
5957
5966
|
}
|
|
5958
5967
|
InputDatePickerComponent.prototype.showClass = function () {
|
|
5959
5968
|
return true;
|
|
@@ -6043,6 +6052,15 @@
|
|
|
6043
6052
|
encapsulation: i0.ViewEncapsulation.None
|
|
6044
6053
|
},] }
|
|
6045
6054
|
];
|
|
6055
|
+
InputDatePickerComponent.ctorParameters = function () { return [
|
|
6056
|
+
{ type: FormComponent, decorators: [{ type: i0.Optional }] },
|
|
6057
|
+
{ type: i0.ChangeDetectorRef },
|
|
6058
|
+
{ type: OverlayService },
|
|
6059
|
+
{ type: i0.ComponentFactoryResolver },
|
|
6060
|
+
{ type: FormInputUserModelChangeListenerService },
|
|
6061
|
+
{ type: NgZoneWrapperService },
|
|
6062
|
+
{ type: i0.ElementRef }
|
|
6063
|
+
]; };
|
|
6046
6064
|
InputDatePickerComponent.propDecorators = {
|
|
6047
6065
|
showClass: [{ type: i0.HostBinding, args: ['class.co-input-date',] }]
|
|
6048
6066
|
};
|
|
@@ -7314,7 +7332,8 @@
|
|
|
7314
7332
|
InputTextModule,
|
|
7315
7333
|
CalendarModule,
|
|
7316
7334
|
ClickoutsideModule,
|
|
7317
|
-
OverlayModule
|
|
7335
|
+
OverlayModule,
|
|
7336
|
+
forms.ReactiveFormsModule
|
|
7318
7337
|
],
|
|
7319
7338
|
schemas: [
|
|
7320
7339
|
i0.NO_ERRORS_SCHEMA
|
|
@@ -8575,183 +8594,6 @@
|
|
|
8575
8594
|
FileTypeInternal[FileTypeInternal["Undefined"] = 8] = "Undefined";
|
|
8576
8595
|
})(FileTypeInternal || (FileTypeInternal = {}));
|
|
8577
8596
|
|
|
8578
|
-
// DOM_BESTANDSSOORT
|
|
8579
|
-
var FileType;
|
|
8580
|
-
(function (FileType) {
|
|
8581
|
-
// DOC: Document
|
|
8582
|
-
FileType["Document"] = "DOC";
|
|
8583
|
-
// IMG: Afbeelding
|
|
8584
|
-
FileType["Image"] = "IMG";
|
|
8585
|
-
// SDWEB: Digitale handtekening
|
|
8586
|
-
FileType["DigitalSignature"] = "SDWEB";
|
|
8587
|
-
})(FileType || (FileType = {}));
|
|
8588
|
-
|
|
8589
|
-
var CoDocumentImageDisplayKind;
|
|
8590
|
-
(function (CoDocumentImageDisplayKind) {
|
|
8591
|
-
CoDocumentImageDisplayKind["NormalImage"] = "N";
|
|
8592
|
-
CoDocumentImageDisplayKind["LayeredImage"] = "L";
|
|
8593
|
-
CoDocumentImageDisplayKind["Avatar"] = "A";
|
|
8594
|
-
})(CoDocumentImageDisplayKind || (CoDocumentImageDisplayKind = {}));
|
|
8595
|
-
|
|
8596
|
-
var ObjectRightType;
|
|
8597
|
-
(function (ObjectRightType) {
|
|
8598
|
-
ObjectRightType[ObjectRightType["NoAccess"] = 0] = "NoAccess";
|
|
8599
|
-
ObjectRightType[ObjectRightType["ReadOnly"] = 1] = "ReadOnly";
|
|
8600
|
-
ObjectRightType[ObjectRightType["ReadWrite"] = 2] = "ReadWrite";
|
|
8601
|
-
})(ObjectRightType || (ObjectRightType = {}));
|
|
8602
|
-
|
|
8603
|
-
// See DocumentDTO.
|
|
8604
|
-
var CoDocument = /** @class */ (function () {
|
|
8605
|
-
function CoDocument() {
|
|
8606
|
-
// @ComplexArray(CoDocumentRight)
|
|
8607
|
-
this.rights = [];
|
|
8608
|
-
this.retailFormulas = [];
|
|
8609
|
-
//
|
|
8610
|
-
// @NoDbField()
|
|
8611
|
-
// @ComplexField(Subject)
|
|
8612
|
-
this.documentBodyChange = new rxjs.Subject();
|
|
8613
|
-
}
|
|
8614
|
-
Object.defineProperty(CoDocument.prototype, "documentId", {
|
|
8615
|
-
get: function () {
|
|
8616
|
-
return this._documentId;
|
|
8617
|
-
},
|
|
8618
|
-
set: function (value) {
|
|
8619
|
-
this._documentId = value;
|
|
8620
|
-
// this._idObject.docId = value;
|
|
8621
|
-
},
|
|
8622
|
-
enumerable: false,
|
|
8623
|
-
configurable: true
|
|
8624
|
-
});
|
|
8625
|
-
Object.defineProperty(CoDocument.prototype, "documentBody", {
|
|
8626
|
-
get: function () {
|
|
8627
|
-
return this._documentBody;
|
|
8628
|
-
},
|
|
8629
|
-
set: function (documentBody) {
|
|
8630
|
-
var prev = this._documentBody;
|
|
8631
|
-
this._documentBody = documentBody;
|
|
8632
|
-
if (prev !== this._documentBody) {
|
|
8633
|
-
this.documentBodyChange.next(this._documentBody);
|
|
8634
|
-
}
|
|
8635
|
-
},
|
|
8636
|
-
enumerable: false,
|
|
8637
|
-
configurable: true
|
|
8638
|
-
});
|
|
8639
|
-
Object.defineProperty(CoDocument.prototype, "fileTypeInternal", {
|
|
8640
|
-
// @NoDbField()
|
|
8641
|
-
// public idForLink: number;
|
|
8642
|
-
// The internal file type of this document (the MimeType iOneJS uses internally)
|
|
8643
|
-
get: function () {
|
|
8644
|
-
if (!this._fileTypeInternal) {
|
|
8645
|
-
var fileType = FileUtils.FileNameToFileTypeInternal(this.fileName);
|
|
8646
|
-
if (fileType) {
|
|
8647
|
-
this._fileTypeInternal = fileType;
|
|
8648
|
-
}
|
|
8649
|
-
}
|
|
8650
|
-
return this._fileTypeInternal;
|
|
8651
|
-
},
|
|
8652
|
-
enumerable: false,
|
|
8653
|
-
configurable: true
|
|
8654
|
-
});
|
|
8655
|
-
Object.defineProperty(CoDocument.prototype, "mimeTypeInternal", {
|
|
8656
|
-
/**
|
|
8657
|
-
* The mimetype of this document: uses database-fetched this.mimeType, or calculates / guesses the mime type of the document
|
|
8658
|
-
* if that was not set.
|
|
8659
|
-
*/
|
|
8660
|
-
get: function () {
|
|
8661
|
-
if (this._mimeTypeInternal) {
|
|
8662
|
-
return this._mimeTypeInternal;
|
|
8663
|
-
}
|
|
8664
|
-
else {
|
|
8665
|
-
this._initMimetypeInternal();
|
|
8666
|
-
return this._mimeTypeInternal;
|
|
8667
|
-
}
|
|
8668
|
-
},
|
|
8669
|
-
set: function (value) {
|
|
8670
|
-
this._mimeTypeInternal = value;
|
|
8671
|
-
},
|
|
8672
|
-
enumerable: false,
|
|
8673
|
-
configurable: true
|
|
8674
|
-
});
|
|
8675
|
-
Object.defineProperty(CoDocument.prototype, "bodyAsDataUri", {
|
|
8676
|
-
// Gives either the document-(prio) or the thumbnail body. Or undefined if not exist.
|
|
8677
|
-
get: function () {
|
|
8678
|
-
if (this._documentBody) {
|
|
8679
|
-
return this.documentBodyAsDataUri;
|
|
8680
|
-
}
|
|
8681
|
-
else if (this.thumbnailBody) {
|
|
8682
|
-
return this.thumbnailBodyAsDataUri;
|
|
8683
|
-
}
|
|
8684
|
-
},
|
|
8685
|
-
enumerable: false,
|
|
8686
|
-
configurable: true
|
|
8687
|
-
});
|
|
8688
|
-
Object.defineProperty(CoDocument.prototype, "documentBodyAsDataUri", {
|
|
8689
|
-
// The body of this document as a data uri. The data uri also contains the mimetype in its string, and the fact that it's base64.
|
|
8690
|
-
get: function () {
|
|
8691
|
-
try {
|
|
8692
|
-
return FileUtils.DocumentBodyToDataUri(this.documentBody, this.mimeTypeInternal);
|
|
8693
|
-
}
|
|
8694
|
-
catch (error) {
|
|
8695
|
-
return "";
|
|
8696
|
-
}
|
|
8697
|
-
},
|
|
8698
|
-
enumerable: false,
|
|
8699
|
-
configurable: true
|
|
8700
|
-
});
|
|
8701
|
-
Object.defineProperty(CoDocument.prototype, "thumbnailBodyAsDataUri", {
|
|
8702
|
-
// The Thumbnailbody of this document as a data uri. The data uri also contains the mimetype in its string, and the fact that it's base64.
|
|
8703
|
-
get: function () {
|
|
8704
|
-
try {
|
|
8705
|
-
return FileUtils.DocumentBodyToDataUri(this.thumbnailBody, this.mimeTypeInternal);
|
|
8706
|
-
}
|
|
8707
|
-
catch (error) {
|
|
8708
|
-
return "";
|
|
8709
|
-
}
|
|
8710
|
-
},
|
|
8711
|
-
enumerable: false,
|
|
8712
|
-
configurable: true
|
|
8713
|
-
});
|
|
8714
|
-
Object.defineProperty(CoDocument.prototype, "isAvatar", {
|
|
8715
|
-
get: function () {
|
|
8716
|
-
return this.imageDisplayKind === CoDocumentImageDisplayKind.Avatar;
|
|
8717
|
-
},
|
|
8718
|
-
enumerable: false,
|
|
8719
|
-
configurable: true
|
|
8720
|
-
});
|
|
8721
|
-
Object.defineProperty(CoDocument.prototype, "readonly", {
|
|
8722
|
-
//
|
|
8723
|
-
// @NoDbField()
|
|
8724
|
-
// private _idObject: any = {};
|
|
8725
|
-
get: function () {
|
|
8726
|
-
return this.rightLevel === ObjectRightType.ReadOnly;
|
|
8727
|
-
},
|
|
8728
|
-
enumerable: false,
|
|
8729
|
-
configurable: true
|
|
8730
|
-
});
|
|
8731
|
-
CoDocument.prototype.getId = function () {
|
|
8732
|
-
return this.documentId;
|
|
8733
|
-
};
|
|
8734
|
-
// Returns whether this is an image document or not.
|
|
8735
|
-
CoDocument.prototype.isImageDocument = function () {
|
|
8736
|
-
return (this.fileTypeInternal === FileTypeInternal.Image);
|
|
8737
|
-
};
|
|
8738
|
-
// @BoSerializerStep()
|
|
8739
|
-
CoDocument.prototype.preventOverridingThumbnailToEmpty = function () {
|
|
8740
|
-
if (!this.thumbnailBody) {
|
|
8741
|
-
this.thumbnailBody = this._documentBody;
|
|
8742
|
-
}
|
|
8743
|
-
};
|
|
8744
|
-
// POSTCONDITION: this._mimeTypeInternal contains, to our best abilities, the true mimeType of this document, a-la "image/jpg"
|
|
8745
|
-
CoDocument.prototype._initMimetypeInternal = function () {
|
|
8746
|
-
// if no fileType, default to FileType.Image for internal mimetype initialization
|
|
8747
|
-
if ((this.fileType === FileType.Image || !this.fileType) && this.fileName) {
|
|
8748
|
-
var fileExtension = this.fileName.substr(this.fileName.lastIndexOf(".") + 1);
|
|
8749
|
-
this._mimeTypeInternal = "image/" + fileExtension;
|
|
8750
|
-
}
|
|
8751
|
-
};
|
|
8752
|
-
return CoDocument;
|
|
8753
|
-
}());
|
|
8754
|
-
|
|
8755
8597
|
// for refcode CV_DOCUMENTATIE.DOC_TYPE
|
|
8756
8598
|
var CoDocumentType;
|
|
8757
8599
|
(function (CoDocumentType) {
|
|
@@ -8763,6 +8605,17 @@
|
|
|
8763
8605
|
CoDocumentType["SaveAsLinkOnDefaultLocation"] = "LW";
|
|
8764
8606
|
})(CoDocumentType || (CoDocumentType = {}));
|
|
8765
8607
|
|
|
8608
|
+
// DOM_BESTANDSSOORT
|
|
8609
|
+
var FileType;
|
|
8610
|
+
(function (FileType) {
|
|
8611
|
+
// DOC: Document
|
|
8612
|
+
FileType["Document"] = "DOC";
|
|
8613
|
+
// IMG: Afbeelding
|
|
8614
|
+
FileType["Image"] = "IMG";
|
|
8615
|
+
// SDWEB: Digitale handtekening
|
|
8616
|
+
FileType["DigitalSignature"] = "SDWEB";
|
|
8617
|
+
})(FileType || (FileType = {}));
|
|
8618
|
+
|
|
8766
8619
|
var MaxUploadSize = 3145728; // 3Mb
|
|
8767
8620
|
// @dynamic
|
|
8768
8621
|
var FileUtils = /** @class */ (function () {
|
|
@@ -8825,7 +8678,7 @@
|
|
|
8825
8678
|
}
|
|
8826
8679
|
var fileName;
|
|
8827
8680
|
var mimeType;
|
|
8828
|
-
if (file instanceof CoDocument) {
|
|
8681
|
+
if (file instanceof coDocument_bo.CoDocument) {
|
|
8829
8682
|
fileName = file.fileName;
|
|
8830
8683
|
mimeType = file.mimeTypeInternal;
|
|
8831
8684
|
}
|
|
@@ -8870,7 +8723,7 @@
|
|
|
8870
8723
|
// Checks filesize of given file and returns false if size exceeds maximum upload size.
|
|
8871
8724
|
FileUtils.CheckMaxUploadSize = function (file) {
|
|
8872
8725
|
var fileSize = 0;
|
|
8873
|
-
if (file instanceof CoDocument) {
|
|
8726
|
+
if (file instanceof coDocument_bo.CoDocument) {
|
|
8874
8727
|
fileSize = NumberUtils.ParseInt(file.fileSize);
|
|
8875
8728
|
}
|
|
8876
8729
|
else {
|
|
@@ -9001,7 +8854,7 @@
|
|
|
9001
8854
|
reader.readAsDataURL(file);
|
|
9002
8855
|
reader.onloadend = function (event) {
|
|
9003
8856
|
if (event.target.readyState === 2) {
|
|
9004
|
-
var coDocument = new CoDocument();
|
|
8857
|
+
var coDocument = new coDocument_bo.CoDocument();
|
|
9005
8858
|
coDocument.fileSize = file.size.toString();
|
|
9006
8859
|
coDocument.mimeTypeInternal = file.type;
|
|
9007
8860
|
coDocument.mimeType = file.type;
|
|
@@ -11948,8 +11801,15 @@
|
|
|
11948
11801
|
|
|
11949
11802
|
var ListOfValuesComponent = /** @class */ (function (_super) {
|
|
11950
11803
|
__extends(ListOfValuesComponent, _super);
|
|
11951
|
-
function ListOfValuesComponent() {
|
|
11952
|
-
var _this = _super.
|
|
11804
|
+
function ListOfValuesComponent(formComponent, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
|
|
11805
|
+
var _this = _super.call(this, changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) || this;
|
|
11806
|
+
_this.formComponent = formComponent;
|
|
11807
|
+
_this.changeDetector = changeDetector;
|
|
11808
|
+
_this.overlayService = overlayService;
|
|
11809
|
+
_this.componentFactoryResolver = componentFactoryResolver;
|
|
11810
|
+
_this.formUserChangeListener = formUserChangeListener;
|
|
11811
|
+
_this.ngZoneWrapper = ngZoneWrapper;
|
|
11812
|
+
_this.elementRef = elementRef;
|
|
11953
11813
|
_this.icons = exports.CoreComponentsIcon;
|
|
11954
11814
|
_this.multiselect = false;
|
|
11955
11815
|
_this.largeCollection = false;
|
|
@@ -11963,6 +11823,7 @@
|
|
|
11963
11823
|
_this.filteredCollection = [];
|
|
11964
11824
|
_this.isLoading = false;
|
|
11965
11825
|
_this._collection = [];
|
|
11826
|
+
_super.prototype._markAsOnPush.call(_this);
|
|
11966
11827
|
return _this;
|
|
11967
11828
|
}
|
|
11968
11829
|
Object.defineProperty(ListOfValuesComponent.prototype, "model", {
|
|
@@ -12133,7 +11994,7 @@
|
|
|
12133
11994
|
}
|
|
12134
11995
|
}
|
|
12135
11996
|
}
|
|
12136
|
-
this.
|
|
11997
|
+
this.setModel(option);
|
|
12137
11998
|
this.modelChange.emit(this.model);
|
|
12138
11999
|
this.detectChanges();
|
|
12139
12000
|
};
|
|
@@ -12187,7 +12048,7 @@
|
|
|
12187
12048
|
ListOfValuesComponent.decorators = [
|
|
12188
12049
|
{ type: i0.Component, args: [{
|
|
12189
12050
|
selector: 'co-list-of-values',
|
|
12190
|
-
template: "\n <co-input-text\n *ngIf=\"!largeCollection\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"isSelectOpen\"\n aria-controls=\"lov-popup\"\n role=\"combobox\"\n class=\"no-focus-line\"\n overlayParent\n #parentForOverlay=\"overlayParent\"\n type=\"text\"\n [id]=\"label\"\n [model]=\"multiselect ? selectedModels : selectedModel\"\n [placeholder]=\"label\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [noClickFocus]=\"false\"\n [leftIconData]=\"leftIconData\"\n [rightIcon]=\"isSelectOpen ? icons.ChevronUpRegular : icons.ChevronDownRegular\"\n [showClearButton]=\"true\"\n [useContent]=\"multiselect\"\n [customHeight]=\"multiselect\"\n [keepFocussed]=\"keepFocussed\"\n (modelChange)=\"handleInputModelChange($event)\"\n (click)=\"openPopup()\"\n (rightIconClick)=\"toggleSelect()\"\n (keydown)=\"handleInputKeyDown($event)\"\n (clearIconClick)=\"clearModel($event)\"\n (blur)=\"checkModel()\">\n <ng-container *ngIf=\"multiselect && showChips\">\n <div class=\"multiselect-chips-wrapper\">\n <div class=\"chips\" *ngFor=\"let chip of model\">\n <span class=\"chips-description\" [textContent]=\"chip[displayField]\"></span>\n <co-icon class=\"remove-chip-icon\" [icon]=\"icons.CrossSkinny\" (click)=\"removeOptionFromModel(chip)\"></co-icon>\n </div>\n </div>\n </ng-container>\n </co-input-text>\n
|
|
12051
|
+
template: "\n <co-input-text\n *ngIf=\"!largeCollection\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"isSelectOpen\"\n aria-controls=\"lov-popup\"\n role=\"combobox\"\n class=\"no-focus-line\"\n overlayParent\n #parentForOverlay=\"overlayParent\"\n type=\"text\"\n [id]=\"label\"\n [model]=\"multiselect ? selectedModels : selectedModel\"\n [placeholder]=\"label\"\n [myFormInputInstance]=\"this\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [noClickFocus]=\"false\"\n [leftIconData]=\"leftIconData\"\n [rightIcon]=\"isSelectOpen ? icons.ChevronUpRegular : icons.ChevronDownRegular\"\n [showClearButton]=\"true\"\n [useContent]=\"multiselect\"\n [customHeight]=\"multiselect\"\n [keepFocussed]=\"keepFocussed\"\n (modelChange)=\"handleInputModelChange($event)\"\n (click)=\"openPopup()\"\n (rightIconClick)=\"toggleSelect()\"\n (keydown)=\"handleInputKeyDown($event)\"\n (clearIconClick)=\"clearModel($event)\"\n (blur)=\"checkModel()\">\n <ng-container *ngIf=\"multiselect && showChips\">\n <div class=\"multiselect-chips-wrapper\">\n <div class=\"chips\" *ngFor=\"let chip of model\">\n <span class=\"chips-description\" [textContent]=\"chip[displayField]\"></span>\n <co-icon class=\"remove-chip-icon\" [icon]=\"icons.CrossSkinny\" (click)=\"removeOptionFromModel(chip)\"></co-icon>\n </div>\n </div>\n </ng-container>\n </co-input-text>\n\n <co-input-text\n *ngIf=\"largeCollection\"\n [model]=\"filterText\"\n [placeholder]=\"label\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n (modelChange)=\"onModelChange($event)\">\n </co-input-text>\n <div *ngIf=\"isLoading\" class=\"filter-loader\"><span></span></div>\n <input type=\"hidden\" [ngModel]=\"model\">\n ",
|
|
12191
12052
|
providers: [
|
|
12192
12053
|
OverlayService,
|
|
12193
12054
|
{
|
|
@@ -12198,6 +12059,15 @@
|
|
|
12198
12059
|
encapsulation: i0.ViewEncapsulation.None
|
|
12199
12060
|
},] }
|
|
12200
12061
|
];
|
|
12062
|
+
ListOfValuesComponent.ctorParameters = function () { return [
|
|
12063
|
+
{ type: FormComponent, decorators: [{ type: i0.Optional }] },
|
|
12064
|
+
{ type: i0.ChangeDetectorRef },
|
|
12065
|
+
{ type: OverlayService },
|
|
12066
|
+
{ type: i0.ComponentFactoryResolver },
|
|
12067
|
+
{ type: FormInputUserModelChangeListenerService },
|
|
12068
|
+
{ type: NgZoneWrapperService },
|
|
12069
|
+
{ type: i0.ElementRef }
|
|
12070
|
+
]; };
|
|
12201
12071
|
ListOfValuesComponent.propDecorators = {
|
|
12202
12072
|
model: [{ type: i0.Input }],
|
|
12203
12073
|
parentForOverlay: [{ type: i0.ViewChild, args: ['parentForOverlay', { read: i0.ElementRef },] }],
|