ps-toolkit-ui 1.20.60 → 1.20.62

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.
@@ -398,11 +398,254 @@
398
398
  { type: PsToolkitUiConfigService }
399
399
  ]; };
400
400
 
401
+ // @dynamic
402
+ var EnumUtils = /** @class */ (function () {
403
+ function EnumUtils() {
404
+ }
405
+ EnumUtils.getValues = function (enumObj) {
406
+ return EnumUtils.getKeys(enumObj).map(function (value) { return enumObj[value]; });
407
+ };
408
+ EnumUtils.getKeyByValue = function (enumObj, v) {
409
+ return this.getKeys(enumObj).find(function (key) { return enumObj[key] === v; });
410
+ };
411
+ EnumUtils.getKeys = function (enumObj) {
412
+ return Object.keys(enumObj).filter(function (key) { return typeof enumObj[key] === 'number'; });
413
+ };
414
+ EnumUtils.getKeysAndValues = function (enumObj) {
415
+ return this.getKeys(enumObj).map(function (key) {
416
+ return {
417
+ key: key,
418
+ value: enumObj[key]
419
+ };
420
+ });
421
+ };
422
+ return EnumUtils;
423
+ }());
424
+ (function (InputError) {
425
+ InputError["Required"] = "Required";
426
+ InputError["Invalid"] = "Invalid";
427
+ InputError["Length"] = "Length";
428
+ InputError["MinLength"] = "MinLength";
429
+ InputError["MaxLength"] = "MaxLength";
430
+ InputError["MinAmount"] = "MinAmount";
431
+ InputError["MaxAmount"] = "MaxAmount";
432
+ InputError["Expired"] = "Expired";
433
+ InputError["Error"] = "Error";
434
+ InputError["NotMatch"] = "NotMatch";
435
+ InputError["NotAllowed"] = "NotAllowed";
436
+ InputError["MaxContent"] = "MaxContent";
437
+ InputError["Exist"] = "Exist";
438
+ InputError["NotExist"] = "NotExist";
439
+ InputError["Wrong"] = "Wrong";
440
+ InputError["Upload"] = "Upload";
441
+ })(exports.InputError || (exports.InputError = {}));
442
+ (function (InputType) {
443
+ InputType[InputType["Text"] = 0] = "Text";
444
+ InputType[InputType["Password"] = 1] = "Password";
445
+ InputType[InputType["Mobile"] = 2] = "Mobile";
446
+ InputType[InputType["Phone"] = 3] = "Phone";
447
+ InputType[InputType["Email"] = 4] = "Email";
448
+ InputType[InputType["NationalCode"] = 5] = "NationalCode";
449
+ InputType[InputType["NationalNum"] = 6] = "NationalNum";
450
+ InputType[InputType["NationalCodeNum"] = 7] = "NationalCodeNum";
451
+ InputType[InputType["EconomicNum"] = 8] = "EconomicNum";
452
+ InputType[InputType["PostalCode"] = 9] = "PostalCode";
453
+ InputType[InputType["Sheba"] = 10] = "Sheba";
454
+ InputType[InputType["Number"] = 11] = "Number";
455
+ InputType[InputType["Select"] = 12] = "Select";
456
+ InputType[InputType["SelectSearch"] = 13] = "SelectSearch";
457
+ InputType[InputType["SelectAutoComplete"] = 14] = "SelectAutoComplete";
458
+ InputType[InputType["Date"] = 15] = "Date";
459
+ InputType[InputType["Month"] = 16] = "Month";
460
+ InputType[InputType["Year"] = 17] = "Year";
461
+ InputType[InputType["Time"] = 18] = "Time";
462
+ InputType[InputType["DateTime"] = 19] = "DateTime";
463
+ InputType[InputType["Check"] = 20] = "Check";
464
+ InputType[InputType["TextArea"] = 21] = "TextArea";
465
+ InputType[InputType["Label"] = 22] = "Label";
466
+ InputType[InputType["Button"] = 23] = "Button";
467
+ InputType[InputType["Submit"] = 24] = "Submit";
468
+ InputType[InputType["Icon"] = 25] = "Icon";
469
+ InputType[InputType["File"] = 26] = "File";
470
+ InputType[InputType["Url"] = 27] = "Url";
471
+ InputType[InputType["Price"] = 28] = "Price";
472
+ InputType[InputType["Radio"] = 29] = "Radio";
473
+ InputType[InputType["Tree"] = 30] = "Tree";
474
+ InputType[InputType["TreeRadio"] = 31] = "TreeRadio";
475
+ InputType[InputType["Plaque"] = 32] = "Plaque";
476
+ InputType[InputType["PlaqueM"] = 33] = "PlaqueM";
477
+ InputType[InputType["PlaqueF"] = 34] = "PlaqueF";
478
+ InputType[InputType["PlaqueG"] = 35] = "PlaqueG";
479
+ InputType[InputType["SelectAutoCompletePlaque"] = 36] = "SelectAutoCompletePlaque";
480
+ InputType[InputType["SelectAutoCompletePlaqueM"] = 37] = "SelectAutoCompletePlaqueM";
481
+ InputType[InputType["SelectAutoCompletePlaqueF"] = 38] = "SelectAutoCompletePlaqueF";
482
+ InputType[InputType["SelectAutoCompletePlaqueG"] = 39] = "SelectAutoCompletePlaqueG";
483
+ InputType[InputType["BankCard"] = 40] = "BankCard";
484
+ InputType[InputType["Constant"] = 41] = "Constant";
485
+ InputType[InputType["Hidden"] = 42] = "Hidden";
486
+ InputType[InputType["Table"] = 43] = "Table";
487
+ InputType[InputType["Tag"] = 44] = "Tag";
488
+ InputType[InputType["VehicleSearch"] = 45] = "VehicleSearch";
489
+ InputType[InputType["Vehicle"] = 46] = "Vehicle";
490
+ InputType[InputType["Finger"] = 47] = "Finger";
491
+ InputType[InputType["Color"] = 48] = "Color";
492
+ InputType[InputType["Star"] = 49] = "Star";
493
+ InputType[InputType["Toggle"] = 50] = "Toggle";
494
+ InputType[InputType["BillNumber"] = 51] = "BillNumber";
495
+ InputType[InputType["Ckeditor"] = 52] = "Ckeditor";
496
+ InputType[InputType["Uploader"] = 53] = "Uploader";
497
+ InputType[InputType["Slide"] = 54] = "Slide";
498
+ InputType[InputType["Username"] = 55] = "Username";
499
+ })(exports.InputType || (exports.InputType = {}));
500
+ (function (OperationEnum) {
501
+ OperationEnum[OperationEnum["All"] = -1] = "All";
502
+ OperationEnum[OperationEnum["Insert"] = 1] = "Insert";
503
+ OperationEnum[OperationEnum["Update"] = 2] = "Update";
504
+ OperationEnum[OperationEnum["Delete"] = 3] = "Delete";
505
+ })(exports.OperationEnum || (exports.OperationEnum = {}));
506
+ (function (Method) {
507
+ Method[Method["Get"] = 0] = "Get";
508
+ Method[Method["Post"] = 1] = "Post";
509
+ Method[Method["Delete"] = 2] = "Delete";
510
+ Method[Method["Put"] = 3] = "Put";
511
+ Method[Method["Options"] = 4] = "Options";
512
+ Method[Method["Patch"] = 5] = "Patch";
513
+ })(exports.Method || (exports.Method = {}));
514
+ (function (TableCollType) {
515
+ TableCollType[TableCollType["Text"] = 0] = "Text";
516
+ TableCollType[TableCollType["Date"] = 1] = "Date";
517
+ TableCollType[TableCollType["Time"] = 2] = "Time";
518
+ TableCollType[TableCollType["DateTime"] = 3] = "DateTime";
519
+ TableCollType[TableCollType["DateDif"] = 4] = "DateDif";
520
+ TableCollType[TableCollType["DateRemain"] = 5] = "DateRemain";
521
+ TableCollType[TableCollType["Url"] = 6] = "Url";
522
+ TableCollType[TableCollType["Image"] = 7] = "Image";
523
+ TableCollType[TableCollType["Function"] = 8] = "Function";
524
+ TableCollType[TableCollType["Price"] = 9] = "Price";
525
+ TableCollType[TableCollType["Plaque"] = 10] = "Plaque";
526
+ TableCollType[TableCollType["PlaqueText"] = 11] = "PlaqueText";
527
+ TableCollType[TableCollType["FileSize"] = 12] = "FileSize";
528
+ TableCollType[TableCollType["Bool"] = 13] = "Bool";
529
+ TableCollType[TableCollType["Options"] = 14] = "Options";
530
+ TableCollType[TableCollType["Color"] = 15] = "Color";
531
+ TableCollType[TableCollType["Number"] = 16] = "Number";
532
+ TableCollType[TableCollType["Files"] = 17] = "Files";
533
+ TableCollType[TableCollType["Month"] = 18] = "Month";
534
+ TableCollType[TableCollType["Year"] = 19] = "Year";
535
+ })(exports.TableCollType || (exports.TableCollType = {}));
536
+ (function (TableExportType) {
537
+ TableExportType["List"] = "list";
538
+ TableExportType["Print"] = "print";
539
+ TableExportType["Excel"] = "excel";
540
+ TableExportType["Pdf"] = "pdf";
541
+ })(exports.TableExportType || (exports.TableExportType = {}));
542
+ (function (UserType) {
543
+ UserType[UserType["All"] = 0] = "All";
544
+ UserType[UserType["Admin"] = 1] = "Admin";
545
+ UserType[UserType["User"] = 2] = "User";
546
+ })(exports.UserType || (exports.UserType = {}));
547
+ (function (StatusEnum) {
548
+ StatusEnum[StatusEnum["All"] = -1] = "All";
549
+ StatusEnum[StatusEnum["Active"] = 0] = "Active";
550
+ StatusEnum[StatusEnum["DeActive"] = 1] = "DeActive";
551
+ StatusEnum[StatusEnum["Delete"] = 2] = "Delete";
552
+ StatusEnum[StatusEnum["Report"] = 3] = "Report";
553
+ })(exports.StatusEnum || (exports.StatusEnum = {}));
554
+ (function (PaymentStatusEnum) {
555
+ PaymentStatusEnum[PaymentStatusEnum["Returned"] = -1] = "Returned";
556
+ PaymentStatusEnum[PaymentStatusEnum["All"] = 0] = "All";
557
+ PaymentStatusEnum[PaymentStatusEnum["Success"] = 100] = "Success";
558
+ PaymentStatusEnum[PaymentStatusEnum["NOK"] = 102] = "NOK";
559
+ PaymentStatusEnum[PaymentStatusEnum["Request"] = 103] = "Request";
560
+ PaymentStatusEnum[PaymentStatusEnum["Notfound"] = 104] = "Notfound";
561
+ PaymentStatusEnum[PaymentStatusEnum["NotRequest"] = 105] = "NotRequest";
562
+ PaymentStatusEnum[PaymentStatusEnum["NotfoundPackage"] = 106] = "NotfoundPackage";
563
+ })(exports.PaymentStatusEnum || (exports.PaymentStatusEnum = {}));
564
+ (function (ResultStatusEnum) {
565
+ ResultStatusEnum[ResultStatusEnum["Failed"] = 0] = "Failed";
566
+ ResultStatusEnum[ResultStatusEnum["Success"] = 1] = "Success";
567
+ ResultStatusEnum[ResultStatusEnum["Unauthorized"] = 2] = "Unauthorized";
568
+ ResultStatusEnum[ResultStatusEnum["NotPermission"] = 3] = "NotPermission";
569
+ ResultStatusEnum[ResultStatusEnum["NotAccess"] = 4] = "NotAccess";
570
+ ResultStatusEnum[ResultStatusEnum["NotRegistered"] = 5] = "NotRegistered";
571
+ ResultStatusEnum[ResultStatusEnum["ExpiredRegistered"] = 6] = "ExpiredRegistered";
572
+ ResultStatusEnum[ResultStatusEnum["InvalidIp"] = 7] = "InvalidIp";
573
+ ResultStatusEnum[ResultStatusEnum["NoCredit"] = 8] = "NoCredit";
574
+ })(exports.ResultStatusEnum || (exports.ResultStatusEnum = {}));
575
+ (function (PermissionTypeEnum) {
576
+ PermissionTypeEnum[PermissionTypeEnum["Form"] = -1] = "Form";
577
+ PermissionTypeEnum[PermissionTypeEnum["Item"] = 0] = "Item";
578
+ PermissionTypeEnum[PermissionTypeEnum["Access"] = 1] = "Access";
579
+ PermissionTypeEnum[PermissionTypeEnum["Option"] = 2] = "Option";
580
+ })(exports.PermissionTypeEnum || (exports.PermissionTypeEnum = {}));
581
+ (function (PermissionAccessTypeEnum) {
582
+ PermissionAccessTypeEnum[PermissionAccessTypeEnum["List"] = 1] = "List";
583
+ PermissionAccessTypeEnum[PermissionAccessTypeEnum["Insert"] = 2] = "Insert";
584
+ PermissionAccessTypeEnum[PermissionAccessTypeEnum["Update"] = 3] = "Update";
585
+ PermissionAccessTypeEnum[PermissionAccessTypeEnum["Delete"] = 4] = "Delete";
586
+ PermissionAccessTypeEnum[PermissionAccessTypeEnum["Report"] = 5] = "Report";
587
+ })(exports.PermissionAccessTypeEnum || (exports.PermissionAccessTypeEnum = {}));
588
+ (function (PermissionInputActionEnum) {
589
+ PermissionInputActionEnum[PermissionInputActionEnum["None"] = 0] = "None";
590
+ PermissionInputActionEnum[PermissionInputActionEnum["OnClick"] = 1] = "OnClick";
591
+ PermissionInputActionEnum[PermissionInputActionEnum["Link"] = 2] = "Link";
592
+ PermissionInputActionEnum[PermissionInputActionEnum["LinkNewTab"] = 3] = "LinkNewTab";
593
+ PermissionInputActionEnum[PermissionInputActionEnum["File"] = 4] = "File";
594
+ PermissionInputActionEnum[PermissionInputActionEnum["Modal"] = 5] = "Modal";
595
+ PermissionInputActionEnum[PermissionInputActionEnum["Confirm"] = 6] = "Confirm";
596
+ PermissionInputActionEnum[PermissionInputActionEnum["Input"] = 7] = "Input";
597
+ })(exports.PermissionInputActionEnum || (exports.PermissionInputActionEnum = {}));
598
+ (function (PermissionInputTypeEnum) {
599
+ PermissionInputTypeEnum[PermissionInputTypeEnum["Icon"] = 0] = "Icon";
600
+ PermissionInputTypeEnum[PermissionInputTypeEnum["Button"] = 1] = "Button";
601
+ })(exports.PermissionInputTypeEnum || (exports.PermissionInputTypeEnum = {}));
602
+ (function (VehicleType) {
603
+ VehicleType[VehicleType["Driver"] = -2] = "Driver";
604
+ VehicleType[VehicleType["Fingerprint"] = -1] = "Fingerprint";
605
+ VehicleType[VehicleType["Car"] = 1] = "Car";
606
+ VehicleType[VehicleType["Motorcycle"] = 2] = "Motorcycle";
607
+ VehicleType[VehicleType["Airplane"] = 3] = "Airplane";
608
+ VehicleType[VehicleType["Train"] = 4] = "Train";
609
+ VehicleType[VehicleType["Ship"] = 5] = "Ship";
610
+ VehicleType[VehicleType["CarF"] = 6] = "CarF";
611
+ VehicleType[VehicleType["CarG"] = 7] = "CarG";
612
+ })(exports.VehicleType || (exports.VehicleType = {}));
613
+ (function (TableOptionType) {
614
+ TableOptionType[TableOptionType["Hidden"] = 1] = "Hidden";
615
+ TableOptionType[TableOptionType["Show"] = 2] = "Show";
616
+ TableOptionType[TableOptionType["Group"] = 3] = "Group";
617
+ })(exports.TableOptionType || (exports.TableOptionType = {}));
618
+ (function (TableRowStatus) {
619
+ TableRowStatus[TableRowStatus["Unread"] = 1] = "Unread";
620
+ })(exports.TableRowStatus || (exports.TableRowStatus = {}));
621
+ (function (FileIcons) {
622
+ FileIcons["jpeg"] = "fad fa-file-image";
623
+ FileIcons["jpg"] = "fad fa-file-image";
624
+ FileIcons["png"] = "fad fa-file-image";
625
+ FileIcons["doc"] = "fad fa-file-word";
626
+ FileIcons["docx"] = "fad fa-file-word";
627
+ FileIcons["xls"] = "fad fa-file-excel";
628
+ FileIcons["xlsx"] = "fad fa-file-excel";
629
+ FileIcons["csv"] = "fad fa-file-csv";
630
+ FileIcons["ppt"] = "fad fa-file-powerpoint";
631
+ FileIcons["pptx"] = "fad fa-file-powerpoint";
632
+ FileIcons["txt"] = "fad fa-file-lines";
633
+ FileIcons["pdf"] = "fad fa-file-pdf";
634
+ FileIcons["file"] = "fad fa-file";
635
+ FileIcons["zip"] = "fad fa-file-zipper";
636
+ FileIcons["rar"] = "fad fa-file-zipper";
637
+ })(exports.FileIcons || (exports.FileIcons = {}));
638
+
401
639
  var HeaderComponent = /** @class */ (function () {
402
640
  function HeaderComponent(config) {
403
641
  this.config = config;
404
642
  this.header = null;
405
643
  }
644
+ Object.defineProperty(HeaderComponent.prototype, "type", {
645
+ get: function () { return exports.InputType; },
646
+ enumerable: false,
647
+ configurable: true
648
+ });
406
649
  HeaderComponent.prototype.showUserDropDown = function (e) {
407
650
  $__namespace(e.target).closest('#Header').find('.user-drop-down').slideToggle(100);
408
651
  };
@@ -411,7 +654,7 @@
411
654
  HeaderComponent.decorators = [
412
655
  { type: core.Component, args: [{
413
656
  selector: 'lib-header',
414
- template: "<div id=\"Header\" class=\"underline\">\r\n <div class=\"content\"><ng-content></ng-content></div>\r\n <div class=\"user-con\">\r\n <i (click)=\"showUserDropDown($event)\" class=\"fad fa-user user\"></i>\r\n <div class=\"user-drop-down\">\r\n <div class=\"username underline\" *ngIf=\"header.username != null\">{{header.username}}</div>\r\n <div class=\"info\" *ngIf=\"header.info != null\" [innerHTML]=\"header.info\"></div>\r\n <lib-form-button *ngFor=\"let btn of header.buttons\" [inp]=\"btn\"></lib-form-button>\r\n </div>\r\n </div>\r\n</div>\r\n",
657
+ template: "<div id=\"Header\" class=\"underline\">\r\n <div class=\"content\"><ng-content></ng-content></div>\r\n <div class=\"user-con\">\r\n <i (click)=\"showUserDropDown($event)\" class=\"fad fa-user user\"></i>\r\n <div class=\"user-drop-down\">\r\n <div class=\"username underline\" *ngIf=\"header.username != null\">{{header.username}}</div>\r\n <div class=\"info\" *ngIf=\"header.info != null\" [innerHTML]=\"header.info\"></div>\r\n <lib-form-button *ngFor=\"let btn of header.buttons\" [inp]=\"btn\"></lib-form-button>\r\n\r\n <span *ngFor=\"let btn of header.buttons\">\r\n <lib-form-button [inp]=\"btn\" *ngIf=\"btn.type == type.Button\"></lib-form-button>\r\n <lib-form-icon [inp]=\"btn\" *ngIf=\"btn.type == type.Icon\"></lib-form-icon>\r\n </span>\r\n </div>\r\n </div>\r\n</div>\r\n",
415
658
  styles: ["#Header{background-color:#fff;float:right;height:50px;position:relative;width:100%;z-index:110}#Header .content{float:right;height:100%;margin-right:50px;text-align:center;width:calc(100% - 150px)}#Header .user-con{align-items:center;display:flex;float:right;height:100%;justify-content:center;position:relative;width:100px}#Header .user-con .user{border-radius:50%;color:var(--primary);cursor:pointer;float:right;font-size:18px;height:30px;line-height:30px;text-align:center;width:30px}#Header .user-con .user:hover{color:var(--primary-dark)}#Header .user-con .user-drop-down{background-color:#fff;border-radius:var(--border-radius-base);box-shadow:var(--box-shadow);display:none;left:20px;overflow:hidden;position:absolute;top:55px;width:150px}#Header .user-con .user-drop-down .username{float:right;font-weight:700;line-height:35px;position:relative;text-align:center;width:100%}#Header .user-con .user-drop-down .info{float:right;width:100%}::ng-deep #Header .user-drop-down .form-input-con.button .control{border-radius:0}@media (max-width:399.98px){#Header .content{font-size:12px;width:calc(100% - 100px)}#Header .user-con{width:50px}}@media (min-width:400px) and (max-width:499.98px){#Header .content{font-size:12px;width:calc(100% - 100px)}#Header .user-con{width:50px}}"]
416
659
  },] }
417
660
  ];
@@ -886,244 +1129,6 @@
886
1129
  __disposeResources: __disposeResources,
887
1130
  };
888
1131
 
889
- // @dynamic
890
- var EnumUtils = /** @class */ (function () {
891
- function EnumUtils() {
892
- }
893
- EnumUtils.getValues = function (enumObj) {
894
- return EnumUtils.getKeys(enumObj).map(function (value) { return enumObj[value]; });
895
- };
896
- EnumUtils.getKeyByValue = function (enumObj, v) {
897
- return this.getKeys(enumObj).find(function (key) { return enumObj[key] === v; });
898
- };
899
- EnumUtils.getKeys = function (enumObj) {
900
- return Object.keys(enumObj).filter(function (key) { return typeof enumObj[key] === 'number'; });
901
- };
902
- EnumUtils.getKeysAndValues = function (enumObj) {
903
- return this.getKeys(enumObj).map(function (key) {
904
- return {
905
- key: key,
906
- value: enumObj[key]
907
- };
908
- });
909
- };
910
- return EnumUtils;
911
- }());
912
- (function (InputError) {
913
- InputError["Required"] = "Required";
914
- InputError["Invalid"] = "Invalid";
915
- InputError["Length"] = "Length";
916
- InputError["MinLength"] = "MinLength";
917
- InputError["MaxLength"] = "MaxLength";
918
- InputError["MinAmount"] = "MinAmount";
919
- InputError["MaxAmount"] = "MaxAmount";
920
- InputError["Expired"] = "Expired";
921
- InputError["Error"] = "Error";
922
- InputError["NotMatch"] = "NotMatch";
923
- InputError["NotAllowed"] = "NotAllowed";
924
- InputError["MaxContent"] = "MaxContent";
925
- InputError["Exist"] = "Exist";
926
- InputError["NotExist"] = "NotExist";
927
- InputError["Wrong"] = "Wrong";
928
- InputError["Upload"] = "Upload";
929
- })(exports.InputError || (exports.InputError = {}));
930
- (function (InputType) {
931
- InputType[InputType["Text"] = 0] = "Text";
932
- InputType[InputType["Password"] = 1] = "Password";
933
- InputType[InputType["Mobile"] = 2] = "Mobile";
934
- InputType[InputType["Phone"] = 3] = "Phone";
935
- InputType[InputType["Email"] = 4] = "Email";
936
- InputType[InputType["NationalCode"] = 5] = "NationalCode";
937
- InputType[InputType["NationalNum"] = 6] = "NationalNum";
938
- InputType[InputType["NationalCodeNum"] = 7] = "NationalCodeNum";
939
- InputType[InputType["EconomicNum"] = 8] = "EconomicNum";
940
- InputType[InputType["PostalCode"] = 9] = "PostalCode";
941
- InputType[InputType["Sheba"] = 10] = "Sheba";
942
- InputType[InputType["Number"] = 11] = "Number";
943
- InputType[InputType["Select"] = 12] = "Select";
944
- InputType[InputType["SelectSearch"] = 13] = "SelectSearch";
945
- InputType[InputType["SelectAutoComplete"] = 14] = "SelectAutoComplete";
946
- InputType[InputType["Date"] = 15] = "Date";
947
- InputType[InputType["Month"] = 16] = "Month";
948
- InputType[InputType["Year"] = 17] = "Year";
949
- InputType[InputType["Time"] = 18] = "Time";
950
- InputType[InputType["DateTime"] = 19] = "DateTime";
951
- InputType[InputType["Check"] = 20] = "Check";
952
- InputType[InputType["TextArea"] = 21] = "TextArea";
953
- InputType[InputType["Label"] = 22] = "Label";
954
- InputType[InputType["Button"] = 23] = "Button";
955
- InputType[InputType["Submit"] = 24] = "Submit";
956
- InputType[InputType["Icon"] = 25] = "Icon";
957
- InputType[InputType["File"] = 26] = "File";
958
- InputType[InputType["Url"] = 27] = "Url";
959
- InputType[InputType["Price"] = 28] = "Price";
960
- InputType[InputType["Radio"] = 29] = "Radio";
961
- InputType[InputType["Tree"] = 30] = "Tree";
962
- InputType[InputType["TreeRadio"] = 31] = "TreeRadio";
963
- InputType[InputType["Plaque"] = 32] = "Plaque";
964
- InputType[InputType["PlaqueM"] = 33] = "PlaqueM";
965
- InputType[InputType["PlaqueF"] = 34] = "PlaqueF";
966
- InputType[InputType["PlaqueG"] = 35] = "PlaqueG";
967
- InputType[InputType["SelectAutoCompletePlaque"] = 36] = "SelectAutoCompletePlaque";
968
- InputType[InputType["SelectAutoCompletePlaqueM"] = 37] = "SelectAutoCompletePlaqueM";
969
- InputType[InputType["SelectAutoCompletePlaqueF"] = 38] = "SelectAutoCompletePlaqueF";
970
- InputType[InputType["SelectAutoCompletePlaqueG"] = 39] = "SelectAutoCompletePlaqueG";
971
- InputType[InputType["BankCard"] = 40] = "BankCard";
972
- InputType[InputType["Constant"] = 41] = "Constant";
973
- InputType[InputType["Hidden"] = 42] = "Hidden";
974
- InputType[InputType["Table"] = 43] = "Table";
975
- InputType[InputType["Tag"] = 44] = "Tag";
976
- InputType[InputType["VehicleSearch"] = 45] = "VehicleSearch";
977
- InputType[InputType["Vehicle"] = 46] = "Vehicle";
978
- InputType[InputType["Finger"] = 47] = "Finger";
979
- InputType[InputType["Color"] = 48] = "Color";
980
- InputType[InputType["Star"] = 49] = "Star";
981
- InputType[InputType["Toggle"] = 50] = "Toggle";
982
- InputType[InputType["BillNumber"] = 51] = "BillNumber";
983
- InputType[InputType["Ckeditor"] = 52] = "Ckeditor";
984
- InputType[InputType["Uploader"] = 53] = "Uploader";
985
- InputType[InputType["Slide"] = 54] = "Slide";
986
- InputType[InputType["Username"] = 55] = "Username";
987
- })(exports.InputType || (exports.InputType = {}));
988
- (function (OperationEnum) {
989
- OperationEnum[OperationEnum["All"] = -1] = "All";
990
- OperationEnum[OperationEnum["Insert"] = 1] = "Insert";
991
- OperationEnum[OperationEnum["Update"] = 2] = "Update";
992
- OperationEnum[OperationEnum["Delete"] = 3] = "Delete";
993
- })(exports.OperationEnum || (exports.OperationEnum = {}));
994
- (function (Method) {
995
- Method[Method["Get"] = 0] = "Get";
996
- Method[Method["Post"] = 1] = "Post";
997
- Method[Method["Delete"] = 2] = "Delete";
998
- Method[Method["Put"] = 3] = "Put";
999
- Method[Method["Options"] = 4] = "Options";
1000
- Method[Method["Patch"] = 5] = "Patch";
1001
- })(exports.Method || (exports.Method = {}));
1002
- (function (TableCollType) {
1003
- TableCollType[TableCollType["Text"] = 0] = "Text";
1004
- TableCollType[TableCollType["Date"] = 1] = "Date";
1005
- TableCollType[TableCollType["Time"] = 2] = "Time";
1006
- TableCollType[TableCollType["DateTime"] = 3] = "DateTime";
1007
- TableCollType[TableCollType["DateDif"] = 4] = "DateDif";
1008
- TableCollType[TableCollType["DateRemain"] = 5] = "DateRemain";
1009
- TableCollType[TableCollType["Url"] = 6] = "Url";
1010
- TableCollType[TableCollType["Image"] = 7] = "Image";
1011
- TableCollType[TableCollType["Function"] = 8] = "Function";
1012
- TableCollType[TableCollType["Price"] = 9] = "Price";
1013
- TableCollType[TableCollType["Plaque"] = 10] = "Plaque";
1014
- TableCollType[TableCollType["PlaqueText"] = 11] = "PlaqueText";
1015
- TableCollType[TableCollType["FileSize"] = 12] = "FileSize";
1016
- TableCollType[TableCollType["Bool"] = 13] = "Bool";
1017
- TableCollType[TableCollType["Options"] = 14] = "Options";
1018
- TableCollType[TableCollType["Color"] = 15] = "Color";
1019
- TableCollType[TableCollType["Number"] = 16] = "Number";
1020
- TableCollType[TableCollType["Files"] = 17] = "Files";
1021
- TableCollType[TableCollType["Month"] = 18] = "Month";
1022
- TableCollType[TableCollType["Year"] = 19] = "Year";
1023
- })(exports.TableCollType || (exports.TableCollType = {}));
1024
- (function (TableExportType) {
1025
- TableExportType["List"] = "list";
1026
- TableExportType["Print"] = "print";
1027
- TableExportType["Excel"] = "excel";
1028
- TableExportType["Pdf"] = "pdf";
1029
- })(exports.TableExportType || (exports.TableExportType = {}));
1030
- (function (UserType) {
1031
- UserType[UserType["All"] = 0] = "All";
1032
- UserType[UserType["Admin"] = 1] = "Admin";
1033
- UserType[UserType["User"] = 2] = "User";
1034
- })(exports.UserType || (exports.UserType = {}));
1035
- (function (StatusEnum) {
1036
- StatusEnum[StatusEnum["All"] = -1] = "All";
1037
- StatusEnum[StatusEnum["Active"] = 0] = "Active";
1038
- StatusEnum[StatusEnum["DeActive"] = 1] = "DeActive";
1039
- StatusEnum[StatusEnum["Delete"] = 2] = "Delete";
1040
- StatusEnum[StatusEnum["Report"] = 3] = "Report";
1041
- })(exports.StatusEnum || (exports.StatusEnum = {}));
1042
- (function (PaymentStatusEnum) {
1043
- PaymentStatusEnum[PaymentStatusEnum["Returned"] = -1] = "Returned";
1044
- PaymentStatusEnum[PaymentStatusEnum["All"] = 0] = "All";
1045
- PaymentStatusEnum[PaymentStatusEnum["Success"] = 100] = "Success";
1046
- PaymentStatusEnum[PaymentStatusEnum["NOK"] = 102] = "NOK";
1047
- PaymentStatusEnum[PaymentStatusEnum["Request"] = 103] = "Request";
1048
- PaymentStatusEnum[PaymentStatusEnum["Notfound"] = 104] = "Notfound";
1049
- PaymentStatusEnum[PaymentStatusEnum["NotRequest"] = 105] = "NotRequest";
1050
- PaymentStatusEnum[PaymentStatusEnum["NotfoundPackage"] = 106] = "NotfoundPackage";
1051
- })(exports.PaymentStatusEnum || (exports.PaymentStatusEnum = {}));
1052
- (function (ResultStatusEnum) {
1053
- ResultStatusEnum[ResultStatusEnum["Failed"] = 0] = "Failed";
1054
- ResultStatusEnum[ResultStatusEnum["Success"] = 1] = "Success";
1055
- ResultStatusEnum[ResultStatusEnum["Unauthorized"] = 2] = "Unauthorized";
1056
- ResultStatusEnum[ResultStatusEnum["NotPermission"] = 3] = "NotPermission";
1057
- ResultStatusEnum[ResultStatusEnum["NotAccess"] = 4] = "NotAccess";
1058
- ResultStatusEnum[ResultStatusEnum["NotRegistered"] = 5] = "NotRegistered";
1059
- ResultStatusEnum[ResultStatusEnum["ExpiredRegistered"] = 6] = "ExpiredRegistered";
1060
- ResultStatusEnum[ResultStatusEnum["InvalidIp"] = 7] = "InvalidIp";
1061
- ResultStatusEnum[ResultStatusEnum["NoCredit"] = 8] = "NoCredit";
1062
- })(exports.ResultStatusEnum || (exports.ResultStatusEnum = {}));
1063
- (function (PermissionTypeEnum) {
1064
- PermissionTypeEnum[PermissionTypeEnum["Form"] = -1] = "Form";
1065
- PermissionTypeEnum[PermissionTypeEnum["Item"] = 0] = "Item";
1066
- PermissionTypeEnum[PermissionTypeEnum["Access"] = 1] = "Access";
1067
- PermissionTypeEnum[PermissionTypeEnum["Option"] = 2] = "Option";
1068
- })(exports.PermissionTypeEnum || (exports.PermissionTypeEnum = {}));
1069
- (function (PermissionAccessTypeEnum) {
1070
- PermissionAccessTypeEnum[PermissionAccessTypeEnum["List"] = 1] = "List";
1071
- PermissionAccessTypeEnum[PermissionAccessTypeEnum["Insert"] = 2] = "Insert";
1072
- PermissionAccessTypeEnum[PermissionAccessTypeEnum["Update"] = 3] = "Update";
1073
- PermissionAccessTypeEnum[PermissionAccessTypeEnum["Delete"] = 4] = "Delete";
1074
- PermissionAccessTypeEnum[PermissionAccessTypeEnum["Report"] = 5] = "Report";
1075
- })(exports.PermissionAccessTypeEnum || (exports.PermissionAccessTypeEnum = {}));
1076
- (function (PermissionInputActionEnum) {
1077
- PermissionInputActionEnum[PermissionInputActionEnum["None"] = 0] = "None";
1078
- PermissionInputActionEnum[PermissionInputActionEnum["OnClick"] = 1] = "OnClick";
1079
- PermissionInputActionEnum[PermissionInputActionEnum["Link"] = 2] = "Link";
1080
- PermissionInputActionEnum[PermissionInputActionEnum["LinkNewTab"] = 3] = "LinkNewTab";
1081
- PermissionInputActionEnum[PermissionInputActionEnum["File"] = 4] = "File";
1082
- PermissionInputActionEnum[PermissionInputActionEnum["Modal"] = 5] = "Modal";
1083
- PermissionInputActionEnum[PermissionInputActionEnum["Confirm"] = 6] = "Confirm";
1084
- PermissionInputActionEnum[PermissionInputActionEnum["Input"] = 7] = "Input";
1085
- })(exports.PermissionInputActionEnum || (exports.PermissionInputActionEnum = {}));
1086
- (function (PermissionInputTypeEnum) {
1087
- PermissionInputTypeEnum[PermissionInputTypeEnum["Icon"] = 0] = "Icon";
1088
- PermissionInputTypeEnum[PermissionInputTypeEnum["Button"] = 1] = "Button";
1089
- })(exports.PermissionInputTypeEnum || (exports.PermissionInputTypeEnum = {}));
1090
- (function (VehicleType) {
1091
- VehicleType[VehicleType["Driver"] = -2] = "Driver";
1092
- VehicleType[VehicleType["Fingerprint"] = -1] = "Fingerprint";
1093
- VehicleType[VehicleType["Car"] = 1] = "Car";
1094
- VehicleType[VehicleType["Motorcycle"] = 2] = "Motorcycle";
1095
- VehicleType[VehicleType["Airplane"] = 3] = "Airplane";
1096
- VehicleType[VehicleType["Train"] = 4] = "Train";
1097
- VehicleType[VehicleType["Ship"] = 5] = "Ship";
1098
- VehicleType[VehicleType["CarF"] = 6] = "CarF";
1099
- VehicleType[VehicleType["CarG"] = 7] = "CarG";
1100
- })(exports.VehicleType || (exports.VehicleType = {}));
1101
- (function (TableOptionType) {
1102
- TableOptionType[TableOptionType["Hidden"] = 1] = "Hidden";
1103
- TableOptionType[TableOptionType["Show"] = 2] = "Show";
1104
- TableOptionType[TableOptionType["Group"] = 3] = "Group";
1105
- })(exports.TableOptionType || (exports.TableOptionType = {}));
1106
- (function (TableRowStatus) {
1107
- TableRowStatus[TableRowStatus["Unread"] = 1] = "Unread";
1108
- })(exports.TableRowStatus || (exports.TableRowStatus = {}));
1109
- (function (FileIcons) {
1110
- FileIcons["jpeg"] = "fad fa-file-image";
1111
- FileIcons["jpg"] = "fad fa-file-image";
1112
- FileIcons["png"] = "fad fa-file-image";
1113
- FileIcons["doc"] = "fad fa-file-word";
1114
- FileIcons["docx"] = "fad fa-file-word";
1115
- FileIcons["xls"] = "fad fa-file-excel";
1116
- FileIcons["xlsx"] = "fad fa-file-excel";
1117
- FileIcons["csv"] = "fad fa-file-csv";
1118
- FileIcons["ppt"] = "fad fa-file-powerpoint";
1119
- FileIcons["pptx"] = "fad fa-file-powerpoint";
1120
- FileIcons["txt"] = "fad fa-file-lines";
1121
- FileIcons["pdf"] = "fad fa-file-pdf";
1122
- FileIcons["file"] = "fad fa-file";
1123
- FileIcons["zip"] = "fad fa-file-zipper";
1124
- FileIcons["rar"] = "fad fa-file-zipper";
1125
- })(exports.FileIcons || (exports.FileIcons = {}));
1126
-
1127
1132
  var PermissionClass = /** @class */ (function () {
1128
1133
  function PermissionClass(Name, Icon, Type, InputType, AccessType, InputAction, Area, Controller, Action, Url, Multi, Condition, Accesses) {
1129
1134
  if (Name === void 0) { Name = ''; }
@@ -3997,7 +4002,7 @@
3997
4002
  var s = (max.second || max.first);
3998
4003
  return s == null ? 100 : s;
3999
4004
  };
4000
- var url = this.table.permissions.getAccess(exports.PermissionAccessTypeEnum.List).Url;
4005
+ var url = this.table.url;
4001
4006
  var data = this.table.searchData();
4002
4007
  data.Page = 1;
4003
4008
  data.PerPage = -1;