bc-primeng-ui 0.0.1 → 0.0.3

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.
@@ -378,7 +378,6 @@ class CustomDatepickerComponent {
378
378
  }
379
379
  ngControlInstance = null;
380
380
  ngOnInit() {
381
- debugger;
382
381
  if (this.controlContainer && this.formControlName) {
383
382
  this.control = this.controlContainer.control?.get(this.formControlName);
384
383
  if (this.control) {
@@ -1808,6 +1807,13 @@ function extractCode(input) {
1808
1807
  const match = input.match(/^\d+/);
1809
1808
  return match ? match[0] : '';
1810
1809
  }
1810
+ function isMobileSizeDevice() {
1811
+ //return /Mobi|Android/i.test(navigator.userAgent);
1812
+ return window.innerWidth < 768;
1813
+ }
1814
+ function isMobileDevice() {
1815
+ return /Mobi|Android/i.test(navigator.userAgent);
1816
+ }
1811
1817
  //#endregion
1812
1818
  //#endregion
1813
1819
 
@@ -2102,7 +2108,7 @@ class BCBaseDataComponent extends BCBaseComponent {
2102
2108
  /**
2103
2109
  * if the search should be executed automatically on initialization. Default is true
2104
2110
  */
2105
- loadDataOnInitialization = true;
2111
+ loadDataOnInitialization = false;
2106
2112
  ngOnInit() {
2107
2113
  super.ngOnInit(); // calls initSession of BaseComponent
2108
2114
  this.searchStateService
@@ -2281,7 +2287,7 @@ class BCBaseDataComponent extends BCBaseComponent {
2281
2287
  draggable: true,
2282
2288
  resizable: false,
2283
2289
  contentStyle: { overflow: 'auto' },
2284
- style: { width: '40vw' },
2290
+ style: { width: isMobileSizeDevice() ? '95vw' : '40vw' },
2285
2291
  });
2286
2292
  ds?.onClose.subscribe((result) => {
2287
2293
  if (!result)
@@ -4511,7 +4517,6 @@ class BCCheckboxComponent {
4511
4517
  [inputId]="inputId"
4512
4518
  [binary]="true"
4513
4519
  [formControl]="control"
4514
- [disabled]="isDisabled"
4515
4520
  (onChange)="onCheckboxChange($event)"
4516
4521
  [ngClass]="{ 'ng-invalid ng-dirty': showError }"
4517
4522
  ></p-checkbox>
@@ -4525,18 +4530,17 @@ class BCCheckboxComponent {
4525
4530
 
4526
4531
  <bc-form-field-error [control]="control" [fieldName]="label"> </bc-form-field-error>
4527
4532
  </div>
4528
- `, isInline: true, styles: [".field-checkbox-wrapper{margin-bottom:1rem}.flex{display:flex}.align-items-center{align-items:center}.ml-2{margin-left:.5rem}.cursor-pointer{cursor:pointer}.required:after{content:\"*\";color:#c62828;margin-left:.25rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i2$3.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "component", type: FormFieldErrorComponent, selector: "bc-form-field-error", inputs: ["control", "fieldName", "style"] }] });
4533
+ `, isInline: true, styles: [".field-checkbox-wrapper{margin-bottom:1rem}.flex{display:flex}.align-items-center{align-items:center}.ml-2{margin-left:.5rem}.cursor-pointer{cursor:pointer}.required:after{content:\"*\";color:#c62828;margin-left:.25rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i2$3.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "component", type: FormFieldErrorComponent, selector: "bc-form-field-error", inputs: ["control", "fieldName", "style"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
4529
4534
  }
4530
4535
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.20", ngImport: i0, type: BCCheckboxComponent, decorators: [{
4531
4536
  type: Component,
4532
- args: [{ selector: 'bc-checkbox', standalone: true, imports: [CommonModule, CheckboxModule, FormFieldErrorComponent], template: `
4537
+ args: [{ selector: 'bc-checkbox', standalone: true, imports: [CommonModule, CheckboxModule, FormFieldErrorComponent, ReactiveFormsModule], template: `
4533
4538
  <div class="field-checkbox-wrapper">
4534
4539
  <div class="flex align-items-center">
4535
4540
  <p-checkbox
4536
4541
  [inputId]="inputId"
4537
4542
  [binary]="true"
4538
4543
  [formControl]="control"
4539
- [disabled]="isDisabled"
4540
4544
  (onChange)="onCheckboxChange($event)"
4541
4545
  [ngClass]="{ 'ng-invalid ng-dirty': showError }"
4542
4546
  ></p-checkbox>