bc-primeng-ui 0.0.1 → 0.0.2
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.
|
@@ -1808,6 +1808,13 @@ function extractCode(input) {
|
|
|
1808
1808
|
const match = input.match(/^\d+/);
|
|
1809
1809
|
return match ? match[0] : '';
|
|
1810
1810
|
}
|
|
1811
|
+
function isMobileSizeDevice() {
|
|
1812
|
+
//return /Mobi|Android/i.test(navigator.userAgent);
|
|
1813
|
+
return window.innerWidth < 768;
|
|
1814
|
+
}
|
|
1815
|
+
function isMobileDevice() {
|
|
1816
|
+
return /Mobi|Android/i.test(navigator.userAgent);
|
|
1817
|
+
}
|
|
1811
1818
|
//#endregion
|
|
1812
1819
|
//#endregion
|
|
1813
1820
|
|
|
@@ -2102,7 +2109,7 @@ class BCBaseDataComponent extends BCBaseComponent {
|
|
|
2102
2109
|
/**
|
|
2103
2110
|
* if the search should be executed automatically on initialization. Default is true
|
|
2104
2111
|
*/
|
|
2105
|
-
loadDataOnInitialization =
|
|
2112
|
+
loadDataOnInitialization = false;
|
|
2106
2113
|
ngOnInit() {
|
|
2107
2114
|
super.ngOnInit(); // calls initSession of BaseComponent
|
|
2108
2115
|
this.searchStateService
|
|
@@ -2281,7 +2288,7 @@ class BCBaseDataComponent extends BCBaseComponent {
|
|
|
2281
2288
|
draggable: true,
|
|
2282
2289
|
resizable: false,
|
|
2283
2290
|
contentStyle: { overflow: 'auto' },
|
|
2284
|
-
style: { width: '40vw' },
|
|
2291
|
+
style: { width: isMobileSizeDevice() ? '95vw' : '40vw' },
|
|
2285
2292
|
});
|
|
2286
2293
|
ds?.onClose.subscribe((result) => {
|
|
2287
2294
|
if (!result)
|
|
@@ -4511,7 +4518,6 @@ class BCCheckboxComponent {
|
|
|
4511
4518
|
[inputId]="inputId"
|
|
4512
4519
|
[binary]="true"
|
|
4513
4520
|
[formControl]="control"
|
|
4514
|
-
[disabled]="isDisabled"
|
|
4515
4521
|
(onChange)="onCheckboxChange($event)"
|
|
4516
4522
|
[ngClass]="{ 'ng-invalid ng-dirty': showError }"
|
|
4517
4523
|
></p-checkbox>
|
|
@@ -4525,18 +4531,17 @@ class BCCheckboxComponent {
|
|
|
4525
4531
|
|
|
4526
4532
|
<bc-form-field-error [control]="control" [fieldName]="label"> </bc-form-field-error>
|
|
4527
4533
|
</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"] }] });
|
|
4534
|
+
`, 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
4535
|
}
|
|
4530
4536
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.20", ngImport: i0, type: BCCheckboxComponent, decorators: [{
|
|
4531
4537
|
type: Component,
|
|
4532
|
-
args: [{ selector: 'bc-checkbox', standalone: true, imports: [CommonModule, CheckboxModule, FormFieldErrorComponent], template: `
|
|
4538
|
+
args: [{ selector: 'bc-checkbox', standalone: true, imports: [CommonModule, CheckboxModule, FormFieldErrorComponent, ReactiveFormsModule], template: `
|
|
4533
4539
|
<div class="field-checkbox-wrapper">
|
|
4534
4540
|
<div class="flex align-items-center">
|
|
4535
4541
|
<p-checkbox
|
|
4536
4542
|
[inputId]="inputId"
|
|
4537
4543
|
[binary]="true"
|
|
4538
4544
|
[formControl]="control"
|
|
4539
|
-
[disabled]="isDisabled"
|
|
4540
4545
|
(onChange)="onCheckboxChange($event)"
|
|
4541
4546
|
[ngClass]="{ 'ng-invalid ng-dirty': showError }"
|
|
4542
4547
|
></p-checkbox>
|