bpm-core 0.0.59 → 0.0.60

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.
Files changed (35) hide show
  1. package/esm2022/lib/components/app-component-sections/main-request-details/main-request-details.component.mjs +3 -3
  2. package/esm2022/lib/components/app-component-sections/service-header/service-header.component.mjs +3 -3
  3. package/esm2022/lib/components/app-component-sections/workflow-section/workflow-section.component.mjs +3 -3
  4. package/esm2022/lib/components/shared-components/form-field/add-attachment-section/add-attachment-section.component.mjs +3 -3
  5. package/esm2022/lib/components/shared-components/form-field/attachment-section/attachment-section.component.mjs +3 -3
  6. package/esm2022/lib/components/shared-components/form-field/checkbox/checkbox.component.mjs +14 -7
  7. package/esm2022/lib/components/shared-components/form-field/control-value-accessor.directive.mjs +6 -4
  8. package/esm2022/lib/components/shared-components/form-field/custom-searchable-autocomplete/custom-searchable.component.mjs +3 -3
  9. package/esm2022/lib/components/shared-components/form-field/date-picker/date-picker.component.mjs +4 -3
  10. package/esm2022/lib/components/shared-components/form-field/date-range-picker/date-range-picker.component.mjs +8 -4
  11. package/esm2022/lib/components/shared-components/form-field/doc-uploader/docs-uploader.component.mjs +3 -3
  12. package/esm2022/lib/components/shared-components/form-field/form-label/form-label.component.mjs +3 -3
  13. package/esm2022/lib/components/shared-components/form-field/input/input.component.mjs +3 -3
  14. package/esm2022/lib/components/shared-components/form-field/input-currency/input-currency.component.mjs +3 -3
  15. package/esm2022/lib/components/shared-components/form-field/input-email/input-email.component.mjs +3 -3
  16. package/esm2022/lib/components/shared-components/form-field/input-mask/input-mask.component.mjs +3 -3
  17. package/esm2022/lib/components/shared-components/form-field/input-number/input-number.component.mjs +3 -3
  18. package/esm2022/lib/components/shared-components/form-field/input-telephone/input-telephone.component.mjs +23 -8
  19. package/esm2022/lib/components/shared-components/form-field/radio/radio.component.mjs +3 -3
  20. package/esm2022/lib/components/shared-components/form-field/search-employee/search-employee.component.mjs +22 -17
  21. package/esm2022/lib/components/shared-components/form-field/textarea/textarea.component.mjs +3 -3
  22. package/esm2022/lib/components/shared-components/form-field/toggle-button/toggle-button.component.mjs +3 -3
  23. package/esm2022/lib/components/shared-components/form-field/validation-errors/validation-errors.component.mjs +1 -2
  24. package/esm2022/lib/testComponent/request-details-section/request-details-section.component.mjs +27 -4
  25. package/fesm2022/bpm-core.mjs +142 -87
  26. package/fesm2022/bpm-core.mjs.map +1 -1
  27. package/lib/components/shared-components/form-field/checkbox/checkbox.component.d.ts +3 -2
  28. package/lib/components/shared-components/form-field/control-value-accessor.directive.d.ts +2 -1
  29. package/lib/components/shared-components/form-field/input-telephone/input-telephone.component.d.ts +7 -1
  30. package/lib/components/shared-components/form-field/shared-imports.d.ts +2 -2
  31. package/lib/testComponent/request-details-section/request-details-section.component.d.ts +3 -1
  32. package/package.json +1 -1
  33. package/src/lib/assets/scss/_general.scss +64 -152
  34. package/src/lib/assets/scss/_upgrade.scss +6 -0
  35. package/src/lib/assets/scss/base.scss +21 -16
@@ -1,8 +1,8 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
3
3
  import { MatDialog } from '@angular/material/dialog';
4
4
  import * as i0 from "@angular/core";
