ps-toolkit-ui 1.21.79 → 1.21.83
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/ps-toolkit-ui.umd.js +80 -39
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/enum.class.js +35 -34
- package/esm2015/lib/classes/request.class.js +4 -1
- package/esm2015/lib/components/form/index/form.component.js +2 -2
- package/esm2015/lib/components/form/pre/form.pre.component.js +32 -0
- package/esm2015/lib/ps-toolkit-ui.module.js +4 -2
- package/esm2015/ps-toolkit-ui.js +2 -1
- package/fesm2015/ps-toolkit-ui.js +72 -36
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/enum.class.d.ts +34 -33
- package/lib/components/form/pre/form.pre.component.d.ts +8 -0
- package/package.json +2 -1
- package/ps-toolkit-ui.d.ts +1 -0
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('lodash'), require('jalali-moment'), require('@angular/router'), require('rxjs'), require('jquery-ui-dist/jquery-ui'), require('@angular/forms'), require('@angular/common'), require('@angular/platform-browser'), require('ckeditor4-angular'), require('file-saver'), require('xlsx'), require('highcharts'), require('highcharts/modules/exporting'), require('highcharts/modules/export-data')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('ps-toolkit-ui', ['exports', '@angular/core', 'lodash', 'jalali-moment', '@angular/router', 'rxjs', 'jquery-ui-dist/jquery-ui', '@angular/forms', '@angular/common', '@angular/platform-browser', 'ckeditor4-angular', 'file-saver', 'xlsx', 'highcharts', 'highcharts/modules/exporting', 'highcharts/modules/export-data'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ps-toolkit-ui'] = {}, global.ng.core, global._, global.moment, global.ng.router, global.rxjs, null, global.ng.forms, global.ng.common, global.ng.platformBrowser, global.ckeditor4Angular, global.FileSaver, global.XLSX, global.Highcharts, global.HighchartsExporting, global.HighchartsExportData));
|
|
5
|
-
}(this, (function (exports, core, _, moment, router, rxjs, jqueryUi, forms, common, platformBrowser, ckeditor4Angular, FileSaver, XLSX, Highcharts, HighchartsExporting, HighchartsExportData) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('lodash'), require('jalali-moment'), require('@angular/router'), require('rxjs'), require('jquery-ui-dist/jquery-ui'), require('json-formatter-js'), require('@angular/forms'), require('@angular/common'), require('@angular/platform-browser'), require('ckeditor4-angular'), require('file-saver'), require('xlsx'), require('highcharts'), require('highcharts/modules/exporting'), require('highcharts/modules/export-data')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('ps-toolkit-ui', ['exports', '@angular/core', 'lodash', 'jalali-moment', '@angular/router', 'rxjs', 'jquery-ui-dist/jquery-ui', 'json-formatter-js', '@angular/forms', '@angular/common', '@angular/platform-browser', 'ckeditor4-angular', 'file-saver', 'xlsx', 'highcharts', 'highcharts/modules/exporting', 'highcharts/modules/export-data'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ps-toolkit-ui'] = {}, global.ng.core, global._, global.moment, global.ng.router, global.rxjs, null, global.JSONFormatter, global.ng.forms, global.ng.common, global.ng.platformBrowser, global.ckeditor4Angular, global.FileSaver, global.XLSX, global.Highcharts, global.HighchartsExporting, global.HighchartsExportData));
|
|
5
|
+
}(this, (function (exports, core, _, moment, router, rxjs, jqueryUi, JSONFormatter, forms, common, platformBrowser, ckeditor4Angular, FileSaver, XLSX, Highcharts, HighchartsExporting, HighchartsExportData) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
8
|
|
|
7
9
|
function _interopNamespace(e) {
|
|
8
10
|
if (e && e.__esModule) { return e; } else {
|
|
@@ -26,6 +28,7 @@
|
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
|
|
31
|
+
var JSONFormatter__default = /*#__PURE__*/_interopDefaultLegacy(JSONFormatter);
|
|
29
32
|
var Highcharts__namespace = /*#__PURE__*/_interopNamespace(Highcharts);
|
|
30
33
|
var HighchartsExporting__namespace = /*#__PURE__*/_interopNamespace(HighchartsExporting);
|
|
31
34
|
var HighchartsExportData__namespace = /*#__PURE__*/_interopNamespace(HighchartsExportData);
|
|
@@ -463,39 +466,40 @@
|
|
|
463
466
|
InputType[InputType["Check"] = 21] = "Check";
|
|
464
467
|
InputType[InputType["TextArea"] = 22] = "TextArea";
|
|
465
468
|
InputType[InputType["Label"] = 23] = "Label";
|
|
466
|
-
InputType[InputType["
|
|
467
|
-
InputType[InputType["
|
|
468
|
-
InputType[InputType["
|
|
469
|
-
InputType[InputType["
|
|
470
|
-
InputType[InputType["
|
|
471
|
-
InputType[InputType["
|
|
472
|
-
InputType[InputType["
|
|
473
|
-
InputType[InputType["
|
|
474
|
-
InputType[InputType["
|
|
475
|
-
InputType[InputType["
|
|
476
|
-
InputType[InputType["
|
|
477
|
-
InputType[InputType["
|
|
478
|
-
InputType[InputType["
|
|
479
|
-
InputType[InputType["
|
|
480
|
-
InputType[InputType["
|
|
481
|
-
InputType[InputType["
|
|
482
|
-
InputType[InputType["
|
|
483
|
-
InputType[InputType["
|
|
484
|
-
InputType[InputType["
|
|
485
|
-
InputType[InputType["
|
|
486
|
-
InputType[InputType["
|
|
487
|
-
InputType[InputType["
|
|
488
|
-
InputType[InputType["
|
|
489
|
-
InputType[InputType["
|
|
490
|
-
InputType[InputType["
|
|
491
|
-
InputType[InputType["
|
|
492
|
-
InputType[InputType["
|
|
493
|
-
InputType[InputType["
|
|
494
|
-
InputType[InputType["
|
|
495
|
-
InputType[InputType["
|
|
496
|
-
InputType[InputType["
|
|
497
|
-
InputType[InputType["
|
|
498
|
-
InputType[InputType["
|
|
469
|
+
InputType[InputType["Pre"] = 24] = "Pre";
|
|
470
|
+
InputType[InputType["Button"] = 25] = "Button";
|
|
471
|
+
InputType[InputType["Submit"] = 26] = "Submit";
|
|
472
|
+
InputType[InputType["Icon"] = 27] = "Icon";
|
|
473
|
+
InputType[InputType["File"] = 28] = "File";
|
|
474
|
+
InputType[InputType["Url"] = 29] = "Url";
|
|
475
|
+
InputType[InputType["Price"] = 30] = "Price";
|
|
476
|
+
InputType[InputType["Radio"] = 31] = "Radio";
|
|
477
|
+
InputType[InputType["Tree"] = 32] = "Tree";
|
|
478
|
+
InputType[InputType["TreeRadio"] = 33] = "TreeRadio";
|
|
479
|
+
InputType[InputType["Plaque"] = 34] = "Plaque";
|
|
480
|
+
InputType[InputType["PlaqueM"] = 35] = "PlaqueM";
|
|
481
|
+
InputType[InputType["PlaqueF"] = 36] = "PlaqueF";
|
|
482
|
+
InputType[InputType["PlaqueG"] = 37] = "PlaqueG";
|
|
483
|
+
InputType[InputType["SelectAutoCompletePlaque"] = 38] = "SelectAutoCompletePlaque";
|
|
484
|
+
InputType[InputType["SelectAutoCompletePlaqueM"] = 39] = "SelectAutoCompletePlaqueM";
|
|
485
|
+
InputType[InputType["SelectAutoCompletePlaqueF"] = 40] = "SelectAutoCompletePlaqueF";
|
|
486
|
+
InputType[InputType["SelectAutoCompletePlaqueG"] = 41] = "SelectAutoCompletePlaqueG";
|
|
487
|
+
InputType[InputType["BankCard"] = 42] = "BankCard";
|
|
488
|
+
InputType[InputType["Constant"] = 43] = "Constant";
|
|
489
|
+
InputType[InputType["Hidden"] = 44] = "Hidden";
|
|
490
|
+
InputType[InputType["Table"] = 45] = "Table";
|
|
491
|
+
InputType[InputType["Tag"] = 46] = "Tag";
|
|
492
|
+
InputType[InputType["VehicleSearch"] = 47] = "VehicleSearch";
|
|
493
|
+
InputType[InputType["Vehicle"] = 48] = "Vehicle";
|
|
494
|
+
InputType[InputType["Finger"] = 49] = "Finger";
|
|
495
|
+
InputType[InputType["Color"] = 50] = "Color";
|
|
496
|
+
InputType[InputType["Star"] = 51] = "Star";
|
|
497
|
+
InputType[InputType["Toggle"] = 52] = "Toggle";
|
|
498
|
+
InputType[InputType["BillNumber"] = 53] = "BillNumber";
|
|
499
|
+
InputType[InputType["Ckeditor"] = 54] = "Ckeditor";
|
|
500
|
+
InputType[InputType["Uploader"] = 55] = "Uploader";
|
|
501
|
+
InputType[InputType["Slide"] = 56] = "Slide";
|
|
502
|
+
InputType[InputType["Username"] = 57] = "Username";
|
|
499
503
|
})(exports.InputType || (exports.InputType = {}));
|
|
500
504
|
(function (OperationEnum) {
|
|
501
505
|
OperationEnum[OperationEnum["All"] = -1] = "All";
|
|
@@ -2017,6 +2021,9 @@
|
|
|
2017
2021
|
if (token != null) {
|
|
2018
2022
|
h.AuthorizationCu = tokenCu;
|
|
2019
2023
|
}
|
|
2024
|
+
if (this.environment.apiVersion) {
|
|
2025
|
+
h.ApiVersion = this.environment.apiVersion;
|
|
2026
|
+
}
|
|
2020
2027
|
if (!(data instanceof FormData)) {
|
|
2021
2028
|
data = HelperClass.jsonToFormData(data);
|
|
2022
2029
|
}
|
|
@@ -5203,7 +5210,7 @@
|
|
|
5203
5210
|
FormComponent.decorators = [
|
|
5204
5211
|
{ type: core.Component, args: [{
|
|
5205
5212
|
selector: 'lib-form',
|
|
5206
|
-
template: "<form [style]=\"form.style\" *ngIf=\"form\" [id]=\"form.id + 'Form'\" [className]=\"'form w-100 m-0' + (form.class ? ' ' + form.class : '')\">\r\n <div *ngIf=\"form.displayLabel\" [className]=\"(form.subName ? '' : 'underline ') + 'title'\">{{this.form.l(this.form.name)}}</div>\r\n <div *ngIf=\"form.displayLabel && form.subName\" class=\"sub-title underline\" [innerHTML]=\"this.form.l(this.form.subName)\"></div>\r\n <div *ngIf=\"form.loading\" class=\"loading\">\r\n <div class=\"text\" [innerHTML]=\"form.l('LoadingTable', 'Processing')\"></div>\r\n </div>\r\n <div *ngIf=\"!form.permission\" class=\"loading\">\r\n <div class=\"text\"><i class=\"fas fa-shield-alt icon\"></i>{{ form.l(\"PermissionDenied\") }}</div>\r\n </div>\r\n <ng-content></ng-content>\r\n <div class=\"inputs\">\r\n <span *ngFor=\"let inp of form.inputs; let i = index\">\r\n <lib-form-textbox (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Text || inp.type == type.Password || inp.type == type.Mobile || inp.type == type.Username || inp.type == type.Phone || inp.type == type.Email || inp.type == type.NationalCode || inp.type == type.NationalNum || inp.type == type.NationalCodeNum || inp.type == type.EconomicNum || inp.type == type.Number || inp.type == type.Url || inp.type == type.PostalCode || inp.type == type.Price || inp.type == type.Sheba || inp.type == type.Color || inp.type == type.BillNumber)\" [inp]=\"inp\"></lib-form-textbox>\r\n <lib-form-textarea (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.TextArea\" [inp]=\"inp\"></lib-form-textarea>\r\n <lib-form-checkbox (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Check\" [inp]=\"inp\"></lib-form-checkbox>\r\n <lib-form-select (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Select || inp.type == type.SelectSearch || inp.type == type.SelectSearchRadio || inp.type == type.SelectAutoComplete)\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-select>\r\n <lib-form-date (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Date || inp.type == type.Month || inp.type == type.Year)\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-date>\r\n <lib-form-time (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Time\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-time>\r\n <lib-form-datetime (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.DateTime\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-datetime>\r\n <lib-form-file (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.File\" [inp]=\"inp\"></lib-form-file>\r\n <lib-form-button (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Button || inp.type == type.Submit)\" [inp]=\"inp\"></lib-form-button>\r\n <lib-form-icon (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Icon\" [inp]=\"inp\"></lib-form-icon>\r\n <lib-form-radio (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Radio\" [inp]=\"inp\"></lib-form-radio>\r\n <lib-form-tree (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Tree || inp.type == type.TreeRadio)\" [inp]=\"inp\"></lib-form-tree>\r\n <lib-form-plaque (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Plaque || inp.type == type.PlaqueM || inp.type == type.PlaqueF || inp.type == type.PlaqueG)\" [inp]=\"inp\"></lib-form-plaque>\r\n <lib-form-plaque-select (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.SelectAutoCompletePlaque || inp.type == type.SelectAutoCompletePlaqueM || inp.type == type.SelectAutoCompletePlaqueF || inp.type == type.SelectAutoCompletePlaqueG)\" [inp]=\"inp\"></lib-form-plaque-select>\r\n <lib-form-bank-card (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.BankCard\" [inp]=\"inp\"></lib-form-bank-card>\r\n <lib-form-vehicle-search (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.VehicleSearch\" [inp]=\"inp\"></lib-form-vehicle-search>\r\n <lib-form-vehicle (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Vehicle\" [inp]=\"inp\"></lib-form-vehicle>\r\n <lib-form-finger (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Finger\" [inp]=\"inp\"></lib-form-finger>\r\n <lib-form-star (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Star\" [inp]=\"inp\"></lib-form-star>\r\n <lib-form-toggle (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Toggle\" [inp]=\"inp\"></lib-form-toggle>\r\n <lib-form-table *ngIf=\"inp.visible && inp.type == type.Table\" [inp]=\"inp\"></lib-form-table>\r\n <lib-form-tag (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Tag\" [inp]=\"inp\"></lib-form-tag>\r\n <lib-form-ckeditor (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Ckeditor\" [inp]=\"inp\"></lib-form-ckeditor>\r\n <lib-form-uploader (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Uploader\" [inp]=\"inp\"></lib-form-uploader>\r\n <lib-form-slide (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Slide\" [inp]=\"inp\"></lib-form-slide>\r\n <lib-form-hidden *ngIf=\"inp.type == type.Hidden\" [inp]=\"inp\"></lib-form-hidden>\r\n <lib-form-label *ngIf=\"inp.visible && inp.type == type.Label\" [inp]=\"inp\"></lib-form-label>\r\n </span>\r\n </div>\r\n</form>\r\n",
|
|
5213
|
+
template: "<form [style]=\"form.style\" *ngIf=\"form\" [id]=\"form.id + 'Form'\" [className]=\"'form w-100 m-0' + (form.class ? ' ' + form.class : '')\">\r\n <div *ngIf=\"form.displayLabel\" [className]=\"(form.subName ? '' : 'underline ') + 'title'\">{{this.form.l(this.form.name)}}</div>\r\n <div *ngIf=\"form.displayLabel && form.subName\" class=\"sub-title underline\" [innerHTML]=\"this.form.l(this.form.subName)\"></div>\r\n <div *ngIf=\"form.loading\" class=\"loading\">\r\n <div class=\"text\" [innerHTML]=\"form.l('LoadingTable', 'Processing')\"></div>\r\n </div>\r\n <div *ngIf=\"!form.permission\" class=\"loading\">\r\n <div class=\"text\"><i class=\"fas fa-shield-alt icon\"></i>{{ form.l(\"PermissionDenied\") }}</div>\r\n </div>\r\n <ng-content></ng-content>\r\n <div class=\"inputs\">\r\n <span *ngFor=\"let inp of form.inputs; let i = index\">\r\n <lib-form-textbox (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Text || inp.type == type.Password || inp.type == type.Mobile || inp.type == type.Username || inp.type == type.Phone || inp.type == type.Email || inp.type == type.NationalCode || inp.type == type.NationalNum || inp.type == type.NationalCodeNum || inp.type == type.EconomicNum || inp.type == type.Number || inp.type == type.Url || inp.type == type.PostalCode || inp.type == type.Price || inp.type == type.Sheba || inp.type == type.Color || inp.type == type.BillNumber)\" [inp]=\"inp\"></lib-form-textbox>\r\n <lib-form-textarea (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.TextArea\" [inp]=\"inp\"></lib-form-textarea>\r\n <lib-form-checkbox (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Check\" [inp]=\"inp\"></lib-form-checkbox>\r\n <lib-form-select (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Select || inp.type == type.SelectSearch || inp.type == type.SelectSearchRadio || inp.type == type.SelectAutoComplete)\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-select>\r\n <lib-form-date (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Date || inp.type == type.Month || inp.type == type.Year)\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-date>\r\n <lib-form-time (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Time\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-time>\r\n <lib-form-datetime (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.DateTime\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-datetime>\r\n <lib-form-file (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.File\" [inp]=\"inp\"></lib-form-file>\r\n <lib-form-button (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Button || inp.type == type.Submit)\" [inp]=\"inp\"></lib-form-button>\r\n <lib-form-icon (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Icon\" [inp]=\"inp\"></lib-form-icon>\r\n <lib-form-radio (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Radio\" [inp]=\"inp\"></lib-form-radio>\r\n <lib-form-tree (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Tree || inp.type == type.TreeRadio)\" [inp]=\"inp\"></lib-form-tree>\r\n <lib-form-plaque (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Plaque || inp.type == type.PlaqueM || inp.type == type.PlaqueF || inp.type == type.PlaqueG)\" [inp]=\"inp\"></lib-form-plaque>\r\n <lib-form-plaque-select (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.SelectAutoCompletePlaque || inp.type == type.SelectAutoCompletePlaqueM || inp.type == type.SelectAutoCompletePlaqueF || inp.type == type.SelectAutoCompletePlaqueG)\" [inp]=\"inp\"></lib-form-plaque-select>\r\n <lib-form-bank-card (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.BankCard\" [inp]=\"inp\"></lib-form-bank-card>\r\n <lib-form-vehicle-search (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.VehicleSearch\" [inp]=\"inp\"></lib-form-vehicle-search>\r\n <lib-form-vehicle (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Vehicle\" [inp]=\"inp\"></lib-form-vehicle>\r\n <lib-form-finger (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Finger\" [inp]=\"inp\"></lib-form-finger>\r\n <lib-form-star (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Star\" [inp]=\"inp\"></lib-form-star>\r\n <lib-form-toggle (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Toggle\" [inp]=\"inp\"></lib-form-toggle>\r\n <lib-form-table *ngIf=\"inp.visible && inp.type == type.Table\" [inp]=\"inp\"></lib-form-table>\r\n <lib-form-tag (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Tag\" [inp]=\"inp\"></lib-form-tag>\r\n <lib-form-ckeditor (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Ckeditor\" [inp]=\"inp\"></lib-form-ckeditor>\r\n <lib-form-uploader (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Uploader\" [inp]=\"inp\"></lib-form-uploader>\r\n <lib-form-slide (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Slide\" [inp]=\"inp\"></lib-form-slide>\r\n <lib-form-hidden *ngIf=\"inp.type == type.Hidden\" [inp]=\"inp\"></lib-form-hidden>\r\n <lib-form-label *ngIf=\"inp.visible && inp.type == type.Label\" [inp]=\"inp\"></lib-form-label>\r\n <lib-form-pre *ngIf=\"inp.visible && inp.type == type.Pre\" [inp]=\"inp\"></lib-form-pre>\r\n </span>\r\n </div>\r\n</form>\r\n",
|
|
5207
5214
|
styles: [".form{border-radius:var(--border-radius-base);padding:20px;position:relative}.form>.title{font-size:16px;font-weight:var(--font-bold);height:40px}.form>.sub-title,.form>.title{float:right;line-height:30px;margin-bottom:10px;position:relative;text-align:right;width:100%}.form>.sub-title{color:var(--black-light);font-size:12px;font-weight:var(--font-light);height:30px}.form .loading{background-color:#fff;border-radius:var(--border-radius-base);height:100%;right:0;top:0;z-index:104}.form .loading,.form .loading .text{position:absolute;text-align:center;width:100%}.form .loading .text{font-weight:var(--font-bold);height:35px;line-height:35px;top:calc(50% - 20px)}::ng-deep .form .loading .icon{font-size:20px!important;line-height:30px;margin-left:5px;position:relative;top:5px}.form-buttons,.form-error{float:right;width:100%}.form-error{color:var(--red-light);font-size:11px;height:15px;line-height:8px;margin-top:10px;padding:0 10px;position:relative;text-align:center}.form-error .message{float:left;width:calc(100% - 40px)}.form-error .icon{float:right;height:20px;line-height:6px;right:0;top:0;width:40px}.form .inputs{margin:0 -15px}"]
|
|
5208
5215
|
},] }
|
|
5209
5216
|
];
|
|
@@ -5245,6 +5252,38 @@
|
|
|
5245
5252
|
inp: [{ type: core.Input }]
|
|
5246
5253
|
};
|
|
5247
5254
|
|
|
5255
|
+
var FormPreComponent = /** @class */ (function () {
|
|
5256
|
+
function FormPreComponent() {
|
|
5257
|
+
}
|
|
5258
|
+
FormPreComponent.prototype.ngOnInit = function () {
|
|
5259
|
+
var _this = this;
|
|
5260
|
+
this.inp.setValue = function (v) {
|
|
5261
|
+
var formatter = new JSONFormatter__default['default'](typeof v === 'string' ? JSON.parse(v) : v, 2, {
|
|
5262
|
+
theme: 'dark'
|
|
5263
|
+
});
|
|
5264
|
+
_this.jsonContainer.nativeElement.appendChild(formatter.render());
|
|
5265
|
+
};
|
|
5266
|
+
this.inp.isValid = function () {
|
|
5267
|
+
return true;
|
|
5268
|
+
};
|
|
5269
|
+
this.inp.clear = function () {
|
|
5270
|
+
};
|
|
5271
|
+
};
|
|
5272
|
+
return FormPreComponent;
|
|
5273
|
+
}());
|
|
5274
|
+
FormPreComponent.decorators = [
|
|
5275
|
+
{ type: core.Component, args: [{
|
|
5276
|
+
selector: 'lib-form-pre',
|
|
5277
|
+
template: "<div #jsonContainer [id]=\"inp.id + 'PreInput'\" [className]=\"'form-input pre w-100' + ' ' + inp.class\">\r\n</div>\r\n",
|
|
5278
|
+
styles: [".form-input.pre{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;font-size:12px;line-height:30px;min-height:30px!important;padding:0 15px;position:relative;text-align:center}"]
|
|
5279
|
+
},] }
|
|
5280
|
+
];
|
|
5281
|
+
FormPreComponent.ctorParameters = function () { return []; };
|
|
5282
|
+
FormPreComponent.propDecorators = {
|
|
5283
|
+
jsonContainer: [{ type: core.ViewChild, args: ['jsonContainer', { static: true },] }],
|
|
5284
|
+
inp: [{ type: core.Input }]
|
|
5285
|
+
};
|
|
5286
|
+
|
|
5248
5287
|
var FormPlaqueSelectComponent = /** @class */ (function () {
|
|
5249
5288
|
function FormPlaqueSelectComponent() {
|
|
5250
5289
|
this.changeIndex = new core.EventEmitter();
|
|
@@ -9092,7 +9131,7 @@
|
|
|
9092
9131
|
FormTimeComponent, NotificationComponent, FormFingerComponent, FormVehicleSearchComponent, FormCkeditorComponent, FormUploaderComponent,
|
|
9093
9132
|
LayoutComponent, LoadingComponent, NotfoundComponent, FormVehicleComponent, FormHiddenComponent, CalendarComponent, FormToggleComponent,
|
|
9094
9133
|
ClockComponent, ChartComponent, FormTagComponent, ErrorComponent, LoginComponent, FormStarComponent, FormSlideComponent,
|
|
9095
|
-
SafeStylePipe, SafeHtmlPipe,
|
|
9134
|
+
SafeStylePipe, SafeHtmlPipe, FormPreComponent
|
|
9096
9135
|
],
|
|
9097
9136
|
imports: [
|
|
9098
9137
|
common.CommonModule,
|
|
@@ -9110,6 +9149,7 @@
|
|
|
9110
9149
|
FormTimeComponent, NotificationComponent, FormFingerComponent, FormVehicleSearchComponent, FormCkeditorComponent, FormUploaderComponent,
|
|
9111
9150
|
LayoutComponent, LoadingComponent, NotfoundComponent, FormVehicleComponent, FormHiddenComponent, CalendarComponent, FormToggleComponent,
|
|
9112
9151
|
ClockComponent, ChartComponent, FormTagComponent, ErrorComponent, LoginComponent, FormStarComponent, FormSlideComponent,
|
|
9152
|
+
FormPreComponent
|
|
9113
9153
|
]
|
|
9114
9154
|
},] }
|
|
9115
9155
|
];
|
|
@@ -10316,6 +10356,7 @@
|
|
|
10316
10356
|
exports.ɵn = LoginComponent;
|
|
10317
10357
|
exports.ɵo = SafeStylePipe;
|
|
10318
10358
|
exports.ɵp = SafeHtmlPipe;
|
|
10359
|
+
exports.ɵq = FormPreComponent;
|
|
10319
10360
|
|
|
10320
10361
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
10321
10362
|
|