@bnsights/bbsf-controls 1.0.186 → 1.0.188

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.
@@ -44,6 +44,14 @@ export declare class TextboxComponent implements OnInit {
44
44
  minCharsLimit: number;
45
45
  maxLimitWarningMsg: string;
46
46
  textDir: any;
47
+ passwordRequirementsTitle: string;
48
+ minLengthRequirement: string;
49
+ passwordMinLength: number;
50
+ hasNumber: boolean;
51
+ hasCapitalLetter: boolean;
52
+ hasSmallLetter: boolean;
53
+ hasSpecialLetter: boolean;
54
+ hasMinLength: boolean;
47
55
  ngOnInit(): void;
48
56
  ngAfterViewInit(): void;
49
57
  resetError: () => void;
@@ -61,6 +69,7 @@ export declare class TextboxComponent implements OnInit {
61
69
  addCustomValidation: (customValidation: any) => void;
62
70
  isValid: () => void;
63
71
  onTextBlur(): void;
72
+ checkPasswordComplexity(password: string): void;
64
73
  static ɵfac: i0.ɵɵFactoryDeclaration<TextboxComponent, [null, { optional: true; }, null, null, null, null]>;
65
74
  static ɵcmp: i0.ɵɵComponentDeclaration<TextboxComponent, "BBSF-TextBox", never, { "group": { "alias": "group"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "onChange": "onChange"; "onBlur": "onBlur"; }, never, never, false, never>;
66
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bnsights/bbsf-controls",
3
- "version": "1.0.186",
3
+ "version": "1.0.188",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^17.0.5",
6
6
  "@angular/cdk": "^17.0.2",
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@angular/google-maps": "^17.0.3",
16
- "@bnsights/bbsf-utilities": "^1.0.66",
16
+ "@bnsights/bbsf-utilities": "^1.0.68",
17
17
  "@danielmoncada/angular-datetime-picker": "^17.0.0",
18
18
  "@fullcalendar/angular": "^6.1.10",
19
19
  "@fullcalendar/core": "^6.1.10",
@@ -31,6 +31,7 @@
31
31
  }
32
32
 
33
33
  &.p-80px {
34
+
34
35
  input,
35
36
  textarea {
36
37
  padding-right: 80px !important;
@@ -43,6 +44,7 @@
43
44
  }
44
45
 
45
46
  &.p-120px {
47
+
46
48
  input,
47
49
  textarea {
48
50
  padding-right: 120px !important;
@@ -79,7 +81,7 @@
79
81
  }
80
82
 
81
83
  &[dir="rtl"] {
82
- + .copy-clipboard {
84
+ +.copy-clipboard {
83
85
  left: 0px;
84
86
  right: auto;
85
87
  border-top-left-radius: $bbsf-rounded;
@@ -94,6 +96,7 @@
94
96
  border-color: #d5d5d5;
95
97
  box-shadow: none;
96
98
  }
99
+
97
100
  /* input with icon*/
98
101
  .bbsf-icon {
99
102
  z-index: 4;
@@ -114,7 +117,7 @@
114
117
  left: 0px;
115
118
  margin-left: 0.7rem !important;
116
119
 
117
- + input {
120
+ +input {
118
121
  padding-left: 2.7rem !important;
119
122
  }
120
123
  }
@@ -126,10 +129,11 @@
126
129
  right: 0px;
127
130
  margin-right: 0.7rem !important;
128
131
 
129
- + input {
132
+ +input {
130
133
  padding-right: 2.7rem !important;
131
134
  }
132
135
  }
136
+
133
137
  //copy to clipboard
134
138
  .copy-clipboard {
135
139
  position: absolute;
@@ -191,17 +195,19 @@
191
195
  cursor: pointer;
192
196
  font-size: .8rem;
193
197
  font-weight: 700;
198
+
194
199
  &:focus-visible {
195
200
  outline: none;
196
201
  }
197
202
  }
198
-
203
+
199
204
  }
200
205
  }
201
206
 
202
- .bbsf-input-container > .language-container:nth-child(2) {
207
+ .bbsf-input-container>.language-container:nth-child(2) {
203
208
  right: 2% !important;
204
209
  }
210
+
205
211
  /* horizontal form control*/
206
212
  .bbsf-horizontal {
207
213
  display: flex;
@@ -233,6 +239,7 @@
233
239
  display: flex;
234
240
  justify-content: space-between;
235
241
  flex-wrap: wrap;
242
+
236
243
  //validation
237
244
  .bbsf-validation,
238
245
  .bbsf-character-count,
@@ -247,11 +254,70 @@
247
254
  .bbsf-character-count {
248
255
  color: $danger;
249
256
  }
257
+
250
258
  //word count and description
251
259
  .bbsf-word-count,
252
260
  .bbsf-control-desc {
253
261
  color: $subtext-color;
254
262
  }
263
+
264
+ // Password disclaimer styles
265
+ .bbsf-password-disclaimer {
266
+ width: 100%;
267
+ margin-top: 0.5rem;
268
+
269
+ .password-requirements {
270
+ background-color: #f8f9fa;
271
+ border: 1px solid #e9ecef;
272
+ border-radius: $bbsf-rounded;
273
+ padding: 0.75rem;
274
+
275
+ .requirement-title {
276
+ font-size: 13px;
277
+ font-weight: 600;
278
+ color: #495057;
279
+ margin-bottom: 0.5rem;
280
+ }
281
+
282
+ .requirements-list {
283
+ list-style: none;
284
+ padding: 0;
285
+ margin: 0;
286
+
287
+ li {
288
+ display: flex;
289
+ align-items: center;
290
+ margin-bottom: 0.25rem;
291
+ font-size: 12px;
292
+ font-weight: 500;
293
+
294
+ &:last-child {
295
+ margin-bottom: 0;
296
+ }
297
+
298
+ i {
299
+ margin-right: 0.5rem;
300
+ width: 14px;
301
+ text-align: center;
302
+ font-size: 10px;
303
+
304
+ [dir="rtl"] & {
305
+ margin-right: 0;
306
+ margin-left: 0.5rem;
307
+ }
308
+ }
309
+
310
+ &.requirement-met {
311
+ color: #198754;
312
+ }
313
+
314
+ &.requirement-not-met {
315
+ color: #dc3545;
316
+ }
317
+ }
318
+ }
319
+ }
320
+ }
255
321
  }
256
322
  }
257
323
 
@@ -338,5 +404,4 @@ input::-webkit-inner-spin-button {
338
404
  .bbsf-control.form-group .bbsf-input-container .language-container {
339
405
  right: 14%;
340
406
  }
341
- }
342
-
407
+ }