@colijnit/sharedcomponents 260.1.6 → 260.1.7
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-sharedcomponents.umd.js +5 -5
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/form-builder/form-builder-user-form/form-builder-user-form.component.js +8 -12
- package/esm2015/lib/components/send-method-dialog/service/send-method.service.js +1 -1
- package/esm2015/lib/components/task-creator/task-creator.component.js +64 -64
- package/esm2015/lib/components/task-creator/task-creator.module.js +1 -1
- package/esm2015/lib/enum/icon.enum.js +1 -1
- package/esm2015/lib/model/icon-svg.js +1 -1
- package/esm2015/lib/res/dictionary/dictionaries.js +1 -1
- package/fesm2015/colijnit-sharedcomponents.js +70 -73
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/form-builder/form-builder-user-form/form-builder-user-form.component.d.ts +6 -4
- package/lib/components/form-builder/form-builder-user-form/style/_layout.scss +4 -3
- package/package.json +1 -1
- package/358.645812766f7a400d0d38.js +0 -1
- package/3rdpartylicenses.txt +0 -2017
- package/960.d316fc697040a1dcb1dc.js +0 -1
- package/977.bd6291f9ee6f6ddf91f1.js +0 -1
- package/colijnit-sharedcomponents-260.1.6.tgz +0 -0
- package/favicon.ico +0 -0
- package/index.html +0 -12
- package/main.b6e4dfacf3e8cbdc3f41.js +0 -1
- package/polyfills.907fe9d1887c5de17993.js +0 -1
- package/runtime.964caae2a6edfdb3cc90.js +0 -1
- package/styles.d8387cd9036477f64871.css +0 -1
|
@@ -17211,12 +17211,11 @@
|
|
|
17211
17211
|
})(exports.UserFormMode || (exports.UserFormMode = {}));
|
|
17212
17212
|
|
|
17213
17213
|
var FormBuilderUserFormComponent = /** @class */ (function () {
|
|
17214
|
-
function FormBuilderUserFormComponent(_detectorRef, _boFactory, _changeDetectorRef, _sharedConnectorService,
|
|
17214
|
+
function FormBuilderUserFormComponent(_detectorRef, _boFactory, _changeDetectorRef, _sharedConnectorService, iconCacheService) {
|
|
17215
17215
|
this._detectorRef = _detectorRef;
|
|
17216
17216
|
this._boFactory = _boFactory;
|
|
17217
17217
|
this._changeDetectorRef = _changeDetectorRef;
|
|
17218
17218
|
this._sharedConnectorService = _sharedConnectorService;
|
|
17219
|
-
this._promptService = _promptService;
|
|
17220
17219
|
this.iconCacheService = iconCacheService;
|
|
17221
17220
|
this.formQuestionType = formQuestion_type.FormQuestionType;
|
|
17222
17221
|
this.TableName = tableName_enum.TableName;
|
|
@@ -17226,6 +17225,7 @@
|
|
|
17226
17225
|
this.showPopup = false;
|
|
17227
17226
|
this.readonly = false;
|
|
17228
17227
|
this.enableQuestions = true;
|
|
17228
|
+
this.objectId = 0;
|
|
17229
17229
|
this.cancelForm = new i0.EventEmitter();
|
|
17230
17230
|
this.saveForm = new i0.EventEmitter();
|
|
17231
17231
|
this.definitiveChange = new i0.EventEmitter();
|
|
@@ -17409,7 +17409,7 @@
|
|
|
17409
17409
|
};
|
|
17410
17410
|
FormBuilderUserFormComponent.prototype.handleDefinitiveChange = function (definitive) {
|
|
17411
17411
|
this.formResponse.isFinal = definitive;
|
|
17412
|
-
this.definitiveChange.next(definitive);
|
|
17412
|
+
this.definitiveChange.next({ value: definitive, id: this.objectId });
|
|
17413
17413
|
};
|
|
17414
17414
|
FormBuilderUserFormComponent.prototype.commitUserForm = function () {
|
|
17415
17415
|
var _this = this;
|
|
@@ -17450,7 +17450,7 @@
|
|
|
17450
17450
|
FormBuilderUserFormComponent.decorators = [
|
|
17451
17451
|
{ type: i0.Component, args: [{
|
|
17452
17452
|
selector: 'co-form-builder-user-form',
|
|
17453
|
-
template: "\n <co-dialog [headerTemplate]=\"headerTemplate\" [footerTemplate]=\"footerTemplate\" (closeClick)=\"handleCancelForm()\">\n <div class=\"main-content-wrapper\">\n <div class=\"section-wrapper mini-scrollbar\" #sectionWrapper>\n <co-form #coForm (validSubmit)=\"onValid()\" [keepInView]=\"sectionWrapper\">\n <ng-container\n *ngFor=\"let question of cloneForm.questions; let index = index\">\n <div [class.active]=\"form.questions.indexOf(question) === form.questions.indexOf(activeQuestion)\" class=\"headers-row\" fxLayout=\"column\"\n [class.disabled]=\"question.disabled && index !== 0\"\n (keydown)=\"enabledNextQuestion(question)\">\n <span class=\"form-rubric-header\"\n [textContent]=\"question.sequence+ '. ' + (question.question)\"></span>\n <div class=\"answer-wrapper\" [ngSwitch]=\"question.questionType\">\n <co-input-text *ngSwitchCase=\"formQuestionType.ShortAnswer\"\n [(model)]=\"question.responseQuestion.response\"\n [required]=\"question.mandatory\"\n [readonly]=\"readonly\"\n [disabled]=\"question.disabled && index !== 0\"\n ></co-input-text>\n <co-input-textarea *ngSwitchCase=\"formQuestionType.LongAnswer\"\n [(model)]=\"question.responseQuestion.response\"\n [required]=\"question.mandatory\"\n [readonly]=\"readonly\"\n [disabled]=\"question.disabled && index !== 0\"\n ></co-input-textarea>\n <ng-container *ngSwitchCase=\"formQuestionType.MultipleChoiceSingleOption\"\n\n >\n <co-form>\n <co-input-radio-button *ngFor=\"let answer of question.formQuestionAnswers\"\n [label]=\"answer.answer\"\n [model]=\"answer.answerId == question.responseQuestion.response\"\n [disabled]=\"question.disabled && index !== 0\"\n (modelChange)=\"question.responseQuestion.response = answer.answerId + ''; enabledNextQuestion(question, answer)\"\n ></co-input-radio-button>\n </co-form>\n </ng-container>\n <ng-container *ngSwitchCase=\"formQuestionType.MultipleChoiceMultipleOptions\">\n <co-input-checkbox *ngFor=\"let answer of question.formQuestionAnswers\"\n [label]=\"answer.answer\"\n [readonly]=\"readonly\"\n [model]=\"question.responseQuestion.response ? \n question.responseQuestion.response.indexOf(answer.answerId) > -1 : \n question.responseQuestion.response\"\n [disabled]=\"question.disabled && index !== 0\"\n (modelChange)=\"changeMultipleOption(answer.answerId, question.responseQuestion, $event); enabledNextQuestion(question, answer)\"\n ></co-input-checkbox>\n </ng-container>\n <co-list-of-values *ngSwitchCase=\"formQuestionType.DropDownList\"\n [model]=\"question.responseQuestion\"\n [collection]=\"question.formQuestionAnswers\"\n [displayField]=\"'
|
|
17453
|
+
template: "\n <co-dialog [headerTemplate]=\"headerTemplate\" [footerTemplate]=\"footerTemplate\" (closeClick)=\"handleCancelForm()\">\n <div class=\"main-content-wrapper\">\n <div class=\"section-wrapper mini-scrollbar\" #sectionWrapper>\n <co-form #coForm (validSubmit)=\"onValid()\" [keepInView]=\"sectionWrapper\">\n <ng-container\n *ngFor=\"let question of cloneForm.questions; let index = index\">\n <div [class.active]=\"form.questions.indexOf(question) === form.questions.indexOf(activeQuestion)\" class=\"headers-row\" fxLayout=\"column\"\n [class.disabled]=\"question.disabled && index !== 0\"\n (keydown)=\"enabledNextQuestion(question)\">\n <span class=\"form-rubric-header\"\n [textContent]=\"question.sequence+ '. ' + (question.question)\"></span>\n <div class=\"answer-wrapper\" [ngSwitch]=\"question.questionType\">\n <co-input-text *ngSwitchCase=\"formQuestionType.ShortAnswer\"\n [(model)]=\"question.responseQuestion.response\"\n [required]=\"question.mandatory\"\n [readonly]=\"readonly\"\n [disabled]=\"question.disabled && index !== 0\"\n ></co-input-text>\n <co-input-textarea *ngSwitchCase=\"formQuestionType.LongAnswer\"\n [(model)]=\"question.responseQuestion.response\"\n [required]=\"question.mandatory\"\n [readonly]=\"readonly\"\n [disabled]=\"question.disabled && index !== 0\"\n ></co-input-textarea>\n <ng-container *ngSwitchCase=\"formQuestionType.MultipleChoiceSingleOption\"\n\n >\n <co-form>\n <co-input-radio-button *ngFor=\"let answer of question.formQuestionAnswers\"\n [label]=\"answer.answer\"\n [model]=\"answer.answerId == question.responseQuestion.response\"\n [disabled]=\"question.disabled && index !== 0\"\n (modelChange)=\"question.responseQuestion.response = answer.answerId + ''; enabledNextQuestion(question, answer)\"\n ></co-input-radio-button>\n </co-form>\n </ng-container>\n <ng-container *ngSwitchCase=\"formQuestionType.MultipleChoiceMultipleOptions\">\n <co-input-checkbox *ngFor=\"let answer of question.formQuestionAnswers\"\n [label]=\"answer.answer\"\n [readonly]=\"readonly\"\n [model]=\"question.responseQuestion.response ? \n question.responseQuestion.response.indexOf(answer.answerId) > -1 : \n question.responseQuestion.response\"\n [disabled]=\"question.disabled && index !== 0\"\n (modelChange)=\"changeMultipleOption(answer.answerId, question.responseQuestion, $event); enabledNextQuestion(question, answer)\"\n ></co-input-checkbox>\n </ng-container>\n <co-list-of-values *ngSwitchCase=\"formQuestionType.DropDownList\"\n [model]=\"question.responseQuestion\"\n [collection]=\"question.formQuestionAnswers\"\n [displayField]=\"'response'\"\n [required]=\"question.mandatory\"\n [readonly]=\"readonly\"\n [disabled]=\"question.disabled && index !== 0\"\n (modelChange)=\"changeLovOption(question.responseQuestion, $event); enabledNextQuestion(question, $event)\"\n ></co-list-of-values>\n <co-user-form-input-scale *ngSwitchCase=\"formQuestionType.LinearScale\"\n [label]=\"question.question\"\n [idField]=\"'answerId'\"\n [selected]=\"question.responseQuestion.response\"\n [scaleModel]=\"question.formQuestionAnswers\"\n [descriptionField]=\"'answer'\"\n [required]=\"question.mandatory\"\n [readonly]=\"readonly\"\n [disabled]=\"question.disabled && index !== 0\"\n (selectionChange)=\"question.responseQuestion.response = $event.answerId + ''\"\n ></co-user-form-input-scale>\n <co-input-date *ngSwitchCase=\"formQuestionType.Date\"\n [(model)]=\"question.responseQuestion.dateResponse\"\n [required]=\"question.mandatory\"\n [readonly]=\"readonly\"\n [disabled]=\"question.disabled && index !== 0\"\n ></co-input-date>\n <co-input-time *ngSwitchCase=\"formQuestionType.Time\"\n [model]=\"question.responseQuestion?.timeResponse ?? 1\"\n (modelChange)=\"changeTime(question.responseQuestion, $event)\"\n [required]=\"question.mandatory\"\n [readonly]=\"readonly\"\n [disabled]=\"question.disabled && index !== 0\"\n ></co-input-time>\n </div>\n </div>\n </ng-container>\n </co-form>\n </div>\n <div class=\"section-wrapper mini-scrollbar\" #sectionWrapper>\n <co-input-checkbox [model]=\"formResponse?.isFinal\" (modelChange)=\"handleDefinitiveChange($event)\" [label]=\"'DEFINITIVE' | sharedLocalize\"></co-input-checkbox>\n </div>\n\n\n </div>\n\n </co-dialog>\n <ng-template #headerTemplate>\n <div class=\"header-wrapper\">\n <span class=\"form-title\" [textContent]=\"form?.formName\"></span>\n </div>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"footer-wrapper\">\n <div class=\"attachments-wrapper\">\n <div class=\"row\">\n <input type=\"file\" accept=\"image/*\" capture=\"environment\" (change)=\"handleDocumentsAdded($event)\">\n <co-files-upload #filesUploadComponent [documents]=\"formResponse.documents\" (documentsAdded)=\"handleDocumentsAdded($event)\" (documentChangeEvent)=\"handleDocumentChanged($event)\" class=\"co-files-upload\"></co-files-upload>\n </div>\n </div>\n <div class=\"row\">\n <co-button class=\"save-button\" (click)=\"commitUserForm()\" [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"></co-button>\n <co-button class=\"close-button\" [iconData]=\"iconCacheService.getIcon(icons.CrossSkinny)\" (click)=\"handleCancelForm()\"></co-button>\n </div>\n </div>\n\n </ng-template>\n\n ",
|
|
17454
17454
|
encapsulation: i0.ViewEncapsulation.None
|
|
17455
17455
|
},] }
|
|
17456
17456
|
];
|
|
@@ -17459,7 +17459,6 @@
|
|
|
17459
17459
|
{ type: businessObjectFactory.BusinessObjectFactory },
|
|
17460
17460
|
{ type: i0.ChangeDetectorRef },
|
|
17461
17461
|
{ type: SharedConnectorService },
|
|
17462
|
-
{ type: corecomponents_v12.PromptService },
|
|
17463
17462
|
{ type: IconCacheService }
|
|
17464
17463
|
]; };
|
|
17465
17464
|
FormBuilderUserFormComponent.propDecorators = {
|
|
@@ -17471,6 +17470,7 @@
|
|
|
17471
17470
|
key: [{ type: i0.Input }],
|
|
17472
17471
|
readonly: [{ type: i0.Input }],
|
|
17473
17472
|
enableQuestions: [{ type: i0.Input }],
|
|
17473
|
+
objectId: [{ type: i0.Input }],
|
|
17474
17474
|
cancelForm: [{ type: i0.Output }],
|
|
17475
17475
|
saveForm: [{ type: i0.Output }],
|
|
17476
17476
|
definitiveChange: [{ type: i0.Output }],
|