5
- export declare class CheckBoxComponent<Type> extends ControlValueAccessorDirective<Type> {
5
+ export declare class CheckBoxComponent<Type> extends ControlValueAccessorDirective<Type> implements OnInit {
6
6
  containTerms: boolean;
7
7
  termsLabel: string;
8
8
  linkText: string;
@@ -11,6 +11,7 @@ export declare class CheckBoxComponent<Type> extends ControlValueAccessorDirecti
11
11
  termsBody: any;
12
12
  downloadCheckBox: EventEmitter<any>;
13
13
  dialog: MatDialog;
14
+ ngOnInit(): void;
14
15
  openUrl(): void;
15
16
  valueChange(event: any): void;
16
17
  openTermsPopup(): void;
@@ -1,5 +1,5 @@
1
1
  import { Injector, OnInit } from '@angular/core';
2
- import { ControlValueAccessor, FormBuilder, FormControl } from '@angular/forms';
2
+ import { ControlValueAccessor, FormBuilder, FormControl, Validators } from '@angular/forms';
3
3
  import { CoreI18nService, CoreService } from '../../../services';
4
4
  import { DomSanitizer } from "@angular/platform-browser";
5
5
  import { ToastrService } from "ngx-toastr";
@@ -34,6 +34,7 @@ export declare class ControlValueAccessorDirective<Type> implements ControlValue
34
34
  attachments: any[];
35
35
  startDateControl: FormControl<any>;
36
36
  endDateControl: FormControl<any>;
37
+ Validators: typeof Validators;
37
38
  minDateValue: any;
38
39
  maxDateValue: any;
39
40
  maxDate: string;
@@ -1,10 +1,16 @@
1
1
  import { CountryISO, SearchCountryField } from 'ngx-intl-tel-input-gg';
2
+ import { OnInit } from '@angular/core';
2
3
  import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
3
4
  import * as i0 from "@angular/core";
4
- export declare class InputTelephoneComponent<Type> extends ControlValueAccessorDirective<Type> {
5
+ export declare class InputTelephoneComponent<Type> extends ControlValueAccessorDirective<Type> implements OnInit {
5
6
  floatLabel: any;
6
7
  className: string;
7
8
  controlValue: string;
9
+ errorMessages: {
10
+ required: any;
11
+ validatePhoneNumber: any;
12
+ };
13
+ ngOnInit(): void;
8
14
  CountryISO: typeof CountryISO;
9
15
  SearchCountryField: typeof SearchCountryField;
10
16
  show: boolean;
@@ -9,7 +9,7 @@ import { EnOnlyDirective } from "../../../directives/en.directive";
9
9
  import { ArOnlyDirective } from "../../../directives/ar.directive";
10
10
  import { NgClass } from "@angular/common";
11
11
  import { TranslatePipe } from "../../../pipes/translate.pipe";
12
- export declare const MatDatePickerImports: (typeof MatDatepickerInput | typeof MatDatepickerToggle | typeof MatDatepickerModule)[];
12
+ export declare const MatDatePickerImports: (typeof MatDatepickerToggle | typeof MatDatepickerInput | typeof MatDatepickerModule)[];
13
13
  export declare const MatFormImports: (typeof MatFormFieldModule | typeof MatFormField | typeof MatInput)[];
14
- export declare const Shareds: (typeof TranslatePipe | typeof NgClass | typeof ValidationErrorsComponent | typeof FormLabelComponent | typeof InfoItemComponent | typeof ReactiveFormsModule)[];
14
+ export declare const Shareds: (typeof FormLabelComponent | typeof ValidationErrorsComponent | typeof InfoItemComponent | typeof ReactiveFormsModule | typeof NgClass | typeof TranslatePipe)[];
15
15
  export declare const TextLanguageDirectives: (typeof EnOnlyDirective | typeof ArOnlyDirective)[];
@@ -1,7 +1,7 @@
1
1
  import { DestroyRef, OnInit } from '@angular/core';
2
2
  import { Form, Section } from "../../interfaces";
3
3
  import { ActionStateService, CoreI18nService } from "../../services";
4
- import { FormBuilder, FormGroup } from "@angular/forms";
4
+ import { FormBuilder, FormGroup, ValidatorFn } from "@angular/forms";
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class RequestDetailsSectionComponent implements OnInit {
7
7
  i18n: CoreI18nService;
@@ -22,6 +22,7 @@ export declare class RequestDetailsSectionComponent implements OnInit {
22
22
  columnsConfig: any[];
23
23
  columns: string[];
24
24
  destroyRef: DestroyRef;
25
+ requiredSearchable: boolean;
25
26
  isError: boolean;
26
27
  categoryData: {
27
28
  assetDeviceType: any;
@@ -57,6 +58,7 @@ export declare class RequestDetailsSectionComponent implements OnInit {
57
58
  initializeColumnConfig(): void;
58
59
  createForm(): void;
59
60
  editAsset(asset: any): void;
61
+ startsWithDMOEOrCR(): ValidatorFn;
60
62
  deleteAsset(asset: any): void;
61
63
  formValue(form: any): void;
62
64
  checkValidity(action: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpm-core",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0",
@@ -1,13 +1,17 @@
1
1
  // Custom Theming for Angular Material
2
2
  @use "@angular/material" as mat;
3
3
  @include mat.core();
4
- // $my-theme: mat.define-typography-level(
5
- // $font-family: var(--font-family),
6
- // $font-weight: 400,
7
- // $font-size: 1rem,
8
- // $line-height: 1,
9
- // $letter-spacing: normal,
10
- // );
4
+
5
+ :root {
6
+ --purple: #4f008c;
7
+ --lighten-purple: #a54ee1;
8
+ --yellow: #ffdd40;
9
+ --green: #00c48c;
10
+ --red: #bd1427;
11
+ --gray: #d6d6d4;
12
+ --black: #1d252d;
13
+ --box-shadow: 0 7px 10px 0 rgba(var(--rgb-black), 0.03);
14
+ }
11
15
 
12
16
  .main-card {
13
17
  background-color: var(--white);
@@ -23,7 +27,6 @@
23
27
  }
24
28
 
25
29
  .main-section {
26
-
27
30
  //padding: 40px 0;
28
31
  @media (max-width: 767px) {
29
32
  // padding: 64px 0;
@@ -180,56 +183,6 @@ ds-message::part(base) {
180
183
  }
181
184
  }
182
185
 
183
- //ds-status[status="rejected"]::part(base) {
184
- // --status-bg: rgba(var(--rgb-red), 10%);
185
- // --status-color: var(--red);
186
- //}
187
- //ds-status[status="sent"]::part(base) {
188
- // --status-bg: rgba(var(--rgb-secondary), 10%);
189
- // --status-color: var(--secondary);
190
- //}
191
- //ds-status[status="returned"]::part(base) {
192
- // --status-bg: rgba(var(--rgb-purple), 10%);
193
- // --status-color: var(--purple);
194
- //}
195
- ds-status[status="expired"]::part(base) {
196
- --status-bg: rgba(var(--rgb-dark-gray), 30%);
197
- --status-color: var(--dark-gray);
198
- }
199
-
200
- //ds-status[status="submit"]::part(base) {
201
- // --status-bg: rgba(var(--rgb-coral), 10%);
202
- // --status-color: var(--coral);
203
- //}
204
- ds-status[status="canceled"]::part(base) {
205
- --status-bg: rgba(var(--rgb-dark-gray), 80%);
206
- --status-color: var(--dark-gray);
207
- color: var(--black);
208
- }
209
-
210
- //ds-status[status="accepted"]::part(base) {
211
- // --status-bg: rgba(var(--rgb-green), 10%) !important;
212
- // --status-color: var(--green) !important;
213
- //}
214
- ds-status[status="send_back"]::part(base) {
215
- --status-bg: rgba(var(--rgb-orange), 10%);
216
- --status-color: var(--orange);
217
- }
218
-
219
- ds-status[status="send_back"][no-opacity]::part(base) {
220
- --status-bg: var(--orange);
221
- --status-color: var(--white);
222
- }
223
-
224
- //ds-status[status="pending"]::part(base) {
225
- // --status-bg: rgba(var(--rgb-yellow), 10%);
226
- // --status-color: var(--black);
227
- //}
228
- ds-status[status="queued"]::part(base) {
229
- --status-bg: rgba(250, 221, 96, 0.5);
230
- --status-color: #1d252d;
231
- }
232
-
233
186
  [dir="rtl"] .decisions-container--status {
234
187
  right: auto !important;
235
188
  left: 0;
@@ -248,18 +201,6 @@ ds-button.support {
248
201
  }
249
202
  }
250
203
 
251
- .table {
252
- ds-button[icon]::part(base) {
253
- --btn-bg-color: var(--white);
254
- --btn-border-color: var(--white);
255
- }
256
-
257
- ds-button[icon].table-icon-btn-white::part(base) {
258
- --btn-bg-color: var(--light-gray);
259
- --btn-border-color: var(--light-gray);
260
- }
261
- }
262
-
263
204
  ds-button[icon].btn-icon-white::part(base) {
264
205
  --btn-bg-color: var(--white);
265
206
  --btn-border-color: var(--white);
@@ -369,14 +310,6 @@ mat-form-field.mat-mdc-form-field.mat-mdc-form-field-type-mat-select.white-selec
369
310
  display: inline-flex;
370
311
  }
371
312
 
372
- table {
373
- ds-attachments {
374
- &::part(base) {
375
- --file-bg: var(--white);
376
- }
377
- }
378
- }
379
-
380
313
  @media (max-height: 500px) {
381
314
  .mdc-menu-surface.mat-mdc-select-panel {
382
315
  max-height: 200px !important;
@@ -461,13 +394,6 @@ mat-sidenav {
461
394
  }
462
395
  }
463
396
 
464
- table {
465
- tr {
466
- th {
467
- text-align: start;
468
- }
469
- }
470
- }
471
397
 
472
398
  .icon-btn-shadow::part(base) {
473
399
  --btn-bg-color: var(--white);
@@ -600,7 +526,7 @@ table {
600
526
  width: 280px;
601
527
  height: 35px;
602
528
 
603
- >input,
529
+ > input,
604
530
  .ss-date-picker {
605
531
  flex-grow: 1;
606
532
  min-width: 180px;
@@ -710,12 +636,8 @@ table {
710
636
  }
711
637
  }
712
638
 
713
- .mat-date-range-input-wrapper {
714
- width: 75px;
715
- }
716
-
717
639
  .mpa_resources_details {
718
- >.edit-mode {
640
+ > .edit-mode {
719
641
  margin-bottom: 90px !important;
720
642
  display: block;
721
643
  }
@@ -788,7 +710,8 @@ table {
788
710
 
789
711
  //animation: ;
790
712
 
791
- .mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive) & {
713
+ .mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive)
714
+ & {
792
715
  //opacity: 1;
793
716
  animation: discountFadeIn 0.5s ease-in-out 0.5s forwards;
794
717
  }
@@ -827,10 +750,6 @@ text {
827
750
  font-family: var(--font-family);
828
751
  }
829
752
 
830
- .table-responsive table tbody tr td {
831
- line-height: 1.3;
832
- max-width: 200px;
833
- }
834
753
 
835
754
  .filter-has-value {
836
755
  position: relative;
@@ -859,8 +778,8 @@ text {
859
778
  justify-content: center;
860
779
  transition: var(--default-transition);
861
780
 
862
- >.sfi,
863
- >ds-icon {
781
+ > .sfi,
782
+ > ds-icon {
864
783
  transition: var(--default-transition);
865
784
  }
866
785
 
@@ -1028,55 +947,10 @@ body {
1028
947
  font: inherit;
1029
948
  }
1030
949
 
1031
- .hup-main-container:not([aria-hidden="true"])~.cdk-overlay-container {
950
+ .hup-main-container:not([aria-hidden="true"]) ~ .cdk-overlay-container {
1032
951
  z-index: calc(var(--main-toolbar-zIndex) + 2) !important;
1033
952
  }
1034
953
 
1035
- .new-primary-table .table-responsive.table-container {
1036
- max-height: 80vh;
1037
- overflow: auto;
1038
- table.primary-table {
1039
- --th-height: 30px;
1040
- --th-bg: var(--purple);
1041
- --th-fc: var(--black);
1042
- --tr-even-bc: var(--white);
1043
- --tr-odd-bc: rgba(165, 79, 224, 0.08);
1044
- --tr-border: 1px solid transparent;
1045
- --th-border: 1px solid transparent;
1046
- --th-fc: var(--white);
1047
- --th-fs: 10px;
1048
- --th-border: 0px solid var(--light-gray);
1049
- --border-spacing: 0;
1050
- --border-collapse: separate;
1051
- --td-radius: 64x;
1052
- --cell-pading: 0px 25px;
1053
- background-color: var(--off-white);
1054
- --td-fs: 12px;
1055
- --td-fw: var(--font-regular);
1056
-
1057
- tr {
1058
- box-shadow: 0px 0.2px 0px 1px #f3f3f1;
1059
- }
1060
- }
1061
- }
1062
-
1063
- .table-responsive table, .table-responsive .primary-table{
1064
- --cell-pading : .35rem !important;
1065
- }
1066
-
1067
- .form-label {
1068
- font-size: 0.78rem;
1069
- }
1070
-
1071
- mat-form-field.mat-mdc-form-field .mdc-text-field {
1072
- border: 1px solid #d6d6d4;
1073
- }
1074
-
1075
- mat-form-field.mat-mdc-form-field .mat-mdc-form-field-icon-suffix {
1076
- width: auto;
1077
- min-width: fit-content;
1078
- }
1079
-
1080
954
  ds-button.disabled::part(base) {
1081
955
  opacity: 50%;
1082
956
  }
@@ -1220,7 +1094,7 @@ ds-button[disabled] {
1220
1094
  }
1221
1095
  }
1222
1096
 
1223
- +div+[ng-reflect-state="edit"] {
1097
+ + div + [ng-reflect-state="edit"] {
1224
1098
  margin-left: -18px;
1225
1099
 
1226
1100
  [dir="rtl"] & {
@@ -1329,10 +1203,6 @@ ds-button::part(base) {
1329
1203
  min-width: 495px !important;
1330
1204
  }
1331
1205
 
1332
- ds-status.inbox::part(base) {
1333
- --status-width: 35px;
1334
- }
1335
-
1336
1206
  .ssms-container {
1337
1207
  width: 900px;
1338
1208
 
@@ -1375,7 +1245,7 @@ div.mat-mdc-select-panel {
1375
1245
  }
1376
1246
 
1377
1247
  app-search-form {
1378
- >div {
1248
+ > div {
1379
1249
  margin-top: -1.5rem !important;
1380
1250
  }
1381
1251
  }
@@ -1499,7 +1369,6 @@ full-calendar.fc {
1499
1369
  border: 1px solid;
1500
1370
 
1501
1371
  th {
1502
-
1503
1372
  // text-align: center;
1504
1373
  // border-right: 0px;
1505
1374
  // border-left: 0px;
@@ -1658,7 +1527,8 @@ full-calendar.fc {
1658
1527
  }
1659
1528
 
1660
1529
  .fc-prev-button,
1661
- .fc-next-button {}
1530
+ .fc-next-button {
1531
+ }
1662
1532
  }
1663
1533
  }
1664
1534
  }
@@ -2017,3 +1887,45 @@ ul.ul-custom {
2017
1887
  }
2018
1888
  }
2019
1889
  }
1890
+
1891
+ .avatar {
1892
+ min-width: auto;
1893
+ width: auto;
1894
+ height: auto;
1895
+ &.avatar--medium {
1896
+ --default-size: 40px;
1897
+ min-width: 40px;
1898
+ }
1899
+ &.avatar--small {
1900
+ --default-size: 30px;
1901
+ min-width: 30px;
1902
+ }
1903
+ }
1904
+
1905
+ mat-form-field.mat-mdc-form-field .mat-mdc-form-field-icon-suffix {
1906
+ width: auto;
1907
+ min-width: fit-content;
1908
+ }
1909
+
1910
+
1911
+ .input-disabled {
1912
+ pointer-events: none;
1913
+ opacity: 1.5;
1914
+ }
1915
+
1916
+ :host {
1917
+ flex-grow: 1;
1918
+ ::ng-deep {
1919
+ mat-form-field.custom-textarea .mat-form-field-flex {
1920
+ padding: var(--input-padding);
1921
+ }
1922
+ }
1923
+ }
1924
+
1925
+ :host {
1926
+ ::ng-deep {
1927
+ table mat-form-field.custom-textarea .mat-form-field-flex {
1928
+ --input-height: 80px;
1929
+ }
1930
+ }
1931
+ }
@@ -58,6 +58,12 @@ mat-error {
58
58
  mat-form-field.mat-mdc-form-field .mdc-text-field--invalid.mat-mdc-text-field-wrapper {
59
59
  border: 1px solid var(--red) !important;
60
60
  }
61
+ mat-form-field.mat-mdc-form-field.custom-validation .mdc-text-field--invalid.mat-mdc-text-field-wrapper {
62
+ border: 1px solid #d6d6d4 !important;
63
+ }
64
+ mat-form-field.mat-mdc-form-field.custom-validation-error .mat-mdc-text-field-wrapper {
65
+ border: 1px solid var(--red) !important
66
+ }
61
67
 
62
68
  mat-slide-toggle {
63
69
  --mdc-switch-disabled-unselected-track-color: var(--dark-gray);
@@ -1,21 +1,26 @@
1
- @use './bootstrap';
2
- @use './general';
3
- @use './main-sidenav';
4
- @use './custom-popover';
5
- @use './categories';
6
- @use './toaster';
7
- @use './swiper';
8
- @use './input-telephone';
9
- @use './bottom-sheet';
10
- @use './stepper';
11
- @use './user-list';
1
+ @use "./bootstrap";
2
+ @use "./general";
3
+ @use "./main-sidenav";
4
+ @use "./custom-popover";
5
+ @use "./categories";
6
+ @use "./toaster";
7
+ @use "./swiper";
8
+ @use "./input-telephone";
9
+ @use "./bottom-sheet";
10
+ @use "./stepper";
11
+ @use "./user-list";
12
12
 
13
+ @use "./settings";
13
14
 
15
+ @use "./upgrade";
14
16
 
15
- @use './settings';
16
- @use './font-custom';
17
+ @use "./charts";
17
18
 
18
- @use './upgrade';
19
+ // components
20
+ @use "./components/fields";
21
+ @use "./components/table";
22
+ @use "./components/status";
23
+ @use "./components/toggle";
19
24
 
20
-
21
- @use './charts';
25
+ // rtl
26
+ @use "./rtl";