imm-element-ui 1.6.3 → 1.6.5
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.
- package/esm2022/lib/crumb-action/crumb-action.component.mjs +3 -3
- package/esm2022/lib/form/form-field/context-menu.mjs +35 -35
- package/esm2022/lib/form/form-field/field-control.mjs +1 -1
- package/esm2022/lib/form/form-field/field-utils.mjs +1 -1
- package/esm2022/lib/form/form-field/form-field.mjs +135 -135
- package/esm2022/lib/form/form-field/index.mjs +1 -1
- package/esm2022/lib/form/form-field/label.directive.mjs +1 -1
- package/esm2022/lib/form/form-type/autocomplete.type.mjs +151 -151
- package/esm2022/lib/form/form-type/codemirror.type.mjs +1 -1
- package/esm2022/lib/form/form-type/datepicker.type.mjs +177 -177
- package/esm2022/lib/form/form-type/image.type.mjs +211 -211
- package/esm2022/lib/form/form-type/index.mjs +1 -1
- package/esm2022/lib/form/form-type/inputnumber.type.mjs +91 -91
- package/esm2022/lib/form/form-type/inputtext.type.mjs +19 -19
- package/esm2022/lib/form/form-type/multiselect.type.mjs +163 -163
- package/esm2022/lib/form/form-type/radio.type.mjs +77 -77
- package/esm2022/lib/form/form-type/rowselector.type.mjs +34 -26
- package/esm2022/lib/form/form-type/select.type.mjs +133 -133
- package/esm2022/lib/form/form-type/textarea.type.mjs +25 -25
- package/esm2022/lib/form/form-type/treeselect.type.mjs +115 -115
- package/esm2022/lib/form/form-type/upload.type.mjs +131 -131
- package/esm2022/lib/grid/cell-edit/cell-edit-datePicker.compoent.mjs +139 -139
- package/esm2022/lib/grid/cell-render/chip-render.mjs +21 -21
- package/esm2022/lib/grid/cell-render/img-renderer.mjs +25 -25
- package/esm2022/lib/grid/grid/grid.component.mjs +4 -3
- package/esm2022/lib/grid/grid-utils.mjs +1 -1
- package/esm2022/lib/import/import.component.mjs +1 -1
- package/esm2022/lib/loading/loading.component.mjs +3 -3
- package/esm2022/lib/page-form/page-form.component.mjs +6 -3
- package/esm2022/lib/page-grid-list/page-grid-list.component.mjs +3 -3
- package/esm2022/lib/row-selector/row-selector.component.mjs +3 -3
- package/esm2022/lib/search/search/search.component.mjs +3 -3
- package/esm2022/lib/search/search-tip/search-tip.component.mjs +1 -1
- package/esm2022/lib/search/search-utils.mjs +1 -1
- package/esm2022/lib/search/text-panel/text-panel.component.mjs +1 -1
- package/esm2022/lib/service/action.service.mjs +6 -1
- package/esm2022/lib/service/loading.service.mjs +1 -1
- package/esm2022/lib/steps/steps.component.mjs +1 -1
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/imm-element-ui.mjs +1687 -1671
- package/fesm2022/imm-element-ui.mjs.map +1 -1
- package/lib/crumb-action/crumb-action.component.d.ts +1 -1
- package/lib/grid/grid/grid.component.d.ts +1 -1
- package/lib/grid/grid-utils.d.ts +2 -529
- package/lib/service/action.service.d.ts +3 -0
- package/package.json +1 -1
- package/src/lib/crumb-action/crumb-action.component.scss +60 -60
- package/src/lib/grid/grid/grid.component.scss +45 -45
- package/src/lib/loading/loading.component.scss +31 -31
- package/src/lib/page-form/page-form.component.scss +31 -31
- package/src/lib/row-selector/row-selector.component.scss +1 -1
- package/src/lib/search/pop-date/pop-date.component.scss +67 -67
- package/src/lib/search/pop-list/pop-list.component.scss +23 -23
- package/src/lib/search/pop-panel/pop-panel.component.scss +32 -32
- package/src/lib/search/pop-self/pop-self.component.scss +80 -80
- package/src/lib/search/pop-sort/pop-sort.component.scss +49 -49
- package/src/lib/search/pop-tree/pop-tree.component.scss +37 -37
- package/src/lib/search/search/search.component.scss +70 -70
- package/src/lib/search/search-tip/search-tip.component.scss +50 -50
- package/src/lib/search/text-panel/text-panel.component.scss +24 -24
- package/src/lib/styles/styles.scss +232 -232
|
@@ -730,6 +730,7 @@ class ActionService {
|
|
|
730
730
|
this.action = signal(undefined);
|
|
731
731
|
this.saveSignal = signal(false);
|
|
732
732
|
this.loading = signal(false);
|
|
733
|
+
this.gridAction$ = new BehaviorSubject({});
|
|
733
734
|
}
|
|
734
735
|
setPopMode(mode) {
|
|
735
736
|
this.popMode = mode;
|
|
@@ -855,6 +856,9 @@ class ActionService {
|
|
|
855
856
|
getAction() {
|
|
856
857
|
return this.action();
|
|
857
858
|
}
|
|
859
|
+
updateGridAction(data) {
|
|
860
|
+
this.gridAction$.next(data);
|
|
861
|
+
}
|
|
858
862
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionService, deps: [{ token: PageActionService }, { token: PopActionService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
859
863
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionService, providedIn: 'root' }); }
|
|
860
864
|
}
|
|
@@ -1526,44 +1530,44 @@ class ContextMenuComponent {
|
|
|
1526
1530
|
this.visible = window.innerWidth > 1024;
|
|
1527
1531
|
}
|
|
1528
1532
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ContextMenuComponent, deps: [{ token: i1$2.Clipboard }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1529
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ContextMenuComponent, isStandalone: true, selector: "app-context-menu", inputs: { target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "cm", first: true, predicate: ["cm"], descendants: true }], ngImport: i0, template: `
|
|
1530
|
-
@if (visible) {
|
|
1531
|
-
<p-contextMenu
|
|
1532
|
-
#cm
|
|
1533
|
-
[target]="target()"
|
|
1534
|
-
[appendTo]="'body'"
|
|
1535
|
-
[model]="items">
|
|
1536
|
-
<ng-template
|
|
1537
|
-
#item
|
|
1538
|
-
let-item>
|
|
1539
|
-
<div class="px-[0.5rem] py-[0.5rem]">
|
|
1540
|
-
<i [class]="item.icon"></i>
|
|
1541
|
-
<span class="ml-2 cursor-pointer">{{ item.label }}</span>
|
|
1542
|
-
</div>
|
|
1543
|
-
</ng-template>
|
|
1544
|
-
</p-contextMenu>
|
|
1545
|
-
}
|
|
1533
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ContextMenuComponent, isStandalone: true, selector: "app-context-menu", inputs: { target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "cm", first: true, predicate: ["cm"], descendants: true }], ngImport: i0, template: `
|
|
1534
|
+
@if (visible) {
|
|
1535
|
+
<p-contextMenu
|
|
1536
|
+
#cm
|
|
1537
|
+
[target]="target()"
|
|
1538
|
+
[appendTo]="'body'"
|
|
1539
|
+
[model]="items">
|
|
1540
|
+
<ng-template
|
|
1541
|
+
#item
|
|
1542
|
+
let-item>
|
|
1543
|
+
<div class="px-[0.5rem] py-[0.5rem]">
|
|
1544
|
+
<i [class]="item.icon"></i>
|
|
1545
|
+
<span class="ml-2 cursor-pointer">{{ item.label }}</span>
|
|
1546
|
+
</div>
|
|
1547
|
+
</ng-template>
|
|
1548
|
+
</p-contextMenu>
|
|
1549
|
+
}
|
|
1546
1550
|
`, isInline: true, styles: [""], dependencies: [{ kind: "component", type: ContextMenu, selector: "p-contextMenu, p-contextmenu, p-context-menu", inputs: ["model", "triggerEvent", "target", "global", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "id", "breakpoint", "ariaLabel", "ariaLabelledBy", "pressDelay"], outputs: ["onShow", "onHide"] }] }); }
|
|
1547
1551
|
}
|
|
1548
1552
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ContextMenuComponent, decorators: [{
|
|
1549
1553
|
type: Component,
|
|
1550
|
-
args: [{ selector: 'app-context-menu', standalone: true, imports: [ContextMenu], template: `
|
|
1551
|
-
@if (visible) {
|
|
1552
|
-
<p-contextMenu
|
|
1553
|
-
#cm
|
|
1554
|
-
[target]="target()"
|
|
1555
|
-
[appendTo]="'body'"
|
|
1556
|
-
[model]="items">
|
|
1557
|
-
<ng-template
|
|
1558
|
-
#item
|
|
1559
|
-
let-item>
|
|
1560
|
-
<div class="px-[0.5rem] py-[0.5rem]">
|
|
1561
|
-
<i [class]="item.icon"></i>
|
|
1562
|
-
<span class="ml-2 cursor-pointer">{{ item.label }}</span>
|
|
1563
|
-
</div>
|
|
1564
|
-
</ng-template>
|
|
1565
|
-
</p-contextMenu>
|
|
1566
|
-
}
|
|
1554
|
+
args: [{ selector: 'app-context-menu', standalone: true, imports: [ContextMenu], template: `
|
|
1555
|
+
@if (visible) {
|
|
1556
|
+
<p-contextMenu
|
|
1557
|
+
#cm
|
|
1558
|
+
[target]="target()"
|
|
1559
|
+
[appendTo]="'body'"
|
|
1560
|
+
[model]="items">
|
|
1561
|
+
<ng-template
|
|
1562
|
+
#item
|
|
1563
|
+
let-item>
|
|
1564
|
+
<div class="px-[0.5rem] py-[0.5rem]">
|
|
1565
|
+
<i [class]="item.icon"></i>
|
|
1566
|
+
<span class="ml-2 cursor-pointer">{{ item.label }}</span>
|
|
1567
|
+
</div>
|
|
1568
|
+
</ng-template>
|
|
1569
|
+
</p-contextMenu>
|
|
1570
|
+
}
|
|
1567
1571
|
` }]
|
|
1568
1572
|
}], ctorParameters: () => [{ type: i1$2.Clipboard }], propDecorators: { cm: [{
|
|
1569
1573
|
type: ViewChild,
|
|
@@ -1623,28 +1627,28 @@ class InputTextComponent {
|
|
|
1623
1627
|
}
|
|
1624
1628
|
}
|
|
1625
1629
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputTextComponent, deps: [{ token: ActionService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1626
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: InputTextComponent, isStandalone: true, selector: "form-inputtext", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["inputRef"], descendants: true, read: ElementRef }], ngImport: i0, template: `<input
|
|
1627
|
-
#inputRef
|
|
1628
|
-
type="text"
|
|
1629
|
-
pInputText
|
|
1630
|
-
[id]="field()?.uuid"
|
|
1631
|
-
[variant]="props.variant"
|
|
1632
|
-
[fluid]="props.fluid ?? true"
|
|
1633
|
-
[pSize]="props.size"
|
|
1634
|
-
[class]="props.class"
|
|
1630
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: InputTextComponent, isStandalone: true, selector: "form-inputtext", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["inputRef"], descendants: true, read: ElementRef }], ngImport: i0, template: `<input
|
|
1631
|
+
#inputRef
|
|
1632
|
+
type="text"
|
|
1633
|
+
pInputText
|
|
1634
|
+
[id]="field()?.uuid"
|
|
1635
|
+
[variant]="props.variant"
|
|
1636
|
+
[fluid]="props.fluid ?? true"
|
|
1637
|
+
[pSize]="props.size"
|
|
1638
|
+
[class]="props.class"
|
|
1635
1639
|
[formControl]="field()!.fieldControl!" />`, isInline: true, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i2$1.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
1636
1640
|
}
|
|
1637
1641
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputTextComponent, decorators: [{
|
|
1638
1642
|
type: Component,
|
|
1639
|
-
args: [{ selector: 'form-inputtext', standalone: true, imports: [InputTextModule, ReactiveFormsModule], template: `<input
|
|
1640
|
-
#inputRef
|
|
1641
|
-
type="text"
|
|
1642
|
-
pInputText
|
|
1643
|
-
[id]="field()?.uuid"
|
|
1644
|
-
[variant]="props.variant"
|
|
1645
|
-
[fluid]="props.fluid ?? true"
|
|
1646
|
-
[pSize]="props.size"
|
|
1647
|
-
[class]="props.class"
|
|
1643
|
+
args: [{ selector: 'form-inputtext', standalone: true, imports: [InputTextModule, ReactiveFormsModule], template: `<input
|
|
1644
|
+
#inputRef
|
|
1645
|
+
type="text"
|
|
1646
|
+
pInputText
|
|
1647
|
+
[id]="field()?.uuid"
|
|
1648
|
+
[variant]="props.variant"
|
|
1649
|
+
[fluid]="props.fluid ?? true"
|
|
1650
|
+
[pSize]="props.size"
|
|
1651
|
+
[class]="props.class"
|
|
1648
1652
|
[formControl]="field()!.fieldControl!" />`, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"] }]
|
|
1649
1653
|
}], ctorParameters: () => [{ type: ActionService }, { type: i0.Renderer2 }], propDecorators: { inputRef: [{
|
|
1650
1654
|
type: ViewChild,
|
|
@@ -1694,100 +1698,100 @@ class InputNumberComponent {
|
|
|
1694
1698
|
}
|
|
1695
1699
|
}
|
|
1696
1700
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputNumberComponent, deps: [{ token: ActionService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1697
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: InputNumberComponent, isStandalone: true, selector: "form-inputnumber", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "inputNumber", first: true, predicate: InputNumber, descendants: true }, { propertyName: "inputNumberRef", first: true, predicate: InputNumber, descendants: true, read: ElementRef }], ngImport: i0, template: `<p-inputnumber
|
|
1698
|
-
[id]="field()?.uuid"
|
|
1699
|
-
[inputId]="field()?.uuid"
|
|
1700
|
-
[variant]="props.variant ?? 'outlined'"
|
|
1701
|
-
[fluid]="props.fluid"
|
|
1702
|
-
[size]="props.size"
|
|
1703
|
-
[showButtons]="props.showButtons"
|
|
1704
|
-
[format]="props.format ?? true"
|
|
1705
|
-
[buttonLayout]="props.buttonLayout ?? 'stacked'"
|
|
1706
|
-
[styleClass]="props.styleClass"
|
|
1707
|
-
[maxlength]="props.maxlength ?? null"
|
|
1708
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
1709
|
-
[ariaLabel]="props.ariaLabel"
|
|
1710
|
-
[ariaRequired]="props.ariaRequired"
|
|
1711
|
-
[autocomplete]="props.autocomplete"
|
|
1712
|
-
[min]="props.min"
|
|
1713
|
-
[max]="props.max"
|
|
1714
|
-
[incrementButtonClass]="props.incrementButtonClass"
|
|
1715
|
-
[decrementButtonClass]="props.decrementButtonClass"
|
|
1716
|
-
[incrementButtonIcon]="props.incrementButtonIcon"
|
|
1717
|
-
[decrementButtonIcon]="props.decrementButtonIcon"
|
|
1718
|
-
[step]="props.step"
|
|
1719
|
-
[allowEmpty]="props.allowEmpty ?? true"
|
|
1720
|
-
[locale]="props.locale"
|
|
1721
|
-
[localeMatcher]="props.localeMatcher"
|
|
1722
|
-
[mode]="props.mode"
|
|
1723
|
-
[currency]="props.currency"
|
|
1724
|
-
[currencyDisplay]="props.currencyDisplay"
|
|
1725
|
-
[useGrouping]="props.useGrouping"
|
|
1726
|
-
[variant]="props.variant"
|
|
1727
|
-
[minFractionDigits]="props.minFractionDigits"
|
|
1728
|
-
[maxFractionDigits]="props.maxFractionDigits"
|
|
1729
|
-
[prefix]="props.prefix"
|
|
1730
|
-
[suffix]="props.suffix"
|
|
1731
|
-
[inputStyle]="props.inputStyle"
|
|
1732
|
-
[inputStyleClass]="props.inputStyleClass"
|
|
1733
|
-
[showClear]="props.showClear"
|
|
1734
|
-
[autofocus]="props.autofocus"
|
|
1735
|
-
[fluid]="props.fluid == undefined ? true : props.fluid"
|
|
1736
|
-
(onInput)="props.onInput?.(field()!, $event)"
|
|
1737
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
1738
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
1739
|
-
(onKeyDown)="props.onKeyDown?.(field()!, $event)"
|
|
1740
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
1741
|
-
[class]="props.class ?? 'field-vvvv'"
|
|
1701
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: InputNumberComponent, isStandalone: true, selector: "form-inputnumber", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "inputNumber", first: true, predicate: InputNumber, descendants: true }, { propertyName: "inputNumberRef", first: true, predicate: InputNumber, descendants: true, read: ElementRef }], ngImport: i0, template: `<p-inputnumber
|
|
1702
|
+
[id]="field()?.uuid"
|
|
1703
|
+
[inputId]="field()?.uuid"
|
|
1704
|
+
[variant]="props.variant ?? 'outlined'"
|
|
1705
|
+
[fluid]="props.fluid"
|
|
1706
|
+
[size]="props.size"
|
|
1707
|
+
[showButtons]="props.showButtons"
|
|
1708
|
+
[format]="props.format ?? true"
|
|
1709
|
+
[buttonLayout]="props.buttonLayout ?? 'stacked'"
|
|
1710
|
+
[styleClass]="props.styleClass"
|
|
1711
|
+
[maxlength]="props.maxlength ?? null"
|
|
1712
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
1713
|
+
[ariaLabel]="props.ariaLabel"
|
|
1714
|
+
[ariaRequired]="props.ariaRequired"
|
|
1715
|
+
[autocomplete]="props.autocomplete"
|
|
1716
|
+
[min]="props.min"
|
|
1717
|
+
[max]="props.max"
|
|
1718
|
+
[incrementButtonClass]="props.incrementButtonClass"
|
|
1719
|
+
[decrementButtonClass]="props.decrementButtonClass"
|
|
1720
|
+
[incrementButtonIcon]="props.incrementButtonIcon"
|
|
1721
|
+
[decrementButtonIcon]="props.decrementButtonIcon"
|
|
1722
|
+
[step]="props.step"
|
|
1723
|
+
[allowEmpty]="props.allowEmpty ?? true"
|
|
1724
|
+
[locale]="props.locale"
|
|
1725
|
+
[localeMatcher]="props.localeMatcher"
|
|
1726
|
+
[mode]="props.mode"
|
|
1727
|
+
[currency]="props.currency"
|
|
1728
|
+
[currencyDisplay]="props.currencyDisplay"
|
|
1729
|
+
[useGrouping]="props.useGrouping"
|
|
1730
|
+
[variant]="props.variant"
|
|
1731
|
+
[minFractionDigits]="props.minFractionDigits"
|
|
1732
|
+
[maxFractionDigits]="props.maxFractionDigits"
|
|
1733
|
+
[prefix]="props.prefix"
|
|
1734
|
+
[suffix]="props.suffix"
|
|
1735
|
+
[inputStyle]="props.inputStyle"
|
|
1736
|
+
[inputStyleClass]="props.inputStyleClass"
|
|
1737
|
+
[showClear]="props.showClear"
|
|
1738
|
+
[autofocus]="props.autofocus"
|
|
1739
|
+
[fluid]="props.fluid == undefined ? true : props.fluid"
|
|
1740
|
+
(onInput)="props.onInput?.(field()!, $event)"
|
|
1741
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
1742
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
1743
|
+
(onKeyDown)="props.onKeyDown?.(field()!, $event)"
|
|
1744
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
1745
|
+
[class]="props.class ?? 'field-vvvv'"
|
|
1742
1746
|
[formControl]="field()!.fieldControl!" />`, isInline: true, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n", ".field-vvvv{background:red}\n"], dependencies: [{ kind: "ngmodule", type: InputTextModule }, { kind: "component", type: InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabelledBy", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "variant", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus", "disabled", "fluid"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
1743
1747
|
}
|
|
1744
1748
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputNumberComponent, decorators: [{
|
|
1745
1749
|
type: Component,
|
|
1746
|
-
args: [{ selector: 'form-inputnumber', standalone: true, imports: [InputTextModule, InputNumber, ReactiveFormsModule], template: `<p-inputnumber
|
|
1747
|
-
[id]="field()?.uuid"
|
|
1748
|
-
[inputId]="field()?.uuid"
|
|
1749
|
-
[variant]="props.variant ?? 'outlined'"
|
|
1750
|
-
[fluid]="props.fluid"
|
|
1751
|
-
[size]="props.size"
|
|
1752
|
-
[showButtons]="props.showButtons"
|
|
1753
|
-
[format]="props.format ?? true"
|
|
1754
|
-
[buttonLayout]="props.buttonLayout ?? 'stacked'"
|
|
1755
|
-
[styleClass]="props.styleClass"
|
|
1756
|
-
[maxlength]="props.maxlength ?? null"
|
|
1757
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
1758
|
-
[ariaLabel]="props.ariaLabel"
|
|
1759
|
-
[ariaRequired]="props.ariaRequired"
|
|
1760
|
-
[autocomplete]="props.autocomplete"
|
|
1761
|
-
[min]="props.min"
|
|
1762
|
-
[max]="props.max"
|
|
1763
|
-
[incrementButtonClass]="props.incrementButtonClass"
|
|
1764
|
-
[decrementButtonClass]="props.decrementButtonClass"
|
|
1765
|
-
[incrementButtonIcon]="props.incrementButtonIcon"
|
|
1766
|
-
[decrementButtonIcon]="props.decrementButtonIcon"
|
|
1767
|
-
[step]="props.step"
|
|
1768
|
-
[allowEmpty]="props.allowEmpty ?? true"
|
|
1769
|
-
[locale]="props.locale"
|
|
1770
|
-
[localeMatcher]="props.localeMatcher"
|
|
1771
|
-
[mode]="props.mode"
|
|
1772
|
-
[currency]="props.currency"
|
|
1773
|
-
[currencyDisplay]="props.currencyDisplay"
|
|
1774
|
-
[useGrouping]="props.useGrouping"
|
|
1775
|
-
[variant]="props.variant"
|
|
1776
|
-
[minFractionDigits]="props.minFractionDigits"
|
|
1777
|
-
[maxFractionDigits]="props.maxFractionDigits"
|
|
1778
|
-
[prefix]="props.prefix"
|
|
1779
|
-
[suffix]="props.suffix"
|
|
1780
|
-
[inputStyle]="props.inputStyle"
|
|
1781
|
-
[inputStyleClass]="props.inputStyleClass"
|
|
1782
|
-
[showClear]="props.showClear"
|
|
1783
|
-
[autofocus]="props.autofocus"
|
|
1784
|
-
[fluid]="props.fluid == undefined ? true : props.fluid"
|
|
1785
|
-
(onInput)="props.onInput?.(field()!, $event)"
|
|
1786
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
1787
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
1788
|
-
(onKeyDown)="props.onKeyDown?.(field()!, $event)"
|
|
1789
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
1790
|
-
[class]="props.class ?? 'field-vvvv'"
|
|
1750
|
+
args: [{ selector: 'form-inputnumber', standalone: true, imports: [InputTextModule, InputNumber, ReactiveFormsModule], template: `<p-inputnumber
|
|
1751
|
+
[id]="field()?.uuid"
|
|
1752
|
+
[inputId]="field()?.uuid"
|
|
1753
|
+
[variant]="props.variant ?? 'outlined'"
|
|
1754
|
+
[fluid]="props.fluid"
|
|
1755
|
+
[size]="props.size"
|
|
1756
|
+
[showButtons]="props.showButtons"
|
|
1757
|
+
[format]="props.format ?? true"
|
|
1758
|
+
[buttonLayout]="props.buttonLayout ?? 'stacked'"
|
|
1759
|
+
[styleClass]="props.styleClass"
|
|
1760
|
+
[maxlength]="props.maxlength ?? null"
|
|
1761
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
1762
|
+
[ariaLabel]="props.ariaLabel"
|
|
1763
|
+
[ariaRequired]="props.ariaRequired"
|
|
1764
|
+
[autocomplete]="props.autocomplete"
|
|
1765
|
+
[min]="props.min"
|
|
1766
|
+
[max]="props.max"
|
|
1767
|
+
[incrementButtonClass]="props.incrementButtonClass"
|
|
1768
|
+
[decrementButtonClass]="props.decrementButtonClass"
|
|
1769
|
+
[incrementButtonIcon]="props.incrementButtonIcon"
|
|
1770
|
+
[decrementButtonIcon]="props.decrementButtonIcon"
|
|
1771
|
+
[step]="props.step"
|
|
1772
|
+
[allowEmpty]="props.allowEmpty ?? true"
|
|
1773
|
+
[locale]="props.locale"
|
|
1774
|
+
[localeMatcher]="props.localeMatcher"
|
|
1775
|
+
[mode]="props.mode"
|
|
1776
|
+
[currency]="props.currency"
|
|
1777
|
+
[currencyDisplay]="props.currencyDisplay"
|
|
1778
|
+
[useGrouping]="props.useGrouping"
|
|
1779
|
+
[variant]="props.variant"
|
|
1780
|
+
[minFractionDigits]="props.minFractionDigits"
|
|
1781
|
+
[maxFractionDigits]="props.maxFractionDigits"
|
|
1782
|
+
[prefix]="props.prefix"
|
|
1783
|
+
[suffix]="props.suffix"
|
|
1784
|
+
[inputStyle]="props.inputStyle"
|
|
1785
|
+
[inputStyleClass]="props.inputStyleClass"
|
|
1786
|
+
[showClear]="props.showClear"
|
|
1787
|
+
[autofocus]="props.autofocus"
|
|
1788
|
+
[fluid]="props.fluid == undefined ? true : props.fluid"
|
|
1789
|
+
(onInput)="props.onInput?.(field()!, $event)"
|
|
1790
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
1791
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
1792
|
+
(onKeyDown)="props.onKeyDown?.(field()!, $event)"
|
|
1793
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
1794
|
+
[class]="props.class ?? 'field-vvvv'"
|
|
1791
1795
|
[formControl]="field()!.fieldControl!" />`, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n", ".field-vvvv{background:red}\n"] }]
|
|
1792
1796
|
}], ctorParameters: () => [{ type: ActionService }, { type: i0.Renderer2 }], propDecorators: { inputNumber: [{
|
|
1793
1797
|
type: ViewChild,
|
|
@@ -1842,142 +1846,142 @@ class SelectComponent {
|
|
|
1842
1846
|
}
|
|
1843
1847
|
}
|
|
1844
1848
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SelectComponent, deps: [{ token: ActionService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1845
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: SelectComponent, isStandalone: true, selector: "form-select", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "select", first: true, predicate: Select, descendants: true }, { propertyName: "selectRef", first: true, predicate: Select, descendants: true, read: ElementRef }], ngImport: i0, template: `<p-select
|
|
1846
|
-
[id]="field()?.uuid"
|
|
1847
|
-
[inputId]="field()?.uuid"
|
|
1848
|
-
[scrollHeight]="props.scrollHeight ?? '200px'"
|
|
1849
|
-
[filter]="props.filter"
|
|
1850
|
-
[name]="props.name"
|
|
1851
|
-
[options]="props.options"
|
|
1852
|
-
[optionLabel]="props.optionLabel"
|
|
1853
|
-
[optionValue]="props.optionValue"
|
|
1854
|
-
[placeholder]="props.placeholder"
|
|
1855
|
-
[class]="props.class"
|
|
1856
|
-
[style]="props.style"
|
|
1857
|
-
[panelStyle]="props.panelStyle"
|
|
1858
|
-
[panelStyleClass]="props.panelStyleClass"
|
|
1859
|
-
[readonly]="props.readonly"
|
|
1860
|
-
[editable]="props.editable"
|
|
1861
|
-
[appendTo]="props.appendTo ?? 'body'"
|
|
1862
|
-
[tabindex]="props.tabindex"
|
|
1863
|
-
[placeholder]="props.placeholder"
|
|
1864
|
-
[loadingIcon]="props.loadingIcon"
|
|
1865
|
-
[filterPlaceholder]="props.filterPlaceholder"
|
|
1866
|
-
[filterLocale]="props.filterLocale"
|
|
1867
|
-
[variant]="props.variant"
|
|
1868
|
-
[dataKey]="props.dataKey"
|
|
1869
|
-
[filterBy]="props.filterBy"
|
|
1870
|
-
[filterFields]="props.filterFields"
|
|
1871
|
-
[autofocus]="props.autofocus"
|
|
1872
|
-
[resetFilterOnHide]="props.resetFilterOnHide"
|
|
1873
|
-
[checkmark]="props.checkmark"
|
|
1874
|
-
[dropdownIcon]="props.dropdownIcon"
|
|
1875
|
-
[loading]="props.loading"
|
|
1876
|
-
[optionDisabled]="props.optionDisabled"
|
|
1877
|
-
[optionGroupLabel]="props.optionGroupLabel"
|
|
1878
|
-
[optionGroupChildren]="props.optionGroupChildren ?? 'items'"
|
|
1879
|
-
[group]="props.group"
|
|
1880
|
-
[showClear]="props.showClear"
|
|
1881
|
-
[emptyFilterMessage]="props.emptyFilterMessage"
|
|
1882
|
-
[emptyMessage]="props.emptyMessage"
|
|
1883
|
-
[lazy]="props.lazy"
|
|
1884
|
-
[virtualScroll]="props.virtualScroll"
|
|
1885
|
-
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
1886
|
-
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
1887
|
-
[overlayOptions]="props.overlayOptions"
|
|
1888
|
-
[size]="props.size"
|
|
1889
|
-
[ariaFilterLabel]="props.ariaFilterLabel"
|
|
1890
|
-
[ariaLabel]="props.ariaLabel"
|
|
1891
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
1892
|
-
[filterMatchMode]="props.filterMatchMode"
|
|
1893
|
-
[maxlength]="props.maxlength"
|
|
1894
|
-
[tooltip]="props.tooltip"
|
|
1895
|
-
[tooltipPosition]="props.tooltipPosition ?? 'right'"
|
|
1896
|
-
[tooltipPositionStyle]="props.tooltipPositionStyle ?? 'absolute'"
|
|
1897
|
-
[tooltipStyleClass]="props.tooltipStyleClass"
|
|
1898
|
-
[focusOnHover]="props.focusOnHover ?? true"
|
|
1899
|
-
[fluid]="props.fluid ?? true"
|
|
1900
|
-
[filterValue]="props.filterValue"
|
|
1901
|
-
(onChange)="props.onChange?.(field()!, $event)"
|
|
1902
|
-
(onFilter)="props.onFilter?.(field()!, $event)"
|
|
1903
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
1904
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
1905
|
-
(onClick)="props.onClick?.(field()!, $event)"
|
|
1906
|
-
(onShow)="props.onShow?.(field()!, $event)"
|
|
1907
|
-
(onHide)="props.onHide?.(field()!, $event)"
|
|
1908
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
1909
|
-
(onLazyLoad)="props.onLazyLoad?.(field()!, $event)"
|
|
1910
|
-
[class]="props.class"
|
|
1849
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: SelectComponent, isStandalone: true, selector: "form-select", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "select", first: true, predicate: Select, descendants: true }, { propertyName: "selectRef", first: true, predicate: Select, descendants: true, read: ElementRef }], ngImport: i0, template: `<p-select
|
|
1850
|
+
[id]="field()?.uuid"
|
|
1851
|
+
[inputId]="field()?.uuid"
|
|
1852
|
+
[scrollHeight]="props.scrollHeight ?? '200px'"
|
|
1853
|
+
[filter]="props.filter"
|
|
1854
|
+
[name]="props.name"
|
|
1855
|
+
[options]="props.options"
|
|
1856
|
+
[optionLabel]="props.optionLabel"
|
|
1857
|
+
[optionValue]="props.optionValue"
|
|
1858
|
+
[placeholder]="props.placeholder"
|
|
1859
|
+
[class]="props.class"
|
|
1860
|
+
[style]="props.style"
|
|
1861
|
+
[panelStyle]="props.panelStyle"
|
|
1862
|
+
[panelStyleClass]="props.panelStyleClass"
|
|
1863
|
+
[readonly]="props.readonly"
|
|
1864
|
+
[editable]="props.editable"
|
|
1865
|
+
[appendTo]="props.appendTo ?? 'body'"
|
|
1866
|
+
[tabindex]="props.tabindex"
|
|
1867
|
+
[placeholder]="props.placeholder"
|
|
1868
|
+
[loadingIcon]="props.loadingIcon"
|
|
1869
|
+
[filterPlaceholder]="props.filterPlaceholder"
|
|
1870
|
+
[filterLocale]="props.filterLocale"
|
|
1871
|
+
[variant]="props.variant"
|
|
1872
|
+
[dataKey]="props.dataKey"
|
|
1873
|
+
[filterBy]="props.filterBy"
|
|
1874
|
+
[filterFields]="props.filterFields"
|
|
1875
|
+
[autofocus]="props.autofocus"
|
|
1876
|
+
[resetFilterOnHide]="props.resetFilterOnHide"
|
|
1877
|
+
[checkmark]="props.checkmark"
|
|
1878
|
+
[dropdownIcon]="props.dropdownIcon"
|
|
1879
|
+
[loading]="props.loading"
|
|
1880
|
+
[optionDisabled]="props.optionDisabled"
|
|
1881
|
+
[optionGroupLabel]="props.optionGroupLabel"
|
|
1882
|
+
[optionGroupChildren]="props.optionGroupChildren ?? 'items'"
|
|
1883
|
+
[group]="props.group"
|
|
1884
|
+
[showClear]="props.showClear"
|
|
1885
|
+
[emptyFilterMessage]="props.emptyFilterMessage"
|
|
1886
|
+
[emptyMessage]="props.emptyMessage"
|
|
1887
|
+
[lazy]="props.lazy"
|
|
1888
|
+
[virtualScroll]="props.virtualScroll"
|
|
1889
|
+
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
1890
|
+
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
1891
|
+
[overlayOptions]="props.overlayOptions"
|
|
1892
|
+
[size]="props.size"
|
|
1893
|
+
[ariaFilterLabel]="props.ariaFilterLabel"
|
|
1894
|
+
[ariaLabel]="props.ariaLabel"
|
|
1895
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
1896
|
+
[filterMatchMode]="props.filterMatchMode"
|
|
1897
|
+
[maxlength]="props.maxlength"
|
|
1898
|
+
[tooltip]="props.tooltip"
|
|
1899
|
+
[tooltipPosition]="props.tooltipPosition ?? 'right'"
|
|
1900
|
+
[tooltipPositionStyle]="props.tooltipPositionStyle ?? 'absolute'"
|
|
1901
|
+
[tooltipStyleClass]="props.tooltipStyleClass"
|
|
1902
|
+
[focusOnHover]="props.focusOnHover ?? true"
|
|
1903
|
+
[fluid]="props.fluid ?? true"
|
|
1904
|
+
[filterValue]="props.filterValue"
|
|
1905
|
+
(onChange)="props.onChange?.(field()!, $event)"
|
|
1906
|
+
(onFilter)="props.onFilter?.(field()!, $event)"
|
|
1907
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
1908
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
1909
|
+
(onClick)="props.onClick?.(field()!, $event)"
|
|
1910
|
+
(onShow)="props.onShow?.(field()!, $event)"
|
|
1911
|
+
(onHide)="props.onHide?.(field()!, $event)"
|
|
1912
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
1913
|
+
(onLazyLoad)="props.onLazyLoad?.(field()!, $event)"
|
|
1914
|
+
[class]="props.class"
|
|
1911
1915
|
[formControl]="field()!.fieldControl!" />`, isInline: true, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"], dependencies: [{ kind: "component", type: Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "size", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "fluid", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
1912
1916
|
}
|
|
1913
1917
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SelectComponent, decorators: [{
|
|
1914
1918
|
type: Component,
|
|
1915
|
-
args: [{ selector: 'form-select', standalone: true, imports: [Select, ReactiveFormsModule], template: `<p-select
|
|
1916
|
-
[id]="field()?.uuid"
|
|
1917
|
-
[inputId]="field()?.uuid"
|
|
1918
|
-
[scrollHeight]="props.scrollHeight ?? '200px'"
|
|
1919
|
-
[filter]="props.filter"
|
|
1920
|
-
[name]="props.name"
|
|
1921
|
-
[options]="props.options"
|
|
1922
|
-
[optionLabel]="props.optionLabel"
|
|
1923
|
-
[optionValue]="props.optionValue"
|
|
1924
|
-
[placeholder]="props.placeholder"
|
|
1925
|
-
[class]="props.class"
|
|
1926
|
-
[style]="props.style"
|
|
1927
|
-
[panelStyle]="props.panelStyle"
|
|
1928
|
-
[panelStyleClass]="props.panelStyleClass"
|
|
1929
|
-
[readonly]="props.readonly"
|
|
1930
|
-
[editable]="props.editable"
|
|
1931
|
-
[appendTo]="props.appendTo ?? 'body'"
|
|
1932
|
-
[tabindex]="props.tabindex"
|
|
1933
|
-
[placeholder]="props.placeholder"
|
|
1934
|
-
[loadingIcon]="props.loadingIcon"
|
|
1935
|
-
[filterPlaceholder]="props.filterPlaceholder"
|
|
1936
|
-
[filterLocale]="props.filterLocale"
|
|
1937
|
-
[variant]="props.variant"
|
|
1938
|
-
[dataKey]="props.dataKey"
|
|
1939
|
-
[filterBy]="props.filterBy"
|
|
1940
|
-
[filterFields]="props.filterFields"
|
|
1941
|
-
[autofocus]="props.autofocus"
|
|
1942
|
-
[resetFilterOnHide]="props.resetFilterOnHide"
|
|
1943
|
-
[checkmark]="props.checkmark"
|
|
1944
|
-
[dropdownIcon]="props.dropdownIcon"
|
|
1945
|
-
[loading]="props.loading"
|
|
1946
|
-
[optionDisabled]="props.optionDisabled"
|
|
1947
|
-
[optionGroupLabel]="props.optionGroupLabel"
|
|
1948
|
-
[optionGroupChildren]="props.optionGroupChildren ?? 'items'"
|
|
1949
|
-
[group]="props.group"
|
|
1950
|
-
[showClear]="props.showClear"
|
|
1951
|
-
[emptyFilterMessage]="props.emptyFilterMessage"
|
|
1952
|
-
[emptyMessage]="props.emptyMessage"
|
|
1953
|
-
[lazy]="props.lazy"
|
|
1954
|
-
[virtualScroll]="props.virtualScroll"
|
|
1955
|
-
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
1956
|
-
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
1957
|
-
[overlayOptions]="props.overlayOptions"
|
|
1958
|
-
[size]="props.size"
|
|
1959
|
-
[ariaFilterLabel]="props.ariaFilterLabel"
|
|
1960
|
-
[ariaLabel]="props.ariaLabel"
|
|
1961
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
1962
|
-
[filterMatchMode]="props.filterMatchMode"
|
|
1963
|
-
[maxlength]="props.maxlength"
|
|
1964
|
-
[tooltip]="props.tooltip"
|
|
1965
|
-
[tooltipPosition]="props.tooltipPosition ?? 'right'"
|
|
1966
|
-
[tooltipPositionStyle]="props.tooltipPositionStyle ?? 'absolute'"
|
|
1967
|
-
[tooltipStyleClass]="props.tooltipStyleClass"
|
|
1968
|
-
[focusOnHover]="props.focusOnHover ?? true"
|
|
1969
|
-
[fluid]="props.fluid ?? true"
|
|
1970
|
-
[filterValue]="props.filterValue"
|
|
1971
|
-
(onChange)="props.onChange?.(field()!, $event)"
|
|
1972
|
-
(onFilter)="props.onFilter?.(field()!, $event)"
|
|
1973
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
1974
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
1975
|
-
(onClick)="props.onClick?.(field()!, $event)"
|
|
1976
|
-
(onShow)="props.onShow?.(field()!, $event)"
|
|
1977
|
-
(onHide)="props.onHide?.(field()!, $event)"
|
|
1978
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
1979
|
-
(onLazyLoad)="props.onLazyLoad?.(field()!, $event)"
|
|
1980
|
-
[class]="props.class"
|
|
1919
|
+
args: [{ selector: 'form-select', standalone: true, imports: [Select, ReactiveFormsModule], template: `<p-select
|
|
1920
|
+
[id]="field()?.uuid"
|
|
1921
|
+
[inputId]="field()?.uuid"
|
|
1922
|
+
[scrollHeight]="props.scrollHeight ?? '200px'"
|
|
1923
|
+
[filter]="props.filter"
|
|
1924
|
+
[name]="props.name"
|
|
1925
|
+
[options]="props.options"
|
|
1926
|
+
[optionLabel]="props.optionLabel"
|
|
1927
|
+
[optionValue]="props.optionValue"
|
|
1928
|
+
[placeholder]="props.placeholder"
|
|
1929
|
+
[class]="props.class"
|
|
1930
|
+
[style]="props.style"
|
|
1931
|
+
[panelStyle]="props.panelStyle"
|
|
1932
|
+
[panelStyleClass]="props.panelStyleClass"
|
|
1933
|
+
[readonly]="props.readonly"
|
|
1934
|
+
[editable]="props.editable"
|
|
1935
|
+
[appendTo]="props.appendTo ?? 'body'"
|
|
1936
|
+
[tabindex]="props.tabindex"
|
|
1937
|
+
[placeholder]="props.placeholder"
|
|
1938
|
+
[loadingIcon]="props.loadingIcon"
|
|
1939
|
+
[filterPlaceholder]="props.filterPlaceholder"
|
|
1940
|
+
[filterLocale]="props.filterLocale"
|
|
1941
|
+
[variant]="props.variant"
|
|
1942
|
+
[dataKey]="props.dataKey"
|
|
1943
|
+
[filterBy]="props.filterBy"
|
|
1944
|
+
[filterFields]="props.filterFields"
|
|
1945
|
+
[autofocus]="props.autofocus"
|
|
1946
|
+
[resetFilterOnHide]="props.resetFilterOnHide"
|
|
1947
|
+
[checkmark]="props.checkmark"
|
|
1948
|
+
[dropdownIcon]="props.dropdownIcon"
|
|
1949
|
+
[loading]="props.loading"
|
|
1950
|
+
[optionDisabled]="props.optionDisabled"
|
|
1951
|
+
[optionGroupLabel]="props.optionGroupLabel"
|
|
1952
|
+
[optionGroupChildren]="props.optionGroupChildren ?? 'items'"
|
|
1953
|
+
[group]="props.group"
|
|
1954
|
+
[showClear]="props.showClear"
|
|
1955
|
+
[emptyFilterMessage]="props.emptyFilterMessage"
|
|
1956
|
+
[emptyMessage]="props.emptyMessage"
|
|
1957
|
+
[lazy]="props.lazy"
|
|
1958
|
+
[virtualScroll]="props.virtualScroll"
|
|
1959
|
+
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
1960
|
+
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
1961
|
+
[overlayOptions]="props.overlayOptions"
|
|
1962
|
+
[size]="props.size"
|
|
1963
|
+
[ariaFilterLabel]="props.ariaFilterLabel"
|
|
1964
|
+
[ariaLabel]="props.ariaLabel"
|
|
1965
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
1966
|
+
[filterMatchMode]="props.filterMatchMode"
|
|
1967
|
+
[maxlength]="props.maxlength"
|
|
1968
|
+
[tooltip]="props.tooltip"
|
|
1969
|
+
[tooltipPosition]="props.tooltipPosition ?? 'right'"
|
|
1970
|
+
[tooltipPositionStyle]="props.tooltipPositionStyle ?? 'absolute'"
|
|
1971
|
+
[tooltipStyleClass]="props.tooltipStyleClass"
|
|
1972
|
+
[focusOnHover]="props.focusOnHover ?? true"
|
|
1973
|
+
[fluid]="props.fluid ?? true"
|
|
1974
|
+
[filterValue]="props.filterValue"
|
|
1975
|
+
(onChange)="props.onChange?.(field()!, $event)"
|
|
1976
|
+
(onFilter)="props.onFilter?.(field()!, $event)"
|
|
1977
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
1978
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
1979
|
+
(onClick)="props.onClick?.(field()!, $event)"
|
|
1980
|
+
(onShow)="props.onShow?.(field()!, $event)"
|
|
1981
|
+
(onHide)="props.onHide?.(field()!, $event)"
|
|
1982
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
1983
|
+
(onLazyLoad)="props.onLazyLoad?.(field()!, $event)"
|
|
1984
|
+
[class]="props.class"
|
|
1981
1985
|
[formControl]="field()!.fieldControl!" />`, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"] }]
|
|
1982
1986
|
}], ctorParameters: () => [{ type: ActionService }, { type: i0.Renderer2 }], propDecorators: { select: [{
|
|
1983
1987
|
type: ViewChild,
|
|
@@ -2037,124 +2041,124 @@ class TreeSelectComponent {
|
|
|
2037
2041
|
});
|
|
2038
2042
|
}
|
|
2039
2043
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TreeSelectComponent, deps: [{ token: ActionService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2040
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: TreeSelectComponent, isStandalone: true, selector: "form-treeselect", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "treeselect", first: true, predicate: TreeSelect, descendants: true }, { propertyName: "treeselectRef", first: true, predicate: TreeSelect, descendants: true, read: ElementRef }], ngImport: i0, template: `<p-treeselect
|
|
2041
|
-
[id]="field()?.uuid"
|
|
2042
|
-
[inputId]="field()?.uuid"
|
|
2043
|
-
[scrollHeight]="props.scrollHeight ?? '400px'"
|
|
2044
|
-
[metaKeySelection]="props.metaKeySelection"
|
|
2045
|
-
[variant]="props.variant"
|
|
2046
|
-
[display]="props.display ?? 'comma'"
|
|
2047
|
-
[selectionMode]="props.selectionMode ?? 'single'"
|
|
2048
|
-
[tabindex]="props.tabindex ?? '0'"
|
|
2049
|
-
[ariaLabel]="props.ariaLabel"
|
|
2050
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2051
|
-
[placeholder]="props.placeholder"
|
|
2052
|
-
[panelClass]="props.panelClass"
|
|
2053
|
-
[fluid]="props.fluid ?? true"
|
|
2054
|
-
[panelStyleClass]="props.panelStyleClass"
|
|
2055
|
-
[containerStyle]="props.containerStyle"
|
|
2056
|
-
[containerStyleClass]="props.containerStyleClass"
|
|
2057
|
-
[labelStyle]="props.labelStyle"
|
|
2058
|
-
[labelStyleClass]="props.labelStyleClass"
|
|
2059
|
-
[overlayOptions]="props.overlayOptions"
|
|
2060
|
-
[emptyMessage]="props.emptyMessage"
|
|
2061
|
-
[appendTo]="props.appendTo ?? 'body'"
|
|
2062
|
-
[filter]="props.filter"
|
|
2063
|
-
[filterBy]="props.filterBy ?? 'label'"
|
|
2064
|
-
[filterMode]="props.filterMode ?? 'lenient'"
|
|
2065
|
-
[filterPlaceholder]="props.filterPlaceholder"
|
|
2066
|
-
[filterLocale]="props.filterLocale"
|
|
2067
|
-
[filterInputAutoFocus]="props.filterInputAutoFocus ?? true"
|
|
2068
|
-
[propagateSelectionDown]="props.propagateSelectionDown ?? true"
|
|
2069
|
-
[propagateSelectionUp]="props.propagateSelectionUp ?? true"
|
|
2070
|
-
[showClear]="props.showClear"
|
|
2071
|
-
[resetFilterOnHide]="props.resetFilterOnHide"
|
|
2072
|
-
[virtualScroll]="props.virtualScroll"
|
|
2073
|
-
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
2074
|
-
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
2075
|
-
[size]="props.size"
|
|
2076
|
-
[autofocus]="props.autofocus"
|
|
2077
|
-
[ariaLabel]="props.ariaLabel"
|
|
2078
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2079
|
-
[options]="props.options"
|
|
2080
|
-
[class]="props.class"
|
|
2081
|
-
[style]="props.style"
|
|
2082
|
-
[panelStyle]="props.panelStyle"
|
|
2083
|
-
[placeholder]="props.placeholder"
|
|
2084
|
-
[loading]="props.loading"
|
|
2085
|
-
(onNodeExpand)="props.onNodeExpand?.(field()!, $event)"
|
|
2086
|
-
(onNodeCollapse)="props.onNodeCollapse?.(field()!, $event)"
|
|
2087
|
-
(onShow)="props.onShow?.(field()!, $event)"
|
|
2088
|
-
(onHide)="props.onHide?.(field()!, $event)"
|
|
2089
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
2090
|
-
(onFilter)="props.onFilter?.(field()!, $event)"
|
|
2091
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2092
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2093
|
-
(onNodeSelect)="props.onNodeSelect?.(field()!, $event)"
|
|
2094
|
-
(onNodeUnselect)="props.onNodeUnselect?.(field()!, $event)"
|
|
2095
|
-
[class]="props.class"
|
|
2096
|
-
[disabled]="true"
|
|
2044
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: TreeSelectComponent, isStandalone: true, selector: "form-treeselect", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "treeselect", first: true, predicate: TreeSelect, descendants: true }, { propertyName: "treeselectRef", first: true, predicate: TreeSelect, descendants: true, read: ElementRef }], ngImport: i0, template: `<p-treeselect
|
|
2045
|
+
[id]="field()?.uuid"
|
|
2046
|
+
[inputId]="field()?.uuid"
|
|
2047
|
+
[scrollHeight]="props.scrollHeight ?? '400px'"
|
|
2048
|
+
[metaKeySelection]="props.metaKeySelection"
|
|
2049
|
+
[variant]="props.variant"
|
|
2050
|
+
[display]="props.display ?? 'comma'"
|
|
2051
|
+
[selectionMode]="props.selectionMode ?? 'single'"
|
|
2052
|
+
[tabindex]="props.tabindex ?? '0'"
|
|
2053
|
+
[ariaLabel]="props.ariaLabel"
|
|
2054
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2055
|
+
[placeholder]="props.placeholder"
|
|
2056
|
+
[panelClass]="props.panelClass"
|
|
2057
|
+
[fluid]="props.fluid ?? true"
|
|
2058
|
+
[panelStyleClass]="props.panelStyleClass"
|
|
2059
|
+
[containerStyle]="props.containerStyle"
|
|
2060
|
+
[containerStyleClass]="props.containerStyleClass"
|
|
2061
|
+
[labelStyle]="props.labelStyle"
|
|
2062
|
+
[labelStyleClass]="props.labelStyleClass"
|
|
2063
|
+
[overlayOptions]="props.overlayOptions"
|
|
2064
|
+
[emptyMessage]="props.emptyMessage"
|
|
2065
|
+
[appendTo]="props.appendTo ?? 'body'"
|
|
2066
|
+
[filter]="props.filter"
|
|
2067
|
+
[filterBy]="props.filterBy ?? 'label'"
|
|
2068
|
+
[filterMode]="props.filterMode ?? 'lenient'"
|
|
2069
|
+
[filterPlaceholder]="props.filterPlaceholder"
|
|
2070
|
+
[filterLocale]="props.filterLocale"
|
|
2071
|
+
[filterInputAutoFocus]="props.filterInputAutoFocus ?? true"
|
|
2072
|
+
[propagateSelectionDown]="props.propagateSelectionDown ?? true"
|
|
2073
|
+
[propagateSelectionUp]="props.propagateSelectionUp ?? true"
|
|
2074
|
+
[showClear]="props.showClear"
|
|
2075
|
+
[resetFilterOnHide]="props.resetFilterOnHide"
|
|
2076
|
+
[virtualScroll]="props.virtualScroll"
|
|
2077
|
+
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
2078
|
+
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
2079
|
+
[size]="props.size"
|
|
2080
|
+
[autofocus]="props.autofocus"
|
|
2081
|
+
[ariaLabel]="props.ariaLabel"
|
|
2082
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2083
|
+
[options]="props.options"
|
|
2084
|
+
[class]="props.class"
|
|
2085
|
+
[style]="props.style"
|
|
2086
|
+
[panelStyle]="props.panelStyle"
|
|
2087
|
+
[placeholder]="props.placeholder"
|
|
2088
|
+
[loading]="props.loading"
|
|
2089
|
+
(onNodeExpand)="props.onNodeExpand?.(field()!, $event)"
|
|
2090
|
+
(onNodeCollapse)="props.onNodeCollapse?.(field()!, $event)"
|
|
2091
|
+
(onShow)="props.onShow?.(field()!, $event)"
|
|
2092
|
+
(onHide)="props.onHide?.(field()!, $event)"
|
|
2093
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
2094
|
+
(onFilter)="props.onFilter?.(field()!, $event)"
|
|
2095
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2096
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2097
|
+
(onNodeSelect)="props.onNodeSelect?.(field()!, $event)"
|
|
2098
|
+
(onNodeUnselect)="props.onNodeUnselect?.(field()!, $event)"
|
|
2099
|
+
[class]="props.class"
|
|
2100
|
+
[disabled]="true"
|
|
2097
2101
|
[formControl]="field()!.fieldControl!" />`, isInline: true, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"], dependencies: [{ kind: "component", type: TreeSelect, selector: "p-treeSelect, p-treeselect, p-tree-select", inputs: ["inputId", "scrollHeight", "disabled", "metaKeySelection", "variant", "display", "selectionMode", "tabindex", "ariaLabel", "ariaLabelledBy", "placeholder", "panelClass", "panelStyle", "fluid", "panelStyleClass", "containerStyle", "containerStyleClass", "labelStyle", "labelStyleClass", "overlayOptions", "emptyMessage", "appendTo", "filter", "filterBy", "filterMode", "filterPlaceholder", "filterLocale", "filterInputAutoFocus", "propagateSelectionDown", "propagateSelectionUp", "showClear", "resetFilterOnHide", "virtualScroll", "virtualScrollItemSize", "size", "virtualScrollOptions", "autofocus", "options", "showTransitionOptions", "hideTransitionOptions", "loading"], outputs: ["onNodeExpand", "onNodeCollapse", "onShow", "onHide", "onClear", "onFilter", "onFocus", "onBlur", "onNodeUnselect", "onNodeSelect"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
2098
2102
|
}
|
|
2099
2103
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TreeSelectComponent, decorators: [{
|
|
2100
2104
|
type: Component,
|
|
2101
|
-
args: [{ selector: 'form-treeselect', standalone: true, imports: [TreeSelect, ReactiveFormsModule], template: `<p-treeselect
|
|
2102
|
-
[id]="field()?.uuid"
|
|
2103
|
-
[inputId]="field()?.uuid"
|
|
2104
|
-
[scrollHeight]="props.scrollHeight ?? '400px'"
|
|
2105
|
-
[metaKeySelection]="props.metaKeySelection"
|
|
2106
|
-
[variant]="props.variant"
|
|
2107
|
-
[display]="props.display ?? 'comma'"
|
|
2108
|
-
[selectionMode]="props.selectionMode ?? 'single'"
|
|
2109
|
-
[tabindex]="props.tabindex ?? '0'"
|
|
2110
|
-
[ariaLabel]="props.ariaLabel"
|
|
2111
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2112
|
-
[placeholder]="props.placeholder"
|
|
2113
|
-
[panelClass]="props.panelClass"
|
|
2114
|
-
[fluid]="props.fluid ?? true"
|
|
2115
|
-
[panelStyleClass]="props.panelStyleClass"
|
|
2116
|
-
[containerStyle]="props.containerStyle"
|
|
2117
|
-
[containerStyleClass]="props.containerStyleClass"
|
|
2118
|
-
[labelStyle]="props.labelStyle"
|
|
2119
|
-
[labelStyleClass]="props.labelStyleClass"
|
|
2120
|
-
[overlayOptions]="props.overlayOptions"
|
|
2121
|
-
[emptyMessage]="props.emptyMessage"
|
|
2122
|
-
[appendTo]="props.appendTo ?? 'body'"
|
|
2123
|
-
[filter]="props.filter"
|
|
2124
|
-
[filterBy]="props.filterBy ?? 'label'"
|
|
2125
|
-
[filterMode]="props.filterMode ?? 'lenient'"
|
|
2126
|
-
[filterPlaceholder]="props.filterPlaceholder"
|
|
2127
|
-
[filterLocale]="props.filterLocale"
|
|
2128
|
-
[filterInputAutoFocus]="props.filterInputAutoFocus ?? true"
|
|
2129
|
-
[propagateSelectionDown]="props.propagateSelectionDown ?? true"
|
|
2130
|
-
[propagateSelectionUp]="props.propagateSelectionUp ?? true"
|
|
2131
|
-
[showClear]="props.showClear"
|
|
2132
|
-
[resetFilterOnHide]="props.resetFilterOnHide"
|
|
2133
|
-
[virtualScroll]="props.virtualScroll"
|
|
2134
|
-
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
2135
|
-
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
2136
|
-
[size]="props.size"
|
|
2137
|
-
[autofocus]="props.autofocus"
|
|
2138
|
-
[ariaLabel]="props.ariaLabel"
|
|
2139
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2140
|
-
[options]="props.options"
|
|
2141
|
-
[class]="props.class"
|
|
2142
|
-
[style]="props.style"
|
|
2143
|
-
[panelStyle]="props.panelStyle"
|
|
2144
|
-
[placeholder]="props.placeholder"
|
|
2145
|
-
[loading]="props.loading"
|
|
2146
|
-
(onNodeExpand)="props.onNodeExpand?.(field()!, $event)"
|
|
2147
|
-
(onNodeCollapse)="props.onNodeCollapse?.(field()!, $event)"
|
|
2148
|
-
(onShow)="props.onShow?.(field()!, $event)"
|
|
2149
|
-
(onHide)="props.onHide?.(field()!, $event)"
|
|
2150
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
2151
|
-
(onFilter)="props.onFilter?.(field()!, $event)"
|
|
2152
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2153
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2154
|
-
(onNodeSelect)="props.onNodeSelect?.(field()!, $event)"
|
|
2155
|
-
(onNodeUnselect)="props.onNodeUnselect?.(field()!, $event)"
|
|
2156
|
-
[class]="props.class"
|
|
2157
|
-
[disabled]="true"
|
|
2105
|
+
args: [{ selector: 'form-treeselect', standalone: true, imports: [TreeSelect, ReactiveFormsModule], template: `<p-treeselect
|
|
2106
|
+
[id]="field()?.uuid"
|
|
2107
|
+
[inputId]="field()?.uuid"
|
|
2108
|
+
[scrollHeight]="props.scrollHeight ?? '400px'"
|
|
2109
|
+
[metaKeySelection]="props.metaKeySelection"
|
|
2110
|
+
[variant]="props.variant"
|
|
2111
|
+
[display]="props.display ?? 'comma'"
|
|
2112
|
+
[selectionMode]="props.selectionMode ?? 'single'"
|
|
2113
|
+
[tabindex]="props.tabindex ?? '0'"
|
|
2114
|
+
[ariaLabel]="props.ariaLabel"
|
|
2115
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2116
|
+
[placeholder]="props.placeholder"
|
|
2117
|
+
[panelClass]="props.panelClass"
|
|
2118
|
+
[fluid]="props.fluid ?? true"
|
|
2119
|
+
[panelStyleClass]="props.panelStyleClass"
|
|
2120
|
+
[containerStyle]="props.containerStyle"
|
|
2121
|
+
[containerStyleClass]="props.containerStyleClass"
|
|
2122
|
+
[labelStyle]="props.labelStyle"
|
|
2123
|
+
[labelStyleClass]="props.labelStyleClass"
|
|
2124
|
+
[overlayOptions]="props.overlayOptions"
|
|
2125
|
+
[emptyMessage]="props.emptyMessage"
|
|
2126
|
+
[appendTo]="props.appendTo ?? 'body'"
|
|
2127
|
+
[filter]="props.filter"
|
|
2128
|
+
[filterBy]="props.filterBy ?? 'label'"
|
|
2129
|
+
[filterMode]="props.filterMode ?? 'lenient'"
|
|
2130
|
+
[filterPlaceholder]="props.filterPlaceholder"
|
|
2131
|
+
[filterLocale]="props.filterLocale"
|
|
2132
|
+
[filterInputAutoFocus]="props.filterInputAutoFocus ?? true"
|
|
2133
|
+
[propagateSelectionDown]="props.propagateSelectionDown ?? true"
|
|
2134
|
+
[propagateSelectionUp]="props.propagateSelectionUp ?? true"
|
|
2135
|
+
[showClear]="props.showClear"
|
|
2136
|
+
[resetFilterOnHide]="props.resetFilterOnHide"
|
|
2137
|
+
[virtualScroll]="props.virtualScroll"
|
|
2138
|
+
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
2139
|
+
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
2140
|
+
[size]="props.size"
|
|
2141
|
+
[autofocus]="props.autofocus"
|
|
2142
|
+
[ariaLabel]="props.ariaLabel"
|
|
2143
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2144
|
+
[options]="props.options"
|
|
2145
|
+
[class]="props.class"
|
|
2146
|
+
[style]="props.style"
|
|
2147
|
+
[panelStyle]="props.panelStyle"
|
|
2148
|
+
[placeholder]="props.placeholder"
|
|
2149
|
+
[loading]="props.loading"
|
|
2150
|
+
(onNodeExpand)="props.onNodeExpand?.(field()!, $event)"
|
|
2151
|
+
(onNodeCollapse)="props.onNodeCollapse?.(field()!, $event)"
|
|
2152
|
+
(onShow)="props.onShow?.(field()!, $event)"
|
|
2153
|
+
(onHide)="props.onHide?.(field()!, $event)"
|
|
2154
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
2155
|
+
(onFilter)="props.onFilter?.(field()!, $event)"
|
|
2156
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2157
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2158
|
+
(onNodeSelect)="props.onNodeSelect?.(field()!, $event)"
|
|
2159
|
+
(onNodeUnselect)="props.onNodeUnselect?.(field()!, $event)"
|
|
2160
|
+
[class]="props.class"
|
|
2161
|
+
[disabled]="true"
|
|
2158
2162
|
[formControl]="field()!.fieldControl!" />`, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"] }]
|
|
2159
2163
|
}], ctorParameters: () => [{ type: ActionService }, { type: i0.Renderer2 }], propDecorators: { treeselect: [{
|
|
2160
2164
|
type: ViewChild,
|
|
@@ -2275,186 +2279,186 @@ class DatePickerComponent {
|
|
|
2275
2279
|
return result;
|
|
2276
2280
|
}
|
|
2277
2281
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DatePickerComponent, deps: [{ token: ActionService }, { token: i0.Renderer2 }, { token: i1$3.DatePipe }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2278
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DatePickerComponent, isStandalone: true, selector: "form-datepicker", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, providers: [DatePipe], viewQueries: [{ propertyName: "datePicker", first: true, predicate: DatePicker, descendants: true }, { propertyName: "datePickerRef", first: true, predicate: DatePicker, descendants: true, read: ElementRef }], ngImport: i0, template: `<p-datepicker
|
|
2279
|
-
[id]="field()?.uuid"
|
|
2280
|
-
[inputId]="field()?.uuid"
|
|
2281
|
-
[variant]="props.variant ?? 'outlined'"
|
|
2282
|
-
[fluid]="props.fluid"
|
|
2283
|
-
[size]="props.size"
|
|
2284
|
-
[styleClass]="props.styleClass"
|
|
2285
|
-
[inputStyle]="props.inputStyle"
|
|
2286
|
-
[inputStyleClass]="props.inputStyleClass"
|
|
2287
|
-
[name]="props.name"
|
|
2288
|
-
[placeholder]="props.placeholder"
|
|
2289
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2290
|
-
[ariaLabel]="props.ariaLabel"
|
|
2291
|
-
[iconAriaLabel]="props.iconAriaLabel"
|
|
2292
|
-
[dateFormat]="props.dateFormat ?? 'yy-mm-dd'"
|
|
2293
|
-
[multipleSeparator]="props.multipleSeparator ?? ','"
|
|
2294
|
-
[rangeSeparator]="props.rangeSeparator ?? '-'"
|
|
2295
|
-
[inline]="props.inline"
|
|
2296
|
-
[showOtherMonths]="props.showOtherMonths ?? true"
|
|
2297
|
-
[selectOtherMonths]="props.selectOtherMonths"
|
|
2298
|
-
[showIcon]="props.showIcon"
|
|
2299
|
-
[fluid]="props.fluid ?? true"
|
|
2300
|
-
[icon]="props.icon"
|
|
2301
|
-
[appendTo]="props.appendTo ?? 'body'"
|
|
2302
|
-
[readonlyInput]="props.readonlyInput"
|
|
2303
|
-
[shortYearCutoff]="props.shortYearCutoff"
|
|
2304
|
-
[hourFormat]="props.hourFormat ?? '24'"
|
|
2305
|
-
[timeOnly]="props.timeOnly"
|
|
2306
|
-
[stepHour]="props.stepHour ?? 1"
|
|
2307
|
-
[stepMinute]="props.stepMinute ?? 1"
|
|
2308
|
-
[stepSecond]="props.stepSecond ?? 1"
|
|
2309
|
-
[showSeconds]="props.showSeconds ?? !!props.showTime"
|
|
2310
|
-
[showOnFocus]="props.showOnFocus ?? true"
|
|
2311
|
-
[showWeek]="props.showWeek"
|
|
2312
|
-
[startWeekFromFirstDayOfYear]="!!props.startWeekFromFirstDayOfYear"
|
|
2313
|
-
[showClear]="props.showClear"
|
|
2314
|
-
[dataType]="props.dataType ?? 'string'"
|
|
2315
|
-
[selectionMode]="props.selectionMode ?? 'single'"
|
|
2316
|
-
[maxDateCount]="props.maxDateCount"
|
|
2317
|
-
[showButtonBar]="props.showButtonBar"
|
|
2318
|
-
[todayButtonStyleClass]="props.todayButtonStyleClass"
|
|
2319
|
-
[clearButtonStyleClass]="props.clearButtonStyleClass"
|
|
2320
|
-
[autofocus]="props.autofocus"
|
|
2321
|
-
[autoZIndex]="props.autoZIndex ?? true"
|
|
2322
|
-
[baseZIndex]="props.baseZIndex ?? 0"
|
|
2323
|
-
[panelStyleClass]="props.panelStyleClass"
|
|
2324
|
-
[panelStyle]="props.panelStyle"
|
|
2325
|
-
[keepInvalid]="props.keepInvalid"
|
|
2326
|
-
[hideOnDateTimeSelect]="props.hideOnDateTimeSelect ?? true"
|
|
2327
|
-
[touchUI]="props.touchUI"
|
|
2328
|
-
[timeSeparator]="props.timeSeparator ?? ':'"
|
|
2329
|
-
[focusTrap]="props.focusTrap ?? true"
|
|
2330
|
-
[showTransitionOptions]="props.showTransitionOptions ?? '.12s cubic-bezier(0, 0, 0.2, 1)'"
|
|
2331
|
-
[hideTransitionOptions]="props.hideTransitionOptions ?? '.1s linear'"
|
|
2332
|
-
[tabindex]="props.tabindex"
|
|
2333
|
-
[minDate]="props.minDate"
|
|
2334
|
-
[maxDate]="props.maxDate"
|
|
2335
|
-
[disabledDates]="props.disabledDates ?? []"
|
|
2336
|
-
[disabledDays]="props.disabledDays ?? []"
|
|
2337
|
-
[showTime]="!!props.showTime"
|
|
2338
|
-
[responsiveOptions]="props.responsiveOptions ?? []"
|
|
2339
|
-
[numberOfMonths]="props.numberOfMonths ?? 1"
|
|
2340
|
-
[firstDayOfWeek]="props.firstDayOfWeek ?? 7"
|
|
2341
|
-
[view]="props.view ?? 'date'"
|
|
2342
|
-
[defaultDate]="props.defaultDate!"
|
|
2343
|
-
(onInput)="props.onInput?.(field()!, $event)"
|
|
2344
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2345
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2346
|
-
(onClose)="props.onClose?.(field()!, $event)"
|
|
2347
|
-
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
2348
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
2349
|
-
(onTodayClick)="props.onTodayClick?.(field()!, $event)"
|
|
2350
|
-
(onClearClick)="props.onClearClick?.(field()!, $event)"
|
|
2351
|
-
(onMonthChange)="props.onMonthChange?.(field()!, $event)"
|
|
2352
|
-
(onYearChange)="props.onYearChange?.(field()!, $event)"
|
|
2353
|
-
(onClickOutside)="props.onClickOutside?.(field()!, $event)"
|
|
2354
|
-
(onShow)="props.onShow?.(field()!, $event)"
|
|
2355
|
-
[class]="props.class"
|
|
2356
|
-
[formControl]="field()!.fieldControl!">
|
|
2357
|
-
<ng-template #footer>
|
|
2358
|
-
@if (!!props.showTime && !props.timeOnly) {
|
|
2359
|
-
<div class="flex flex-row-reverse text-[12px] text-[var(--p-primary-color)] cursor-pointer">
|
|
2360
|
-
<i
|
|
2361
|
-
class="pi pi-replay"
|
|
2362
|
-
(click)="resetTime($event)"></i>
|
|
2363
|
-
</div>
|
|
2364
|
-
}
|
|
2365
|
-
</ng-template>
|
|
2282
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DatePickerComponent, isStandalone: true, selector: "form-datepicker", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, providers: [DatePipe], viewQueries: [{ propertyName: "datePicker", first: true, predicate: DatePicker, descendants: true }, { propertyName: "datePickerRef", first: true, predicate: DatePicker, descendants: true, read: ElementRef }], ngImport: i0, template: `<p-datepicker
|
|
2283
|
+
[id]="field()?.uuid"
|
|
2284
|
+
[inputId]="field()?.uuid"
|
|
2285
|
+
[variant]="props.variant ?? 'outlined'"
|
|
2286
|
+
[fluid]="props.fluid"
|
|
2287
|
+
[size]="props.size"
|
|
2288
|
+
[styleClass]="props.styleClass"
|
|
2289
|
+
[inputStyle]="props.inputStyle"
|
|
2290
|
+
[inputStyleClass]="props.inputStyleClass"
|
|
2291
|
+
[name]="props.name"
|
|
2292
|
+
[placeholder]="props.placeholder"
|
|
2293
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2294
|
+
[ariaLabel]="props.ariaLabel"
|
|
2295
|
+
[iconAriaLabel]="props.iconAriaLabel"
|
|
2296
|
+
[dateFormat]="props.dateFormat ?? 'yy-mm-dd'"
|
|
2297
|
+
[multipleSeparator]="props.multipleSeparator ?? ','"
|
|
2298
|
+
[rangeSeparator]="props.rangeSeparator ?? '-'"
|
|
2299
|
+
[inline]="props.inline"
|
|
2300
|
+
[showOtherMonths]="props.showOtherMonths ?? true"
|
|
2301
|
+
[selectOtherMonths]="props.selectOtherMonths"
|
|
2302
|
+
[showIcon]="props.showIcon"
|
|
2303
|
+
[fluid]="props.fluid ?? true"
|
|
2304
|
+
[icon]="props.icon"
|
|
2305
|
+
[appendTo]="props.appendTo ?? 'body'"
|
|
2306
|
+
[readonlyInput]="props.readonlyInput"
|
|
2307
|
+
[shortYearCutoff]="props.shortYearCutoff"
|
|
2308
|
+
[hourFormat]="props.hourFormat ?? '24'"
|
|
2309
|
+
[timeOnly]="props.timeOnly"
|
|
2310
|
+
[stepHour]="props.stepHour ?? 1"
|
|
2311
|
+
[stepMinute]="props.stepMinute ?? 1"
|
|
2312
|
+
[stepSecond]="props.stepSecond ?? 1"
|
|
2313
|
+
[showSeconds]="props.showSeconds ?? !!props.showTime"
|
|
2314
|
+
[showOnFocus]="props.showOnFocus ?? true"
|
|
2315
|
+
[showWeek]="props.showWeek"
|
|
2316
|
+
[startWeekFromFirstDayOfYear]="!!props.startWeekFromFirstDayOfYear"
|
|
2317
|
+
[showClear]="props.showClear"
|
|
2318
|
+
[dataType]="props.dataType ?? 'string'"
|
|
2319
|
+
[selectionMode]="props.selectionMode ?? 'single'"
|
|
2320
|
+
[maxDateCount]="props.maxDateCount"
|
|
2321
|
+
[showButtonBar]="props.showButtonBar"
|
|
2322
|
+
[todayButtonStyleClass]="props.todayButtonStyleClass"
|
|
2323
|
+
[clearButtonStyleClass]="props.clearButtonStyleClass"
|
|
2324
|
+
[autofocus]="props.autofocus"
|
|
2325
|
+
[autoZIndex]="props.autoZIndex ?? true"
|
|
2326
|
+
[baseZIndex]="props.baseZIndex ?? 0"
|
|
2327
|
+
[panelStyleClass]="props.panelStyleClass"
|
|
2328
|
+
[panelStyle]="props.panelStyle"
|
|
2329
|
+
[keepInvalid]="props.keepInvalid"
|
|
2330
|
+
[hideOnDateTimeSelect]="props.hideOnDateTimeSelect ?? true"
|
|
2331
|
+
[touchUI]="props.touchUI"
|
|
2332
|
+
[timeSeparator]="props.timeSeparator ?? ':'"
|
|
2333
|
+
[focusTrap]="props.focusTrap ?? true"
|
|
2334
|
+
[showTransitionOptions]="props.showTransitionOptions ?? '.12s cubic-bezier(0, 0, 0.2, 1)'"
|
|
2335
|
+
[hideTransitionOptions]="props.hideTransitionOptions ?? '.1s linear'"
|
|
2336
|
+
[tabindex]="props.tabindex"
|
|
2337
|
+
[minDate]="props.minDate"
|
|
2338
|
+
[maxDate]="props.maxDate"
|
|
2339
|
+
[disabledDates]="props.disabledDates ?? []"
|
|
2340
|
+
[disabledDays]="props.disabledDays ?? []"
|
|
2341
|
+
[showTime]="!!props.showTime"
|
|
2342
|
+
[responsiveOptions]="props.responsiveOptions ?? []"
|
|
2343
|
+
[numberOfMonths]="props.numberOfMonths ?? 1"
|
|
2344
|
+
[firstDayOfWeek]="props.firstDayOfWeek ?? 7"
|
|
2345
|
+
[view]="props.view ?? 'date'"
|
|
2346
|
+
[defaultDate]="props.defaultDate!"
|
|
2347
|
+
(onInput)="props.onInput?.(field()!, $event)"
|
|
2348
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2349
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2350
|
+
(onClose)="props.onClose?.(field()!, $event)"
|
|
2351
|
+
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
2352
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
2353
|
+
(onTodayClick)="props.onTodayClick?.(field()!, $event)"
|
|
2354
|
+
(onClearClick)="props.onClearClick?.(field()!, $event)"
|
|
2355
|
+
(onMonthChange)="props.onMonthChange?.(field()!, $event)"
|
|
2356
|
+
(onYearChange)="props.onYearChange?.(field()!, $event)"
|
|
2357
|
+
(onClickOutside)="props.onClickOutside?.(field()!, $event)"
|
|
2358
|
+
(onShow)="props.onShow?.(field()!, $event)"
|
|
2359
|
+
[class]="props.class"
|
|
2360
|
+
[formControl]="field()!.fieldControl!">
|
|
2361
|
+
<ng-template #footer>
|
|
2362
|
+
@if (!!props.showTime && !props.timeOnly) {
|
|
2363
|
+
<div class="flex flex-row-reverse text-[12px] text-[var(--p-primary-color)] cursor-pointer">
|
|
2364
|
+
<i
|
|
2365
|
+
class="pi pi-replay"
|
|
2366
|
+
(click)="resetTime($event)"></i>
|
|
2367
|
+
</div>
|
|
2368
|
+
}
|
|
2369
|
+
</ng-template>
|
|
2366
2370
|
</p-datepicker>`, isInline: true, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"], dependencies: [{ kind: "component", type: DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "fluid", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "variant", "size", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale", "view", "defaultDate"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
2367
2371
|
}
|
|
2368
2372
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DatePickerComponent, decorators: [{
|
|
2369
2373
|
type: Component,
|
|
2370
|
-
args: [{ selector: 'form-datepicker', standalone: true, providers: [DatePipe], imports: [DatePicker, ReactiveFormsModule], template: `<p-datepicker
|
|
2371
|
-
[id]="field()?.uuid"
|
|
2372
|
-
[inputId]="field()?.uuid"
|
|
2373
|
-
[variant]="props.variant ?? 'outlined'"
|
|
2374
|
-
[fluid]="props.fluid"
|
|
2375
|
-
[size]="props.size"
|
|
2376
|
-
[styleClass]="props.styleClass"
|
|
2377
|
-
[inputStyle]="props.inputStyle"
|
|
2378
|
-
[inputStyleClass]="props.inputStyleClass"
|
|
2379
|
-
[name]="props.name"
|
|
2380
|
-
[placeholder]="props.placeholder"
|
|
2381
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2382
|
-
[ariaLabel]="props.ariaLabel"
|
|
2383
|
-
[iconAriaLabel]="props.iconAriaLabel"
|
|
2384
|
-
[dateFormat]="props.dateFormat ?? 'yy-mm-dd'"
|
|
2385
|
-
[multipleSeparator]="props.multipleSeparator ?? ','"
|
|
2386
|
-
[rangeSeparator]="props.rangeSeparator ?? '-'"
|
|
2387
|
-
[inline]="props.inline"
|
|
2388
|
-
[showOtherMonths]="props.showOtherMonths ?? true"
|
|
2389
|
-
[selectOtherMonths]="props.selectOtherMonths"
|
|
2390
|
-
[showIcon]="props.showIcon"
|
|
2391
|
-
[fluid]="props.fluid ?? true"
|
|
2392
|
-
[icon]="props.icon"
|
|
2393
|
-
[appendTo]="props.appendTo ?? 'body'"
|
|
2394
|
-
[readonlyInput]="props.readonlyInput"
|
|
2395
|
-
[shortYearCutoff]="props.shortYearCutoff"
|
|
2396
|
-
[hourFormat]="props.hourFormat ?? '24'"
|
|
2397
|
-
[timeOnly]="props.timeOnly"
|
|
2398
|
-
[stepHour]="props.stepHour ?? 1"
|
|
2399
|
-
[stepMinute]="props.stepMinute ?? 1"
|
|
2400
|
-
[stepSecond]="props.stepSecond ?? 1"
|
|
2401
|
-
[showSeconds]="props.showSeconds ?? !!props.showTime"
|
|
2402
|
-
[showOnFocus]="props.showOnFocus ?? true"
|
|
2403
|
-
[showWeek]="props.showWeek"
|
|
2404
|
-
[startWeekFromFirstDayOfYear]="!!props.startWeekFromFirstDayOfYear"
|
|
2405
|
-
[showClear]="props.showClear"
|
|
2406
|
-
[dataType]="props.dataType ?? 'string'"
|
|
2407
|
-
[selectionMode]="props.selectionMode ?? 'single'"
|
|
2408
|
-
[maxDateCount]="props.maxDateCount"
|
|
2409
|
-
[showButtonBar]="props.showButtonBar"
|
|
2410
|
-
[todayButtonStyleClass]="props.todayButtonStyleClass"
|
|
2411
|
-
[clearButtonStyleClass]="props.clearButtonStyleClass"
|
|
2412
|
-
[autofocus]="props.autofocus"
|
|
2413
|
-
[autoZIndex]="props.autoZIndex ?? true"
|
|
2414
|
-
[baseZIndex]="props.baseZIndex ?? 0"
|
|
2415
|
-
[panelStyleClass]="props.panelStyleClass"
|
|
2416
|
-
[panelStyle]="props.panelStyle"
|
|
2417
|
-
[keepInvalid]="props.keepInvalid"
|
|
2418
|
-
[hideOnDateTimeSelect]="props.hideOnDateTimeSelect ?? true"
|
|
2419
|
-
[touchUI]="props.touchUI"
|
|
2420
|
-
[timeSeparator]="props.timeSeparator ?? ':'"
|
|
2421
|
-
[focusTrap]="props.focusTrap ?? true"
|
|
2422
|
-
[showTransitionOptions]="props.showTransitionOptions ?? '.12s cubic-bezier(0, 0, 0.2, 1)'"
|
|
2423
|
-
[hideTransitionOptions]="props.hideTransitionOptions ?? '.1s linear'"
|
|
2424
|
-
[tabindex]="props.tabindex"
|
|
2425
|
-
[minDate]="props.minDate"
|
|
2426
|
-
[maxDate]="props.maxDate"
|
|
2427
|
-
[disabledDates]="props.disabledDates ?? []"
|
|
2428
|
-
[disabledDays]="props.disabledDays ?? []"
|
|
2429
|
-
[showTime]="!!props.showTime"
|
|
2430
|
-
[responsiveOptions]="props.responsiveOptions ?? []"
|
|
2431
|
-
[numberOfMonths]="props.numberOfMonths ?? 1"
|
|
2432
|
-
[firstDayOfWeek]="props.firstDayOfWeek ?? 7"
|
|
2433
|
-
[view]="props.view ?? 'date'"
|
|
2434
|
-
[defaultDate]="props.defaultDate!"
|
|
2435
|
-
(onInput)="props.onInput?.(field()!, $event)"
|
|
2436
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2437
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2438
|
-
(onClose)="props.onClose?.(field()!, $event)"
|
|
2439
|
-
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
2440
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
2441
|
-
(onTodayClick)="props.onTodayClick?.(field()!, $event)"
|
|
2442
|
-
(onClearClick)="props.onClearClick?.(field()!, $event)"
|
|
2443
|
-
(onMonthChange)="props.onMonthChange?.(field()!, $event)"
|
|
2444
|
-
(onYearChange)="props.onYearChange?.(field()!, $event)"
|
|
2445
|
-
(onClickOutside)="props.onClickOutside?.(field()!, $event)"
|
|
2446
|
-
(onShow)="props.onShow?.(field()!, $event)"
|
|
2447
|
-
[class]="props.class"
|
|
2448
|
-
[formControl]="field()!.fieldControl!">
|
|
2449
|
-
<ng-template #footer>
|
|
2450
|
-
@if (!!props.showTime && !props.timeOnly) {
|
|
2451
|
-
<div class="flex flex-row-reverse text-[12px] text-[var(--p-primary-color)] cursor-pointer">
|
|
2452
|
-
<i
|
|
2453
|
-
class="pi pi-replay"
|
|
2454
|
-
(click)="resetTime($event)"></i>
|
|
2455
|
-
</div>
|
|
2456
|
-
}
|
|
2457
|
-
</ng-template>
|
|
2374
|
+
args: [{ selector: 'form-datepicker', standalone: true, providers: [DatePipe], imports: [DatePicker, ReactiveFormsModule], template: `<p-datepicker
|
|
2375
|
+
[id]="field()?.uuid"
|
|
2376
|
+
[inputId]="field()?.uuid"
|
|
2377
|
+
[variant]="props.variant ?? 'outlined'"
|
|
2378
|
+
[fluid]="props.fluid"
|
|
2379
|
+
[size]="props.size"
|
|
2380
|
+
[styleClass]="props.styleClass"
|
|
2381
|
+
[inputStyle]="props.inputStyle"
|
|
2382
|
+
[inputStyleClass]="props.inputStyleClass"
|
|
2383
|
+
[name]="props.name"
|
|
2384
|
+
[placeholder]="props.placeholder"
|
|
2385
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2386
|
+
[ariaLabel]="props.ariaLabel"
|
|
2387
|
+
[iconAriaLabel]="props.iconAriaLabel"
|
|
2388
|
+
[dateFormat]="props.dateFormat ?? 'yy-mm-dd'"
|
|
2389
|
+
[multipleSeparator]="props.multipleSeparator ?? ','"
|
|
2390
|
+
[rangeSeparator]="props.rangeSeparator ?? '-'"
|
|
2391
|
+
[inline]="props.inline"
|
|
2392
|
+
[showOtherMonths]="props.showOtherMonths ?? true"
|
|
2393
|
+
[selectOtherMonths]="props.selectOtherMonths"
|
|
2394
|
+
[showIcon]="props.showIcon"
|
|
2395
|
+
[fluid]="props.fluid ?? true"
|
|
2396
|
+
[icon]="props.icon"
|
|
2397
|
+
[appendTo]="props.appendTo ?? 'body'"
|
|
2398
|
+
[readonlyInput]="props.readonlyInput"
|
|
2399
|
+
[shortYearCutoff]="props.shortYearCutoff"
|
|
2400
|
+
[hourFormat]="props.hourFormat ?? '24'"
|
|
2401
|
+
[timeOnly]="props.timeOnly"
|
|
2402
|
+
[stepHour]="props.stepHour ?? 1"
|
|
2403
|
+
[stepMinute]="props.stepMinute ?? 1"
|
|
2404
|
+
[stepSecond]="props.stepSecond ?? 1"
|
|
2405
|
+
[showSeconds]="props.showSeconds ?? !!props.showTime"
|
|
2406
|
+
[showOnFocus]="props.showOnFocus ?? true"
|
|
2407
|
+
[showWeek]="props.showWeek"
|
|
2408
|
+
[startWeekFromFirstDayOfYear]="!!props.startWeekFromFirstDayOfYear"
|
|
2409
|
+
[showClear]="props.showClear"
|
|
2410
|
+
[dataType]="props.dataType ?? 'string'"
|
|
2411
|
+
[selectionMode]="props.selectionMode ?? 'single'"
|
|
2412
|
+
[maxDateCount]="props.maxDateCount"
|
|
2413
|
+
[showButtonBar]="props.showButtonBar"
|
|
2414
|
+
[todayButtonStyleClass]="props.todayButtonStyleClass"
|
|
2415
|
+
[clearButtonStyleClass]="props.clearButtonStyleClass"
|
|
2416
|
+
[autofocus]="props.autofocus"
|
|
2417
|
+
[autoZIndex]="props.autoZIndex ?? true"
|
|
2418
|
+
[baseZIndex]="props.baseZIndex ?? 0"
|
|
2419
|
+
[panelStyleClass]="props.panelStyleClass"
|
|
2420
|
+
[panelStyle]="props.panelStyle"
|
|
2421
|
+
[keepInvalid]="props.keepInvalid"
|
|
2422
|
+
[hideOnDateTimeSelect]="props.hideOnDateTimeSelect ?? true"
|
|
2423
|
+
[touchUI]="props.touchUI"
|
|
2424
|
+
[timeSeparator]="props.timeSeparator ?? ':'"
|
|
2425
|
+
[focusTrap]="props.focusTrap ?? true"
|
|
2426
|
+
[showTransitionOptions]="props.showTransitionOptions ?? '.12s cubic-bezier(0, 0, 0.2, 1)'"
|
|
2427
|
+
[hideTransitionOptions]="props.hideTransitionOptions ?? '.1s linear'"
|
|
2428
|
+
[tabindex]="props.tabindex"
|
|
2429
|
+
[minDate]="props.minDate"
|
|
2430
|
+
[maxDate]="props.maxDate"
|
|
2431
|
+
[disabledDates]="props.disabledDates ?? []"
|
|
2432
|
+
[disabledDays]="props.disabledDays ?? []"
|
|
2433
|
+
[showTime]="!!props.showTime"
|
|
2434
|
+
[responsiveOptions]="props.responsiveOptions ?? []"
|
|
2435
|
+
[numberOfMonths]="props.numberOfMonths ?? 1"
|
|
2436
|
+
[firstDayOfWeek]="props.firstDayOfWeek ?? 7"
|
|
2437
|
+
[view]="props.view ?? 'date'"
|
|
2438
|
+
[defaultDate]="props.defaultDate!"
|
|
2439
|
+
(onInput)="props.onInput?.(field()!, $event)"
|
|
2440
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2441
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2442
|
+
(onClose)="props.onClose?.(field()!, $event)"
|
|
2443
|
+
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
2444
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
2445
|
+
(onTodayClick)="props.onTodayClick?.(field()!, $event)"
|
|
2446
|
+
(onClearClick)="props.onClearClick?.(field()!, $event)"
|
|
2447
|
+
(onMonthChange)="props.onMonthChange?.(field()!, $event)"
|
|
2448
|
+
(onYearChange)="props.onYearChange?.(field()!, $event)"
|
|
2449
|
+
(onClickOutside)="props.onClickOutside?.(field()!, $event)"
|
|
2450
|
+
(onShow)="props.onShow?.(field()!, $event)"
|
|
2451
|
+
[class]="props.class"
|
|
2452
|
+
[formControl]="field()!.fieldControl!">
|
|
2453
|
+
<ng-template #footer>
|
|
2454
|
+
@if (!!props.showTime && !props.timeOnly) {
|
|
2455
|
+
<div class="flex flex-row-reverse text-[12px] text-[var(--p-primary-color)] cursor-pointer">
|
|
2456
|
+
<i
|
|
2457
|
+
class="pi pi-replay"
|
|
2458
|
+
(click)="resetTime($event)"></i>
|
|
2459
|
+
</div>
|
|
2460
|
+
}
|
|
2461
|
+
</ng-template>
|
|
2458
2462
|
</p-datepicker>`, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"] }]
|
|
2459
2463
|
}], ctorParameters: () => [{ type: ActionService }, { type: i0.Renderer2 }, { type: i1$3.DatePipe }], propDecorators: { datePicker: [{
|
|
2460
2464
|
type: ViewChild,
|
|
@@ -2507,160 +2511,160 @@ class AutoCompleteComponent {
|
|
|
2507
2511
|
}
|
|
2508
2512
|
}
|
|
2509
2513
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AutoCompleteComponent, deps: [{ token: ActionService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2510
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: AutoCompleteComponent, isStandalone: true, selector: "form-autocomplete", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "autoCompleteRef", first: true, predicate: AutoComplete, descendants: true, read: ElementRef }], ngImport: i0, template: `<p-autocomplete
|
|
2511
|
-
[id]="field()?.uuid"
|
|
2512
|
-
[inputId]="field()?.uuid"
|
|
2513
|
-
[minLength]="props.minLength ?? 1"
|
|
2514
|
-
[delay]="props.delay ?? 300"
|
|
2515
|
-
[panelStyle]="props.panelStyle"
|
|
2516
|
-
[panelStyleClass]="props.panelStyleClass"
|
|
2517
|
-
[styleClass]="props.styleClass"
|
|
2518
|
-
[inputStyle]="props.inputStyle"
|
|
2519
|
-
[inputStyleClass]="props.inputStyleClass"
|
|
2520
|
-
[placeholder]="props.placeholder"
|
|
2521
|
-
[readonly]="props.readonly"
|
|
2522
|
-
[scrollHeight]="props.scrollHeight ?? '200px'"
|
|
2523
|
-
[lazy]="props.lazy"
|
|
2524
|
-
[virtualScroll]="props.virtualScroll"
|
|
2525
|
-
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
2526
|
-
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
2527
|
-
[maxlength]="props.maxlength"
|
|
2528
|
-
[name]="props.name"
|
|
2529
|
-
[size]="props.size"
|
|
2530
|
-
[appendTo]="props.appendTo ?? 'body'"
|
|
2531
|
-
[autoHighlight]="props.autoHighlight"
|
|
2532
|
-
[forceSelection]="props.forceSelection"
|
|
2533
|
-
[type]="props.type ?? 'text'"
|
|
2534
|
-
[autoZIndex]="props.autoZIndex ?? true"
|
|
2535
|
-
[baseZIndex]="props.baseZIndex ?? 0"
|
|
2536
|
-
[ariaLabel]="props.ariaLabel"
|
|
2537
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2538
|
-
[dropdownAriaLabel]="props.dropdownAriaLabel"
|
|
2539
|
-
[dropdownIcon]="props.dropdownIcon"
|
|
2540
|
-
[unique]="props.unique ?? true"
|
|
2541
|
-
[group]="props.group"
|
|
2542
|
-
[completeOnFocus]="props.completeOnFocus"
|
|
2543
|
-
[showClear]="props.showClear"
|
|
2544
|
-
[dropdown]="props.dropdown"
|
|
2545
|
-
[showEmptyMessage]="props.showEmptyMessage ?? true"
|
|
2546
|
-
[dropdownMode]="props.dropdownMode ?? 'blank'"
|
|
2547
|
-
[multiple]="props.multiple"
|
|
2548
|
-
[tabindex]="props.tabindex"
|
|
2549
|
-
[dataKey]="props.dataKey"
|
|
2550
|
-
[emptyMessage]="props.emptyMessage"
|
|
2551
|
-
[showTransitionOptions]="props.showTransitionOptions ?? '.12s cubic-bezier(0, 0, 0.2, 1)'"
|
|
2552
|
-
[hideTransitionOptions]="props.hideTransitionOptions ?? '.1s linear'"
|
|
2553
|
-
[autofocus]="props.autofocus"
|
|
2554
|
-
[autocomplete]="props.autocomplete ?? 'off'"
|
|
2555
|
-
[optionGroupChildren]="props.optionGroupChildren ?? 'items'"
|
|
2556
|
-
[optionGroupLabel]="props.optionGroupLabel ?? 'label'"
|
|
2557
|
-
[overlayOptions]="props.overlayOptions"
|
|
2558
|
-
[suggestions]="props.suggestions ?? []"
|
|
2559
|
-
[optionLabel]="props.optionLabel"
|
|
2560
|
-
[optionValue]="props.optionValue"
|
|
2561
|
-
[searchMessage]="props.searchMessage ?? '{0} results are available'"
|
|
2562
|
-
[emptySelectionMessage]="props.emptySelectionMessage ?? 'No selected item'"
|
|
2563
|
-
[selectionMessage]="props.selectionMessage ?? '{0} items selected'"
|
|
2564
|
-
[autoOptionFocus]="props.autoOptionFocus"
|
|
2565
|
-
[selectOnFocus]="props.selectOnFocus"
|
|
2566
|
-
[searchLocale]="props.searchLocale"
|
|
2567
|
-
[optionDisabled]="props.optionDisabled"
|
|
2568
|
-
[focusOnHover]="props.focusOnHover ?? true"
|
|
2569
|
-
[typeahead]="props.typeahead ?? true"
|
|
2570
|
-
[variant]="props.variant"
|
|
2571
|
-
[fluid]="props.fluid ?? true"
|
|
2572
|
-
[class]="props.class"
|
|
2573
|
-
[style]="props.style"
|
|
2574
|
-
(completeMethod)="props.completeMethod?.(field()!, $event)"
|
|
2575
|
-
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
2576
|
-
(onUnselect)="props.onUnselect?.(field()!, $event)"
|
|
2577
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2578
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2579
|
-
(onDropdownClick)="props.onDropdownClick?.(field()!, $event)"
|
|
2580
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
2581
|
-
(onKeyUp)="props.onKeyUp?.(field()!, $event)"
|
|
2582
|
-
(onShow)="props.onShow?.(field()!, $event)"
|
|
2583
|
-
(onHide)="props.onHide?.(field()!, $event)"
|
|
2584
|
-
(onLazyLoad)="props.onLazyLoad?.(field()!, $event)"
|
|
2514
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: AutoCompleteComponent, isStandalone: true, selector: "form-autocomplete", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "autoCompleteRef", first: true, predicate: AutoComplete, descendants: true, read: ElementRef }], ngImport: i0, template: `<p-autocomplete
|
|
2515
|
+
[id]="field()?.uuid"
|
|
2516
|
+
[inputId]="field()?.uuid"
|
|
2517
|
+
[minLength]="props.minLength ?? 1"
|
|
2518
|
+
[delay]="props.delay ?? 300"
|
|
2519
|
+
[panelStyle]="props.panelStyle"
|
|
2520
|
+
[panelStyleClass]="props.panelStyleClass"
|
|
2521
|
+
[styleClass]="props.styleClass"
|
|
2522
|
+
[inputStyle]="props.inputStyle"
|
|
2523
|
+
[inputStyleClass]="props.inputStyleClass"
|
|
2524
|
+
[placeholder]="props.placeholder"
|
|
2525
|
+
[readonly]="props.readonly"
|
|
2526
|
+
[scrollHeight]="props.scrollHeight ?? '200px'"
|
|
2527
|
+
[lazy]="props.lazy"
|
|
2528
|
+
[virtualScroll]="props.virtualScroll"
|
|
2529
|
+
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
2530
|
+
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
2531
|
+
[maxlength]="props.maxlength"
|
|
2532
|
+
[name]="props.name"
|
|
2533
|
+
[size]="props.size"
|
|
2534
|
+
[appendTo]="props.appendTo ?? 'body'"
|
|
2535
|
+
[autoHighlight]="props.autoHighlight"
|
|
2536
|
+
[forceSelection]="props.forceSelection"
|
|
2537
|
+
[type]="props.type ?? 'text'"
|
|
2538
|
+
[autoZIndex]="props.autoZIndex ?? true"
|
|
2539
|
+
[baseZIndex]="props.baseZIndex ?? 0"
|
|
2540
|
+
[ariaLabel]="props.ariaLabel"
|
|
2541
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2542
|
+
[dropdownAriaLabel]="props.dropdownAriaLabel"
|
|
2543
|
+
[dropdownIcon]="props.dropdownIcon"
|
|
2544
|
+
[unique]="props.unique ?? true"
|
|
2545
|
+
[group]="props.group"
|
|
2546
|
+
[completeOnFocus]="props.completeOnFocus"
|
|
2547
|
+
[showClear]="props.showClear"
|
|
2548
|
+
[dropdown]="props.dropdown"
|
|
2549
|
+
[showEmptyMessage]="props.showEmptyMessage ?? true"
|
|
2550
|
+
[dropdownMode]="props.dropdownMode ?? 'blank'"
|
|
2551
|
+
[multiple]="props.multiple"
|
|
2552
|
+
[tabindex]="props.tabindex"
|
|
2553
|
+
[dataKey]="props.dataKey"
|
|
2554
|
+
[emptyMessage]="props.emptyMessage"
|
|
2555
|
+
[showTransitionOptions]="props.showTransitionOptions ?? '.12s cubic-bezier(0, 0, 0.2, 1)'"
|
|
2556
|
+
[hideTransitionOptions]="props.hideTransitionOptions ?? '.1s linear'"
|
|
2557
|
+
[autofocus]="props.autofocus"
|
|
2558
|
+
[autocomplete]="props.autocomplete ?? 'off'"
|
|
2559
|
+
[optionGroupChildren]="props.optionGroupChildren ?? 'items'"
|
|
2560
|
+
[optionGroupLabel]="props.optionGroupLabel ?? 'label'"
|
|
2561
|
+
[overlayOptions]="props.overlayOptions"
|
|
2562
|
+
[suggestions]="props.suggestions ?? []"
|
|
2563
|
+
[optionLabel]="props.optionLabel"
|
|
2564
|
+
[optionValue]="props.optionValue"
|
|
2565
|
+
[searchMessage]="props.searchMessage ?? '{0} results are available'"
|
|
2566
|
+
[emptySelectionMessage]="props.emptySelectionMessage ?? 'No selected item'"
|
|
2567
|
+
[selectionMessage]="props.selectionMessage ?? '{0} items selected'"
|
|
2568
|
+
[autoOptionFocus]="props.autoOptionFocus"
|
|
2569
|
+
[selectOnFocus]="props.selectOnFocus"
|
|
2570
|
+
[searchLocale]="props.searchLocale"
|
|
2571
|
+
[optionDisabled]="props.optionDisabled"
|
|
2572
|
+
[focusOnHover]="props.focusOnHover ?? true"
|
|
2573
|
+
[typeahead]="props.typeahead ?? true"
|
|
2574
|
+
[variant]="props.variant"
|
|
2575
|
+
[fluid]="props.fluid ?? true"
|
|
2576
|
+
[class]="props.class"
|
|
2577
|
+
[style]="props.style"
|
|
2578
|
+
(completeMethod)="props.completeMethod?.(field()!, $event)"
|
|
2579
|
+
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
2580
|
+
(onUnselect)="props.onUnselect?.(field()!, $event)"
|
|
2581
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2582
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2583
|
+
(onDropdownClick)="props.onDropdownClick?.(field()!, $event)"
|
|
2584
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
2585
|
+
(onKeyUp)="props.onKeyUp?.(field()!, $event)"
|
|
2586
|
+
(onShow)="props.onShow?.(field()!, $event)"
|
|
2587
|
+
(onHide)="props.onHide?.(field()!, $event)"
|
|
2588
|
+
(onLazyLoad)="props.onLazyLoad?.(field()!, $event)"
|
|
2585
2589
|
[formControl]="field()!.fieldControl!" />`, isInline: true, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"], dependencies: [{ kind: "component", type: AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "delay", "style", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "disabled", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "maxlength", "name", "required", "size", "appendTo", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "field", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "itemSize", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "variant", "fluid"], outputs: ["completeMethod", "onSelect", "onUnselect", "onFocus", "onBlur", "onDropdownClick", "onClear", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
2586
2590
|
}
|
|
2587
2591
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AutoCompleteComponent, decorators: [{
|
|
2588
2592
|
type: Component,
|
|
2589
|
-
args: [{ selector: 'form-autocomplete', standalone: true, imports: [AutoComplete, ReactiveFormsModule], template: `<p-autocomplete
|
|
2590
|
-
[id]="field()?.uuid"
|
|
2591
|
-
[inputId]="field()?.uuid"
|
|
2592
|
-
[minLength]="props.minLength ?? 1"
|
|
2593
|
-
[delay]="props.delay ?? 300"
|
|
2594
|
-
[panelStyle]="props.panelStyle"
|
|
2595
|
-
[panelStyleClass]="props.panelStyleClass"
|
|
2596
|
-
[styleClass]="props.styleClass"
|
|
2597
|
-
[inputStyle]="props.inputStyle"
|
|
2598
|
-
[inputStyleClass]="props.inputStyleClass"
|
|
2599
|
-
[placeholder]="props.placeholder"
|
|
2600
|
-
[readonly]="props.readonly"
|
|
2601
|
-
[scrollHeight]="props.scrollHeight ?? '200px'"
|
|
2602
|
-
[lazy]="props.lazy"
|
|
2603
|
-
[virtualScroll]="props.virtualScroll"
|
|
2604
|
-
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
2605
|
-
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
2606
|
-
[maxlength]="props.maxlength"
|
|
2607
|
-
[name]="props.name"
|
|
2608
|
-
[size]="props.size"
|
|
2609
|
-
[appendTo]="props.appendTo ?? 'body'"
|
|
2610
|
-
[autoHighlight]="props.autoHighlight"
|
|
2611
|
-
[forceSelection]="props.forceSelection"
|
|
2612
|
-
[type]="props.type ?? 'text'"
|
|
2613
|
-
[autoZIndex]="props.autoZIndex ?? true"
|
|
2614
|
-
[baseZIndex]="props.baseZIndex ?? 0"
|
|
2615
|
-
[ariaLabel]="props.ariaLabel"
|
|
2616
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2617
|
-
[dropdownAriaLabel]="props.dropdownAriaLabel"
|
|
2618
|
-
[dropdownIcon]="props.dropdownIcon"
|
|
2619
|
-
[unique]="props.unique ?? true"
|
|
2620
|
-
[group]="props.group"
|
|
2621
|
-
[completeOnFocus]="props.completeOnFocus"
|
|
2622
|
-
[showClear]="props.showClear"
|
|
2623
|
-
[dropdown]="props.dropdown"
|
|
2624
|
-
[showEmptyMessage]="props.showEmptyMessage ?? true"
|
|
2625
|
-
[dropdownMode]="props.dropdownMode ?? 'blank'"
|
|
2626
|
-
[multiple]="props.multiple"
|
|
2627
|
-
[tabindex]="props.tabindex"
|
|
2628
|
-
[dataKey]="props.dataKey"
|
|
2629
|
-
[emptyMessage]="props.emptyMessage"
|
|
2630
|
-
[showTransitionOptions]="props.showTransitionOptions ?? '.12s cubic-bezier(0, 0, 0.2, 1)'"
|
|
2631
|
-
[hideTransitionOptions]="props.hideTransitionOptions ?? '.1s linear'"
|
|
2632
|
-
[autofocus]="props.autofocus"
|
|
2633
|
-
[autocomplete]="props.autocomplete ?? 'off'"
|
|
2634
|
-
[optionGroupChildren]="props.optionGroupChildren ?? 'items'"
|
|
2635
|
-
[optionGroupLabel]="props.optionGroupLabel ?? 'label'"
|
|
2636
|
-
[overlayOptions]="props.overlayOptions"
|
|
2637
|
-
[suggestions]="props.suggestions ?? []"
|
|
2638
|
-
[optionLabel]="props.optionLabel"
|
|
2639
|
-
[optionValue]="props.optionValue"
|
|
2640
|
-
[searchMessage]="props.searchMessage ?? '{0} results are available'"
|
|
2641
|
-
[emptySelectionMessage]="props.emptySelectionMessage ?? 'No selected item'"
|
|
2642
|
-
[selectionMessage]="props.selectionMessage ?? '{0} items selected'"
|
|
2643
|
-
[autoOptionFocus]="props.autoOptionFocus"
|
|
2644
|
-
[selectOnFocus]="props.selectOnFocus"
|
|
2645
|
-
[searchLocale]="props.searchLocale"
|
|
2646
|
-
[optionDisabled]="props.optionDisabled"
|
|
2647
|
-
[focusOnHover]="props.focusOnHover ?? true"
|
|
2648
|
-
[typeahead]="props.typeahead ?? true"
|
|
2649
|
-
[variant]="props.variant"
|
|
2650
|
-
[fluid]="props.fluid ?? true"
|
|
2651
|
-
[class]="props.class"
|
|
2652
|
-
[style]="props.style"
|
|
2653
|
-
(completeMethod)="props.completeMethod?.(field()!, $event)"
|
|
2654
|
-
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
2655
|
-
(onUnselect)="props.onUnselect?.(field()!, $event)"
|
|
2656
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2657
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2658
|
-
(onDropdownClick)="props.onDropdownClick?.(field()!, $event)"
|
|
2659
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
2660
|
-
(onKeyUp)="props.onKeyUp?.(field()!, $event)"
|
|
2661
|
-
(onShow)="props.onShow?.(field()!, $event)"
|
|
2662
|
-
(onHide)="props.onHide?.(field()!, $event)"
|
|
2663
|
-
(onLazyLoad)="props.onLazyLoad?.(field()!, $event)"
|
|
2593
|
+
args: [{ selector: 'form-autocomplete', standalone: true, imports: [AutoComplete, ReactiveFormsModule], template: `<p-autocomplete
|
|
2594
|
+
[id]="field()?.uuid"
|
|
2595
|
+
[inputId]="field()?.uuid"
|
|
2596
|
+
[minLength]="props.minLength ?? 1"
|
|
2597
|
+
[delay]="props.delay ?? 300"
|
|
2598
|
+
[panelStyle]="props.panelStyle"
|
|
2599
|
+
[panelStyleClass]="props.panelStyleClass"
|
|
2600
|
+
[styleClass]="props.styleClass"
|
|
2601
|
+
[inputStyle]="props.inputStyle"
|
|
2602
|
+
[inputStyleClass]="props.inputStyleClass"
|
|
2603
|
+
[placeholder]="props.placeholder"
|
|
2604
|
+
[readonly]="props.readonly"
|
|
2605
|
+
[scrollHeight]="props.scrollHeight ?? '200px'"
|
|
2606
|
+
[lazy]="props.lazy"
|
|
2607
|
+
[virtualScroll]="props.virtualScroll"
|
|
2608
|
+
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
2609
|
+
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
2610
|
+
[maxlength]="props.maxlength"
|
|
2611
|
+
[name]="props.name"
|
|
2612
|
+
[size]="props.size"
|
|
2613
|
+
[appendTo]="props.appendTo ?? 'body'"
|
|
2614
|
+
[autoHighlight]="props.autoHighlight"
|
|
2615
|
+
[forceSelection]="props.forceSelection"
|
|
2616
|
+
[type]="props.type ?? 'text'"
|
|
2617
|
+
[autoZIndex]="props.autoZIndex ?? true"
|
|
2618
|
+
[baseZIndex]="props.baseZIndex ?? 0"
|
|
2619
|
+
[ariaLabel]="props.ariaLabel"
|
|
2620
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2621
|
+
[dropdownAriaLabel]="props.dropdownAriaLabel"
|
|
2622
|
+
[dropdownIcon]="props.dropdownIcon"
|
|
2623
|
+
[unique]="props.unique ?? true"
|
|
2624
|
+
[group]="props.group"
|
|
2625
|
+
[completeOnFocus]="props.completeOnFocus"
|
|
2626
|
+
[showClear]="props.showClear"
|
|
2627
|
+
[dropdown]="props.dropdown"
|
|
2628
|
+
[showEmptyMessage]="props.showEmptyMessage ?? true"
|
|
2629
|
+
[dropdownMode]="props.dropdownMode ?? 'blank'"
|
|
2630
|
+
[multiple]="props.multiple"
|
|
2631
|
+
[tabindex]="props.tabindex"
|
|
2632
|
+
[dataKey]="props.dataKey"
|
|
2633
|
+
[emptyMessage]="props.emptyMessage"
|
|
2634
|
+
[showTransitionOptions]="props.showTransitionOptions ?? '.12s cubic-bezier(0, 0, 0.2, 1)'"
|
|
2635
|
+
[hideTransitionOptions]="props.hideTransitionOptions ?? '.1s linear'"
|
|
2636
|
+
[autofocus]="props.autofocus"
|
|
2637
|
+
[autocomplete]="props.autocomplete ?? 'off'"
|
|
2638
|
+
[optionGroupChildren]="props.optionGroupChildren ?? 'items'"
|
|
2639
|
+
[optionGroupLabel]="props.optionGroupLabel ?? 'label'"
|
|
2640
|
+
[overlayOptions]="props.overlayOptions"
|
|
2641
|
+
[suggestions]="props.suggestions ?? []"
|
|
2642
|
+
[optionLabel]="props.optionLabel"
|
|
2643
|
+
[optionValue]="props.optionValue"
|
|
2644
|
+
[searchMessage]="props.searchMessage ?? '{0} results are available'"
|
|
2645
|
+
[emptySelectionMessage]="props.emptySelectionMessage ?? 'No selected item'"
|
|
2646
|
+
[selectionMessage]="props.selectionMessage ?? '{0} items selected'"
|
|
2647
|
+
[autoOptionFocus]="props.autoOptionFocus"
|
|
2648
|
+
[selectOnFocus]="props.selectOnFocus"
|
|
2649
|
+
[searchLocale]="props.searchLocale"
|
|
2650
|
+
[optionDisabled]="props.optionDisabled"
|
|
2651
|
+
[focusOnHover]="props.focusOnHover ?? true"
|
|
2652
|
+
[typeahead]="props.typeahead ?? true"
|
|
2653
|
+
[variant]="props.variant"
|
|
2654
|
+
[fluid]="props.fluid ?? true"
|
|
2655
|
+
[class]="props.class"
|
|
2656
|
+
[style]="props.style"
|
|
2657
|
+
(completeMethod)="props.completeMethod?.(field()!, $event)"
|
|
2658
|
+
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
2659
|
+
(onUnselect)="props.onUnselect?.(field()!, $event)"
|
|
2660
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2661
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2662
|
+
(onDropdownClick)="props.onDropdownClick?.(field()!, $event)"
|
|
2663
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
2664
|
+
(onKeyUp)="props.onKeyUp?.(field()!, $event)"
|
|
2665
|
+
(onShow)="props.onShow?.(field()!, $event)"
|
|
2666
|
+
(onHide)="props.onHide?.(field()!, $event)"
|
|
2667
|
+
(onLazyLoad)="props.onLazyLoad?.(field()!, $event)"
|
|
2664
2668
|
[formControl]="field()!.fieldControl!" />`, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"] }]
|
|
2665
2669
|
}], ctorParameters: () => [{ type: ActionService }, { type: i0.Renderer2 }], propDecorators: { autoCompleteRef: [{
|
|
2666
2670
|
type: ViewChild,
|
|
@@ -2714,172 +2718,172 @@ class MultiSelectComponent {
|
|
|
2714
2718
|
});
|
|
2715
2719
|
}
|
|
2716
2720
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MultiSelectComponent, deps: [{ token: ActionService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2717
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: MultiSelectComponent, isStandalone: true, selector: "form-multiselect", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "multiselect", first: true, predicate: MultiSelect, descendants: true }, { propertyName: "multiselectRef", first: true, predicate: MultiSelect, descendants: true, read: ElementRef }], ngImport: i0, template: `<p-multiselect
|
|
2718
|
-
[id]="field()?.uuid"
|
|
2719
|
-
[inputId]="field()?.uuid"
|
|
2720
|
-
[optionLabel]="props.optionLabel"
|
|
2721
|
-
[optionValue]="props.optionValue"
|
|
2722
|
-
[ariaLabel]="props.ariaLabel"
|
|
2723
|
-
[style]="props.style"
|
|
2724
|
-
[styleClass]="props.styleClass"
|
|
2725
|
-
[panelStyle]="props.panelStyle"
|
|
2726
|
-
[panelStyleClass]="props.panelStyleClass"
|
|
2727
|
-
[fluid]="props.fluid ?? true"
|
|
2728
|
-
[readonly]="props.readonly"
|
|
2729
|
-
[appendTo]="props.appendTo ?? 'body'"
|
|
2730
|
-
[options]="props.options"
|
|
2731
|
-
[dataKey]="props.dataKey"
|
|
2732
|
-
[group]="props.group"
|
|
2733
|
-
[filter]="props.filter"
|
|
2734
|
-
[filterPlaceHolder]="props.filterPlaceHolder"
|
|
2735
|
-
[filterLocale]="props.filterLocale"
|
|
2736
|
-
[overlayVisible]="props.overlayVisible"
|
|
2737
|
-
[variant]="props.variant"
|
|
2738
|
-
[name]="props.name"
|
|
2739
|
-
[tabindex]="props.tabindex"
|
|
2740
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2741
|
-
[displaySelectedLabel]="props.displaySelectedLabel ?? true"
|
|
2742
|
-
[maxSelectedLabels]="props.maxSelectedLabels"
|
|
2743
|
-
[selectionLimit]="props.selectionLimit"
|
|
2744
|
-
[selectedItemsLabel]="props.selectedItemsLabel"
|
|
2745
|
-
[showToggleAll]="props.showToggleAll ?? true"
|
|
2746
|
-
[emptyFilterMessage]="props.emptyFilterMessage"
|
|
2747
|
-
[emptyMessage]="props.emptyMessage"
|
|
2748
|
-
[resetFilterOnHide]="props.resetFilterOnHide"
|
|
2749
|
-
[dropdownIcon]="props.dropdownIcon"
|
|
2750
|
-
[chipIcon]="props.chipIcon"
|
|
2751
|
-
[optionDisabled]="props.optionDisabled"
|
|
2752
|
-
[optionGroupLabel]="props.optionGroupLabel"
|
|
2753
|
-
[optionGroupChildren]="props.optionGroupChildren ?? 'items'"
|
|
2754
|
-
[showHeader]="props.showHeader ?? true"
|
|
2755
|
-
[filterBy]="props.filterBy"
|
|
2756
|
-
[scrollHeight]="props.scrollHeight ?? '200px'"
|
|
2757
|
-
[lazy]="props.lazy"
|
|
2758
|
-
[virtualScroll]="props.virtualScroll"
|
|
2759
|
-
[loading]="props.loading"
|
|
2760
|
-
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
2761
|
-
[loadingIcon]="props.loadingIcon"
|
|
2762
|
-
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
2763
|
-
[overlayOptions]="props.overlayOptions"
|
|
2764
|
-
[ariaFilterLabel]="props.ariaFilterLabel"
|
|
2765
|
-
[filterMatchMode]="props.filterMatchMode"
|
|
2766
|
-
[tooltip]="props.tooltip"
|
|
2767
|
-
[tooltipPosition]="props.tooltipPosition ?? 'right'"
|
|
2768
|
-
[tooltipPositionStyle]="props.tooltipPositionStyle ?? 'absolute'"
|
|
2769
|
-
[tooltipStyleClass]="props.tooltipStyleClass"
|
|
2770
|
-
[autofocusFilter]="props.autofocusFilter"
|
|
2771
|
-
[display]="props.display ?? 'comma'"
|
|
2772
|
-
[autocomplete]="props.autocomplete ?? 'off'"
|
|
2773
|
-
[size]="props.size"
|
|
2774
|
-
[showClear]="props.showClear"
|
|
2775
|
-
[autofocus]="props.autofocus"
|
|
2776
|
-
[placeholder]="props.placeholder"
|
|
2777
|
-
[filterValue]="props.filterValue"
|
|
2778
|
-
[selectAll]="props.selectAll ?? null"
|
|
2779
|
-
[focusOnHover]="props.focusOnHover ?? true"
|
|
2780
|
-
[filterFields]="props.filterFields"
|
|
2781
|
-
[selectOnFocus]="props.selectOnFocus"
|
|
2782
|
-
[autoOptionFocus]="props.autoOptionFocus"
|
|
2783
|
-
[class]="props.class"
|
|
2784
|
-
[placeholder]="props.placeholder"
|
|
2785
|
-
[maxlength]="props.maxlength"
|
|
2786
|
-
(onChange)="props.onChange?.(field()!, $event)"
|
|
2787
|
-
(onFilter)="props.onFilter?.(field()!, $event)"
|
|
2788
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2789
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2790
|
-
(onClick)="props.onClick?.(field()!, $event)"
|
|
2791
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
2792
|
-
(onPanelShow)="props.onPanelShow?.(field()!, $event)"
|
|
2793
|
-
(onPanelHide)="props.onPanelHide?.(field()!, $event)"
|
|
2794
|
-
(onLazyLoad)="props.onLazyLoad?.(field()!, $event)"
|
|
2795
|
-
(onRemove)="props.onRemove?.(field()!, $event)"
|
|
2796
|
-
(onSelectAllChange)="props.onSelectAllChange?.(field()!, $event)"
|
|
2797
|
-
[class]="props.class"
|
|
2721
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: MultiSelectComponent, isStandalone: true, selector: "form-multiselect", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "multiselect", first: true, predicate: MultiSelect, descendants: true }, { propertyName: "multiselectRef", first: true, predicate: MultiSelect, descendants: true, read: ElementRef }], ngImport: i0, template: `<p-multiselect
|
|
2722
|
+
[id]="field()?.uuid"
|
|
2723
|
+
[inputId]="field()?.uuid"
|
|
2724
|
+
[optionLabel]="props.optionLabel"
|
|
2725
|
+
[optionValue]="props.optionValue"
|
|
2726
|
+
[ariaLabel]="props.ariaLabel"
|
|
2727
|
+
[style]="props.style"
|
|
2728
|
+
[styleClass]="props.styleClass"
|
|
2729
|
+
[panelStyle]="props.panelStyle"
|
|
2730
|
+
[panelStyleClass]="props.panelStyleClass"
|
|
2731
|
+
[fluid]="props.fluid ?? true"
|
|
2732
|
+
[readonly]="props.readonly"
|
|
2733
|
+
[appendTo]="props.appendTo ?? 'body'"
|
|
2734
|
+
[options]="props.options"
|
|
2735
|
+
[dataKey]="props.dataKey"
|
|
2736
|
+
[group]="props.group"
|
|
2737
|
+
[filter]="props.filter"
|
|
2738
|
+
[filterPlaceHolder]="props.filterPlaceHolder"
|
|
2739
|
+
[filterLocale]="props.filterLocale"
|
|
2740
|
+
[overlayVisible]="props.overlayVisible"
|
|
2741
|
+
[variant]="props.variant"
|
|
2742
|
+
[name]="props.name"
|
|
2743
|
+
[tabindex]="props.tabindex"
|
|
2744
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2745
|
+
[displaySelectedLabel]="props.displaySelectedLabel ?? true"
|
|
2746
|
+
[maxSelectedLabels]="props.maxSelectedLabels"
|
|
2747
|
+
[selectionLimit]="props.selectionLimit"
|
|
2748
|
+
[selectedItemsLabel]="props.selectedItemsLabel"
|
|
2749
|
+
[showToggleAll]="props.showToggleAll ?? true"
|
|
2750
|
+
[emptyFilterMessage]="props.emptyFilterMessage"
|
|
2751
|
+
[emptyMessage]="props.emptyMessage"
|
|
2752
|
+
[resetFilterOnHide]="props.resetFilterOnHide"
|
|
2753
|
+
[dropdownIcon]="props.dropdownIcon"
|
|
2754
|
+
[chipIcon]="props.chipIcon"
|
|
2755
|
+
[optionDisabled]="props.optionDisabled"
|
|
2756
|
+
[optionGroupLabel]="props.optionGroupLabel"
|
|
2757
|
+
[optionGroupChildren]="props.optionGroupChildren ?? 'items'"
|
|
2758
|
+
[showHeader]="props.showHeader ?? true"
|
|
2759
|
+
[filterBy]="props.filterBy"
|
|
2760
|
+
[scrollHeight]="props.scrollHeight ?? '200px'"
|
|
2761
|
+
[lazy]="props.lazy"
|
|
2762
|
+
[virtualScroll]="props.virtualScroll"
|
|
2763
|
+
[loading]="props.loading"
|
|
2764
|
+
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
2765
|
+
[loadingIcon]="props.loadingIcon"
|
|
2766
|
+
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
2767
|
+
[overlayOptions]="props.overlayOptions"
|
|
2768
|
+
[ariaFilterLabel]="props.ariaFilterLabel"
|
|
2769
|
+
[filterMatchMode]="props.filterMatchMode"
|
|
2770
|
+
[tooltip]="props.tooltip"
|
|
2771
|
+
[tooltipPosition]="props.tooltipPosition ?? 'right'"
|
|
2772
|
+
[tooltipPositionStyle]="props.tooltipPositionStyle ?? 'absolute'"
|
|
2773
|
+
[tooltipStyleClass]="props.tooltipStyleClass"
|
|
2774
|
+
[autofocusFilter]="props.autofocusFilter"
|
|
2775
|
+
[display]="props.display ?? 'comma'"
|
|
2776
|
+
[autocomplete]="props.autocomplete ?? 'off'"
|
|
2777
|
+
[size]="props.size"
|
|
2778
|
+
[showClear]="props.showClear"
|
|
2779
|
+
[autofocus]="props.autofocus"
|
|
2780
|
+
[placeholder]="props.placeholder"
|
|
2781
|
+
[filterValue]="props.filterValue"
|
|
2782
|
+
[selectAll]="props.selectAll ?? null"
|
|
2783
|
+
[focusOnHover]="props.focusOnHover ?? true"
|
|
2784
|
+
[filterFields]="props.filterFields"
|
|
2785
|
+
[selectOnFocus]="props.selectOnFocus"
|
|
2786
|
+
[autoOptionFocus]="props.autoOptionFocus"
|
|
2787
|
+
[class]="props.class"
|
|
2788
|
+
[placeholder]="props.placeholder"
|
|
2789
|
+
[maxlength]="props.maxlength"
|
|
2790
|
+
(onChange)="props.onChange?.(field()!, $event)"
|
|
2791
|
+
(onFilter)="props.onFilter?.(field()!, $event)"
|
|
2792
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2793
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2794
|
+
(onClick)="props.onClick?.(field()!, $event)"
|
|
2795
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
2796
|
+
(onPanelShow)="props.onPanelShow?.(field()!, $event)"
|
|
2797
|
+
(onPanelHide)="props.onPanelHide?.(field()!, $event)"
|
|
2798
|
+
(onLazyLoad)="props.onLazyLoad?.(field()!, $event)"
|
|
2799
|
+
(onRemove)="props.onRemove?.(field()!, $event)"
|
|
2800
|
+
(onSelectAllChange)="props.onSelectAllChange?.(field()!, $event)"
|
|
2801
|
+
[class]="props.class"
|
|
2798
2802
|
[formControl]="field()!.fieldControl!" />`, isInline: true, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"], dependencies: [{ kind: "component", type: MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "style", "styleClass", "panelStyle", "panelStyleClass", "inputId", "disabled", "fluid", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "variant", "appendTo", "dataKey", "name", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "size", "showClear", "autofocus", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "defaultLabel", "placeholder", "options", "filterValue", "itemSize", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
2799
2803
|
}
|
|
2800
2804
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MultiSelectComponent, decorators: [{
|
|
2801
2805
|
type: Component,
|
|
2802
|
-
args: [{ selector: 'form-multiselect', standalone: true, imports: [MultiSelect, ReactiveFormsModule], template: `<p-multiselect
|
|
2803
|
-
[id]="field()?.uuid"
|
|
2804
|
-
[inputId]="field()?.uuid"
|
|
2805
|
-
[optionLabel]="props.optionLabel"
|
|
2806
|
-
[optionValue]="props.optionValue"
|
|
2807
|
-
[ariaLabel]="props.ariaLabel"
|
|
2808
|
-
[style]="props.style"
|
|
2809
|
-
[styleClass]="props.styleClass"
|
|
2810
|
-
[panelStyle]="props.panelStyle"
|
|
2811
|
-
[panelStyleClass]="props.panelStyleClass"
|
|
2812
|
-
[fluid]="props.fluid ?? true"
|
|
2813
|
-
[readonly]="props.readonly"
|
|
2814
|
-
[appendTo]="props.appendTo ?? 'body'"
|
|
2815
|
-
[options]="props.options"
|
|
2816
|
-
[dataKey]="props.dataKey"
|
|
2817
|
-
[group]="props.group"
|
|
2818
|
-
[filter]="props.filter"
|
|
2819
|
-
[filterPlaceHolder]="props.filterPlaceHolder"
|
|
2820
|
-
[filterLocale]="props.filterLocale"
|
|
2821
|
-
[overlayVisible]="props.overlayVisible"
|
|
2822
|
-
[variant]="props.variant"
|
|
2823
|
-
[name]="props.name"
|
|
2824
|
-
[tabindex]="props.tabindex"
|
|
2825
|
-
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2826
|
-
[displaySelectedLabel]="props.displaySelectedLabel ?? true"
|
|
2827
|
-
[maxSelectedLabels]="props.maxSelectedLabels"
|
|
2828
|
-
[selectionLimit]="props.selectionLimit"
|
|
2829
|
-
[selectedItemsLabel]="props.selectedItemsLabel"
|
|
2830
|
-
[showToggleAll]="props.showToggleAll ?? true"
|
|
2831
|
-
[emptyFilterMessage]="props.emptyFilterMessage"
|
|
2832
|
-
[emptyMessage]="props.emptyMessage"
|
|
2833
|
-
[resetFilterOnHide]="props.resetFilterOnHide"
|
|
2834
|
-
[dropdownIcon]="props.dropdownIcon"
|
|
2835
|
-
[chipIcon]="props.chipIcon"
|
|
2836
|
-
[optionDisabled]="props.optionDisabled"
|
|
2837
|
-
[optionGroupLabel]="props.optionGroupLabel"
|
|
2838
|
-
[optionGroupChildren]="props.optionGroupChildren ?? 'items'"
|
|
2839
|
-
[showHeader]="props.showHeader ?? true"
|
|
2840
|
-
[filterBy]="props.filterBy"
|
|
2841
|
-
[scrollHeight]="props.scrollHeight ?? '200px'"
|
|
2842
|
-
[lazy]="props.lazy"
|
|
2843
|
-
[virtualScroll]="props.virtualScroll"
|
|
2844
|
-
[loading]="props.loading"
|
|
2845
|
-
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
2846
|
-
[loadingIcon]="props.loadingIcon"
|
|
2847
|
-
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
2848
|
-
[overlayOptions]="props.overlayOptions"
|
|
2849
|
-
[ariaFilterLabel]="props.ariaFilterLabel"
|
|
2850
|
-
[filterMatchMode]="props.filterMatchMode"
|
|
2851
|
-
[tooltip]="props.tooltip"
|
|
2852
|
-
[tooltipPosition]="props.tooltipPosition ?? 'right'"
|
|
2853
|
-
[tooltipPositionStyle]="props.tooltipPositionStyle ?? 'absolute'"
|
|
2854
|
-
[tooltipStyleClass]="props.tooltipStyleClass"
|
|
2855
|
-
[autofocusFilter]="props.autofocusFilter"
|
|
2856
|
-
[display]="props.display ?? 'comma'"
|
|
2857
|
-
[autocomplete]="props.autocomplete ?? 'off'"
|
|
2858
|
-
[size]="props.size"
|
|
2859
|
-
[showClear]="props.showClear"
|
|
2860
|
-
[autofocus]="props.autofocus"
|
|
2861
|
-
[placeholder]="props.placeholder"
|
|
2862
|
-
[filterValue]="props.filterValue"
|
|
2863
|
-
[selectAll]="props.selectAll ?? null"
|
|
2864
|
-
[focusOnHover]="props.focusOnHover ?? true"
|
|
2865
|
-
[filterFields]="props.filterFields"
|
|
2866
|
-
[selectOnFocus]="props.selectOnFocus"
|
|
2867
|
-
[autoOptionFocus]="props.autoOptionFocus"
|
|
2868
|
-
[class]="props.class"
|
|
2869
|
-
[placeholder]="props.placeholder"
|
|
2870
|
-
[maxlength]="props.maxlength"
|
|
2871
|
-
(onChange)="props.onChange?.(field()!, $event)"
|
|
2872
|
-
(onFilter)="props.onFilter?.(field()!, $event)"
|
|
2873
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2874
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2875
|
-
(onClick)="props.onClick?.(field()!, $event)"
|
|
2876
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
2877
|
-
(onPanelShow)="props.onPanelShow?.(field()!, $event)"
|
|
2878
|
-
(onPanelHide)="props.onPanelHide?.(field()!, $event)"
|
|
2879
|
-
(onLazyLoad)="props.onLazyLoad?.(field()!, $event)"
|
|
2880
|
-
(onRemove)="props.onRemove?.(field()!, $event)"
|
|
2881
|
-
(onSelectAllChange)="props.onSelectAllChange?.(field()!, $event)"
|
|
2882
|
-
[class]="props.class"
|
|
2806
|
+
args: [{ selector: 'form-multiselect', standalone: true, imports: [MultiSelect, ReactiveFormsModule], template: `<p-multiselect
|
|
2807
|
+
[id]="field()?.uuid"
|
|
2808
|
+
[inputId]="field()?.uuid"
|
|
2809
|
+
[optionLabel]="props.optionLabel"
|
|
2810
|
+
[optionValue]="props.optionValue"
|
|
2811
|
+
[ariaLabel]="props.ariaLabel"
|
|
2812
|
+
[style]="props.style"
|
|
2813
|
+
[styleClass]="props.styleClass"
|
|
2814
|
+
[panelStyle]="props.panelStyle"
|
|
2815
|
+
[panelStyleClass]="props.panelStyleClass"
|
|
2816
|
+
[fluid]="props.fluid ?? true"
|
|
2817
|
+
[readonly]="props.readonly"
|
|
2818
|
+
[appendTo]="props.appendTo ?? 'body'"
|
|
2819
|
+
[options]="props.options"
|
|
2820
|
+
[dataKey]="props.dataKey"
|
|
2821
|
+
[group]="props.group"
|
|
2822
|
+
[filter]="props.filter"
|
|
2823
|
+
[filterPlaceHolder]="props.filterPlaceHolder"
|
|
2824
|
+
[filterLocale]="props.filterLocale"
|
|
2825
|
+
[overlayVisible]="props.overlayVisible"
|
|
2826
|
+
[variant]="props.variant"
|
|
2827
|
+
[name]="props.name"
|
|
2828
|
+
[tabindex]="props.tabindex"
|
|
2829
|
+
[ariaLabelledBy]="props.ariaLabelledBy"
|
|
2830
|
+
[displaySelectedLabel]="props.displaySelectedLabel ?? true"
|
|
2831
|
+
[maxSelectedLabels]="props.maxSelectedLabels"
|
|
2832
|
+
[selectionLimit]="props.selectionLimit"
|
|
2833
|
+
[selectedItemsLabel]="props.selectedItemsLabel"
|
|
2834
|
+
[showToggleAll]="props.showToggleAll ?? true"
|
|
2835
|
+
[emptyFilterMessage]="props.emptyFilterMessage"
|
|
2836
|
+
[emptyMessage]="props.emptyMessage"
|
|
2837
|
+
[resetFilterOnHide]="props.resetFilterOnHide"
|
|
2838
|
+
[dropdownIcon]="props.dropdownIcon"
|
|
2839
|
+
[chipIcon]="props.chipIcon"
|
|
2840
|
+
[optionDisabled]="props.optionDisabled"
|
|
2841
|
+
[optionGroupLabel]="props.optionGroupLabel"
|
|
2842
|
+
[optionGroupChildren]="props.optionGroupChildren ?? 'items'"
|
|
2843
|
+
[showHeader]="props.showHeader ?? true"
|
|
2844
|
+
[filterBy]="props.filterBy"
|
|
2845
|
+
[scrollHeight]="props.scrollHeight ?? '200px'"
|
|
2846
|
+
[lazy]="props.lazy"
|
|
2847
|
+
[virtualScroll]="props.virtualScroll"
|
|
2848
|
+
[loading]="props.loading"
|
|
2849
|
+
[virtualScrollItemSize]="props.virtualScrollItemSize"
|
|
2850
|
+
[loadingIcon]="props.loadingIcon"
|
|
2851
|
+
[virtualScrollOptions]="props.virtualScrollOptions"
|
|
2852
|
+
[overlayOptions]="props.overlayOptions"
|
|
2853
|
+
[ariaFilterLabel]="props.ariaFilterLabel"
|
|
2854
|
+
[filterMatchMode]="props.filterMatchMode"
|
|
2855
|
+
[tooltip]="props.tooltip"
|
|
2856
|
+
[tooltipPosition]="props.tooltipPosition ?? 'right'"
|
|
2857
|
+
[tooltipPositionStyle]="props.tooltipPositionStyle ?? 'absolute'"
|
|
2858
|
+
[tooltipStyleClass]="props.tooltipStyleClass"
|
|
2859
|
+
[autofocusFilter]="props.autofocusFilter"
|
|
2860
|
+
[display]="props.display ?? 'comma'"
|
|
2861
|
+
[autocomplete]="props.autocomplete ?? 'off'"
|
|
2862
|
+
[size]="props.size"
|
|
2863
|
+
[showClear]="props.showClear"
|
|
2864
|
+
[autofocus]="props.autofocus"
|
|
2865
|
+
[placeholder]="props.placeholder"
|
|
2866
|
+
[filterValue]="props.filterValue"
|
|
2867
|
+
[selectAll]="props.selectAll ?? null"
|
|
2868
|
+
[focusOnHover]="props.focusOnHover ?? true"
|
|
2869
|
+
[filterFields]="props.filterFields"
|
|
2870
|
+
[selectOnFocus]="props.selectOnFocus"
|
|
2871
|
+
[autoOptionFocus]="props.autoOptionFocus"
|
|
2872
|
+
[class]="props.class"
|
|
2873
|
+
[placeholder]="props.placeholder"
|
|
2874
|
+
[maxlength]="props.maxlength"
|
|
2875
|
+
(onChange)="props.onChange?.(field()!, $event)"
|
|
2876
|
+
(onFilter)="props.onFilter?.(field()!, $event)"
|
|
2877
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
2878
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
2879
|
+
(onClick)="props.onClick?.(field()!, $event)"
|
|
2880
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
2881
|
+
(onPanelShow)="props.onPanelShow?.(field()!, $event)"
|
|
2882
|
+
(onPanelHide)="props.onPanelHide?.(field()!, $event)"
|
|
2883
|
+
(onLazyLoad)="props.onLazyLoad?.(field()!, $event)"
|
|
2884
|
+
(onRemove)="props.onRemove?.(field()!, $event)"
|
|
2885
|
+
(onSelectAllChange)="props.onSelectAllChange?.(field()!, $event)"
|
|
2886
|
+
[class]="props.class"
|
|
2883
2887
|
[formControl]="field()!.fieldControl!" />`, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"] }]
|
|
2884
2888
|
}], ctorParameters: () => [{ type: ActionService }, { type: i0.Renderer2 }], propDecorators: { multiselect: [{
|
|
2885
2889
|
type: ViewChild,
|
|
@@ -2980,86 +2984,86 @@ class RadioComponent {
|
|
|
2980
2984
|
});
|
|
2981
2985
|
}
|
|
2982
2986
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioComponent, deps: [{ token: ActionService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2983
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: RadioComponent, isStandalone: true, selector: "form-radio", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "radioContainer", first: true, predicate: ["radioContainer"], descendants: true }], ngImport: i0, template: ` <div
|
|
2984
|
-
#radioContainer
|
|
2985
|
-
style="width: 100%; height: 100%"
|
|
2986
|
-
class="radio-container">
|
|
2987
|
-
@if (isEnter) {
|
|
2988
|
-
<div
|
|
2989
|
-
[id]="field()?.uuid"
|
|
2990
|
-
class="flex flex-wrap gap-4">
|
|
2991
|
-
@for (op of props.options; track op) {
|
|
2992
|
-
<div class="flex items-center">
|
|
2993
|
-
<p-radiobutton
|
|
2994
|
-
[value]="op.value"
|
|
2995
|
-
[name]="op.name"
|
|
2996
|
-
[tabindex]="op.tabindex"
|
|
2997
|
-
[inputId]="field()?.uuid"
|
|
2998
|
-
[ariaLabelledBy]="op.ariaLabelledBy"
|
|
2999
|
-
[ariaLabel]="op.ariaLabel"
|
|
3000
|
-
[style]="op.style"
|
|
3001
|
-
[styleClass]="op.styleClass"
|
|
3002
|
-
[autofocus]="op.autofocus"
|
|
3003
|
-
[variant]="op.variant"
|
|
3004
|
-
[class]="op.class ?? props.class"
|
|
3005
|
-
[binary]="!!props.binary"
|
|
3006
|
-
(onClick)="onClick(field()!, $event)"
|
|
3007
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
3008
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
3009
|
-
[formControl]="field()!.fieldControl!" />
|
|
3010
|
-
<label
|
|
3011
|
-
[for]="field()?.key"
|
|
3012
|
-
class="radio-label ml-2"
|
|
3013
|
-
>{{ op.label }}</label
|
|
3014
|
-
>
|
|
3015
|
-
</div>
|
|
3016
|
-
}
|
|
3017
|
-
</div>
|
|
3018
|
-
} @else {
|
|
3019
|
-
<div class="radio-label">{{ currentLabel() }}</div>
|
|
3020
|
-
}
|
|
2987
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: RadioComponent, isStandalone: true, selector: "form-radio", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "radioContainer", first: true, predicate: ["radioContainer"], descendants: true }], ngImport: i0, template: ` <div
|
|
2988
|
+
#radioContainer
|
|
2989
|
+
style="width: 100%; height: 100%"
|
|
2990
|
+
class="radio-container">
|
|
2991
|
+
@if (isEnter) {
|
|
2992
|
+
<div
|
|
2993
|
+
[id]="field()?.uuid"
|
|
2994
|
+
class="flex flex-wrap gap-4">
|
|
2995
|
+
@for (op of props.options; track op) {
|
|
2996
|
+
<div class="flex items-center">
|
|
2997
|
+
<p-radiobutton
|
|
2998
|
+
[value]="op.value"
|
|
2999
|
+
[name]="op.name"
|
|
3000
|
+
[tabindex]="op.tabindex"
|
|
3001
|
+
[inputId]="field()?.uuid"
|
|
3002
|
+
[ariaLabelledBy]="op.ariaLabelledBy"
|
|
3003
|
+
[ariaLabel]="op.ariaLabel"
|
|
3004
|
+
[style]="op.style"
|
|
3005
|
+
[styleClass]="op.styleClass"
|
|
3006
|
+
[autofocus]="op.autofocus"
|
|
3007
|
+
[variant]="op.variant"
|
|
3008
|
+
[class]="op.class ?? props.class"
|
|
3009
|
+
[binary]="!!props.binary"
|
|
3010
|
+
(onClick)="onClick(field()!, $event)"
|
|
3011
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
3012
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
3013
|
+
[formControl]="field()!.fieldControl!" />
|
|
3014
|
+
<label
|
|
3015
|
+
[for]="field()?.key"
|
|
3016
|
+
class="radio-label ml-2"
|
|
3017
|
+
>{{ op.label }}</label
|
|
3018
|
+
>
|
|
3019
|
+
</div>
|
|
3020
|
+
}
|
|
3021
|
+
</div>
|
|
3022
|
+
} @else {
|
|
3023
|
+
<div class="radio-label">{{ currentLabel() }}</div>
|
|
3024
|
+
}
|
|
3021
3025
|
</div>`, isInline: true, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n", ".radio-label{color:#334155}\n"], dependencies: [{ kind: "component", type: RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "formControlName", "name", "disabled", "variant", "size", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "style", "styleClass", "autofocus", "binary"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
3022
3026
|
}
|
|
3023
3027
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioComponent, decorators: [{
|
|
3024
3028
|
type: Component,
|
|
3025
|
-
args: [{ selector: 'form-radio', standalone: true, imports: [RadioButton, ReactiveFormsModule], template: ` <div
|
|
3026
|
-
#radioContainer
|
|
3027
|
-
style="width: 100%; height: 100%"
|
|
3028
|
-
class="radio-container">
|
|
3029
|
-
@if (isEnter) {
|
|
3030
|
-
<div
|
|
3031
|
-
[id]="field()?.uuid"
|
|
3032
|
-
class="flex flex-wrap gap-4">
|
|
3033
|
-
@for (op of props.options; track op) {
|
|
3034
|
-
<div class="flex items-center">
|
|
3035
|
-
<p-radiobutton
|
|
3036
|
-
[value]="op.value"
|
|
3037
|
-
[name]="op.name"
|
|
3038
|
-
[tabindex]="op.tabindex"
|
|
3039
|
-
[inputId]="field()?.uuid"
|
|
3040
|
-
[ariaLabelledBy]="op.ariaLabelledBy"
|
|
3041
|
-
[ariaLabel]="op.ariaLabel"
|
|
3042
|
-
[style]="op.style"
|
|
3043
|
-
[styleClass]="op.styleClass"
|
|
3044
|
-
[autofocus]="op.autofocus"
|
|
3045
|
-
[variant]="op.variant"
|
|
3046
|
-
[class]="op.class ?? props.class"
|
|
3047
|
-
[binary]="!!props.binary"
|
|
3048
|
-
(onClick)="onClick(field()!, $event)"
|
|
3049
|
-
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
3050
|
-
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
3051
|
-
[formControl]="field()!.fieldControl!" />
|
|
3052
|
-
<label
|
|
3053
|
-
[for]="field()?.key"
|
|
3054
|
-
class="radio-label ml-2"
|
|
3055
|
-
>{{ op.label }}</label
|
|
3056
|
-
>
|
|
3057
|
-
</div>
|
|
3058
|
-
}
|
|
3059
|
-
</div>
|
|
3060
|
-
} @else {
|
|
3061
|
-
<div class="radio-label">{{ currentLabel() }}</div>
|
|
3062
|
-
}
|
|
3029
|
+
args: [{ selector: 'form-radio', standalone: true, imports: [RadioButton, ReactiveFormsModule], template: ` <div
|
|
3030
|
+
#radioContainer
|
|
3031
|
+
style="width: 100%; height: 100%"
|
|
3032
|
+
class="radio-container">
|
|
3033
|
+
@if (isEnter) {
|
|
3034
|
+
<div
|
|
3035
|
+
[id]="field()?.uuid"
|
|
3036
|
+
class="flex flex-wrap gap-4">
|
|
3037
|
+
@for (op of props.options; track op) {
|
|
3038
|
+
<div class="flex items-center">
|
|
3039
|
+
<p-radiobutton
|
|
3040
|
+
[value]="op.value"
|
|
3041
|
+
[name]="op.name"
|
|
3042
|
+
[tabindex]="op.tabindex"
|
|
3043
|
+
[inputId]="field()?.uuid"
|
|
3044
|
+
[ariaLabelledBy]="op.ariaLabelledBy"
|
|
3045
|
+
[ariaLabel]="op.ariaLabel"
|
|
3046
|
+
[style]="op.style"
|
|
3047
|
+
[styleClass]="op.styleClass"
|
|
3048
|
+
[autofocus]="op.autofocus"
|
|
3049
|
+
[variant]="op.variant"
|
|
3050
|
+
[class]="op.class ?? props.class"
|
|
3051
|
+
[binary]="!!props.binary"
|
|
3052
|
+
(onClick)="onClick(field()!, $event)"
|
|
3053
|
+
(onFocus)="props.onFocus?.(field()!, $event)"
|
|
3054
|
+
(onBlur)="props.onBlur?.(field()!, $event)"
|
|
3055
|
+
[formControl]="field()!.fieldControl!" />
|
|
3056
|
+
<label
|
|
3057
|
+
[for]="field()?.key"
|
|
3058
|
+
class="radio-label ml-2"
|
|
3059
|
+
>{{ op.label }}</label
|
|
3060
|
+
>
|
|
3061
|
+
</div>
|
|
3062
|
+
}
|
|
3063
|
+
</div>
|
|
3064
|
+
} @else {
|
|
3065
|
+
<div class="radio-label">{{ currentLabel() }}</div>
|
|
3066
|
+
}
|
|
3063
3067
|
</div>`, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n", ".radio-label{color:#334155}\n"] }]
|
|
3064
3068
|
}], ctorParameters: () => [{ type: ActionService }, { type: i0.NgZone }], propDecorators: { radioContainer: [{
|
|
3065
3069
|
type: ViewChild,
|
|
@@ -3116,34 +3120,34 @@ class TextAreaComponent {
|
|
|
3116
3120
|
}
|
|
3117
3121
|
}
|
|
3118
3122
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextAreaComponent, deps: [{ token: ActionService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3119
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: TextAreaComponent, isStandalone: true, selector: "form-textarea", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "textAreaRef", first: true, predicate: ["textAreaRef"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
3120
|
-
<textarea
|
|
3121
|
-
#textAreaRef
|
|
3122
|
-
pTextarea
|
|
3123
|
-
[rows]="props.rows ?? 4"
|
|
3124
|
-
[cols]="props.cols"
|
|
3125
|
-
[id]="field()?.uuid"
|
|
3126
|
-
[variant]="props.variant"
|
|
3127
|
-
[fluid]="props.fluid ?? true"
|
|
3128
|
-
[pSize]="props.size"
|
|
3129
|
-
[class]="props.class"
|
|
3130
|
-
[formControl]="field()!.fieldControl!"></textarea>
|
|
3123
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: TextAreaComponent, isStandalone: true, selector: "form-textarea", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "textAreaRef", first: true, predicate: ["textAreaRef"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
3124
|
+
<textarea
|
|
3125
|
+
#textAreaRef
|
|
3126
|
+
pTextarea
|
|
3127
|
+
[rows]="props.rows ?? 4"
|
|
3128
|
+
[cols]="props.cols"
|
|
3129
|
+
[id]="field()?.uuid"
|
|
3130
|
+
[variant]="props.variant"
|
|
3131
|
+
[fluid]="props.fluid ?? true"
|
|
3132
|
+
[pSize]="props.size"
|
|
3133
|
+
[class]="props.class"
|
|
3134
|
+
[formControl]="field()!.fieldControl!"></textarea>
|
|
3131
3135
|
`, isInline: true, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: TextareaModule }, { kind: "directive", type: i2$3.Textarea, selector: "[pTextarea]", inputs: ["autoResize", "variant", "fluid", "pSize"], outputs: ["onResize"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
3132
3136
|
}
|
|
3133
3137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextAreaComponent, decorators: [{
|
|
3134
3138
|
type: Component,
|
|
3135
|
-
args: [{ selector: 'form-textarea', standalone: true, imports: [TextareaModule, ReactiveFormsModule], template: `
|
|
3136
|
-
<textarea
|
|
3137
|
-
#textAreaRef
|
|
3138
|
-
pTextarea
|
|
3139
|
-
[rows]="props.rows ?? 4"
|
|
3140
|
-
[cols]="props.cols"
|
|
3141
|
-
[id]="field()?.uuid"
|
|
3142
|
-
[variant]="props.variant"
|
|
3143
|
-
[fluid]="props.fluid ?? true"
|
|
3144
|
-
[pSize]="props.size"
|
|
3145
|
-
[class]="props.class"
|
|
3146
|
-
[formControl]="field()!.fieldControl!"></textarea>
|
|
3139
|
+
args: [{ selector: 'form-textarea', standalone: true, imports: [TextareaModule, ReactiveFormsModule], template: `
|
|
3140
|
+
<textarea
|
|
3141
|
+
#textAreaRef
|
|
3142
|
+
pTextarea
|
|
3143
|
+
[rows]="props.rows ?? 4"
|
|
3144
|
+
[cols]="props.cols"
|
|
3145
|
+
[id]="field()?.uuid"
|
|
3146
|
+
[variant]="props.variant"
|
|
3147
|
+
[fluid]="props.fluid ?? true"
|
|
3148
|
+
[pSize]="props.size"
|
|
3149
|
+
[class]="props.class"
|
|
3150
|
+
[formControl]="field()!.fieldControl!"></textarea>
|
|
3147
3151
|
`, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"] }]
|
|
3148
3152
|
}], ctorParameters: () => [{ type: ActionService }, { type: i0.Renderer2 }], propDecorators: { textAreaRef: [{
|
|
3149
3153
|
type: ViewChild,
|
|
@@ -3267,140 +3271,140 @@ class UploadComponent {
|
|
|
3267
3271
|
}
|
|
3268
3272
|
}
|
|
3269
3273
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UploadComponent, deps: [{ token: i1$4.HttpClient }, { token: ActionService }, { token: i0.Renderer2 }, { token: i1$3.DatePipe }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3270
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: UploadComponent, isStandalone: true, selector: "form-upload", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "uploadCompRef", first: true, predicate: ["uploadComp"], descendants: true, read: ElementRef }], ngImport: i0, template: `<p-fileUpload
|
|
3271
|
-
#fu
|
|
3272
|
-
auto
|
|
3273
|
-
[id]="field()?.uuid"
|
|
3274
|
-
[name]="props.name"
|
|
3275
|
-
[url]="props.url"
|
|
3276
|
-
[method]="props.method ?? 'post'"
|
|
3277
|
-
[multiple]="props.multiple ?? true"
|
|
3278
|
-
[accept]="props.accept"
|
|
3279
|
-
[withCredentials]="props.withCredentials"
|
|
3280
|
-
[maxFileSize]="props.maxFileSize"
|
|
3281
|
-
[styleClass]="props.styleClass"
|
|
3282
|
-
[previewWidth]="props.previewWidth ?? 50"
|
|
3283
|
-
[mode]="props.mode ?? 'advanced'"
|
|
3284
|
-
[headers]="props.headers"
|
|
3285
|
-
[fileLimit]="props.fileLimit"
|
|
3286
|
-
[customUpload]="props.customUpload ?? true"
|
|
3287
|
-
(onBeforeUpload)="props.onBeforeUpload?.(field()!, $event)"
|
|
3288
|
-
(onSend)="props.onSend?.(field()!, $event)"
|
|
3289
|
-
(onUpload)="props.onUpload?.(field()!, $event)"
|
|
3290
|
-
(onError)="props.onError?.(field()!, $event)"
|
|
3291
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
3292
|
-
(onRemove)="props.onRemove?.(field()!, $event)"
|
|
3293
|
-
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
3294
|
-
(onProgress)="props.onProgress?.(field()!, $event)"
|
|
3295
|
-
(uploadHandler)="uploadHandler(field()!, $event, fu)">
|
|
3296
|
-
<ng-template
|
|
3297
|
-
#header
|
|
3298
|
-
let-chooseCallback="chooseCallback">
|
|
3299
|
-
<div
|
|
3300
|
-
#uploadComp
|
|
3301
|
-
[class]="'flex justify-center w-full upload-btn' + (field()?.fieldControl?.disabled ? ' upload-disable' : '')"
|
|
3302
|
-
(click)="choose($event, chooseCallback)">
|
|
3303
|
-
<span
|
|
3304
|
-
><span
|
|
3305
|
-
style="font-size: 12px; margin-right: 2.5px"
|
|
3306
|
-
[class]="'pi' + (loading ? ' pi-spin pi-spinner' : ' pi-upload')"></span
|
|
3307
|
-
>{{ (loading ? 'modal.uploading' : 'modal.selectFile') | translate }}</span
|
|
3308
|
-
>
|
|
3309
|
-
</div>
|
|
3310
|
-
</ng-template>
|
|
3311
|
-
<ng-template #content>
|
|
3312
|
-
@if (fileList.length > 0) {
|
|
3313
|
-
@for (file of fileList; track file; let index = $index) {
|
|
3314
|
-
<div class="flex justify-between items-center file-item">
|
|
3315
|
-
<span class="file-name"
|
|
3316
|
-
><a
|
|
3317
|
-
[href]="'https://hrimage.myfoodiepet.com//' + file"
|
|
3318
|
-
[download]="file"
|
|
3319
|
-
>{{ file }}</a
|
|
3320
|
-
></span
|
|
3321
|
-
>
|
|
3322
|
-
@if (!field()?.fieldControl?.disabled) {
|
|
3323
|
-
<p-button
|
|
3324
|
-
icon="pi pi-times"
|
|
3325
|
-
severity="danger"
|
|
3326
|
-
size="small"
|
|
3327
|
-
(onClick)="deleteHandler(file, index)"
|
|
3328
|
-
[text]="true" />
|
|
3329
|
-
}
|
|
3330
|
-
</div>
|
|
3331
|
-
}
|
|
3332
|
-
}
|
|
3333
|
-
</ng-template>
|
|
3334
|
-
<ng-template #file> </ng-template>
|
|
3274
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: UploadComponent, isStandalone: true, selector: "form-upload", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "uploadCompRef", first: true, predicate: ["uploadComp"], descendants: true, read: ElementRef }], ngImport: i0, template: `<p-fileUpload
|
|
3275
|
+
#fu
|
|
3276
|
+
auto
|
|
3277
|
+
[id]="field()?.uuid"
|
|
3278
|
+
[name]="props.name"
|
|
3279
|
+
[url]="props.url"
|
|
3280
|
+
[method]="props.method ?? 'post'"
|
|
3281
|
+
[multiple]="props.multiple ?? true"
|
|
3282
|
+
[accept]="props.accept"
|
|
3283
|
+
[withCredentials]="props.withCredentials"
|
|
3284
|
+
[maxFileSize]="props.maxFileSize"
|
|
3285
|
+
[styleClass]="props.styleClass"
|
|
3286
|
+
[previewWidth]="props.previewWidth ?? 50"
|
|
3287
|
+
[mode]="props.mode ?? 'advanced'"
|
|
3288
|
+
[headers]="props.headers"
|
|
3289
|
+
[fileLimit]="props.fileLimit"
|
|
3290
|
+
[customUpload]="props.customUpload ?? true"
|
|
3291
|
+
(onBeforeUpload)="props.onBeforeUpload?.(field()!, $event)"
|
|
3292
|
+
(onSend)="props.onSend?.(field()!, $event)"
|
|
3293
|
+
(onUpload)="props.onUpload?.(field()!, $event)"
|
|
3294
|
+
(onError)="props.onError?.(field()!, $event)"
|
|
3295
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
3296
|
+
(onRemove)="props.onRemove?.(field()!, $event)"
|
|
3297
|
+
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
3298
|
+
(onProgress)="props.onProgress?.(field()!, $event)"
|
|
3299
|
+
(uploadHandler)="uploadHandler(field()!, $event, fu)">
|
|
3300
|
+
<ng-template
|
|
3301
|
+
#header
|
|
3302
|
+
let-chooseCallback="chooseCallback">
|
|
3303
|
+
<div
|
|
3304
|
+
#uploadComp
|
|
3305
|
+
[class]="'flex justify-center w-full upload-btn' + (field()?.fieldControl?.disabled ? ' upload-disable' : '')"
|
|
3306
|
+
(click)="choose($event, chooseCallback)">
|
|
3307
|
+
<span
|
|
3308
|
+
><span
|
|
3309
|
+
style="font-size: 12px; margin-right: 2.5px"
|
|
3310
|
+
[class]="'pi' + (loading ? ' pi-spin pi-spinner' : ' pi-upload')"></span
|
|
3311
|
+
>{{ (loading ? 'modal.uploading' : 'modal.selectFile') | translate }}</span
|
|
3312
|
+
>
|
|
3313
|
+
</div>
|
|
3314
|
+
</ng-template>
|
|
3315
|
+
<ng-template #content>
|
|
3316
|
+
@if (fileList.length > 0) {
|
|
3317
|
+
@for (file of fileList; track file; let index = $index) {
|
|
3318
|
+
<div class="flex justify-between items-center file-item">
|
|
3319
|
+
<span class="file-name"
|
|
3320
|
+
><a
|
|
3321
|
+
[href]="'https://hrimage.myfoodiepet.com//' + file"
|
|
3322
|
+
[download]="file"
|
|
3323
|
+
>{{ file }}</a
|
|
3324
|
+
></span
|
|
3325
|
+
>
|
|
3326
|
+
@if (!field()?.fieldControl?.disabled) {
|
|
3327
|
+
<p-button
|
|
3328
|
+
icon="pi pi-times"
|
|
3329
|
+
severity="danger"
|
|
3330
|
+
size="small"
|
|
3331
|
+
(onClick)="deleteHandler(file, index)"
|
|
3332
|
+
[text]="true" />
|
|
3333
|
+
}
|
|
3334
|
+
</div>
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3337
|
+
</ng-template>
|
|
3338
|
+
<ng-template #file> </ng-template>
|
|
3335
3339
|
</p-fileUpload>`, isInline: true, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n", ".file-item{border-top:solid 1px #fff}.upload-btn{border:solid 1px transparent}.upload-btn.upload-disable:hover{cursor:default}.upload-btn:not(.upload-disable):hover{border:solid 1px var(--p-primary-color);background:var(--p-primary-50);cursor:pointer}.upload-btn:not(.upload-disable).ng-hovered{border:solid 1px var(--p-primary-color);background:var(--p-primary-50);cursor:pointer}.file-name{font-size:12px}.file-name:hover{cursor:pointer;color:var(--p-primary-color)}:is() .p-image-preview-mask{position:inherit;opacity:1;justify-content:left;color:#334155}\n"], dependencies: [{ kind: "component", type: FileUpload, selector: "p-fileupload, p-fileUpload", inputs: ["name", "url", "method", "multiple", "accept", "disabled", "auto", "withCredentials", "maxFileSize", "invalidFileSizeMessageSummary", "invalidFileSizeMessageDetail", "invalidFileTypeMessageSummary", "invalidFileTypeMessageDetail", "invalidFileLimitMessageDetail", "invalidFileLimitMessageSummary", "style", "styleClass", "previewWidth", "chooseLabel", "uploadLabel", "cancelLabel", "chooseIcon", "uploadIcon", "cancelIcon", "showUploadButton", "showCancelButton", "mode", "headers", "customUpload", "fileLimit", "uploadStyleClass", "cancelStyleClass", "removeStyleClass", "chooseStyleClass", "chooseButtonProps", "uploadButtonProps", "cancelButtonProps", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
|
|
3336
3340
|
}
|
|
3337
3341
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UploadComponent, decorators: [{
|
|
3338
3342
|
type: Component,
|
|
3339
|
-
args: [{ selector: 'form-upload', standalone: true, imports: [FileUpload, ButtonModule, ReactiveFormsModule, TranslatePipe], template: `<p-fileUpload
|
|
3340
|
-
#fu
|
|
3341
|
-
auto
|
|
3342
|
-
[id]="field()?.uuid"
|
|
3343
|
-
[name]="props.name"
|
|
3344
|
-
[url]="props.url"
|
|
3345
|
-
[method]="props.method ?? 'post'"
|
|
3346
|
-
[multiple]="props.multiple ?? true"
|
|
3347
|
-
[accept]="props.accept"
|
|
3348
|
-
[withCredentials]="props.withCredentials"
|
|
3349
|
-
[maxFileSize]="props.maxFileSize"
|
|
3350
|
-
[styleClass]="props.styleClass"
|
|
3351
|
-
[previewWidth]="props.previewWidth ?? 50"
|
|
3352
|
-
[mode]="props.mode ?? 'advanced'"
|
|
3353
|
-
[headers]="props.headers"
|
|
3354
|
-
[fileLimit]="props.fileLimit"
|
|
3355
|
-
[customUpload]="props.customUpload ?? true"
|
|
3356
|
-
(onBeforeUpload)="props.onBeforeUpload?.(field()!, $event)"
|
|
3357
|
-
(onSend)="props.onSend?.(field()!, $event)"
|
|
3358
|
-
(onUpload)="props.onUpload?.(field()!, $event)"
|
|
3359
|
-
(onError)="props.onError?.(field()!, $event)"
|
|
3360
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
3361
|
-
(onRemove)="props.onRemove?.(field()!, $event)"
|
|
3362
|
-
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
3363
|
-
(onProgress)="props.onProgress?.(field()!, $event)"
|
|
3364
|
-
(uploadHandler)="uploadHandler(field()!, $event, fu)">
|
|
3365
|
-
<ng-template
|
|
3366
|
-
#header
|
|
3367
|
-
let-chooseCallback="chooseCallback">
|
|
3368
|
-
<div
|
|
3369
|
-
#uploadComp
|
|
3370
|
-
[class]="'flex justify-center w-full upload-btn' + (field()?.fieldControl?.disabled ? ' upload-disable' : '')"
|
|
3371
|
-
(click)="choose($event, chooseCallback)">
|
|
3372
|
-
<span
|
|
3373
|
-
><span
|
|
3374
|
-
style="font-size: 12px; margin-right: 2.5px"
|
|
3375
|
-
[class]="'pi' + (loading ? ' pi-spin pi-spinner' : ' pi-upload')"></span
|
|
3376
|
-
>{{ (loading ? 'modal.uploading' : 'modal.selectFile') | translate }}</span
|
|
3377
|
-
>
|
|
3378
|
-
</div>
|
|
3379
|
-
</ng-template>
|
|
3380
|
-
<ng-template #content>
|
|
3381
|
-
@if (fileList.length > 0) {
|
|
3382
|
-
@for (file of fileList; track file; let index = $index) {
|
|
3383
|
-
<div class="flex justify-between items-center file-item">
|
|
3384
|
-
<span class="file-name"
|
|
3385
|
-
><a
|
|
3386
|
-
[href]="'https://hrimage.myfoodiepet.com//' + file"
|
|
3387
|
-
[download]="file"
|
|
3388
|
-
>{{ file }}</a
|
|
3389
|
-
></span
|
|
3390
|
-
>
|
|
3391
|
-
@if (!field()?.fieldControl?.disabled) {
|
|
3392
|
-
<p-button
|
|
3393
|
-
icon="pi pi-times"
|
|
3394
|
-
severity="danger"
|
|
3395
|
-
size="small"
|
|
3396
|
-
(onClick)="deleteHandler(file, index)"
|
|
3397
|
-
[text]="true" />
|
|
3398
|
-
}
|
|
3399
|
-
</div>
|
|
3400
|
-
}
|
|
3401
|
-
}
|
|
3402
|
-
</ng-template>
|
|
3403
|
-
<ng-template #file> </ng-template>
|
|
3343
|
+
args: [{ selector: 'form-upload', standalone: true, imports: [FileUpload, ButtonModule, ReactiveFormsModule, TranslatePipe], template: `<p-fileUpload
|
|
3344
|
+
#fu
|
|
3345
|
+
auto
|
|
3346
|
+
[id]="field()?.uuid"
|
|
3347
|
+
[name]="props.name"
|
|
3348
|
+
[url]="props.url"
|
|
3349
|
+
[method]="props.method ?? 'post'"
|
|
3350
|
+
[multiple]="props.multiple ?? true"
|
|
3351
|
+
[accept]="props.accept"
|
|
3352
|
+
[withCredentials]="props.withCredentials"
|
|
3353
|
+
[maxFileSize]="props.maxFileSize"
|
|
3354
|
+
[styleClass]="props.styleClass"
|
|
3355
|
+
[previewWidth]="props.previewWidth ?? 50"
|
|
3356
|
+
[mode]="props.mode ?? 'advanced'"
|
|
3357
|
+
[headers]="props.headers"
|
|
3358
|
+
[fileLimit]="props.fileLimit"
|
|
3359
|
+
[customUpload]="props.customUpload ?? true"
|
|
3360
|
+
(onBeforeUpload)="props.onBeforeUpload?.(field()!, $event)"
|
|
3361
|
+
(onSend)="props.onSend?.(field()!, $event)"
|
|
3362
|
+
(onUpload)="props.onUpload?.(field()!, $event)"
|
|
3363
|
+
(onError)="props.onError?.(field()!, $event)"
|
|
3364
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
3365
|
+
(onRemove)="props.onRemove?.(field()!, $event)"
|
|
3366
|
+
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
3367
|
+
(onProgress)="props.onProgress?.(field()!, $event)"
|
|
3368
|
+
(uploadHandler)="uploadHandler(field()!, $event, fu)">
|
|
3369
|
+
<ng-template
|
|
3370
|
+
#header
|
|
3371
|
+
let-chooseCallback="chooseCallback">
|
|
3372
|
+
<div
|
|
3373
|
+
#uploadComp
|
|
3374
|
+
[class]="'flex justify-center w-full upload-btn' + (field()?.fieldControl?.disabled ? ' upload-disable' : '')"
|
|
3375
|
+
(click)="choose($event, chooseCallback)">
|
|
3376
|
+
<span
|
|
3377
|
+
><span
|
|
3378
|
+
style="font-size: 12px; margin-right: 2.5px"
|
|
3379
|
+
[class]="'pi' + (loading ? ' pi-spin pi-spinner' : ' pi-upload')"></span
|
|
3380
|
+
>{{ (loading ? 'modal.uploading' : 'modal.selectFile') | translate }}</span
|
|
3381
|
+
>
|
|
3382
|
+
</div>
|
|
3383
|
+
</ng-template>
|
|
3384
|
+
<ng-template #content>
|
|
3385
|
+
@if (fileList.length > 0) {
|
|
3386
|
+
@for (file of fileList; track file; let index = $index) {
|
|
3387
|
+
<div class="flex justify-between items-center file-item">
|
|
3388
|
+
<span class="file-name"
|
|
3389
|
+
><a
|
|
3390
|
+
[href]="'https://hrimage.myfoodiepet.com//' + file"
|
|
3391
|
+
[download]="file"
|
|
3392
|
+
>{{ file }}</a
|
|
3393
|
+
></span
|
|
3394
|
+
>
|
|
3395
|
+
@if (!field()?.fieldControl?.disabled) {
|
|
3396
|
+
<p-button
|
|
3397
|
+
icon="pi pi-times"
|
|
3398
|
+
severity="danger"
|
|
3399
|
+
size="small"
|
|
3400
|
+
(onClick)="deleteHandler(file, index)"
|
|
3401
|
+
[text]="true" />
|
|
3402
|
+
}
|
|
3403
|
+
</div>
|
|
3404
|
+
}
|
|
3405
|
+
}
|
|
3406
|
+
</ng-template>
|
|
3407
|
+
<ng-template #file> </ng-template>
|
|
3404
3408
|
</p-fileUpload>`, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n", ".file-item{border-top:solid 1px #fff}.upload-btn{border:solid 1px transparent}.upload-btn.upload-disable:hover{cursor:default}.upload-btn:not(.upload-disable):hover{border:solid 1px var(--p-primary-color);background:var(--p-primary-50);cursor:pointer}.upload-btn:not(.upload-disable).ng-hovered{border:solid 1px var(--p-primary-color);background:var(--p-primary-50);cursor:pointer}.file-name{font-size:12px}.file-name:hover{cursor:pointer;color:var(--p-primary-color)}:is() .p-image-preview-mask{position:inherit;opacity:1;justify-content:left;color:#334155}\n"] }]
|
|
3405
3409
|
}], ctorParameters: () => [{ type: i1$4.HttpClient }, { type: ActionService }, { type: i0.Renderer2 }, { type: i1$3.DatePipe }], propDecorators: { uploadCompRef: [{
|
|
3406
3410
|
type: ViewChild,
|
|
@@ -3599,220 +3603,220 @@ class ImageComponent {
|
|
|
3599
3603
|
}
|
|
3600
3604
|
}
|
|
3601
3605
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ImageComponent, deps: [{ token: i1$4.HttpClient }, { token: ActionService }, { token: i0.Renderer2 }, { token: i1$3.DatePipe }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3602
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ImageComponent, isStandalone: true, selector: "form-image", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "imageCompRef", first: true, predicate: ["imageComp"], descendants: true, read: ElementRef }], ngImport: i0, template: `<p-fileUpload
|
|
3603
|
-
#fu
|
|
3604
|
-
auto
|
|
3605
|
-
[name]="props.name"
|
|
3606
|
-
[url]="props.url"
|
|
3607
|
-
[method]="props.method ?? 'post'"
|
|
3608
|
-
accept="image/*"
|
|
3609
|
-
[withCredentials]="props.withCredentials"
|
|
3610
|
-
[maxFileSize]="props.maxFileSize"
|
|
3611
|
-
[styleClass]="props.styleClass"
|
|
3612
|
-
[previewWidth]="props.previewWidth ?? 50"
|
|
3613
|
-
[mode]="props.mode ?? 'advanced'"
|
|
3614
|
-
[headers]="props.headers"
|
|
3615
|
-
[fileLimit]="props.fileLimit"
|
|
3616
|
-
[customUpload]="props.customUpload ?? true"
|
|
3617
|
-
[multiple]="props.multiple ?? false"
|
|
3618
|
-
(onBeforeUpload)="props.onBeforeUpload?.(field()!, $event)"
|
|
3619
|
-
(onSend)="props.onSend?.(field()!, $event)"
|
|
3620
|
-
(onUpload)="props.onUpload?.(field()!, $event)"
|
|
3621
|
-
(onError)="props.onError?.(field()!, $event)"
|
|
3622
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
3623
|
-
(onRemove)="props.onRemove?.(field()!, $event)"
|
|
3624
|
-
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
3625
|
-
(onProgress)="props.onProgress?.(field()!, $event)"
|
|
3626
|
-
(uploadHandler)="uploadHandler(field()!, $event, fu)">
|
|
3627
|
-
<ng-template
|
|
3628
|
-
#header
|
|
3629
|
-
let-chooseCallback="chooseCallback">
|
|
3630
|
-
<div
|
|
3631
|
-
#imageComp
|
|
3632
|
-
[class]="'flex justify-center w-full upload-btn' + (field()?.fieldControl?.disabled ? ' upload-disable' : '')"
|
|
3633
|
-
(click)="choose($event, chooseCallback)">
|
|
3634
|
-
<span
|
|
3635
|
-
><span
|
|
3636
|
-
style="font-size: 12px; margin-right: 2.5px"
|
|
3637
|
-
[class]="'pi' + (loading ? ' pi-spin pi-spinner' : ' pi-upload')"></span
|
|
3638
|
-
>{{ (loading ? 'modal.uploading' : 'modal.selectFile') | translate }}</span
|
|
3639
|
-
>
|
|
3640
|
-
</div>
|
|
3641
|
-
</ng-template>
|
|
3642
|
-
<ng-template #content>
|
|
3643
|
-
@if (imageList.length > 0) {
|
|
3644
|
-
@if (!props.imageMode) {
|
|
3645
|
-
@for (image of imageList; track image; let index = $index) {
|
|
3646
|
-
<div class="flex justify-between items-center file-item">
|
|
3647
|
-
<p-image
|
|
3648
|
-
[src]="'https://hrimage.myfoodiepet.com//' + image"
|
|
3649
|
-
[preview]="true"
|
|
3650
|
-
(onShow)="ajustedImage($event)"
|
|
3651
|
-
alt="Image">
|
|
3652
|
-
<ng-template #indicator>
|
|
3653
|
-
<span class="file-name">{{ image }}</span>
|
|
3654
|
-
</ng-template>
|
|
3655
|
-
<ng-template #image>
|
|
3656
|
-
<span class="file-name">{{ image }}</span>
|
|
3657
|
-
</ng-template>
|
|
3658
|
-
</p-image>
|
|
3659
|
-
@if (!field()?.fieldControl?.disabled) {
|
|
3660
|
-
<p-button
|
|
3661
|
-
icon="pi pi-times"
|
|
3662
|
-
severity="danger"
|
|
3663
|
-
size="small"
|
|
3664
|
-
(onClick)="deleteHandler($event, image, index)"
|
|
3665
|
-
[text]="true" />
|
|
3666
|
-
}
|
|
3667
|
-
</div>
|
|
3668
|
-
}
|
|
3669
|
-
} @else {
|
|
3670
|
-
<div class="flex gap-2 mt-1 flex-wrap">
|
|
3671
|
-
@for (image of imageList; track image; let index = $index) {
|
|
3672
|
-
<div
|
|
3673
|
-
class="border"
|
|
3674
|
-
[style]="{ height: imageHeight + 10 + 'px' }">
|
|
3675
|
-
<p-image
|
|
3676
|
-
[src]="'https://hrimage.myfoodiepet.com//' + image"
|
|
3677
|
-
[preview]="true"
|
|
3678
|
-
(onShow)="ajustedImage($event)"
|
|
3679
|
-
alt="Image">
|
|
3680
|
-
<ng-template #indicator>
|
|
3681
|
-
@if (!field()?.fieldControl?.disabled) {
|
|
3682
|
-
<div [style]="{ position: 'relative', width: imageWidth + 10 + 'px', height: imageHeight + 10 + 'px' }">
|
|
3683
|
-
<div
|
|
3684
|
-
style="position: absolute; top: 0; right: 0; z-index: 9999; background: red; padding: 1px;"
|
|
3685
|
-
(click)="deleteHandler($event, image, index)">
|
|
3686
|
-
<i class="pi pi-times text-[12px]"></i>
|
|
3687
|
-
</div>
|
|
3688
|
-
</div>
|
|
3689
|
-
}
|
|
3690
|
-
</ng-template>
|
|
3691
|
-
<ng-template #image>
|
|
3692
|
-
<div class="p-2">
|
|
3693
|
-
<img
|
|
3694
|
-
[src]="'https://hrimage.myfoodiepet.com//' + image"
|
|
3695
|
-
alt="image"
|
|
3696
|
-
[style]="{ width: imageWidth + 'px', height: imageHeight + 'px', objectFit: 'cover' }" />
|
|
3697
|
-
</div>
|
|
3698
|
-
</ng-template>
|
|
3699
|
-
</p-image>
|
|
3700
|
-
</div>
|
|
3701
|
-
}
|
|
3702
|
-
</div>
|
|
3703
|
-
}
|
|
3704
|
-
}
|
|
3705
|
-
</ng-template>
|
|
3706
|
-
<ng-template #file> </ng-template>
|
|
3606
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ImageComponent, isStandalone: true, selector: "form-image", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "imageCompRef", first: true, predicate: ["imageComp"], descendants: true, read: ElementRef }], ngImport: i0, template: `<p-fileUpload
|
|
3607
|
+
#fu
|
|
3608
|
+
auto
|
|
3609
|
+
[name]="props.name"
|
|
3610
|
+
[url]="props.url"
|
|
3611
|
+
[method]="props.method ?? 'post'"
|
|
3612
|
+
accept="image/*"
|
|
3613
|
+
[withCredentials]="props.withCredentials"
|
|
3614
|
+
[maxFileSize]="props.maxFileSize"
|
|
3615
|
+
[styleClass]="props.styleClass"
|
|
3616
|
+
[previewWidth]="props.previewWidth ?? 50"
|
|
3617
|
+
[mode]="props.mode ?? 'advanced'"
|
|
3618
|
+
[headers]="props.headers"
|
|
3619
|
+
[fileLimit]="props.fileLimit"
|
|
3620
|
+
[customUpload]="props.customUpload ?? true"
|
|
3621
|
+
[multiple]="props.multiple ?? false"
|
|
3622
|
+
(onBeforeUpload)="props.onBeforeUpload?.(field()!, $event)"
|
|
3623
|
+
(onSend)="props.onSend?.(field()!, $event)"
|
|
3624
|
+
(onUpload)="props.onUpload?.(field()!, $event)"
|
|
3625
|
+
(onError)="props.onError?.(field()!, $event)"
|
|
3626
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
3627
|
+
(onRemove)="props.onRemove?.(field()!, $event)"
|
|
3628
|
+
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
3629
|
+
(onProgress)="props.onProgress?.(field()!, $event)"
|
|
3630
|
+
(uploadHandler)="uploadHandler(field()!, $event, fu)">
|
|
3631
|
+
<ng-template
|
|
3632
|
+
#header
|
|
3633
|
+
let-chooseCallback="chooseCallback">
|
|
3634
|
+
<div
|
|
3635
|
+
#imageComp
|
|
3636
|
+
[class]="'flex justify-center w-full upload-btn' + (field()?.fieldControl?.disabled ? ' upload-disable' : '')"
|
|
3637
|
+
(click)="choose($event, chooseCallback)">
|
|
3638
|
+
<span
|
|
3639
|
+
><span
|
|
3640
|
+
style="font-size: 12px; margin-right: 2.5px"
|
|
3641
|
+
[class]="'pi' + (loading ? ' pi-spin pi-spinner' : ' pi-upload')"></span
|
|
3642
|
+
>{{ (loading ? 'modal.uploading' : 'modal.selectFile') | translate }}</span
|
|
3643
|
+
>
|
|
3644
|
+
</div>
|
|
3645
|
+
</ng-template>
|
|
3646
|
+
<ng-template #content>
|
|
3647
|
+
@if (imageList.length > 0) {
|
|
3648
|
+
@if (!props.imageMode) {
|
|
3649
|
+
@for (image of imageList; track image; let index = $index) {
|
|
3650
|
+
<div class="flex justify-between items-center file-item">
|
|
3651
|
+
<p-image
|
|
3652
|
+
[src]="'https://hrimage.myfoodiepet.com//' + image"
|
|
3653
|
+
[preview]="true"
|
|
3654
|
+
(onShow)="ajustedImage($event)"
|
|
3655
|
+
alt="Image">
|
|
3656
|
+
<ng-template #indicator>
|
|
3657
|
+
<span class="file-name">{{ image }}</span>
|
|
3658
|
+
</ng-template>
|
|
3659
|
+
<ng-template #image>
|
|
3660
|
+
<span class="file-name">{{ image }}</span>
|
|
3661
|
+
</ng-template>
|
|
3662
|
+
</p-image>
|
|
3663
|
+
@if (!field()?.fieldControl?.disabled) {
|
|
3664
|
+
<p-button
|
|
3665
|
+
icon="pi pi-times"
|
|
3666
|
+
severity="danger"
|
|
3667
|
+
size="small"
|
|
3668
|
+
(onClick)="deleteHandler($event, image, index)"
|
|
3669
|
+
[text]="true" />
|
|
3670
|
+
}
|
|
3671
|
+
</div>
|
|
3672
|
+
}
|
|
3673
|
+
} @else {
|
|
3674
|
+
<div class="flex gap-2 mt-1 flex-wrap">
|
|
3675
|
+
@for (image of imageList; track image; let index = $index) {
|
|
3676
|
+
<div
|
|
3677
|
+
class="border"
|
|
3678
|
+
[style]="{ height: imageHeight + 10 + 'px' }">
|
|
3679
|
+
<p-image
|
|
3680
|
+
[src]="'https://hrimage.myfoodiepet.com//' + image"
|
|
3681
|
+
[preview]="true"
|
|
3682
|
+
(onShow)="ajustedImage($event)"
|
|
3683
|
+
alt="Image">
|
|
3684
|
+
<ng-template #indicator>
|
|
3685
|
+
@if (!field()?.fieldControl?.disabled) {
|
|
3686
|
+
<div [style]="{ position: 'relative', width: imageWidth + 10 + 'px', height: imageHeight + 10 + 'px' }">
|
|
3687
|
+
<div
|
|
3688
|
+
style="position: absolute; top: 0; right: 0; z-index: 9999; background: red; padding: 1px;"
|
|
3689
|
+
(click)="deleteHandler($event, image, index)">
|
|
3690
|
+
<i class="pi pi-times text-[12px]"></i>
|
|
3691
|
+
</div>
|
|
3692
|
+
</div>
|
|
3693
|
+
}
|
|
3694
|
+
</ng-template>
|
|
3695
|
+
<ng-template #image>
|
|
3696
|
+
<div class="p-2">
|
|
3697
|
+
<img
|
|
3698
|
+
[src]="'https://hrimage.myfoodiepet.com//' + image"
|
|
3699
|
+
alt="image"
|
|
3700
|
+
[style]="{ width: imageWidth + 'px', height: imageHeight + 'px', objectFit: 'cover' }" />
|
|
3701
|
+
</div>
|
|
3702
|
+
</ng-template>
|
|
3703
|
+
</p-image>
|
|
3704
|
+
</div>
|
|
3705
|
+
}
|
|
3706
|
+
</div>
|
|
3707
|
+
}
|
|
3708
|
+
}
|
|
3709
|
+
</ng-template>
|
|
3710
|
+
<ng-template #file> </ng-template>
|
|
3707
3711
|
</p-fileUpload>`, isInline: true, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n", ".file-item{border-top:solid 1px #fff}.upload-btn{border:solid 1px transparent}.upload-btn.upload-disable:hover{cursor:default}.upload-btn:not(.upload-disable):hover{border:solid 1px var(--p-primary-color);background:var(--p-primary-50);cursor:pointer}.upload-btn:not(.upload-disable).ng-hovered{border:solid 1px var(--p-primary-color);background:var(--p-primary-50);cursor:pointer}.file-name{font-size:12px;cursor:pointer;color:var(--p-primary-color)!important}:is() .p-image-preview-mask{position:inherit;opacity:1;justify-content:left;color:#334155}:is() p-image .p-image{display:inline-block;color:var(--p-primary-color)!important}\n"], dependencies: [{ kind: "component", type: FileUpload, selector: "p-fileupload, p-fileUpload", inputs: ["name", "url", "method", "multiple", "accept", "disabled", "auto", "withCredentials", "maxFileSize", "invalidFileSizeMessageSummary", "invalidFileSizeMessageDetail", "invalidFileTypeMessageSummary", "invalidFileTypeMessageDetail", "invalidFileLimitMessageDetail", "invalidFileLimitMessageSummary", "style", "styleClass", "previewWidth", "chooseLabel", "uploadLabel", "cancelLabel", "chooseIcon", "uploadIcon", "cancelIcon", "showUploadButton", "showCancelButton", "mode", "headers", "customUpload", "fileLimit", "uploadStyleClass", "cancelStyleClass", "removeStyleClass", "chooseStyleClass", "chooseButtonProps", "uploadButtonProps", "cancelButtonProps", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Image, selector: "p-image", inputs: ["imageClass", "imageStyle", "styleClass", "style", "src", "srcSet", "sizes", "previewImageSrc", "previewImageSrcSet", "previewImageSizes", "alt", "width", "height", "loading", "appendTo", "preview", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide", "onImageError"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
|
|
3708
3712
|
}
|
|
3709
3713
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ImageComponent, decorators: [{
|
|
3710
3714
|
type: Component,
|
|
3711
|
-
args: [{ selector: 'form-image', standalone: true, imports: [FileUpload, ButtonModule, Image, ReactiveFormsModule, TranslatePipe], template: `<p-fileUpload
|
|
3712
|
-
#fu
|
|
3713
|
-
auto
|
|
3714
|
-
[name]="props.name"
|
|
3715
|
-
[url]="props.url"
|
|
3716
|
-
[method]="props.method ?? 'post'"
|
|
3717
|
-
accept="image/*"
|
|
3718
|
-
[withCredentials]="props.withCredentials"
|
|
3719
|
-
[maxFileSize]="props.maxFileSize"
|
|
3720
|
-
[styleClass]="props.styleClass"
|
|
3721
|
-
[previewWidth]="props.previewWidth ?? 50"
|
|
3722
|
-
[mode]="props.mode ?? 'advanced'"
|
|
3723
|
-
[headers]="props.headers"
|
|
3724
|
-
[fileLimit]="props.fileLimit"
|
|
3725
|
-
[customUpload]="props.customUpload ?? true"
|
|
3726
|
-
[multiple]="props.multiple ?? false"
|
|
3727
|
-
(onBeforeUpload)="props.onBeforeUpload?.(field()!, $event)"
|
|
3728
|
-
(onSend)="props.onSend?.(field()!, $event)"
|
|
3729
|
-
(onUpload)="props.onUpload?.(field()!, $event)"
|
|
3730
|
-
(onError)="props.onError?.(field()!, $event)"
|
|
3731
|
-
(onClear)="props.onClear?.(field()!, $event)"
|
|
3732
|
-
(onRemove)="props.onRemove?.(field()!, $event)"
|
|
3733
|
-
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
3734
|
-
(onProgress)="props.onProgress?.(field()!, $event)"
|
|
3735
|
-
(uploadHandler)="uploadHandler(field()!, $event, fu)">
|
|
3736
|
-
<ng-template
|
|
3737
|
-
#header
|
|
3738
|
-
let-chooseCallback="chooseCallback">
|
|
3739
|
-
<div
|
|
3740
|
-
#imageComp
|
|
3741
|
-
[class]="'flex justify-center w-full upload-btn' + (field()?.fieldControl?.disabled ? ' upload-disable' : '')"
|
|
3742
|
-
(click)="choose($event, chooseCallback)">
|
|
3743
|
-
<span
|
|
3744
|
-
><span
|
|
3745
|
-
style="font-size: 12px; margin-right: 2.5px"
|
|
3746
|
-
[class]="'pi' + (loading ? ' pi-spin pi-spinner' : ' pi-upload')"></span
|
|
3747
|
-
>{{ (loading ? 'modal.uploading' : 'modal.selectFile') | translate }}</span
|
|
3748
|
-
>
|
|
3749
|
-
</div>
|
|
3750
|
-
</ng-template>
|
|
3751
|
-
<ng-template #content>
|
|
3752
|
-
@if (imageList.length > 0) {
|
|
3753
|
-
@if (!props.imageMode) {
|
|
3754
|
-
@for (image of imageList; track image; let index = $index) {
|
|
3755
|
-
<div class="flex justify-between items-center file-item">
|
|
3756
|
-
<p-image
|
|
3757
|
-
[src]="'https://hrimage.myfoodiepet.com//' + image"
|
|
3758
|
-
[preview]="true"
|
|
3759
|
-
(onShow)="ajustedImage($event)"
|
|
3760
|
-
alt="Image">
|
|
3761
|
-
<ng-template #indicator>
|
|
3762
|
-
<span class="file-name">{{ image }}</span>
|
|
3763
|
-
</ng-template>
|
|
3764
|
-
<ng-template #image>
|
|
3765
|
-
<span class="file-name">{{ image }}</span>
|
|
3766
|
-
</ng-template>
|
|
3767
|
-
</p-image>
|
|
3768
|
-
@if (!field()?.fieldControl?.disabled) {
|
|
3769
|
-
<p-button
|
|
3770
|
-
icon="pi pi-times"
|
|
3771
|
-
severity="danger"
|
|
3772
|
-
size="small"
|
|
3773
|
-
(onClick)="deleteHandler($event, image, index)"
|
|
3774
|
-
[text]="true" />
|
|
3775
|
-
}
|
|
3776
|
-
</div>
|
|
3777
|
-
}
|
|
3778
|
-
} @else {
|
|
3779
|
-
<div class="flex gap-2 mt-1 flex-wrap">
|
|
3780
|
-
@for (image of imageList; track image; let index = $index) {
|
|
3781
|
-
<div
|
|
3782
|
-
class="border"
|
|
3783
|
-
[style]="{ height: imageHeight + 10 + 'px' }">
|
|
3784
|
-
<p-image
|
|
3785
|
-
[src]="'https://hrimage.myfoodiepet.com//' + image"
|
|
3786
|
-
[preview]="true"
|
|
3787
|
-
(onShow)="ajustedImage($event)"
|
|
3788
|
-
alt="Image">
|
|
3789
|
-
<ng-template #indicator>
|
|
3790
|
-
@if (!field()?.fieldControl?.disabled) {
|
|
3791
|
-
<div [style]="{ position: 'relative', width: imageWidth + 10 + 'px', height: imageHeight + 10 + 'px' }">
|
|
3792
|
-
<div
|
|
3793
|
-
style="position: absolute; top: 0; right: 0; z-index: 9999; background: red; padding: 1px;"
|
|
3794
|
-
(click)="deleteHandler($event, image, index)">
|
|
3795
|
-
<i class="pi pi-times text-[12px]"></i>
|
|
3796
|
-
</div>
|
|
3797
|
-
</div>
|
|
3798
|
-
}
|
|
3799
|
-
</ng-template>
|
|
3800
|
-
<ng-template #image>
|
|
3801
|
-
<div class="p-2">
|
|
3802
|
-
<img
|
|
3803
|
-
[src]="'https://hrimage.myfoodiepet.com//' + image"
|
|
3804
|
-
alt="image"
|
|
3805
|
-
[style]="{ width: imageWidth + 'px', height: imageHeight + 'px', objectFit: 'cover' }" />
|
|
3806
|
-
</div>
|
|
3807
|
-
</ng-template>
|
|
3808
|
-
</p-image>
|
|
3809
|
-
</div>
|
|
3810
|
-
}
|
|
3811
|
-
</div>
|
|
3812
|
-
}
|
|
3813
|
-
}
|
|
3814
|
-
</ng-template>
|
|
3815
|
-
<ng-template #file> </ng-template>
|
|
3715
|
+
args: [{ selector: 'form-image', standalone: true, imports: [FileUpload, ButtonModule, Image, ReactiveFormsModule, TranslatePipe], template: `<p-fileUpload
|
|
3716
|
+
#fu
|
|
3717
|
+
auto
|
|
3718
|
+
[name]="props.name"
|
|
3719
|
+
[url]="props.url"
|
|
3720
|
+
[method]="props.method ?? 'post'"
|
|
3721
|
+
accept="image/*"
|
|
3722
|
+
[withCredentials]="props.withCredentials"
|
|
3723
|
+
[maxFileSize]="props.maxFileSize"
|
|
3724
|
+
[styleClass]="props.styleClass"
|
|
3725
|
+
[previewWidth]="props.previewWidth ?? 50"
|
|
3726
|
+
[mode]="props.mode ?? 'advanced'"
|
|
3727
|
+
[headers]="props.headers"
|
|
3728
|
+
[fileLimit]="props.fileLimit"
|
|
3729
|
+
[customUpload]="props.customUpload ?? true"
|
|
3730
|
+
[multiple]="props.multiple ?? false"
|
|
3731
|
+
(onBeforeUpload)="props.onBeforeUpload?.(field()!, $event)"
|
|
3732
|
+
(onSend)="props.onSend?.(field()!, $event)"
|
|
3733
|
+
(onUpload)="props.onUpload?.(field()!, $event)"
|
|
3734
|
+
(onError)="props.onError?.(field()!, $event)"
|
|
3735
|
+
(onClear)="props.onClear?.(field()!, $event)"
|
|
3736
|
+
(onRemove)="props.onRemove?.(field()!, $event)"
|
|
3737
|
+
(onSelect)="props.onSelect?.(field()!, $event)"
|
|
3738
|
+
(onProgress)="props.onProgress?.(field()!, $event)"
|
|
3739
|
+
(uploadHandler)="uploadHandler(field()!, $event, fu)">
|
|
3740
|
+
<ng-template
|
|
3741
|
+
#header
|
|
3742
|
+
let-chooseCallback="chooseCallback">
|
|
3743
|
+
<div
|
|
3744
|
+
#imageComp
|
|
3745
|
+
[class]="'flex justify-center w-full upload-btn' + (field()?.fieldControl?.disabled ? ' upload-disable' : '')"
|
|
3746
|
+
(click)="choose($event, chooseCallback)">
|
|
3747
|
+
<span
|
|
3748
|
+
><span
|
|
3749
|
+
style="font-size: 12px; margin-right: 2.5px"
|
|
3750
|
+
[class]="'pi' + (loading ? ' pi-spin pi-spinner' : ' pi-upload')"></span
|
|
3751
|
+
>{{ (loading ? 'modal.uploading' : 'modal.selectFile') | translate }}</span
|
|
3752
|
+
>
|
|
3753
|
+
</div>
|
|
3754
|
+
</ng-template>
|
|
3755
|
+
<ng-template #content>
|
|
3756
|
+
@if (imageList.length > 0) {
|
|
3757
|
+
@if (!props.imageMode) {
|
|
3758
|
+
@for (image of imageList; track image; let index = $index) {
|
|
3759
|
+
<div class="flex justify-between items-center file-item">
|
|
3760
|
+
<p-image
|
|
3761
|
+
[src]="'https://hrimage.myfoodiepet.com//' + image"
|
|
3762
|
+
[preview]="true"
|
|
3763
|
+
(onShow)="ajustedImage($event)"
|
|
3764
|
+
alt="Image">
|
|
3765
|
+
<ng-template #indicator>
|
|
3766
|
+
<span class="file-name">{{ image }}</span>
|
|
3767
|
+
</ng-template>
|
|
3768
|
+
<ng-template #image>
|
|
3769
|
+
<span class="file-name">{{ image }}</span>
|
|
3770
|
+
</ng-template>
|
|
3771
|
+
</p-image>
|
|
3772
|
+
@if (!field()?.fieldControl?.disabled) {
|
|
3773
|
+
<p-button
|
|
3774
|
+
icon="pi pi-times"
|
|
3775
|
+
severity="danger"
|
|
3776
|
+
size="small"
|
|
3777
|
+
(onClick)="deleteHandler($event, image, index)"
|
|
3778
|
+
[text]="true" />
|
|
3779
|
+
}
|
|
3780
|
+
</div>
|
|
3781
|
+
}
|
|
3782
|
+
} @else {
|
|
3783
|
+
<div class="flex gap-2 mt-1 flex-wrap">
|
|
3784
|
+
@for (image of imageList; track image; let index = $index) {
|
|
3785
|
+
<div
|
|
3786
|
+
class="border"
|
|
3787
|
+
[style]="{ height: imageHeight + 10 + 'px' }">
|
|
3788
|
+
<p-image
|
|
3789
|
+
[src]="'https://hrimage.myfoodiepet.com//' + image"
|
|
3790
|
+
[preview]="true"
|
|
3791
|
+
(onShow)="ajustedImage($event)"
|
|
3792
|
+
alt="Image">
|
|
3793
|
+
<ng-template #indicator>
|
|
3794
|
+
@if (!field()?.fieldControl?.disabled) {
|
|
3795
|
+
<div [style]="{ position: 'relative', width: imageWidth + 10 + 'px', height: imageHeight + 10 + 'px' }">
|
|
3796
|
+
<div
|
|
3797
|
+
style="position: absolute; top: 0; right: 0; z-index: 9999; background: red; padding: 1px;"
|
|
3798
|
+
(click)="deleteHandler($event, image, index)">
|
|
3799
|
+
<i class="pi pi-times text-[12px]"></i>
|
|
3800
|
+
</div>
|
|
3801
|
+
</div>
|
|
3802
|
+
}
|
|
3803
|
+
</ng-template>
|
|
3804
|
+
<ng-template #image>
|
|
3805
|
+
<div class="p-2">
|
|
3806
|
+
<img
|
|
3807
|
+
[src]="'https://hrimage.myfoodiepet.com//' + image"
|
|
3808
|
+
alt="image"
|
|
3809
|
+
[style]="{ width: imageWidth + 'px', height: imageHeight + 'px', objectFit: 'cover' }" />
|
|
3810
|
+
</div>
|
|
3811
|
+
</ng-template>
|
|
3812
|
+
</p-image>
|
|
3813
|
+
</div>
|
|
3814
|
+
}
|
|
3815
|
+
</div>
|
|
3816
|
+
}
|
|
3817
|
+
}
|
|
3818
|
+
</ng-template>
|
|
3819
|
+
<ng-template #file> </ng-template>
|
|
3816
3820
|
</p-fileUpload>`, styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n", ".file-item{border-top:solid 1px #fff}.upload-btn{border:solid 1px transparent}.upload-btn.upload-disable:hover{cursor:default}.upload-btn:not(.upload-disable):hover{border:solid 1px var(--p-primary-color);background:var(--p-primary-50);cursor:pointer}.upload-btn:not(.upload-disable).ng-hovered{border:solid 1px var(--p-primary-color);background:var(--p-primary-50);cursor:pointer}.file-name{font-size:12px;cursor:pointer;color:var(--p-primary-color)!important}:is() .p-image-preview-mask{position:inherit;opacity:1;justify-content:left;color:#334155}:is() p-image .p-image{display:inline-block;color:var(--p-primary-color)!important}\n"] }]
|
|
3817
3821
|
}], ctorParameters: () => [{ type: i1$4.HttpClient }, { type: ActionService }, { type: i0.Renderer2 }, { type: i1$3.DatePipe }], propDecorators: { imageCompRef: [{
|
|
3818
3822
|
type: ViewChild,
|
|
@@ -4839,148 +4843,148 @@ class CellEditDatePickerComponent {
|
|
|
4839
4843
|
});
|
|
4840
4844
|
}
|
|
4841
4845
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CellEditDatePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4842
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CellEditDatePickerComponent, isStandalone: true, selector: "ng-component", providers: [DatePipe], viewQueries: [{ propertyName: "date", first: true, predicate: ["date"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: `<p-datepicker
|
|
4843
|
-
#date
|
|
4844
|
-
[(ngModel)]="value"
|
|
4845
|
-
[variant]="params.variant || 'outlined'"
|
|
4846
|
-
[fluid]="params.fluid"
|
|
4847
|
-
[size]="params.size"
|
|
4848
|
-
[styleClass]="params.styleClass"
|
|
4849
|
-
[inputStyle]="params.inputStyle"
|
|
4850
|
-
[inputStyleClass]="params.inputStyleClass"
|
|
4851
|
-
[inputId]="'date'"
|
|
4852
|
-
[name]="params.name"
|
|
4853
|
-
[placeholder]="params.placeholder"
|
|
4854
|
-
[ariaLabelledBy]="params.ariaLabelledBy"
|
|
4855
|
-
[ariaLabel]="params.ariaLabel"
|
|
4856
|
-
[iconAriaLabel]="params.iconAriaLabel"
|
|
4857
|
-
[dateFormat]="params.dateFormat || 'yy-mm-dd'"
|
|
4858
|
-
[multipleSeparator]="params.multipleSeparator || ','"
|
|
4859
|
-
[rangeSeparator]="params.rangeSeparator || '-'"
|
|
4860
|
-
[inline]="params.inline"
|
|
4861
|
-
[showOtherMonths]="params.showOtherMonths == undefined ? true : false"
|
|
4862
|
-
[selectOtherMonths]="params.selectOtherMonths"
|
|
4863
|
-
[showIcon]="params.showIcon"
|
|
4864
|
-
[fluid]="params.fluid == undefined ? true : params.fluid"
|
|
4865
|
-
[icon]="params.icon"
|
|
4866
|
-
[appendTo]="params.appendTo"
|
|
4867
|
-
[readonlyInput]="params.readonlyInput"
|
|
4868
|
-
[shortYearCutoff]="params.shortYearCutoff"
|
|
4869
|
-
[hourFormat]="params.hourFormat || '24'"
|
|
4870
|
-
[timeOnly]="params.timeOnly"
|
|
4871
|
-
[stepHour]="params.stepHour || 1"
|
|
4872
|
-
[stepMinute]="params.stepMinute || 1"
|
|
4873
|
-
[stepSecond]="params.stepSecond || 1"
|
|
4874
|
-
[showSeconds]="params.showSeconds"
|
|
4875
|
-
[showOnFocus]="params.showOnFocus == undefined ? true : params.fluid"
|
|
4876
|
-
[showWeek]="params.showWeek"
|
|
4877
|
-
[startWeekFromFirstDayOfYear]="!!params.startWeekFromFirstDayOfYear"
|
|
4878
|
-
[showClear]="params.showClear"
|
|
4879
|
-
[dataType]="params.dataType || 'date'"
|
|
4880
|
-
[selectionMode]="params.selectionMode || 'single'"
|
|
4881
|
-
[maxDateCount]="params.maxDateCount"
|
|
4882
|
-
[showButtonBar]="params.showButtonBar"
|
|
4883
|
-
[todayButtonStyleClass]="params.todayButtonStyleClass"
|
|
4884
|
-
[clearButtonStyleClass]="params.clearButtonStyleClass"
|
|
4885
|
-
[autofocus]="params.autofocus"
|
|
4886
|
-
[autoZIndex]="params.autoZIndex == undefined ? true : params.fluid"
|
|
4887
|
-
[baseZIndex]="params.baseZIndex || 0"
|
|
4888
|
-
[panelStyleClass]="params.panelStyleClass"
|
|
4889
|
-
[panelStyle]="params.panelStyle"
|
|
4890
|
-
[keepInvalid]="params.keepInvalid"
|
|
4891
|
-
[hideOnDateTimeSelect]="params.hideOnDateTimeSelect == undefined ? true : params.fluid"
|
|
4892
|
-
[touchUI]="params.touchUI"
|
|
4893
|
-
[timeSeparator]="params.timeSeparator || ':'"
|
|
4894
|
-
[focusTrap]="params.focusTrap == undefined ? true : params.fluid"
|
|
4895
|
-
[showTransitionOptions]="params.showTransitionOptions || '.12s cubic-bezier(0, 0, 0.2, 1)'"
|
|
4896
|
-
[hideTransitionOptions]="params.hideTransitionOptions || '.1s linear'"
|
|
4897
|
-
[tabindex]="params.tabindex"
|
|
4898
|
-
[minDate]="params.minDate"
|
|
4899
|
-
[maxDate]="params.maxDate"
|
|
4900
|
-
[disabledDates]="params.disabledDates || []"
|
|
4901
|
-
[disabledDays]="params.disabledDays || []"
|
|
4902
|
-
[showTime]="!!params.showTime"
|
|
4903
|
-
[responsiveOptions]="params.responsiveOptions || []"
|
|
4904
|
-
[numberOfMonths]="params.numberOfMonths || 1"
|
|
4905
|
-
[firstDayOfWeek]="params.firstDayOfWeek || 7"
|
|
4906
|
-
[view]="params.view || 'date'"
|
|
4907
|
-
[defaultDate]="params.defaultDate!"
|
|
4908
|
-
[inputStyle]="inputStyle"
|
|
4909
|
-
(onSelect)="select($event)"
|
|
4910
|
-
/>
|
|
4846
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CellEditDatePickerComponent, isStandalone: true, selector: "ng-component", providers: [DatePipe], viewQueries: [{ propertyName: "date", first: true, predicate: ["date"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: `<p-datepicker
|
|
4847
|
+
#date
|
|
4848
|
+
[(ngModel)]="value"
|
|
4849
|
+
[variant]="params.variant || 'outlined'"
|
|
4850
|
+
[fluid]="params.fluid"
|
|
4851
|
+
[size]="params.size"
|
|
4852
|
+
[styleClass]="params.styleClass"
|
|
4853
|
+
[inputStyle]="params.inputStyle"
|
|
4854
|
+
[inputStyleClass]="params.inputStyleClass"
|
|
4855
|
+
[inputId]="'date'"
|
|
4856
|
+
[name]="params.name"
|
|
4857
|
+
[placeholder]="params.placeholder"
|
|
4858
|
+
[ariaLabelledBy]="params.ariaLabelledBy"
|
|
4859
|
+
[ariaLabel]="params.ariaLabel"
|
|
4860
|
+
[iconAriaLabel]="params.iconAriaLabel"
|
|
4861
|
+
[dateFormat]="params.dateFormat || 'yy-mm-dd'"
|
|
4862
|
+
[multipleSeparator]="params.multipleSeparator || ','"
|
|
4863
|
+
[rangeSeparator]="params.rangeSeparator || '-'"
|
|
4864
|
+
[inline]="params.inline"
|
|
4865
|
+
[showOtherMonths]="params.showOtherMonths == undefined ? true : false"
|
|
4866
|
+
[selectOtherMonths]="params.selectOtherMonths"
|
|
4867
|
+
[showIcon]="params.showIcon"
|
|
4868
|
+
[fluid]="params.fluid == undefined ? true : params.fluid"
|
|
4869
|
+
[icon]="params.icon"
|
|
4870
|
+
[appendTo]="params.appendTo"
|
|
4871
|
+
[readonlyInput]="params.readonlyInput"
|
|
4872
|
+
[shortYearCutoff]="params.shortYearCutoff"
|
|
4873
|
+
[hourFormat]="params.hourFormat || '24'"
|
|
4874
|
+
[timeOnly]="params.timeOnly"
|
|
4875
|
+
[stepHour]="params.stepHour || 1"
|
|
4876
|
+
[stepMinute]="params.stepMinute || 1"
|
|
4877
|
+
[stepSecond]="params.stepSecond || 1"
|
|
4878
|
+
[showSeconds]="params.showSeconds"
|
|
4879
|
+
[showOnFocus]="params.showOnFocus == undefined ? true : params.fluid"
|
|
4880
|
+
[showWeek]="params.showWeek"
|
|
4881
|
+
[startWeekFromFirstDayOfYear]="!!params.startWeekFromFirstDayOfYear"
|
|
4882
|
+
[showClear]="params.showClear"
|
|
4883
|
+
[dataType]="params.dataType || 'date'"
|
|
4884
|
+
[selectionMode]="params.selectionMode || 'single'"
|
|
4885
|
+
[maxDateCount]="params.maxDateCount"
|
|
4886
|
+
[showButtonBar]="params.showButtonBar"
|
|
4887
|
+
[todayButtonStyleClass]="params.todayButtonStyleClass"
|
|
4888
|
+
[clearButtonStyleClass]="params.clearButtonStyleClass"
|
|
4889
|
+
[autofocus]="params.autofocus"
|
|
4890
|
+
[autoZIndex]="params.autoZIndex == undefined ? true : params.fluid"
|
|
4891
|
+
[baseZIndex]="params.baseZIndex || 0"
|
|
4892
|
+
[panelStyleClass]="params.panelStyleClass"
|
|
4893
|
+
[panelStyle]="params.panelStyle"
|
|
4894
|
+
[keepInvalid]="params.keepInvalid"
|
|
4895
|
+
[hideOnDateTimeSelect]="params.hideOnDateTimeSelect == undefined ? true : params.fluid"
|
|
4896
|
+
[touchUI]="params.touchUI"
|
|
4897
|
+
[timeSeparator]="params.timeSeparator || ':'"
|
|
4898
|
+
[focusTrap]="params.focusTrap == undefined ? true : params.fluid"
|
|
4899
|
+
[showTransitionOptions]="params.showTransitionOptions || '.12s cubic-bezier(0, 0, 0.2, 1)'"
|
|
4900
|
+
[hideTransitionOptions]="params.hideTransitionOptions || '.1s linear'"
|
|
4901
|
+
[tabindex]="params.tabindex"
|
|
4902
|
+
[minDate]="params.minDate"
|
|
4903
|
+
[maxDate]="params.maxDate"
|
|
4904
|
+
[disabledDates]="params.disabledDates || []"
|
|
4905
|
+
[disabledDays]="params.disabledDays || []"
|
|
4906
|
+
[showTime]="!!params.showTime"
|
|
4907
|
+
[responsiveOptions]="params.responsiveOptions || []"
|
|
4908
|
+
[numberOfMonths]="params.numberOfMonths || 1"
|
|
4909
|
+
[firstDayOfWeek]="params.firstDayOfWeek || 7"
|
|
4910
|
+
[view]="params.view || 'date'"
|
|
4911
|
+
[defaultDate]="params.defaultDate!"
|
|
4912
|
+
[inputStyle]="inputStyle"
|
|
4913
|
+
(onSelect)="select($event)"
|
|
4914
|
+
/>
|
|
4911
4915
|
`, isInline: true, styles: [":host{display:flex;align-items:center;height:100%;width:100%}::ng-deep .p-calendar{height:100%}::ng-deep .p-calendar .p-inputtext{height:100%;width:100%;padding:0 .5rem;border:none;background:none;box-shadow:none}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: DatePickerModule }, { kind: "component", type: i2$6.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "fluid", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "variant", "size", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale", "view", "defaultDate"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }] }); }
|
|
4912
4916
|
}
|
|
4913
4917
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CellEditDatePickerComponent, decorators: [{
|
|
4914
4918
|
type: Component,
|
|
4915
|
-
args: [{ standalone: true, imports: [FormsModule, DatePickerModule], template: `<p-datepicker
|
|
4916
|
-
#date
|
|
4917
|
-
[(ngModel)]="value"
|
|
4918
|
-
[variant]="params.variant || 'outlined'"
|
|
4919
|
-
[fluid]="params.fluid"
|
|
4920
|
-
[size]="params.size"
|
|
4921
|
-
[styleClass]="params.styleClass"
|
|
4922
|
-
[inputStyle]="params.inputStyle"
|
|
4923
|
-
[inputStyleClass]="params.inputStyleClass"
|
|
4924
|
-
[inputId]="'date'"
|
|
4925
|
-
[name]="params.name"
|
|
4926
|
-
[placeholder]="params.placeholder"
|
|
4927
|
-
[ariaLabelledBy]="params.ariaLabelledBy"
|
|
4928
|
-
[ariaLabel]="params.ariaLabel"
|
|
4929
|
-
[iconAriaLabel]="params.iconAriaLabel"
|
|
4930
|
-
[dateFormat]="params.dateFormat || 'yy-mm-dd'"
|
|
4931
|
-
[multipleSeparator]="params.multipleSeparator || ','"
|
|
4932
|
-
[rangeSeparator]="params.rangeSeparator || '-'"
|
|
4933
|
-
[inline]="params.inline"
|
|
4934
|
-
[showOtherMonths]="params.showOtherMonths == undefined ? true : false"
|
|
4935
|
-
[selectOtherMonths]="params.selectOtherMonths"
|
|
4936
|
-
[showIcon]="params.showIcon"
|
|
4937
|
-
[fluid]="params.fluid == undefined ? true : params.fluid"
|
|
4938
|
-
[icon]="params.icon"
|
|
4939
|
-
[appendTo]="params.appendTo"
|
|
4940
|
-
[readonlyInput]="params.readonlyInput"
|
|
4941
|
-
[shortYearCutoff]="params.shortYearCutoff"
|
|
4942
|
-
[hourFormat]="params.hourFormat || '24'"
|
|
4943
|
-
[timeOnly]="params.timeOnly"
|
|
4944
|
-
[stepHour]="params.stepHour || 1"
|
|
4945
|
-
[stepMinute]="params.stepMinute || 1"
|
|
4946
|
-
[stepSecond]="params.stepSecond || 1"
|
|
4947
|
-
[showSeconds]="params.showSeconds"
|
|
4948
|
-
[showOnFocus]="params.showOnFocus == undefined ? true : params.fluid"
|
|
4949
|
-
[showWeek]="params.showWeek"
|
|
4950
|
-
[startWeekFromFirstDayOfYear]="!!params.startWeekFromFirstDayOfYear"
|
|
4951
|
-
[showClear]="params.showClear"
|
|
4952
|
-
[dataType]="params.dataType || 'date'"
|
|
4953
|
-
[selectionMode]="params.selectionMode || 'single'"
|
|
4954
|
-
[maxDateCount]="params.maxDateCount"
|
|
4955
|
-
[showButtonBar]="params.showButtonBar"
|
|
4956
|
-
[todayButtonStyleClass]="params.todayButtonStyleClass"
|
|
4957
|
-
[clearButtonStyleClass]="params.clearButtonStyleClass"
|
|
4958
|
-
[autofocus]="params.autofocus"
|
|
4959
|
-
[autoZIndex]="params.autoZIndex == undefined ? true : params.fluid"
|
|
4960
|
-
[baseZIndex]="params.baseZIndex || 0"
|
|
4961
|
-
[panelStyleClass]="params.panelStyleClass"
|
|
4962
|
-
[panelStyle]="params.panelStyle"
|
|
4963
|
-
[keepInvalid]="params.keepInvalid"
|
|
4964
|
-
[hideOnDateTimeSelect]="params.hideOnDateTimeSelect == undefined ? true : params.fluid"
|
|
4965
|
-
[touchUI]="params.touchUI"
|
|
4966
|
-
[timeSeparator]="params.timeSeparator || ':'"
|
|
4967
|
-
[focusTrap]="params.focusTrap == undefined ? true : params.fluid"
|
|
4968
|
-
[showTransitionOptions]="params.showTransitionOptions || '.12s cubic-bezier(0, 0, 0.2, 1)'"
|
|
4969
|
-
[hideTransitionOptions]="params.hideTransitionOptions || '.1s linear'"
|
|
4970
|
-
[tabindex]="params.tabindex"
|
|
4971
|
-
[minDate]="params.minDate"
|
|
4972
|
-
[maxDate]="params.maxDate"
|
|
4973
|
-
[disabledDates]="params.disabledDates || []"
|
|
4974
|
-
[disabledDays]="params.disabledDays || []"
|
|
4975
|
-
[showTime]="!!params.showTime"
|
|
4976
|
-
[responsiveOptions]="params.responsiveOptions || []"
|
|
4977
|
-
[numberOfMonths]="params.numberOfMonths || 1"
|
|
4978
|
-
[firstDayOfWeek]="params.firstDayOfWeek || 7"
|
|
4979
|
-
[view]="params.view || 'date'"
|
|
4980
|
-
[defaultDate]="params.defaultDate!"
|
|
4981
|
-
[inputStyle]="inputStyle"
|
|
4982
|
-
(onSelect)="select($event)"
|
|
4983
|
-
/>
|
|
4919
|
+
args: [{ standalone: true, imports: [FormsModule, DatePickerModule], template: `<p-datepicker
|
|
4920
|
+
#date
|
|
4921
|
+
[(ngModel)]="value"
|
|
4922
|
+
[variant]="params.variant || 'outlined'"
|
|
4923
|
+
[fluid]="params.fluid"
|
|
4924
|
+
[size]="params.size"
|
|
4925
|
+
[styleClass]="params.styleClass"
|
|
4926
|
+
[inputStyle]="params.inputStyle"
|
|
4927
|
+
[inputStyleClass]="params.inputStyleClass"
|
|
4928
|
+
[inputId]="'date'"
|
|
4929
|
+
[name]="params.name"
|
|
4930
|
+
[placeholder]="params.placeholder"
|
|
4931
|
+
[ariaLabelledBy]="params.ariaLabelledBy"
|
|
4932
|
+
[ariaLabel]="params.ariaLabel"
|
|
4933
|
+
[iconAriaLabel]="params.iconAriaLabel"
|
|
4934
|
+
[dateFormat]="params.dateFormat || 'yy-mm-dd'"
|
|
4935
|
+
[multipleSeparator]="params.multipleSeparator || ','"
|
|
4936
|
+
[rangeSeparator]="params.rangeSeparator || '-'"
|
|
4937
|
+
[inline]="params.inline"
|
|
4938
|
+
[showOtherMonths]="params.showOtherMonths == undefined ? true : false"
|
|
4939
|
+
[selectOtherMonths]="params.selectOtherMonths"
|
|
4940
|
+
[showIcon]="params.showIcon"
|
|
4941
|
+
[fluid]="params.fluid == undefined ? true : params.fluid"
|
|
4942
|
+
[icon]="params.icon"
|
|
4943
|
+
[appendTo]="params.appendTo"
|
|
4944
|
+
[readonlyInput]="params.readonlyInput"
|
|
4945
|
+
[shortYearCutoff]="params.shortYearCutoff"
|
|
4946
|
+
[hourFormat]="params.hourFormat || '24'"
|
|
4947
|
+
[timeOnly]="params.timeOnly"
|
|
4948
|
+
[stepHour]="params.stepHour || 1"
|
|
4949
|
+
[stepMinute]="params.stepMinute || 1"
|
|
4950
|
+
[stepSecond]="params.stepSecond || 1"
|
|
4951
|
+
[showSeconds]="params.showSeconds"
|
|
4952
|
+
[showOnFocus]="params.showOnFocus == undefined ? true : params.fluid"
|
|
4953
|
+
[showWeek]="params.showWeek"
|
|
4954
|
+
[startWeekFromFirstDayOfYear]="!!params.startWeekFromFirstDayOfYear"
|
|
4955
|
+
[showClear]="params.showClear"
|
|
4956
|
+
[dataType]="params.dataType || 'date'"
|
|
4957
|
+
[selectionMode]="params.selectionMode || 'single'"
|
|
4958
|
+
[maxDateCount]="params.maxDateCount"
|
|
4959
|
+
[showButtonBar]="params.showButtonBar"
|
|
4960
|
+
[todayButtonStyleClass]="params.todayButtonStyleClass"
|
|
4961
|
+
[clearButtonStyleClass]="params.clearButtonStyleClass"
|
|
4962
|
+
[autofocus]="params.autofocus"
|
|
4963
|
+
[autoZIndex]="params.autoZIndex == undefined ? true : params.fluid"
|
|
4964
|
+
[baseZIndex]="params.baseZIndex || 0"
|
|
4965
|
+
[panelStyleClass]="params.panelStyleClass"
|
|
4966
|
+
[panelStyle]="params.panelStyle"
|
|
4967
|
+
[keepInvalid]="params.keepInvalid"
|
|
4968
|
+
[hideOnDateTimeSelect]="params.hideOnDateTimeSelect == undefined ? true : params.fluid"
|
|
4969
|
+
[touchUI]="params.touchUI"
|
|
4970
|
+
[timeSeparator]="params.timeSeparator || ':'"
|
|
4971
|
+
[focusTrap]="params.focusTrap == undefined ? true : params.fluid"
|
|
4972
|
+
[showTransitionOptions]="params.showTransitionOptions || '.12s cubic-bezier(0, 0, 0.2, 1)'"
|
|
4973
|
+
[hideTransitionOptions]="params.hideTransitionOptions || '.1s linear'"
|
|
4974
|
+
[tabindex]="params.tabindex"
|
|
4975
|
+
[minDate]="params.minDate"
|
|
4976
|
+
[maxDate]="params.maxDate"
|
|
4977
|
+
[disabledDates]="params.disabledDates || []"
|
|
4978
|
+
[disabledDays]="params.disabledDays || []"
|
|
4979
|
+
[showTime]="!!params.showTime"
|
|
4980
|
+
[responsiveOptions]="params.responsiveOptions || []"
|
|
4981
|
+
[numberOfMonths]="params.numberOfMonths || 1"
|
|
4982
|
+
[firstDayOfWeek]="params.firstDayOfWeek || 7"
|
|
4983
|
+
[view]="params.view || 'date'"
|
|
4984
|
+
[defaultDate]="params.defaultDate!"
|
|
4985
|
+
[inputStyle]="inputStyle"
|
|
4986
|
+
(onSelect)="select($event)"
|
|
4987
|
+
/>
|
|
4984
4988
|
`, providers: [DatePipe], styles: [":host{display:flex;align-items:center;height:100%;width:100%}::ng-deep .p-calendar{height:100%}::ng-deep .p-calendar .p-inputtext{height:100%;width:100%;padding:0 .5rem;border:none;background:none;box-shadow:none}\n"] }]
|
|
4985
4989
|
}], propDecorators: { date: [{
|
|
4986
4990
|
type: ViewChild,
|
|
@@ -5373,30 +5377,30 @@ class ChipRenderer {
|
|
|
5373
5377
|
this.color = item?.chip ? ColorMap[item.chip] : '';
|
|
5374
5378
|
}
|
|
5375
5379
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ChipRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5376
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ChipRenderer, isStandalone: true, selector: "ng-component", providers: [AsyncPipe], ngImport: i0, template: `
|
|
5377
|
-
@if (color) {
|
|
5378
|
-
<span
|
|
5379
|
-
class="cell-chip"
|
|
5380
|
-
[style]="{ background: color }"
|
|
5381
|
-
>{{ label }}</span
|
|
5382
|
-
>
|
|
5383
|
-
} @else {
|
|
5384
|
-
<span>{{ label }}</span>
|
|
5385
|
-
}
|
|
5380
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ChipRenderer, isStandalone: true, selector: "ng-component", providers: [AsyncPipe], ngImport: i0, template: `
|
|
5381
|
+
@if (color) {
|
|
5382
|
+
<span
|
|
5383
|
+
class="cell-chip"
|
|
5384
|
+
[style]="{ background: color }"
|
|
5385
|
+
>{{ label }}</span
|
|
5386
|
+
>
|
|
5387
|
+
} @else {
|
|
5388
|
+
<span>{{ label }}</span>
|
|
5389
|
+
}
|
|
5386
5390
|
`, isInline: true, styles: [".cell-chip{padding:2px 5px;color:#fff;border-radius:2px;font-size:12px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
5387
5391
|
}
|
|
5388
5392
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ChipRenderer, decorators: [{
|
|
5389
5393
|
type: Component,
|
|
5390
|
-
args: [{ standalone: true, imports: [CommonModule], providers: [AsyncPipe], template: `
|
|
5391
|
-
@if (color) {
|
|
5392
|
-
<span
|
|
5393
|
-
class="cell-chip"
|
|
5394
|
-
[style]="{ background: color }"
|
|
5395
|
-
>{{ label }}</span
|
|
5396
|
-
>
|
|
5397
|
-
} @else {
|
|
5398
|
-
<span>{{ label }}</span>
|
|
5399
|
-
}
|
|
5394
|
+
args: [{ standalone: true, imports: [CommonModule], providers: [AsyncPipe], template: `
|
|
5395
|
+
@if (color) {
|
|
5396
|
+
<span
|
|
5397
|
+
class="cell-chip"
|
|
5398
|
+
[style]="{ background: color }"
|
|
5399
|
+
>{{ label }}</span
|
|
5400
|
+
>
|
|
5401
|
+
} @else {
|
|
5402
|
+
<span>{{ label }}</span>
|
|
5403
|
+
}
|
|
5400
5404
|
`, styles: [".cell-chip{padding:2px 5px;color:#fff;border-radius:2px;font-size:12px}\n"] }]
|
|
5401
5405
|
}] });
|
|
5402
5406
|
|
|
@@ -5413,34 +5417,34 @@ class ImgRenderer {
|
|
|
5413
5417
|
}
|
|
5414
5418
|
}
|
|
5415
5419
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ImgRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5416
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ImgRenderer, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
|
|
5417
|
-
@for(img of imgList;track img){
|
|
5418
|
-
<p-image
|
|
5419
|
-
[src]="img"
|
|
5420
|
-
alt="Image"
|
|
5421
|
-
height="40"
|
|
5422
|
-
[imageStyle]="{height:'40px'}"
|
|
5423
|
-
appendTo="body"
|
|
5424
|
-
[preview]="true"
|
|
5425
|
-
[style]="{marginRight:'5px'}"
|
|
5426
|
-
/>
|
|
5427
|
-
}
|
|
5420
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: ImgRenderer, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
|
|
5421
|
+
@for(img of imgList;track img){
|
|
5422
|
+
<p-image
|
|
5423
|
+
[src]="img"
|
|
5424
|
+
alt="Image"
|
|
5425
|
+
height="40"
|
|
5426
|
+
[imageStyle]="{height:'40px'}"
|
|
5427
|
+
appendTo="body"
|
|
5428
|
+
[preview]="true"
|
|
5429
|
+
[style]="{marginRight:'5px'}"
|
|
5430
|
+
/>
|
|
5431
|
+
}
|
|
5428
5432
|
`, isInline: true, styles: [":is() .p-image-preview{margin-right:5px}\n"], dependencies: [{ kind: "ngmodule", type: ImageModule }, { kind: "component", type: i1$7.Image, selector: "p-image", inputs: ["imageClass", "imageStyle", "styleClass", "style", "src", "srcSet", "sizes", "previewImageSrc", "previewImageSrcSet", "previewImageSizes", "alt", "width", "height", "loading", "appendTo", "preview", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide", "onImageError"] }] }); }
|
|
5429
5433
|
}
|
|
5430
5434
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ImgRenderer, decorators: [{
|
|
5431
5435
|
type: Component,
|
|
5432
|
-
args: [{ standalone: true, imports: [ImageModule], template: `
|
|
5433
|
-
@for(img of imgList;track img){
|
|
5434
|
-
<p-image
|
|
5435
|
-
[src]="img"
|
|
5436
|
-
alt="Image"
|
|
5437
|
-
height="40"
|
|
5438
|
-
[imageStyle]="{height:'40px'}"
|
|
5439
|
-
appendTo="body"
|
|
5440
|
-
[preview]="true"
|
|
5441
|
-
[style]="{marginRight:'5px'}"
|
|
5442
|
-
/>
|
|
5443
|
-
}
|
|
5436
|
+
args: [{ standalone: true, imports: [ImageModule], template: `
|
|
5437
|
+
@for(img of imgList;track img){
|
|
5438
|
+
<p-image
|
|
5439
|
+
[src]="img"
|
|
5440
|
+
alt="Image"
|
|
5441
|
+
height="40"
|
|
5442
|
+
[imageStyle]="{height:'40px'}"
|
|
5443
|
+
appendTo="body"
|
|
5444
|
+
[preview]="true"
|
|
5445
|
+
[style]="{marginRight:'5px'}"
|
|
5446
|
+
/>
|
|
5447
|
+
}
|
|
5444
5448
|
`, styles: [":is() .p-image-preview{margin-right:5px}\n"] }]
|
|
5445
5449
|
}] });
|
|
5446
5450
|
|
|
@@ -6085,6 +6089,7 @@ class GridComponent {
|
|
|
6085
6089
|
let totalCount = this.grid.api.getDisplayedRowCount();
|
|
6086
6090
|
item[this.gridOptions().dragSort] = totalCount + 1;
|
|
6087
6091
|
}
|
|
6092
|
+
this.action.updateGridAction({ type: 'add', data: [item] });
|
|
6088
6093
|
this.grid.api.applyTransaction({ add: [item] });
|
|
6089
6094
|
}
|
|
6090
6095
|
else {
|
|
@@ -6253,11 +6258,11 @@ class GridComponent {
|
|
|
6253
6258
|
console.log('dragUpsert----', this.upsert());
|
|
6254
6259
|
}
|
|
6255
6260
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GridComponent, deps: [{ token: ActionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6256
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: GridComponent, isStandalone: true, selector: "custom-grid", inputs: { gridOptions: { classPropertyName: "gridOptions", publicName: "gridOptions", isSignal: true, isRequired: false, transformFunction: null }, selectionKeys: { classPropertyName: "selectionKeys", publicName: "selectionKeys", isSignal: true, isRequired: false, transformFunction: null }, upsert: { classPropertyName: "upsert", publicName: "upsert", isSignal: true, isRequired: false, transformFunction: null }, rowData: { classPropertyName: "rowData", publicName: "rowData", isSignal: true, isRequired: false, transformFunction: null }, searchPrm: { classPropertyName: "searchPrm", publicName: "searchPrm", isSignal: true, isRequired: false, transformFunction: null }, addType: { classPropertyName: "addType", publicName: "addType", isSignal: true, isRequired: false, transformFunction: null }, selectData: { classPropertyName: "selectData", publicName: "selectData", isSignal: true, isRequired: false, transformFunction: null }, showAct: { classPropertyName: "showAct", publicName: "showAct", isSignal: true, isRequired: false, transformFunction: null }, actPos: { classPropertyName: "actPos", publicName: "actPos", isSignal: true, isRequired: false, transformFunction: null }, authLevel: { classPropertyName: "authLevel", publicName: "authLevel", isSignal: true, isRequired: false, transformFunction: null }, showDelete: { classPropertyName: "showDelete", publicName: "showDelete", isSignal: true, isRequired: false, transformFunction: null }, gridDisable: { classPropertyName: "gridDisable", publicName: "gridDisable", isSignal: true, isRequired: false, transformFunction: null }, addSort: { classPropertyName: "addSort", publicName: "addSort", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { deleteEmit: "deleteEmit", addEmit: "addEmit" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "grid", first: true, predicate: AgGridAngular, descendants: true }, { propertyName: "gridRef", first: true, predicate: AgGridAngular, descendants: true, read: ElementRef }, { propertyName: "containerRef", first: true, predicate: ["gridContainer"], descendants: true }], ngImport: i0, template: "@if (initGrid) {\n\t<div\n\t\t#gridContainer\n\t\t[class]=\"\n\t\t\t(toOptions().treeDataField ? 'tree-grid ' : '') +\n\t\t\t'grid-container w-full flex justify-between ' +\n\t\t\t(actPos() == 'bottom' ? 'flex-col' : 'flex-col-reverse')\n\t\t\">\n\t\t<ag-grid-angular\n\t\t\t[theme]=\"myTheme()\"\n\t\t\t[columnDefs]=\"columnDefs\"\n\t\t\t[gridOptions]=\"toOptions()\"\n\t\t\t[localeText]=\"localeText\"\n\t\t\t[components]=\"components\"\n\t\t\t[undoRedoCellEditing]=\"toOptions().undoRedoCellEditing\"\n\t\t\t[undoRedoCellEditingLimit]=\"toOptions().undoRedoCellEditingLimit\"\n\t\t\t(cellValueChanged)=\"cellValueChanged($event)\"\n\t\t\t(selectionChanged)=\"onSelectionChanged($event)\"\n\t\t\t(rowGroupOpened)=\"onRowGroupOpened()\"\n\t\t\t(gridReady)=\"onGridReady($event)\"\n\t\t\t(rowDragEnd)=\"onRowDragEnd($event)\"\n\t\t\t(rowDragEnter)=\"rowDragEnter($event)\" />\n\t\t@if (showAct() && authLevel() >= 3 && (addType() != 'none' || showDelete())) {\n\t\t\t@if (showHorizontal) {\n\t\t\t\t<div class=\"w-full border-t border-gray-300\"></div>\n\t\t\t}\n\t\t\t<div class=\"flex justify-end py-[5px] pr-[8px]\">\n\t\t\t\t@if (addType() != 'none') {\n\t\t\t\t\t<p-button\n\t\t\t\t\t\ticon=\"pi pi-plus\"\n\t\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t\tseverity=\"success\"\n\t\t\t\t\t\t[disabled]=\"gridDisable()\"\n\t\t\t\t\t\t(onClick)=\"addRow()\" />\n\t\t\t\t}\n\t\t\t\t@if (showDelete()) {\n\t\t\t\t\t<p-button\n\t\t\t\t\t\ticon=\"pi pi-trash\"\n\t\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t\tseverity=\"danger\"\n\t\t\t\t\t\t[disabled]=\"gridDisable()\"\n\t\t\t\t\t\t(onClick)=\"delRows()\" />\n\t\t\t\t}\n\t\t\t</div>\n\t\t}\n\t</div>\n}\n", styles: ["@charset \"UTF-8\";:host ::ng-deep .ag-grid .ag-body{overflow-y:scroll!important;scrollbar-gutter:stable;transition:height .2s ease}:host ::ng-deep .ag-grid{transition:height .2s ease}:host ::ng-deep .ag-root-wrapper{overflow:initial!important}:host ::ng-deep .tree-grid .ag-body-vertical-scroll{width:5px!important;max-width:5px!important;min-width:5px!important;display:block!important}:host ::ng-deep .cell-wrap-text{white-space:normal!important;word-break:break-word!important;line-height:1.5!important;padding:10px 15px}:host ::ng-deep .editable-column-header .ag-header-cell-text:after{content:\"\\2710\";padding-left:6px;color:var(--p-primary-color)}:host ::ng-deep .rowSpan .ag-cell{border-right:1px solid color-mix(in srgb,transparent,var(--ag-foreground-color) 15%)}\n"], dependencies: [{ kind: "component", type: AgGridAngular, selector: "ag-grid-angular", inputs: ["gridOptions", "modules", "statusBar", "sideBar", "suppressContextMenu", "preventDefaultOnContextMenu", "allowContextMenuWithControlKey", "columnMenu", "suppressMenuHide", "enableBrowserTooltips", "tooltipTrigger", "tooltipShowDelay", "tooltipHideDelay", "tooltipMouseTrack", "tooltipShowMode", "tooltipInteraction", "popupParent", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressLastEmptyLineOnPaste", "suppressClipboardPaste", "suppressClipboardApi", "suppressCutToClipboard", "columnDefs", "defaultColDef", "defaultColGroupDef", "columnTypes", "dataTypeDefinitions", "maintainColumnOrder", "enableStrictPivotColumnOrder", "suppressFieldDotNotation", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "allowDragFromColumnsToolPanel", "suppressMovableColumns", "suppressColumnMoveAnimation", "suppressMoveWhenColumnDragging", "suppressDragLeaveHidesColumns", "suppressGroupChangesColumnVisibility", "suppressMakeColumnVisibleAfterUnGroup", "suppressRowGroupHidesColumns", "colResizeDefault", "suppressAutoSize", "autoSizePadding", "skipHeaderOnAutoSize", "autoSizeStrategy", "components", "editType", "singleClickEdit", "suppressClickEdit", "readOnlyEdit", "stopEditingWhenCellsLoseFocus", "enterNavigatesVertically", "enterNavigatesVerticallyAfterEdit", "enableCellEditingOnBackspace", "undoRedoCellEditing", "undoRedoCellEditingLimit", "defaultCsvExportParams", "suppressCsvExport", "defaultExcelExportParams", "suppressExcelExport", "excelStyles", "quickFilterText", "cacheQuickFilter", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "applyQuickFilterBeforePivotOrAgg", "excludeChildrenWhenTreeDataFiltering", "enableAdvancedFilter", "alwaysPassFilter", "includeHiddenColumnsInAdvancedFilter", "advancedFilterParent", "advancedFilterBuilderParams", "suppressAdvancedFilterEval", "suppressSetFilterByDefault", "enableCharts", "chartThemes", "customChartThemes", "chartThemeOverrides", "chartToolPanelsDef", "chartMenuItems", "loadingCellRenderer", "loadingCellRendererParams", "loadingCellRendererSelector", "localeText", "masterDetail", "keepDetailRows", "keepDetailRowsCount", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "context", "dragAndDropImageComponent", "dragAndDropImageComponentParams", "alignedGrids", "tabIndex", "rowBuffer", "valueCache", "valueCacheNeverExpires", "enableCellExpressions", "suppressTouch", "suppressFocusAfterRefresh", "suppressBrowserResizeObserver", "suppressPropertyNamesCheck", "suppressChangeDetection", "debug", "loading", "overlayLoadingTemplate", "loadingOverlayComponent", "loadingOverlayComponentParams", "suppressLoadingOverlay", "overlayNoRowsTemplate", "noRowsOverlayComponent", "noRowsOverlayComponentParams", "suppressNoRowsOverlay", "pagination", "paginationPageSize", "paginationPageSizeSelector", "paginationAutoPageSize", "paginateChildRows", "suppressPaginationPanel", "pivotMode", "pivotPanelShow", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotColumnGroupTotals", "pivotRowTotals", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "functionsReadOnly", "aggFuncs", "suppressAggFuncInHeader", "alwaysAggregateAtRootLevel", "aggregateOnlyChangedColumns", "suppressAggFilteredOnly", "removePivotHeaderRowWhenSingleValueColumn", "animateRows", "cellFlashDuration", "cellFadeDuration", "allowShowChangeAfterFilter", "domLayout", "ensureDomOrder", "enableRtl", "suppressColumnVirtualisation", "suppressMaxRenderedRowRestriction", "suppressRowVirtualisation", "rowDragManaged", "suppressRowDrag", "suppressMoveWhenRowDragging", "rowDragEntireRow", "rowDragMultiRow", "rowDragText", "fullWidthCellRenderer", "fullWidthCellRendererParams", "embedFullWidthRows", "groupDisplayType", "groupDefaultExpanded", "autoGroupColumnDef", "groupMaintainOrder", "groupSelectsChildren", "groupLockGroupColumns", "groupAggFiltering", "groupTotalRow", "grandTotalRow", "suppressStickyTotalRow", "groupSuppressBlankHeader", "groupSelectsFiltered", "showOpenedGroup", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "groupHideOpenParents", "groupAllowUnbalanced", "rowGroupPanelShow", "groupRowRenderer", "groupRowRendererParams", "treeData", "rowGroupPanelSuppressSort", "suppressGroupRowsSticky", "pinnedTopRowData", "pinnedBottomRowData", "rowModelType", "rowData", "asyncTransactionWaitMillis", "suppressModelUpdateAfterUpdateTransaction", "datasource", "cacheOverflowSize", "infiniteInitialRowCount", "serverSideInitialRowCount", "suppressServerSideFullWidthLoadingRow", "cacheBlockSize", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "blockLoadDebounceMillis", "purgeClosedRowNodes", "serverSideDatasource", "serverSideSortAllLevels", "serverSideEnableClientSideSort", "serverSideOnlyRefreshFilteredGroups", "serverSidePivotResultFieldSeparator", "viewportDatasource", "viewportRowModelPageSize", "viewportRowModelBufferSize", "alwaysShowHorizontalScroll", "alwaysShowVerticalScroll", "debounceVerticalScrollbar", "suppressHorizontalScroll", "suppressScrollOnNewData", "suppressScrollWhenPopupsAreOpen", "suppressAnimationFrame", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "scrollbarWidth", "rowSelection", "cellSelection", "rowMultiSelectWithClick", "suppressRowDeselection", "suppressRowClickSelection", "suppressCellFocus", "suppressHeaderFocus", "selectionColumnDef", "suppressMultiRangeSelection", "enableCellTextSelection", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "fillHandleDirection", "suppressClearOnFillReduction", "sortingOrder", "accentedSort", "unSortIcon", "suppressMultiSort", "alwaysMultiSort", "multiSortKey", "suppressMaintainUnsortedOrder", "icons", "rowHeight", "rowStyle", "rowClass", "rowClassRules", "suppressRowHoverHighlight", "suppressRowTransform", "columnHoverHighlight", "gridId", "deltaSort", "treeDataDisplayType", "enableGroupEdit", "initialState", "theme", "loadThemeGoogleFonts", "getContextMenuItems", "getMainMenuItems", "postProcessPopup", "processUnpinnedColumns", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "processCellFromClipboard", "sendToClipboard", "processDataFromClipboard", "isExternalFilterPresent", "doesExternalFilterPass", "getChartToolbarItems", "createChartContainer", "focusGridInnerElement", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "getLocaleText", "getDocument", "paginationNumberFormatter", "getGroupRowAgg", "isGroupOpenByDefault", "initialGroupOrderComparator", "processPivotResultColDef", "processPivotResultColGroupDef", "getDataPath", "getChildCount", "getServerSideGroupLevelParams", "isServerSideGroupOpenByDefault", "isApplyServerSideTransaction", "isServerSideGroup", "getServerSideGroupKey", "getBusinessKeyForNode", "getRowId", "resetRowDataOnUpdate", "processRowPostCreate", "isRowSelectable", "isRowMaster", "fillOperation", "postSortRows", "getRowStyle", "getRowClass", "getRowHeight", "isFullWidthRow"], outputs: ["toolPanelVisibleChanged", "toolPanelSizeChanged", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "columnVisible", "columnPinned", "columnResized", "columnMoved", "columnValueChanged", "columnPivotModeChanged", "columnPivotChanged", "columnGroupOpened", "newColumnsLoaded", "gridColumnsChanged", "displayedColumnsChanged", "virtualColumnsChanged", "columnEverythingChanged", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "componentStateChanged", "cellValueChanged", "cellEditRequest", "rowValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "cellSelectionDeleteStart", "cellSelectionDeleteEnd", "rangeDeleteStart", "rangeDeleteEnd", "fillStart", "fillEnd", "filterOpened", "filterChanged", "filterModified", "advancedFilterBuilderVisibleChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "cellKeyDown", "gridReady", "firstDataRendered", "gridSizeChanged", "modelUpdated", "virtualRowRemoved", "viewportChanged", "bodyScroll", "bodyScrollEnd", "dragStarted", "dragStopped", "dragCancelled", "stateUpdated", "paginationChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "rowDragCancel", "columnRowGroupChanged", "rowGroupOpened", "expandOrCollapseAll", "pivotMaxColumnsExceeded", "pinnedRowDataChanged", "rowDataUpdated", "asyncTransactionsFlushed", "storeRefreshed", "headerFocused", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "cellSelectionChanged", "tooltipShow", "tooltipHide", "sortChanged"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }] }); }
|
|
6261
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: GridComponent, isStandalone: true, selector: "custom-grid", inputs: { gridOptions: { classPropertyName: "gridOptions", publicName: "gridOptions", isSignal: true, isRequired: false, transformFunction: null }, selectionKeys: { classPropertyName: "selectionKeys", publicName: "selectionKeys", isSignal: true, isRequired: false, transformFunction: null }, upsert: { classPropertyName: "upsert", publicName: "upsert", isSignal: true, isRequired: false, transformFunction: null }, rowData: { classPropertyName: "rowData", publicName: "rowData", isSignal: true, isRequired: false, transformFunction: null }, searchPrm: { classPropertyName: "searchPrm", publicName: "searchPrm", isSignal: true, isRequired: false, transformFunction: null }, addType: { classPropertyName: "addType", publicName: "addType", isSignal: true, isRequired: false, transformFunction: null }, selectData: { classPropertyName: "selectData", publicName: "selectData", isSignal: true, isRequired: false, transformFunction: null }, showAct: { classPropertyName: "showAct", publicName: "showAct", isSignal: true, isRequired: false, transformFunction: null }, actPos: { classPropertyName: "actPos", publicName: "actPos", isSignal: true, isRequired: false, transformFunction: null }, authLevel: { classPropertyName: "authLevel", publicName: "authLevel", isSignal: true, isRequired: false, transformFunction: null }, showDelete: { classPropertyName: "showDelete", publicName: "showDelete", isSignal: true, isRequired: false, transformFunction: null }, gridDisable: { classPropertyName: "gridDisable", publicName: "gridDisable", isSignal: true, isRequired: false, transformFunction: null }, addSort: { classPropertyName: "addSort", publicName: "addSort", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { deleteEmit: "deleteEmit", addEmit: "addEmit" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "grid", first: true, predicate: AgGridAngular, descendants: true }, { propertyName: "gridRef", first: true, predicate: AgGridAngular, descendants: true, read: ElementRef }, { propertyName: "containerRef", first: true, predicate: ["gridContainer"], descendants: true }], ngImport: i0, template: "@if (initGrid) {\r\n\t<div\r\n\t\t#gridContainer\r\n\t\t[class]=\"\r\n\t\t\t(toOptions().treeDataField ? 'tree-grid ' : '') +\r\n\t\t\t'grid-container w-full flex justify-between ' +\r\n\t\t\t(actPos() == 'bottom' ? 'flex-col' : 'flex-col-reverse')\r\n\t\t\">\r\n\t\t<ag-grid-angular\r\n\t\t\t[theme]=\"myTheme()\"\r\n\t\t\t[columnDefs]=\"columnDefs\"\r\n\t\t\t[gridOptions]=\"toOptions()\"\r\n\t\t\t[localeText]=\"localeText\"\r\n\t\t\t[components]=\"components\"\r\n\t\t\t[undoRedoCellEditing]=\"toOptions().undoRedoCellEditing\"\r\n\t\t\t[undoRedoCellEditingLimit]=\"toOptions().undoRedoCellEditingLimit\"\r\n\t\t\t(cellValueChanged)=\"cellValueChanged($event)\"\r\n\t\t\t(selectionChanged)=\"onSelectionChanged($event)\"\r\n\t\t\t(rowGroupOpened)=\"onRowGroupOpened()\"\r\n\t\t\t(gridReady)=\"onGridReady($event)\"\r\n\t\t\t(rowDragEnd)=\"onRowDragEnd($event)\"\r\n\t\t\t(rowDragEnter)=\"rowDragEnter($event)\" />\r\n\t\t@if (showAct() && authLevel() >= 3 && (addType() != 'none' || showDelete())) {\r\n\t\t\t@if (showHorizontal) {\r\n\t\t\t\t<div class=\"w-full border-t border-gray-300\"></div>\r\n\t\t\t}\r\n\t\t\t<div class=\"flex justify-end py-[5px] pr-[8px]\">\r\n\t\t\t\t@if (addType() != 'none') {\r\n\t\t\t\t\t<p-button\r\n\t\t\t\t\t\ticon=\"pi pi-plus\"\r\n\t\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t\tseverity=\"success\"\r\n\t\t\t\t\t\t[disabled]=\"gridDisable()\"\r\n\t\t\t\t\t\t(onClick)=\"addRow()\" />\r\n\t\t\t\t}\r\n\t\t\t\t@if (showDelete()) {\r\n\t\t\t\t\t<p-button\r\n\t\t\t\t\t\ticon=\"pi pi-trash\"\r\n\t\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t\tseverity=\"danger\"\r\n\t\t\t\t\t\t[disabled]=\"gridDisable()\"\r\n\t\t\t\t\t\t(onClick)=\"delRows()\" />\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n}\r\n", styles: ["@charset \"UTF-8\";:host ::ng-deep .ag-grid .ag-body{overflow-y:scroll!important;scrollbar-gutter:stable;transition:height .2s ease}:host ::ng-deep .ag-grid{transition:height .2s ease}:host ::ng-deep .ag-root-wrapper{overflow:initial!important}:host ::ng-deep .tree-grid .ag-body-vertical-scroll{width:5px!important;max-width:5px!important;min-width:5px!important;display:block!important}:host ::ng-deep .cell-wrap-text{white-space:normal!important;word-break:break-word!important;line-height:1.5!important;padding:10px 15px}:host ::ng-deep .editable-column-header .ag-header-cell-text:after{content:\"\\2710\";padding-left:6px;color:var(--p-primary-color)}:host ::ng-deep .rowSpan .ag-cell{border-right:1px solid color-mix(in srgb,transparent,var(--ag-foreground-color) 15%)}\n"], dependencies: [{ kind: "component", type: AgGridAngular, selector: "ag-grid-angular", inputs: ["gridOptions", "modules", "statusBar", "sideBar", "suppressContextMenu", "preventDefaultOnContextMenu", "allowContextMenuWithControlKey", "columnMenu", "suppressMenuHide", "enableBrowserTooltips", "tooltipTrigger", "tooltipShowDelay", "tooltipHideDelay", "tooltipMouseTrack", "tooltipShowMode", "tooltipInteraction", "popupParent", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressLastEmptyLineOnPaste", "suppressClipboardPaste", "suppressClipboardApi", "suppressCutToClipboard", "columnDefs", "defaultColDef", "defaultColGroupDef", "columnTypes", "dataTypeDefinitions", "maintainColumnOrder", "enableStrictPivotColumnOrder", "suppressFieldDotNotation", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "allowDragFromColumnsToolPanel", "suppressMovableColumns", "suppressColumnMoveAnimation", "suppressMoveWhenColumnDragging", "suppressDragLeaveHidesColumns", "suppressGroupChangesColumnVisibility", "suppressMakeColumnVisibleAfterUnGroup", "suppressRowGroupHidesColumns", "colResizeDefault", "suppressAutoSize", "autoSizePadding", "skipHeaderOnAutoSize", "autoSizeStrategy", "components", "editType", "singleClickEdit", "suppressClickEdit", "readOnlyEdit", "stopEditingWhenCellsLoseFocus", "enterNavigatesVertically", "enterNavigatesVerticallyAfterEdit", "enableCellEditingOnBackspace", "undoRedoCellEditing", "undoRedoCellEditingLimit", "defaultCsvExportParams", "suppressCsvExport", "defaultExcelExportParams", "suppressExcelExport", "excelStyles", "quickFilterText", "cacheQuickFilter", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "applyQuickFilterBeforePivotOrAgg", "excludeChildrenWhenTreeDataFiltering", "enableAdvancedFilter", "alwaysPassFilter", "includeHiddenColumnsInAdvancedFilter", "advancedFilterParent", "advancedFilterBuilderParams", "suppressAdvancedFilterEval", "suppressSetFilterByDefault", "enableCharts", "chartThemes", "customChartThemes", "chartThemeOverrides", "chartToolPanelsDef", "chartMenuItems", "loadingCellRenderer", "loadingCellRendererParams", "loadingCellRendererSelector", "localeText", "masterDetail", "keepDetailRows", "keepDetailRowsCount", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "context", "dragAndDropImageComponent", "dragAndDropImageComponentParams", "alignedGrids", "tabIndex", "rowBuffer", "valueCache", "valueCacheNeverExpires", "enableCellExpressions", "suppressTouch", "suppressFocusAfterRefresh", "suppressBrowserResizeObserver", "suppressPropertyNamesCheck", "suppressChangeDetection", "debug", "loading", "overlayLoadingTemplate", "loadingOverlayComponent", "loadingOverlayComponentParams", "suppressLoadingOverlay", "overlayNoRowsTemplate", "noRowsOverlayComponent", "noRowsOverlayComponentParams", "suppressNoRowsOverlay", "pagination", "paginationPageSize", "paginationPageSizeSelector", "paginationAutoPageSize", "paginateChildRows", "suppressPaginationPanel", "pivotMode", "pivotPanelShow", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotColumnGroupTotals", "pivotRowTotals", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "functionsReadOnly", "aggFuncs", "suppressAggFuncInHeader", "alwaysAggregateAtRootLevel", "aggregateOnlyChangedColumns", "suppressAggFilteredOnly", "removePivotHeaderRowWhenSingleValueColumn", "animateRows", "cellFlashDuration", "cellFadeDuration", "allowShowChangeAfterFilter", "domLayout", "ensureDomOrder", "enableRtl", "suppressColumnVirtualisation", "suppressMaxRenderedRowRestriction", "suppressRowVirtualisation", "rowDragManaged", "suppressRowDrag", "suppressMoveWhenRowDragging", "rowDragEntireRow", "rowDragMultiRow", "rowDragText", "fullWidthCellRenderer", "fullWidthCellRendererParams", "embedFullWidthRows", "groupDisplayType", "groupDefaultExpanded", "autoGroupColumnDef", "groupMaintainOrder", "groupSelectsChildren", "groupLockGroupColumns", "groupAggFiltering", "groupTotalRow", "grandTotalRow", "suppressStickyTotalRow", "groupSuppressBlankHeader", "groupSelectsFiltered", "showOpenedGroup", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "groupHideOpenParents", "groupAllowUnbalanced", "rowGroupPanelShow", "groupRowRenderer", "groupRowRendererParams", "treeData", "rowGroupPanelSuppressSort", "suppressGroupRowsSticky", "pinnedTopRowData", "pinnedBottomRowData", "rowModelType", "rowData", "asyncTransactionWaitMillis", "suppressModelUpdateAfterUpdateTransaction", "datasource", "cacheOverflowSize", "infiniteInitialRowCount", "serverSideInitialRowCount", "suppressServerSideFullWidthLoadingRow", "cacheBlockSize", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "blockLoadDebounceMillis", "purgeClosedRowNodes", "serverSideDatasource", "serverSideSortAllLevels", "serverSideEnableClientSideSort", "serverSideOnlyRefreshFilteredGroups", "serverSidePivotResultFieldSeparator", "viewportDatasource", "viewportRowModelPageSize", "viewportRowModelBufferSize", "alwaysShowHorizontalScroll", "alwaysShowVerticalScroll", "debounceVerticalScrollbar", "suppressHorizontalScroll", "suppressScrollOnNewData", "suppressScrollWhenPopupsAreOpen", "suppressAnimationFrame", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "scrollbarWidth", "rowSelection", "cellSelection", "rowMultiSelectWithClick", "suppressRowDeselection", "suppressRowClickSelection", "suppressCellFocus", "suppressHeaderFocus", "selectionColumnDef", "suppressMultiRangeSelection", "enableCellTextSelection", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "fillHandleDirection", "suppressClearOnFillReduction", "sortingOrder", "accentedSort", "unSortIcon", "suppressMultiSort", "alwaysMultiSort", "multiSortKey", "suppressMaintainUnsortedOrder", "icons", "rowHeight", "rowStyle", "rowClass", "rowClassRules", "suppressRowHoverHighlight", "suppressRowTransform", "columnHoverHighlight", "gridId", "deltaSort", "treeDataDisplayType", "enableGroupEdit", "initialState", "theme", "loadThemeGoogleFonts", "getContextMenuItems", "getMainMenuItems", "postProcessPopup", "processUnpinnedColumns", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "processCellFromClipboard", "sendToClipboard", "processDataFromClipboard", "isExternalFilterPresent", "doesExternalFilterPass", "getChartToolbarItems", "createChartContainer", "focusGridInnerElement", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "getLocaleText", "getDocument", "paginationNumberFormatter", "getGroupRowAgg", "isGroupOpenByDefault", "initialGroupOrderComparator", "processPivotResultColDef", "processPivotResultColGroupDef", "getDataPath", "getChildCount", "getServerSideGroupLevelParams", "isServerSideGroupOpenByDefault", "isApplyServerSideTransaction", "isServerSideGroup", "getServerSideGroupKey", "getBusinessKeyForNode", "getRowId", "resetRowDataOnUpdate", "processRowPostCreate", "isRowSelectable", "isRowMaster", "fillOperation", "postSortRows", "getRowStyle", "getRowClass", "getRowHeight", "isFullWidthRow"], outputs: ["toolPanelVisibleChanged", "toolPanelSizeChanged", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "columnVisible", "columnPinned", "columnResized", "columnMoved", "columnValueChanged", "columnPivotModeChanged", "columnPivotChanged", "columnGroupOpened", "newColumnsLoaded", "gridColumnsChanged", "displayedColumnsChanged", "virtualColumnsChanged", "columnEverythingChanged", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "componentStateChanged", "cellValueChanged", "cellEditRequest", "rowValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "cellSelectionDeleteStart", "cellSelectionDeleteEnd", "rangeDeleteStart", "rangeDeleteEnd", "fillStart", "fillEnd", "filterOpened", "filterChanged", "filterModified", "advancedFilterBuilderVisibleChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "cellKeyDown", "gridReady", "firstDataRendered", "gridSizeChanged", "modelUpdated", "virtualRowRemoved", "viewportChanged", "bodyScroll", "bodyScrollEnd", "dragStarted", "dragStopped", "dragCancelled", "stateUpdated", "paginationChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "rowDragCancel", "columnRowGroupChanged", "rowGroupOpened", "expandOrCollapseAll", "pivotMaxColumnsExceeded", "pinnedRowDataChanged", "rowDataUpdated", "asyncTransactionsFlushed", "storeRefreshed", "headerFocused", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "cellSelectionChanged", "tooltipShow", "tooltipHide", "sortChanged"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }] }); }
|
|
6257
6262
|
}
|
|
6258
6263
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GridComponent, decorators: [{
|
|
6259
6264
|
type: Component,
|
|
6260
|
-
args: [{ selector: 'custom-grid', standalone: true, imports: [AgGridAngular, ButtonModule], template: "@if (initGrid) {\n\t<div\n\t\t#gridContainer\n\t\t[class]=\"\n\t\t\t(toOptions().treeDataField ? 'tree-grid ' : '') +\n\t\t\t'grid-container w-full flex justify-between ' +\n\t\t\t(actPos() == 'bottom' ? 'flex-col' : 'flex-col-reverse')\n\t\t\">\n\t\t<ag-grid-angular\n\t\t\t[theme]=\"myTheme()\"\n\t\t\t[columnDefs]=\"columnDefs\"\n\t\t\t[gridOptions]=\"toOptions()\"\n\t\t\t[localeText]=\"localeText\"\n\t\t\t[components]=\"components\"\n\t\t\t[undoRedoCellEditing]=\"toOptions().undoRedoCellEditing\"\n\t\t\t[undoRedoCellEditingLimit]=\"toOptions().undoRedoCellEditingLimit\"\n\t\t\t(cellValueChanged)=\"cellValueChanged($event)\"\n\t\t\t(selectionChanged)=\"onSelectionChanged($event)\"\n\t\t\t(rowGroupOpened)=\"onRowGroupOpened()\"\n\t\t\t(gridReady)=\"onGridReady($event)\"\n\t\t\t(rowDragEnd)=\"onRowDragEnd($event)\"\n\t\t\t(rowDragEnter)=\"rowDragEnter($event)\" />\n\t\t@if (showAct() && authLevel() >= 3 && (addType() != 'none' || showDelete())) {\n\t\t\t@if (showHorizontal) {\n\t\t\t\t<div class=\"w-full border-t border-gray-300\"></div>\n\t\t\t}\n\t\t\t<div class=\"flex justify-end py-[5px] pr-[8px]\">\n\t\t\t\t@if (addType() != 'none') {\n\t\t\t\t\t<p-button\n\t\t\t\t\t\ticon=\"pi pi-plus\"\n\t\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t\tseverity=\"success\"\n\t\t\t\t\t\t[disabled]=\"gridDisable()\"\n\t\t\t\t\t\t(onClick)=\"addRow()\" />\n\t\t\t\t}\n\t\t\t\t@if (showDelete()) {\n\t\t\t\t\t<p-button\n\t\t\t\t\t\ticon=\"pi pi-trash\"\n\t\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t\tseverity=\"danger\"\n\t\t\t\t\t\t[disabled]=\"gridDisable()\"\n\t\t\t\t\t\t(onClick)=\"delRows()\" />\n\t\t\t\t}\n\t\t\t</div>\n\t\t}\n\t</div>\n}\n", styles: ["@charset \"UTF-8\";:host ::ng-deep .ag-grid .ag-body{overflow-y:scroll!important;scrollbar-gutter:stable;transition:height .2s ease}:host ::ng-deep .ag-grid{transition:height .2s ease}:host ::ng-deep .ag-root-wrapper{overflow:initial!important}:host ::ng-deep .tree-grid .ag-body-vertical-scroll{width:5px!important;max-width:5px!important;min-width:5px!important;display:block!important}:host ::ng-deep .cell-wrap-text{white-space:normal!important;word-break:break-word!important;line-height:1.5!important;padding:10px 15px}:host ::ng-deep .editable-column-header .ag-header-cell-text:after{content:\"\\2710\";padding-left:6px;color:var(--p-primary-color)}:host ::ng-deep .rowSpan .ag-cell{border-right:1px solid color-mix(in srgb,transparent,var(--ag-foreground-color) 15%)}\n"] }]
|
|
6265
|
+
args: [{ selector: 'custom-grid', standalone: true, imports: [AgGridAngular, ButtonModule], template: "@if (initGrid) {\r\n\t<div\r\n\t\t#gridContainer\r\n\t\t[class]=\"\r\n\t\t\t(toOptions().treeDataField ? 'tree-grid ' : '') +\r\n\t\t\t'grid-container w-full flex justify-between ' +\r\n\t\t\t(actPos() == 'bottom' ? 'flex-col' : 'flex-col-reverse')\r\n\t\t\">\r\n\t\t<ag-grid-angular\r\n\t\t\t[theme]=\"myTheme()\"\r\n\t\t\t[columnDefs]=\"columnDefs\"\r\n\t\t\t[gridOptions]=\"toOptions()\"\r\n\t\t\t[localeText]=\"localeText\"\r\n\t\t\t[components]=\"components\"\r\n\t\t\t[undoRedoCellEditing]=\"toOptions().undoRedoCellEditing\"\r\n\t\t\t[undoRedoCellEditingLimit]=\"toOptions().undoRedoCellEditingLimit\"\r\n\t\t\t(cellValueChanged)=\"cellValueChanged($event)\"\r\n\t\t\t(selectionChanged)=\"onSelectionChanged($event)\"\r\n\t\t\t(rowGroupOpened)=\"onRowGroupOpened()\"\r\n\t\t\t(gridReady)=\"onGridReady($event)\"\r\n\t\t\t(rowDragEnd)=\"onRowDragEnd($event)\"\r\n\t\t\t(rowDragEnter)=\"rowDragEnter($event)\" />\r\n\t\t@if (showAct() && authLevel() >= 3 && (addType() != 'none' || showDelete())) {\r\n\t\t\t@if (showHorizontal) {\r\n\t\t\t\t<div class=\"w-full border-t border-gray-300\"></div>\r\n\t\t\t}\r\n\t\t\t<div class=\"flex justify-end py-[5px] pr-[8px]\">\r\n\t\t\t\t@if (addType() != 'none') {\r\n\t\t\t\t\t<p-button\r\n\t\t\t\t\t\ticon=\"pi pi-plus\"\r\n\t\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t\tseverity=\"success\"\r\n\t\t\t\t\t\t[disabled]=\"gridDisable()\"\r\n\t\t\t\t\t\t(onClick)=\"addRow()\" />\r\n\t\t\t\t}\r\n\t\t\t\t@if (showDelete()) {\r\n\t\t\t\t\t<p-button\r\n\t\t\t\t\t\ticon=\"pi pi-trash\"\r\n\t\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t\tseverity=\"danger\"\r\n\t\t\t\t\t\t[disabled]=\"gridDisable()\"\r\n\t\t\t\t\t\t(onClick)=\"delRows()\" />\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n}\r\n", styles: ["@charset \"UTF-8\";:host ::ng-deep .ag-grid .ag-body{overflow-y:scroll!important;scrollbar-gutter:stable;transition:height .2s ease}:host ::ng-deep .ag-grid{transition:height .2s ease}:host ::ng-deep .ag-root-wrapper{overflow:initial!important}:host ::ng-deep .tree-grid .ag-body-vertical-scroll{width:5px!important;max-width:5px!important;min-width:5px!important;display:block!important}:host ::ng-deep .cell-wrap-text{white-space:normal!important;word-break:break-word!important;line-height:1.5!important;padding:10px 15px}:host ::ng-deep .editable-column-header .ag-header-cell-text:after{content:\"\\2710\";padding-left:6px;color:var(--p-primary-color)}:host ::ng-deep .rowSpan .ag-cell{border-right:1px solid color-mix(in srgb,transparent,var(--ag-foreground-color) 15%)}\n"] }]
|
|
6261
6266
|
}], ctorParameters: () => [{ type: ActionService }], propDecorators: { grid: [{
|
|
6262
6267
|
type: ViewChild,
|
|
6263
6268
|
args: [AgGridAngular]
|
|
@@ -7114,11 +7119,11 @@ class SearchComponent {
|
|
|
7114
7119
|
this.textPanel.hide();
|
|
7115
7120
|
}
|
|
7116
7121
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SearchComponent, deps: [{ token: ActionService }, { token: I18nService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7117
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SearchComponent, isStandalone: true, selector: "custom-search", inputs: { searchPrm: { classPropertyName: "searchPrm", publicName: "searchPrm", isSignal: true, isRequired: false, transformFunction: null }, gridOptions: { classPropertyName: "gridOptions", publicName: "gridOptions", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "searchRef", first: true, predicate: ["searchRef"], descendants: true }, { propertyName: "popPanel", first: true, predicate: ["popPanel"], descendants: true }, { propertyName: "textPanel", first: true, predicate: ["textPanel"], descendants: true }], ngImport: i0, template: "@if (visible && reload) {\n\t<div\n\t\t#searchRef\n\t\tclass=\"s-main\">\n\t\t<div [class]=\"'flex items-center s-container ' + (isActive ? 's-active' : 's-unactive')\">\n\t\t\t<span class=\"flex-none s-search pi pi-search\"></span>\n\t\t\t<div class=\"flex-1 flex items-center content-center flex-wrap\">\n\t\t\t\t@for (columnFilter of searchModel()?.columnFilters; track columnFilter) {\n\t\t\t\t\t<search-tip\n\t\t\t\t\t\t[columnFilter]=\"columnFilter\"\n\t\t\t\t\t\t[searchItem]=\"getSearchItemByField(columnFilter.columnField!)\"></search-tip>\n\t\t\t\t}\n\t\t\t\t@if (searchModel()?.sorts?.length) {\n\t\t\t\t\t<search-tip\n\t\t\t\t\t\t[sorts]=\"searchModel()?.sorts\"\n\t\t\t\t\t\t[sortItem]=\"getSortItemBySorts(searchModel()?.sorts!)\"></search-tip>\n\t\t\t\t}\n\t\t\t\t<div class=\"flex-1\">\n\t\t\t\t\t<input\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tclass=\"s-input\"\n\t\t\t\t\t\t[placeholder]=\"'search.search' | translate\"\n\t\t\t\t\t\t[(ngModel)]=\"searchStr\"\n\t\t\t\t\t\t(focus)=\"onFocus($event, searchRef)\"\n\t\t\t\t\t\t(input)=\"onInput($event, searchRef)\" />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div\n\t\t\t[class]=\"'s-dropdown ' + (isActive ? 's-active' : 's-unactive')\"\n\t\t\t(click)=\"onDropDownClick($event, searchRef)\">\n\t\t\t<span [class]=\"'s-dropdown-icon pi pi-chevron-' + (isActive ? 'up' : 'down')\"></span>\n\t\t</div>\n\t</div>\n\n\t<p-popover\n\t\t[style]=\"{ marginLeft, maxHeight: '75vh', overflowY: 'scroll' }\"\n\t\t(onShow)=\"onPopShow($event)\"\n\t\t(onHide)=\"onPopHide($event)\"\n\t\t#popPanel>\n\t\t<pop-panel\n\t\t\t[searchItems]=\"searchItems\"\n\t\t\t[sortOptions]=\"sortOptions\"\n\t\t\t[modelName]=\"gridOptions()?.modelName\"></pop-panel>\n\t</p-popover>\n\n\t<p-popover\n\t\t[style]=\"{ maxHeight: '75vh', overflowY: 'scroll' }\"\n\t\t(onHide)=\"onPopHide($event)\"\n\t\t#textPanel>\n\t\t<text-panel\n\t\t\t[searchItems]=\"searchItems\"\n\t\t\t[searchStr]=\"searchStr\"\n\t\t\t(strItemClick)=\"onStrItemClick($event)\"></text-panel>\n\t</p-popover>\n}\n", styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}.s-main{display:flex;align-items:stretch;position:relative;color:#334155}.s-active{border:1px solid var(--p-form-field-focus-border-color)}.s-unactive{border:1px solid var(--p-form-field-border-color)}.s-container{border-right-width:0;border-radius:3.5px 0 0 3.5px;padding:1.25px 0;width:100%}.s-search{color:var(--p-form-field-icon-color);padding:0 10px}.s-input-container{padding:1.25px 0}.s-input{height:30px;border-width:0;width:100%;min-width:25px}.s-input:focus{outline-width:0}.s-dropdown{width:35px;border-radius:0 3.5px 3.5px 0;display:flex;align-items:center;justify-content:center}.s-dropdown:hover{background-color:#e7e9ed;cursor:pointer}.s-dropdown-icon{color:var(--p-form-field-icon-color)}::ng-deep .p-popover.p-popover-flipped:before{display:none}::ng-deep .p-popover.p-popover-flipped:after{display:none}::ng-deep .p-popover:before{display:none}::ng-deep .p-popover:after{display:none}::ng-deep .p-popover{margin-top:2.5px}::ng-deep .p-popover-flipped{margin-top:-5px}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: PopPanelComponent, selector: "pop-panel", inputs: ["searchItems", "sortOptions", "modelName"] }, { kind: "component", type: TextPanelComponent, selector: "text-panel", inputs: ["searchItems", "searchStr"], outputs: ["strItemClick"] }, { kind: "component", type: SearchTipComponent, selector: "search-tip", inputs: ["columnFilter", "searchItem", "sorts", "sortItem"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }] }); }
|
|
7122
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: SearchComponent, isStandalone: true, selector: "custom-search", inputs: { searchPrm: { classPropertyName: "searchPrm", publicName: "searchPrm", isSignal: true, isRequired: false, transformFunction: null }, gridOptions: { classPropertyName: "gridOptions", publicName: "gridOptions", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "searchRef", first: true, predicate: ["searchRef"], descendants: true }, { propertyName: "popPanel", first: true, predicate: ["popPanel"], descendants: true }, { propertyName: "textPanel", first: true, predicate: ["textPanel"], descendants: true }], ngImport: i0, template: "@if (visible && reload) {\r\n\t<div\r\n\t\t#searchRef\r\n\t\tclass=\"s-main\">\r\n\t\t<div [class]=\"'flex items-center s-container ' + (isActive ? 's-active' : 's-unactive')\">\r\n\t\t\t<span class=\"flex-none s-search pi pi-search\"></span>\r\n\t\t\t<div class=\"flex-1 flex items-center content-center flex-wrap\">\r\n\t\t\t\t@for (columnFilter of searchModel()?.columnFilters; track columnFilter) {\r\n\t\t\t\t\t<search-tip\r\n\t\t\t\t\t\t[columnFilter]=\"columnFilter\"\r\n\t\t\t\t\t\t[searchItem]=\"getSearchItemByField(columnFilter.columnField!)\"></search-tip>\r\n\t\t\t\t}\r\n\t\t\t\t@if (searchModel()?.sorts?.length) {\r\n\t\t\t\t\t<search-tip\r\n\t\t\t\t\t\t[sorts]=\"searchModel()?.sorts\"\r\n\t\t\t\t\t\t[sortItem]=\"getSortItemBySorts(searchModel()?.sorts!)\"></search-tip>\r\n\t\t\t\t}\r\n\t\t\t\t<div class=\"flex-1\">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\tclass=\"s-input\"\r\n\t\t\t\t\t\t[placeholder]=\"'search.search' | translate\"\r\n\t\t\t\t\t\t[(ngModel)]=\"searchStr\"\r\n\t\t\t\t\t\t(focus)=\"onFocus($event, searchRef)\"\r\n\t\t\t\t\t\t(input)=\"onInput($event, searchRef)\" />\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div\r\n\t\t\t[class]=\"'s-dropdown ' + (isActive ? 's-active' : 's-unactive')\"\r\n\t\t\t(click)=\"onDropDownClick($event, searchRef)\">\r\n\t\t\t<span [class]=\"'s-dropdown-icon pi pi-chevron-' + (isActive ? 'up' : 'down')\"></span>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<p-popover\r\n\t\t[style]=\"{ marginLeft, maxHeight: '75vh', overflowY: 'scroll' }\"\r\n\t\t(onShow)=\"onPopShow($event)\"\r\n\t\t(onHide)=\"onPopHide($event)\"\r\n\t\t#popPanel>\r\n\t\t<pop-panel\r\n\t\t\t[searchItems]=\"searchItems\"\r\n\t\t\t[sortOptions]=\"sortOptions\"\r\n\t\t\t[modelName]=\"gridOptions()?.modelName\"></pop-panel>\r\n\t</p-popover>\r\n\r\n\t<p-popover\r\n\t\t[style]=\"{ maxHeight: '75vh', overflowY: 'scroll' }\"\r\n\t\t(onHide)=\"onPopHide($event)\"\r\n\t\t#textPanel>\r\n\t\t<text-panel\r\n\t\t\t[searchItems]=\"searchItems\"\r\n\t\t\t[searchStr]=\"searchStr\"\r\n\t\t\t(strItemClick)=\"onStrItemClick($event)\"></text-panel>\r\n\t</p-popover>\r\n}\r\n", styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}.s-main{display:flex;align-items:stretch;position:relative;color:#334155}.s-active{border:1px solid var(--p-form-field-focus-border-color)}.s-unactive{border:1px solid var(--p-form-field-border-color)}.s-container{border-right-width:0;border-radius:3.5px 0 0 3.5px;padding:1.25px 0;width:100%}.s-search{color:var(--p-form-field-icon-color);padding:0 10px}.s-input-container{padding:1.25px 0}.s-input{height:30px;border-width:0;width:100%;min-width:25px}.s-input:focus{outline-width:0}.s-dropdown{width:35px;border-radius:0 3.5px 3.5px 0;display:flex;align-items:center;justify-content:center}.s-dropdown:hover{background-color:#e7e9ed;cursor:pointer}.s-dropdown-icon{color:var(--p-form-field-icon-color)}::ng-deep .p-popover.p-popover-flipped:before{display:none}::ng-deep .p-popover.p-popover-flipped:after{display:none}::ng-deep .p-popover:before{display:none}::ng-deep .p-popover:after{display:none}::ng-deep .p-popover{margin-top:2.5px}::ng-deep .p-popover-flipped{margin-top:-5px}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: PopPanelComponent, selector: "pop-panel", inputs: ["searchItems", "sortOptions", "modelName"] }, { kind: "component", type: TextPanelComponent, selector: "text-panel", inputs: ["searchItems", "searchStr"], outputs: ["strItemClick"] }, { kind: "component", type: SearchTipComponent, selector: "search-tip", inputs: ["columnFilter", "searchItem", "sorts", "sortItem"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }] }); }
|
|
7118
7123
|
}
|
|
7119
7124
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SearchComponent, decorators: [{
|
|
7120
7125
|
type: Component,
|
|
7121
|
-
args: [{ selector: 'custom-search', standalone: true, imports: [FormsModule, PopPanelComponent, TextPanelComponent, SearchTipComponent, TranslatePipe, Popover], template: "@if (visible && reload) {\n\t<div\n\t\t#searchRef\n\t\tclass=\"s-main\">\n\t\t<div [class]=\"'flex items-center s-container ' + (isActive ? 's-active' : 's-unactive')\">\n\t\t\t<span class=\"flex-none s-search pi pi-search\"></span>\n\t\t\t<div class=\"flex-1 flex items-center content-center flex-wrap\">\n\t\t\t\t@for (columnFilter of searchModel()?.columnFilters; track columnFilter) {\n\t\t\t\t\t<search-tip\n\t\t\t\t\t\t[columnFilter]=\"columnFilter\"\n\t\t\t\t\t\t[searchItem]=\"getSearchItemByField(columnFilter.columnField!)\"></search-tip>\n\t\t\t\t}\n\t\t\t\t@if (searchModel()?.sorts?.length) {\n\t\t\t\t\t<search-tip\n\t\t\t\t\t\t[sorts]=\"searchModel()?.sorts\"\n\t\t\t\t\t\t[sortItem]=\"getSortItemBySorts(searchModel()?.sorts!)\"></search-tip>\n\t\t\t\t}\n\t\t\t\t<div class=\"flex-1\">\n\t\t\t\t\t<input\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tclass=\"s-input\"\n\t\t\t\t\t\t[placeholder]=\"'search.search' | translate\"\n\t\t\t\t\t\t[(ngModel)]=\"searchStr\"\n\t\t\t\t\t\t(focus)=\"onFocus($event, searchRef)\"\n\t\t\t\t\t\t(input)=\"onInput($event, searchRef)\" />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div\n\t\t\t[class]=\"'s-dropdown ' + (isActive ? 's-active' : 's-unactive')\"\n\t\t\t(click)=\"onDropDownClick($event, searchRef)\">\n\t\t\t<span [class]=\"'s-dropdown-icon pi pi-chevron-' + (isActive ? 'up' : 'down')\"></span>\n\t\t</div>\n\t</div>\n\n\t<p-popover\n\t\t[style]=\"{ marginLeft, maxHeight: '75vh', overflowY: 'scroll' }\"\n\t\t(onShow)=\"onPopShow($event)\"\n\t\t(onHide)=\"onPopHide($event)\"\n\t\t#popPanel>\n\t\t<pop-panel\n\t\t\t[searchItems]=\"searchItems\"\n\t\t\t[sortOptions]=\"sortOptions\"\n\t\t\t[modelName]=\"gridOptions()?.modelName\"></pop-panel>\n\t</p-popover>\n\n\t<p-popover\n\t\t[style]=\"{ maxHeight: '75vh', overflowY: 'scroll' }\"\n\t\t(onHide)=\"onPopHide($event)\"\n\t\t#textPanel>\n\t\t<text-panel\n\t\t\t[searchItems]=\"searchItems\"\n\t\t\t[searchStr]=\"searchStr\"\n\t\t\t(strItemClick)=\"onStrItemClick($event)\"></text-panel>\n\t</p-popover>\n}\n", styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}.s-main{display:flex;align-items:stretch;position:relative;color:#334155}.s-active{border:1px solid var(--p-form-field-focus-border-color)}.s-unactive{border:1px solid var(--p-form-field-border-color)}.s-container{border-right-width:0;border-radius:3.5px 0 0 3.5px;padding:1.25px 0;width:100%}.s-search{color:var(--p-form-field-icon-color);padding:0 10px}.s-input-container{padding:1.25px 0}.s-input{height:30px;border-width:0;width:100%;min-width:25px}.s-input:focus{outline-width:0}.s-dropdown{width:35px;border-radius:0 3.5px 3.5px 0;display:flex;align-items:center;justify-content:center}.s-dropdown:hover{background-color:#e7e9ed;cursor:pointer}.s-dropdown-icon{color:var(--p-form-field-icon-color)}::ng-deep .p-popover.p-popover-flipped:before{display:none}::ng-deep .p-popover.p-popover-flipped:after{display:none}::ng-deep .p-popover:before{display:none}::ng-deep .p-popover:after{display:none}::ng-deep .p-popover{margin-top:2.5px}::ng-deep .p-popover-flipped{margin-top:-5px}\n"] }]
|
|
7126
|
+
args: [{ selector: 'custom-search', standalone: true, imports: [FormsModule, PopPanelComponent, TextPanelComponent, SearchTipComponent, TranslatePipe, Popover], template: "@if (visible && reload) {\r\n\t<div\r\n\t\t#searchRef\r\n\t\tclass=\"s-main\">\r\n\t\t<div [class]=\"'flex items-center s-container ' + (isActive ? 's-active' : 's-unactive')\">\r\n\t\t\t<span class=\"flex-none s-search pi pi-search\"></span>\r\n\t\t\t<div class=\"flex-1 flex items-center content-center flex-wrap\">\r\n\t\t\t\t@for (columnFilter of searchModel()?.columnFilters; track columnFilter) {\r\n\t\t\t\t\t<search-tip\r\n\t\t\t\t\t\t[columnFilter]=\"columnFilter\"\r\n\t\t\t\t\t\t[searchItem]=\"getSearchItemByField(columnFilter.columnField!)\"></search-tip>\r\n\t\t\t\t}\r\n\t\t\t\t@if (searchModel()?.sorts?.length) {\r\n\t\t\t\t\t<search-tip\r\n\t\t\t\t\t\t[sorts]=\"searchModel()?.sorts\"\r\n\t\t\t\t\t\t[sortItem]=\"getSortItemBySorts(searchModel()?.sorts!)\"></search-tip>\r\n\t\t\t\t}\r\n\t\t\t\t<div class=\"flex-1\">\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\tclass=\"s-input\"\r\n\t\t\t\t\t\t[placeholder]=\"'search.search' | translate\"\r\n\t\t\t\t\t\t[(ngModel)]=\"searchStr\"\r\n\t\t\t\t\t\t(focus)=\"onFocus($event, searchRef)\"\r\n\t\t\t\t\t\t(input)=\"onInput($event, searchRef)\" />\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div\r\n\t\t\t[class]=\"'s-dropdown ' + (isActive ? 's-active' : 's-unactive')\"\r\n\t\t\t(click)=\"onDropDownClick($event, searchRef)\">\r\n\t\t\t<span [class]=\"'s-dropdown-icon pi pi-chevron-' + (isActive ? 'up' : 'down')\"></span>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<p-popover\r\n\t\t[style]=\"{ marginLeft, maxHeight: '75vh', overflowY: 'scroll' }\"\r\n\t\t(onShow)=\"onPopShow($event)\"\r\n\t\t(onHide)=\"onPopHide($event)\"\r\n\t\t#popPanel>\r\n\t\t<pop-panel\r\n\t\t\t[searchItems]=\"searchItems\"\r\n\t\t\t[sortOptions]=\"sortOptions\"\r\n\t\t\t[modelName]=\"gridOptions()?.modelName\"></pop-panel>\r\n\t</p-popover>\r\n\r\n\t<p-popover\r\n\t\t[style]=\"{ maxHeight: '75vh', overflowY: 'scroll' }\"\r\n\t\t(onHide)=\"onPopHide($event)\"\r\n\t\t#textPanel>\r\n\t\t<text-panel\r\n\t\t\t[searchItems]=\"searchItems\"\r\n\t\t\t[searchStr]=\"searchStr\"\r\n\t\t\t(strItemClick)=\"onStrItemClick($event)\"></text-panel>\r\n\t</p-popover>\r\n}\r\n", styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}.s-main{display:flex;align-items:stretch;position:relative;color:#334155}.s-active{border:1px solid var(--p-form-field-focus-border-color)}.s-unactive{border:1px solid var(--p-form-field-border-color)}.s-container{border-right-width:0;border-radius:3.5px 0 0 3.5px;padding:1.25px 0;width:100%}.s-search{color:var(--p-form-field-icon-color);padding:0 10px}.s-input-container{padding:1.25px 0}.s-input{height:30px;border-width:0;width:100%;min-width:25px}.s-input:focus{outline-width:0}.s-dropdown{width:35px;border-radius:0 3.5px 3.5px 0;display:flex;align-items:center;justify-content:center}.s-dropdown:hover{background-color:#e7e9ed;cursor:pointer}.s-dropdown-icon{color:var(--p-form-field-icon-color)}::ng-deep .p-popover.p-popover-flipped:before{display:none}::ng-deep .p-popover.p-popover-flipped:after{display:none}::ng-deep .p-popover:before{display:none}::ng-deep .p-popover:after{display:none}::ng-deep .p-popover{margin-top:2.5px}::ng-deep .p-popover-flipped{margin-top:-5px}\n"] }]
|
|
7122
7127
|
}], ctorParameters: () => [{ type: ActionService }, { type: I18nService }], propDecorators: { searchRef: [{
|
|
7123
7128
|
type: ViewChild,
|
|
7124
7129
|
args: ['searchRef', { static: false }]
|
|
@@ -7194,11 +7199,11 @@ let RowSelectorComponent$1 = class RowSelectorComponent {
|
|
|
7194
7199
|
}
|
|
7195
7200
|
}
|
|
7196
7201
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RowSelectorComponent, deps: [{ token: ActionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7197
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: RowSelectorComponent, isStandalone: true, selector: "row-selector", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, selectionKeys: { classPropertyName: "selectionKeys", publicName: "selectionKeys", isSignal: true, isRequired: false, transformFunction: null }, gridOptions: { classPropertyName: "gridOptions", publicName: "gridOptions", isSignal: true, isRequired: false, transformFunction: null }, searchPrm: { classPropertyName: "searchPrm", publicName: "searchPrm", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onOk: "onOk", visible: "visibleChange", cancelSelect: "cancelSelect" }, viewQueries: [{ propertyName: "grid", first: true, predicate: GridComponent, descendants: true }], ngImport: i0, template: "<p-dialog\n\t[header]=\"title()\"\n\t[modal]=\"true\"\n\t[style]=\"{ width: '50vw' }\"\n\t(onHide)=\"cancel()\"\n\t[maximizable]=\"true\"\n\t[appendTo]=\"'body'\"\n\t[focusOnShow]=\"false\"\n\t(onShow)=\"onShow()\"\n\t(onHide)=\"onHide()\"\n\t(onMaximize)=\"onMaximize($event)\"\n\t[(visible)]=\"visible\">\n\t@if (innerVisible) {\n\t\t<div class=\"flex flex-col gap-2\">\n\t\t\t@if (showSearch()) {\n\t\t\t\t<custom-search [gridOptions]=\"gridOptions()\"></custom-search>\n\t\t\t}\n\t\t\t<custom-grid\n\t\t\t\t[showAct]=\"false\"\n\t\t\t\t[searchPrm]=\"searchPrm()\"\n\t\t\t\t[selectionKeys]=\"selectionKeys()\"\n\t\t\t\t[gridOptions]=\"gridOptions()\"></custom-grid>\n\t\t\t<div class=\"flex justify-end gap-2\">\n\t\t\t\t<p-button\n\t\t\t\t\tlabel=\"\u53D6\u6D88\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t(click)=\"cancel()\" />\n\t\t\t\t<p-button\n\t\t\t\t\tlabel=\"\u786E\u5B9A\"\n\t\t\t\t\t[outlined]=\"true\"\n\t\t\t\t\t(click)=\"ok()\" />\n\t\t\t</div>\n\t\t</div>\n\t}\n</p-dialog>\n", styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i3$1.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "component", type: GridComponent, selector: "custom-grid", inputs: ["gridOptions", "selectionKeys", "upsert", "rowData", "searchPrm", "addType", "selectData", "showAct", "actPos", "authLevel", "showDelete", "gridDisable", "addSort"], outputs: ["deleteEmit", "addEmit"] }, { kind: "component", type: SearchComponent, selector: "custom-search", inputs: ["searchPrm", "gridOptions"] }] }); }
|
|
7202
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: RowSelectorComponent, isStandalone: true, selector: "row-selector", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, selectionKeys: { classPropertyName: "selectionKeys", publicName: "selectionKeys", isSignal: true, isRequired: false, transformFunction: null }, gridOptions: { classPropertyName: "gridOptions", publicName: "gridOptions", isSignal: true, isRequired: false, transformFunction: null }, searchPrm: { classPropertyName: "searchPrm", publicName: "searchPrm", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onOk: "onOk", visible: "visibleChange", cancelSelect: "cancelSelect" }, viewQueries: [{ propertyName: "grid", first: true, predicate: GridComponent, descendants: true }], ngImport: i0, template: "<p-dialog\r\n\t[header]=\"title()\"\r\n\t[modal]=\"true\"\r\n\t[style]=\"{ width: '50vw' }\"\r\n\t(onHide)=\"cancel()\"\r\n\t[maximizable]=\"true\"\r\n\t[appendTo]=\"'body'\"\r\n\t[focusOnShow]=\"false\"\r\n\t(onShow)=\"onShow()\"\r\n\t(onHide)=\"onHide()\"\r\n\t(onMaximize)=\"onMaximize($event)\"\r\n\t[(visible)]=\"visible\">\r\n\t@if (innerVisible) {\r\n\t\t<div class=\"flex flex-col gap-2\">\r\n\t\t\t@if (showSearch()) {\r\n\t\t\t\t<custom-search [gridOptions]=\"gridOptions()\"></custom-search>\r\n\t\t\t}\r\n\t\t\t<custom-grid\r\n\t\t\t\t[showAct]=\"false\"\r\n\t\t\t\t[searchPrm]=\"searchPrm()\"\r\n\t\t\t\t[selectionKeys]=\"selectionKeys()\"\r\n\t\t\t\t[gridOptions]=\"gridOptions()\"></custom-grid>\r\n\t\t\t<div class=\"flex justify-end gap-2\">\r\n\t\t\t\t<p-button\r\n\t\t\t\t\tlabel=\"\u53D6\u6D88\"\r\n\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\tseverity=\"secondary\"\r\n\t\t\t\t\t(click)=\"cancel()\" />\r\n\t\t\t\t<p-button\r\n\t\t\t\t\tlabel=\"\u786E\u5B9A\"\r\n\t\t\t\t\t[outlined]=\"true\"\r\n\t\t\t\t\t(click)=\"ok()\" />\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t}\r\n</p-dialog>\r\n", styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i3$1.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "component", type: GridComponent, selector: "custom-grid", inputs: ["gridOptions", "selectionKeys", "upsert", "rowData", "searchPrm", "addType", "selectData", "showAct", "actPos", "authLevel", "showDelete", "gridDisable", "addSort"], outputs: ["deleteEmit", "addEmit"] }, { kind: "component", type: SearchComponent, selector: "custom-search", inputs: ["searchPrm", "gridOptions"] }] }); }
|
|
7198
7203
|
};
|
|
7199
7204
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RowSelectorComponent$1, decorators: [{
|
|
7200
7205
|
type: Component,
|
|
7201
|
-
args: [{ selector: 'row-selector', standalone: true, imports: [ButtonModule, DialogModule, GridComponent, SearchComponent], template: "<p-dialog\n\t[header]=\"title()\"\n\t[modal]=\"true\"\n\t[style]=\"{ width: '50vw' }\"\n\t(onHide)=\"cancel()\"\n\t[maximizable]=\"true\"\n\t[appendTo]=\"'body'\"\n\t[focusOnShow]=\"false\"\n\t(onShow)=\"onShow()\"\n\t(onHide)=\"onHide()\"\n\t(onMaximize)=\"onMaximize($event)\"\n\t[(visible)]=\"visible\">\n\t@if (innerVisible) {\n\t\t<div class=\"flex flex-col gap-2\">\n\t\t\t@if (showSearch()) {\n\t\t\t\t<custom-search [gridOptions]=\"gridOptions()\"></custom-search>\n\t\t\t}\n\t\t\t<custom-grid\n\t\t\t\t[showAct]=\"false\"\n\t\t\t\t[searchPrm]=\"searchPrm()\"\n\t\t\t\t[selectionKeys]=\"selectionKeys()\"\n\t\t\t\t[gridOptions]=\"gridOptions()\"></custom-grid>\n\t\t\t<div class=\"flex justify-end gap-2\">\n\t\t\t\t<p-button\n\t\t\t\t\tlabel=\"\u53D6\u6D88\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t(click)=\"cancel()\" />\n\t\t\t\t<p-button\n\t\t\t\t\tlabel=\"\u786E\u5B9A\"\n\t\t\t\t\t[outlined]=\"true\"\n\t\t\t\t\t(click)=\"ok()\" />\n\t\t\t</div>\n\t\t</div>\n\t}\n</p-dialog>\n", styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"] }]
|
|
7206
|
+
args: [{ selector: 'row-selector', standalone: true, imports: [ButtonModule, DialogModule, GridComponent, SearchComponent], template: "<p-dialog\r\n\t[header]=\"title()\"\r\n\t[modal]=\"true\"\r\n\t[style]=\"{ width: '50vw' }\"\r\n\t(onHide)=\"cancel()\"\r\n\t[maximizable]=\"true\"\r\n\t[appendTo]=\"'body'\"\r\n\t[focusOnShow]=\"false\"\r\n\t(onShow)=\"onShow()\"\r\n\t(onHide)=\"onHide()\"\r\n\t(onMaximize)=\"onMaximize($event)\"\r\n\t[(visible)]=\"visible\">\r\n\t@if (innerVisible) {\r\n\t\t<div class=\"flex flex-col gap-2\">\r\n\t\t\t@if (showSearch()) {\r\n\t\t\t\t<custom-search [gridOptions]=\"gridOptions()\"></custom-search>\r\n\t\t\t}\r\n\t\t\t<custom-grid\r\n\t\t\t\t[showAct]=\"false\"\r\n\t\t\t\t[searchPrm]=\"searchPrm()\"\r\n\t\t\t\t[selectionKeys]=\"selectionKeys()\"\r\n\t\t\t\t[gridOptions]=\"gridOptions()\"></custom-grid>\r\n\t\t\t<div class=\"flex justify-end gap-2\">\r\n\t\t\t\t<p-button\r\n\t\t\t\t\tlabel=\"\u53D6\u6D88\"\r\n\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\tseverity=\"secondary\"\r\n\t\t\t\t\t(click)=\"cancel()\" />\r\n\t\t\t\t<p-button\r\n\t\t\t\t\tlabel=\"\u786E\u5B9A\"\r\n\t\t\t\t\t[outlined]=\"true\"\r\n\t\t\t\t\t(click)=\"ok()\" />\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t}\r\n</p-dialog>\r\n", styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}\n"] }]
|
|
7202
7207
|
}], ctorParameters: () => [{ type: ActionService }], propDecorators: { onOk: [{
|
|
7203
7208
|
type: Output
|
|
7204
7209
|
}], grid: [{
|
|
@@ -7260,6 +7265,14 @@ class RowSelectorComponent extends AmComponent {
|
|
|
7260
7265
|
console.log('-----Form Rowselector thisArg', thisArg);
|
|
7261
7266
|
this.webget({ code: this.props.pageCode }).subscribe((res) => {
|
|
7262
7267
|
let content = parseFunctions(JSON.parse(res.content), thisArg);
|
|
7268
|
+
if (content.hasOwnProperty('searchPrm')) {
|
|
7269
|
+
content.searchPrm?.columnFilters?.forEach((v) => {
|
|
7270
|
+
if (typeof v.fiter === 'function') {
|
|
7271
|
+
v.fiter = v.fiter(null, this.field().form);
|
|
7272
|
+
console.log('fiter------', v.fiter);
|
|
7273
|
+
}
|
|
7274
|
+
});
|
|
7275
|
+
}
|
|
7263
7276
|
this.handlePopGridOptions(content.gridOptions, thisArg);
|
|
7264
7277
|
this.container.clear();
|
|
7265
7278
|
const componentRef = this.container.createComponent(RowSelectorComponent$1);
|
|
@@ -7269,7 +7282,7 @@ class RowSelectorComponent extends AmComponent {
|
|
|
7269
7282
|
}
|
|
7270
7283
|
convertCol(content.gridOptions, content.gridOptions.columnDefs, 1);
|
|
7271
7284
|
componentRef.setInput('gridOptions', content.gridOptions);
|
|
7272
|
-
let searchPrm = { modelName: content.modelName, ...content.
|
|
7285
|
+
let searchPrm = { modelName: content.modelName, ...content.searchPrm };
|
|
7273
7286
|
if (this.props.searchPrm) {
|
|
7274
7287
|
searchPrm = { ...searchPrm, ...this.props.searchPrm };
|
|
7275
7288
|
}
|
|
@@ -7310,34 +7323,34 @@ class RowSelectorComponent extends AmComponent {
|
|
|
7310
7323
|
}
|
|
7311
7324
|
}
|
|
7312
7325
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RowSelectorComponent, deps: [{ token: ActionService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7313
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: RowSelectorComponent, isStandalone: true, selector: "form-rowselector", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }, { propertyName: "selectorRef", first: true, predicate: ["selector"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
7314
|
-
<div #container></div>
|
|
7315
|
-
<div
|
|
7316
|
-
#selector
|
|
7317
|
-
class="flex gap-2 items-center selector-text">
|
|
7318
|
-
<span class="selector-text-content">{{ text }}</span>
|
|
7319
|
-
@if (!field()?.fieldControl?.disabled) {
|
|
7320
|
-
<span
|
|
7321
|
-
class="selector-icon pi pi-pen-to-square"
|
|
7322
|
-
(click)="onSelectorShow()"></span>
|
|
7323
|
-
}
|
|
7324
|
-
</div>
|
|
7326
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: RowSelectorComponent, isStandalone: true, selector: "form-rowselector", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }, { propertyName: "selectorRef", first: true, predicate: ["selector"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
7327
|
+
<div #container></div>
|
|
7328
|
+
<div
|
|
7329
|
+
#selector
|
|
7330
|
+
class="flex gap-2 items-center selector-text">
|
|
7331
|
+
<span class="selector-text-content">{{ text }}</span>
|
|
7332
|
+
@if (!field()?.fieldControl?.disabled) {
|
|
7333
|
+
<span
|
|
7334
|
+
class="selector-icon pi pi-pen-to-square"
|
|
7335
|
+
(click)="onSelectorShow()"></span>
|
|
7336
|
+
}
|
|
7337
|
+
</div>
|
|
7325
7338
|
`, isInline: true, styles: [".selector-text{width:100%;height:20px;color:#334155}.selector-text .selector-icon{font-size:12px}.selector-text .selector-icon:hover{cursor:pointer;color:var(--p-primary-color)}.selector-text .selector-text-content{min-width:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selector-text:hover .selector-icon,.selector-text.ng-hovered .selector-icon{color:var(--p-primary-color)}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: ReactiveFormsModule }] }); }
|
|
7326
7339
|
}
|
|
7327
7340
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RowSelectorComponent, decorators: [{
|
|
7328
7341
|
type: Component,
|
|
7329
|
-
args: [{ selector: 'form-rowselector', standalone: true, imports: [ButtonModule, ReactiveFormsModule], template: `
|
|
7330
|
-
<div #container></div>
|
|
7331
|
-
<div
|
|
7332
|
-
#selector
|
|
7333
|
-
class="flex gap-2 items-center selector-text">
|
|
7334
|
-
<span class="selector-text-content">{{ text }}</span>
|
|
7335
|
-
@if (!field()?.fieldControl?.disabled) {
|
|
7336
|
-
<span
|
|
7337
|
-
class="selector-icon pi pi-pen-to-square"
|
|
7338
|
-
(click)="onSelectorShow()"></span>
|
|
7339
|
-
}
|
|
7340
|
-
</div>
|
|
7342
|
+
args: [{ selector: 'form-rowselector', standalone: true, imports: [ButtonModule, ReactiveFormsModule], template: `
|
|
7343
|
+
<div #container></div>
|
|
7344
|
+
<div
|
|
7345
|
+
#selector
|
|
7346
|
+
class="flex gap-2 items-center selector-text">
|
|
7347
|
+
<span class="selector-text-content">{{ text }}</span>
|
|
7348
|
+
@if (!field()?.fieldControl?.disabled) {
|
|
7349
|
+
<span
|
|
7350
|
+
class="selector-icon pi pi-pen-to-square"
|
|
7351
|
+
(click)="onSelectorShow()"></span>
|
|
7352
|
+
}
|
|
7353
|
+
</div>
|
|
7341
7354
|
`, styles: [".selector-text{width:100%;height:20px;color:#334155}.selector-text .selector-icon{font-size:12px}.selector-text .selector-icon:hover{cursor:pointer;color:var(--p-primary-color)}.selector-text .selector-text-content{min-width:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selector-text:hover .selector-icon,.selector-text.ng-hovered .selector-icon{color:var(--p-primary-color)}\n"] }]
|
|
7342
7355
|
}], ctorParameters: () => [{ type: ActionService }, { type: i0.Renderer2 }], propDecorators: { container: [{
|
|
7343
7356
|
type: ViewChild,
|
|
@@ -7489,144 +7502,144 @@ class FormFieldComponent {
|
|
|
7489
7502
|
return this.fieldLabel;
|
|
7490
7503
|
}
|
|
7491
7504
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7492
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: FormFieldComponent, isStandalone: true, selector: "form-field", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "fieldLabel", first: true, predicate: ["fieldLabelRef"], descendants: true }, { propertyName: "fieldComponents", predicate: FormFieldComponent, descendants: true }], ngImport: i0, template: `
|
|
7493
|
-
@if (field()?.group) {
|
|
7494
|
-
<div [class]="field()?.groupClass">
|
|
7495
|
-
@for (fchild of field()!.group; track fchild) {
|
|
7496
|
-
@if (!fchild.hide) {
|
|
7497
|
-
<div [class]="fchild.groupClass || fchild.class">
|
|
7498
|
-
<form-field
|
|
7499
|
-
class="w-full"
|
|
7500
|
-
[field]="fchild">
|
|
7501
|
-
</form-field>
|
|
7502
|
-
</div>
|
|
7503
|
-
}
|
|
7504
|
-
}
|
|
7505
|
-
</div>
|
|
7506
|
-
} @else {
|
|
7507
|
-
@if (props(field()!).label !== undefined) {
|
|
7508
|
-
<div [class]="field()?.innerClass || 'px-4 my-1'">
|
|
7509
|
-
<div class="flex flex-row flex-nowrap items-start">
|
|
7510
|
-
<div
|
|
7511
|
-
class="flex-none p-field field-label min-h-8 pt-[1.5px] flex items-center"
|
|
7512
|
-
[style]="getStyle()">
|
|
7513
|
-
<label
|
|
7514
|
-
#label
|
|
7515
|
-
[class]="labelClass()"
|
|
7516
|
-
fieldLabel
|
|
7517
|
-
[field]="field()!"
|
|
7518
|
-
[contextMenu]="contextMenu">
|
|
7519
|
-
<span
|
|
7520
|
-
style="user-select: none"
|
|
7521
|
-
#fieldLabelRef
|
|
7522
|
-
>{{ props(field()!).i18nKey ? (props(field()!).i18nKey! | translate) : props(field()!).label! }}</span
|
|
7523
|
-
>
|
|
7524
|
-
@if (props(field()!).required) {
|
|
7525
|
-
<span class="field-required">*</span>
|
|
7526
|
-
}
|
|
7527
|
-
@if (!field()?.fieldControl?.disabled) {
|
|
7528
|
-
<span class="iconfont icon-edit-flag field-editable"></span>
|
|
7529
|
-
}
|
|
7530
|
-
</label>
|
|
7531
|
-
</div>
|
|
7532
|
-
<div class="flex-1 min-h-8 pt-1 w-0 flex flex-row-reverse">
|
|
7533
|
-
<div
|
|
7534
|
-
#fieldTypeRef
|
|
7535
|
-
class="w-full">
|
|
7536
|
-
<form-type [field]="field()!"></form-type>
|
|
7537
|
-
</div>
|
|
7538
|
-
</div>
|
|
7539
|
-
</div>
|
|
7540
|
-
</div>
|
|
7541
|
-
<app-context-menu
|
|
7542
|
-
#contextMenu
|
|
7543
|
-
[target]="label"
|
|
7544
|
-
[field]="field()!"></app-context-menu>
|
|
7545
|
-
} @else {
|
|
7546
|
-
<div [class]="field()?.innerClass || 'px-4 my-1'">
|
|
7547
|
-
<div class="flex flex-row flex-nowrap items-start">
|
|
7548
|
-
<div class="flex-1 min-h-8 pt-1 w-0 flex flex-row-reverse">
|
|
7549
|
-
<div
|
|
7550
|
-
#fieldTypeRef
|
|
7551
|
-
class="w-full">
|
|
7552
|
-
<form-type [field]="field()!"></form-type>
|
|
7553
|
-
</div>
|
|
7554
|
-
</div>
|
|
7555
|
-
</div>
|
|
7556
|
-
</div>
|
|
7557
|
-
}
|
|
7558
|
-
}
|
|
7505
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: FormFieldComponent, isStandalone: true, selector: "form-field", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "fieldLabel", first: true, predicate: ["fieldLabelRef"], descendants: true }, { propertyName: "fieldComponents", predicate: FormFieldComponent, descendants: true }], ngImport: i0, template: `
|
|
7506
|
+
@if (field()?.group) {
|
|
7507
|
+
<div [class]="field()?.groupClass">
|
|
7508
|
+
@for (fchild of field()!.group; track fchild) {
|
|
7509
|
+
@if (!fchild.hide) {
|
|
7510
|
+
<div [class]="fchild.groupClass || fchild.class">
|
|
7511
|
+
<form-field
|
|
7512
|
+
class="w-full"
|
|
7513
|
+
[field]="fchild">
|
|
7514
|
+
</form-field>
|
|
7515
|
+
</div>
|
|
7516
|
+
}
|
|
7517
|
+
}
|
|
7518
|
+
</div>
|
|
7519
|
+
} @else {
|
|
7520
|
+
@if (props(field()!).label !== undefined) {
|
|
7521
|
+
<div [class]="field()?.innerClass || 'px-4 my-1'">
|
|
7522
|
+
<div class="flex flex-row flex-nowrap items-start">
|
|
7523
|
+
<div
|
|
7524
|
+
class="flex-none p-field field-label min-h-8 pt-[1.5px] flex items-center"
|
|
7525
|
+
[style]="getStyle()">
|
|
7526
|
+
<label
|
|
7527
|
+
#label
|
|
7528
|
+
[class]="labelClass()"
|
|
7529
|
+
fieldLabel
|
|
7530
|
+
[field]="field()!"
|
|
7531
|
+
[contextMenu]="contextMenu">
|
|
7532
|
+
<span
|
|
7533
|
+
style="user-select: none"
|
|
7534
|
+
#fieldLabelRef
|
|
7535
|
+
>{{ props(field()!).i18nKey ? (props(field()!).i18nKey! | translate) : props(field()!).label! }}</span
|
|
7536
|
+
>
|
|
7537
|
+
@if (props(field()!).required) {
|
|
7538
|
+
<span class="field-required">*</span>
|
|
7539
|
+
}
|
|
7540
|
+
@if (!field()?.fieldControl?.disabled) {
|
|
7541
|
+
<span class="iconfont icon-edit-flag field-editable"></span>
|
|
7542
|
+
}
|
|
7543
|
+
</label>
|
|
7544
|
+
</div>
|
|
7545
|
+
<div class="flex-1 min-h-8 pt-1 w-0 flex flex-row-reverse">
|
|
7546
|
+
<div
|
|
7547
|
+
#fieldTypeRef
|
|
7548
|
+
class="w-full">
|
|
7549
|
+
<form-type [field]="field()!"></form-type>
|
|
7550
|
+
</div>
|
|
7551
|
+
</div>
|
|
7552
|
+
</div>
|
|
7553
|
+
</div>
|
|
7554
|
+
<app-context-menu
|
|
7555
|
+
#contextMenu
|
|
7556
|
+
[target]="label"
|
|
7557
|
+
[field]="field()!"></app-context-menu>
|
|
7558
|
+
} @else {
|
|
7559
|
+
<div [class]="field()?.innerClass || 'px-4 my-1'">
|
|
7560
|
+
<div class="flex flex-row flex-nowrap items-start">
|
|
7561
|
+
<div class="flex-1 min-h-8 pt-1 w-0 flex flex-row-reverse">
|
|
7562
|
+
<div
|
|
7563
|
+
#fieldTypeRef
|
|
7564
|
+
class="w-full">
|
|
7565
|
+
<form-type [field]="field()!"></form-type>
|
|
7566
|
+
</div>
|
|
7567
|
+
</div>
|
|
7568
|
+
</div>
|
|
7569
|
+
</div>
|
|
7570
|
+
}
|
|
7571
|
+
}
|
|
7559
7572
|
`, isInline: true, styles: [".untouched{touch-action:none}.p-field>label{margin:2px;text-overflow:ellipsis;display:block;color:#1e293b}.p-field>label:not(.ng-valid).ng-dirty{color:var(--p-red-500)!important}.p-field>label:not(.ng-valid).ng-dirty>.field-required{color:var(--p-red-500)!important}.field-required{padding-left:2.5px;color:var(--p-primary-color)}.p-field>label:not(.ng-valid).ng-dirty>.field-editable{color:var(--p-red-500)!important}.field-editable{padding-left:1px;font-size:6px;color:var(--p-primary-color)}.field-label{display:inline-block;overflow-wrap:break-word;word-break:break-word;white-space:normal}\n"], dependencies: [{ kind: "component", type: FormFieldComponent, selector: "form-field", inputs: ["field"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: FormTypeComponent, selector: "form-type", inputs: ["field"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "directive", type: LabelDirective, selector: "[fieldLabel], [fieldLabel][field], [fieldLabel][contextMenu]", inputs: ["field", "contextMenu"] }, { kind: "component", type: ContextMenuComponent, selector: "app-context-menu", inputs: ["target", "field"] }] }); }
|
|
7560
7573
|
}
|
|
7561
7574
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
7562
7575
|
type: Component,
|
|
7563
|
-
args: [{ selector: 'form-field', standalone: true, imports: [ReactiveFormsModule, FormTypeComponent, TranslatePipe, LabelDirective, ContextMenuComponent], template: `
|
|
7564
|
-
@if (field()?.group) {
|
|
7565
|
-
<div [class]="field()?.groupClass">
|
|
7566
|
-
@for (fchild of field()!.group; track fchild) {
|
|
7567
|
-
@if (!fchild.hide) {
|
|
7568
|
-
<div [class]="fchild.groupClass || fchild.class">
|
|
7569
|
-
<form-field
|
|
7570
|
-
class="w-full"
|
|
7571
|
-
[field]="fchild">
|
|
7572
|
-
</form-field>
|
|
7573
|
-
</div>
|
|
7574
|
-
}
|
|
7575
|
-
}
|
|
7576
|
-
</div>
|
|
7577
|
-
} @else {
|
|
7578
|
-
@if (props(field()!).label !== undefined) {
|
|
7579
|
-
<div [class]="field()?.innerClass || 'px-4 my-1'">
|
|
7580
|
-
<div class="flex flex-row flex-nowrap items-start">
|
|
7581
|
-
<div
|
|
7582
|
-
class="flex-none p-field field-label min-h-8 pt-[1.5px] flex items-center"
|
|
7583
|
-
[style]="getStyle()">
|
|
7584
|
-
<label
|
|
7585
|
-
#label
|
|
7586
|
-
[class]="labelClass()"
|
|
7587
|
-
fieldLabel
|
|
7588
|
-
[field]="field()!"
|
|
7589
|
-
[contextMenu]="contextMenu">
|
|
7590
|
-
<span
|
|
7591
|
-
style="user-select: none"
|
|
7592
|
-
#fieldLabelRef
|
|
7593
|
-
>{{ props(field()!).i18nKey ? (props(field()!).i18nKey! | translate) : props(field()!).label! }}</span
|
|
7594
|
-
>
|
|
7595
|
-
@if (props(field()!).required) {
|
|
7596
|
-
<span class="field-required">*</span>
|
|
7597
|
-
}
|
|
7598
|
-
@if (!field()?.fieldControl?.disabled) {
|
|
7599
|
-
<span class="iconfont icon-edit-flag field-editable"></span>
|
|
7600
|
-
}
|
|
7601
|
-
</label>
|
|
7602
|
-
</div>
|
|
7603
|
-
<div class="flex-1 min-h-8 pt-1 w-0 flex flex-row-reverse">
|
|
7604
|
-
<div
|
|
7605
|
-
#fieldTypeRef
|
|
7606
|
-
class="w-full">
|
|
7607
|
-
<form-type [field]="field()!"></form-type>
|
|
7608
|
-
</div>
|
|
7609
|
-
</div>
|
|
7610
|
-
</div>
|
|
7611
|
-
</div>
|
|
7612
|
-
<app-context-menu
|
|
7613
|
-
#contextMenu
|
|
7614
|
-
[target]="label"
|
|
7615
|
-
[field]="field()!"></app-context-menu>
|
|
7616
|
-
} @else {
|
|
7617
|
-
<div [class]="field()?.innerClass || 'px-4 my-1'">
|
|
7618
|
-
<div class="flex flex-row flex-nowrap items-start">
|
|
7619
|
-
<div class="flex-1 min-h-8 pt-1 w-0 flex flex-row-reverse">
|
|
7620
|
-
<div
|
|
7621
|
-
#fieldTypeRef
|
|
7622
|
-
class="w-full">
|
|
7623
|
-
<form-type [field]="field()!"></form-type>
|
|
7624
|
-
</div>
|
|
7625
|
-
</div>
|
|
7626
|
-
</div>
|
|
7627
|
-
</div>
|
|
7628
|
-
}
|
|
7629
|
-
}
|
|
7576
|
+
args: [{ selector: 'form-field', standalone: true, imports: [ReactiveFormsModule, FormTypeComponent, TranslatePipe, LabelDirective, ContextMenuComponent], template: `
|
|
7577
|
+
@if (field()?.group) {
|
|
7578
|
+
<div [class]="field()?.groupClass">
|
|
7579
|
+
@for (fchild of field()!.group; track fchild) {
|
|
7580
|
+
@if (!fchild.hide) {
|
|
7581
|
+
<div [class]="fchild.groupClass || fchild.class">
|
|
7582
|
+
<form-field
|
|
7583
|
+
class="w-full"
|
|
7584
|
+
[field]="fchild">
|
|
7585
|
+
</form-field>
|
|
7586
|
+
</div>
|
|
7587
|
+
}
|
|
7588
|
+
}
|
|
7589
|
+
</div>
|
|
7590
|
+
} @else {
|
|
7591
|
+
@if (props(field()!).label !== undefined) {
|
|
7592
|
+
<div [class]="field()?.innerClass || 'px-4 my-1'">
|
|
7593
|
+
<div class="flex flex-row flex-nowrap items-start">
|
|
7594
|
+
<div
|
|
7595
|
+
class="flex-none p-field field-label min-h-8 pt-[1.5px] flex items-center"
|
|
7596
|
+
[style]="getStyle()">
|
|
7597
|
+
<label
|
|
7598
|
+
#label
|
|
7599
|
+
[class]="labelClass()"
|
|
7600
|
+
fieldLabel
|
|
7601
|
+
[field]="field()!"
|
|
7602
|
+
[contextMenu]="contextMenu">
|
|
7603
|
+
<span
|
|
7604
|
+
style="user-select: none"
|
|
7605
|
+
#fieldLabelRef
|
|
7606
|
+
>{{ props(field()!).i18nKey ? (props(field()!).i18nKey! | translate) : props(field()!).label! }}</span
|
|
7607
|
+
>
|
|
7608
|
+
@if (props(field()!).required) {
|
|
7609
|
+
<span class="field-required">*</span>
|
|
7610
|
+
}
|
|
7611
|
+
@if (!field()?.fieldControl?.disabled) {
|
|
7612
|
+
<span class="iconfont icon-edit-flag field-editable"></span>
|
|
7613
|
+
}
|
|
7614
|
+
</label>
|
|
7615
|
+
</div>
|
|
7616
|
+
<div class="flex-1 min-h-8 pt-1 w-0 flex flex-row-reverse">
|
|
7617
|
+
<div
|
|
7618
|
+
#fieldTypeRef
|
|
7619
|
+
class="w-full">
|
|
7620
|
+
<form-type [field]="field()!"></form-type>
|
|
7621
|
+
</div>
|
|
7622
|
+
</div>
|
|
7623
|
+
</div>
|
|
7624
|
+
</div>
|
|
7625
|
+
<app-context-menu
|
|
7626
|
+
#contextMenu
|
|
7627
|
+
[target]="label"
|
|
7628
|
+
[field]="field()!"></app-context-menu>
|
|
7629
|
+
} @else {
|
|
7630
|
+
<div [class]="field()?.innerClass || 'px-4 my-1'">
|
|
7631
|
+
<div class="flex flex-row flex-nowrap items-start">
|
|
7632
|
+
<div class="flex-1 min-h-8 pt-1 w-0 flex flex-row-reverse">
|
|
7633
|
+
<div
|
|
7634
|
+
#fieldTypeRef
|
|
7635
|
+
class="w-full">
|
|
7636
|
+
<form-type [field]="field()!"></form-type>
|
|
7637
|
+
</div>
|
|
7638
|
+
</div>
|
|
7639
|
+
</div>
|
|
7640
|
+
</div>
|
|
7641
|
+
}
|
|
7642
|
+
}
|
|
7630
7643
|
`, styles: [".untouched{touch-action:none}.p-field>label{margin:2px;text-overflow:ellipsis;display:block;color:#1e293b}.p-field>label:not(.ng-valid).ng-dirty{color:var(--p-red-500)!important}.p-field>label:not(.ng-valid).ng-dirty>.field-required{color:var(--p-red-500)!important}.field-required{padding-left:2.5px;color:var(--p-primary-color)}.p-field>label:not(.ng-valid).ng-dirty>.field-editable{color:var(--p-red-500)!important}.field-editable{padding-left:1px;font-size:6px;color:var(--p-primary-color)}.field-label{display:inline-block;overflow-wrap:break-word;word-break:break-word;white-space:normal}\n"] }]
|
|
7631
7644
|
}], ctorParameters: () => [], propDecorators: { fieldComponents: [{
|
|
7632
7645
|
type: ViewChildren,
|
|
@@ -8143,11 +8156,11 @@ class CrumbActionComponent extends AmComponent {
|
|
|
8143
8156
|
this.action.saveSignal.set(false);
|
|
8144
8157
|
}
|
|
8145
8158
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CrumbActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8146
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: CrumbActionComponent, isStandalone: true, selector: "app-crumb-action", inputs: { isShowCog: { classPropertyName: "isShowCog", publicName: "isShowCog", isSignal: true, isRequired: false, transformFunction: null }, addVisible: { classPropertyName: "addVisible", publicName: "addVisible", isSignal: true, isRequired: false, transformFunction: null }, importVisible: { classPropertyName: "importVisible", publicName: "importVisible", isSignal: true, isRequired: false, transformFunction: null }, exportVisible: { classPropertyName: "exportVisible", publicName: "exportVisible", isSignal: true, isRequired: false, transformFunction: null }, newUrl: { classPropertyName: "newUrl", publicName: "newUrl", isSignal: true, isRequired: false, transformFunction: null }, configNewPath: { classPropertyName: "configNewPath", publicName: "configNewPath", isSignal: true, isRequired: false, transformFunction: null }, onExport: { classPropertyName: "onExport", publicName: "onExport", isSignal: true, isRequired: false, transformFunction: null }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: true, isRequired: false, transformFunction: null }, isList: { classPropertyName: "isList", publicName: "isList", isSignal: true, isRequired: false, transformFunction: null }, authLevel: { classPropertyName: "authLevel", publicName: "authLevel", isSignal: true, isRequired: false, transformFunction: null }, actionList: { classPropertyName: "actionList", publicName: "actionList", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, menus: { classPropertyName: "menus", publicName: "menus", isSignal: true, isRequired: false, transformFunction: null }, saveBtnDisable: { classPropertyName: "saveBtnDisable", publicName: "saveBtnDisable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { saveEvent: "saveEvent", cancelEvent: "cancelEvent", actionEvent: "actionEvent" }, host: { listeners: { "window:resize": "resize($event)" } }, queries: [{ propertyName: "newBtnTemplateRef", first: true, predicate: ["newBtn"] }], viewQueries: [{ propertyName: "op", first: true, predicate: ["op"], descendants: true }, { propertyName: "listOp", first: true, predicate: ["listOp"], descendants: true }, { propertyName: "actOp", first: true, predicate: ["actOp"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"flex items-center gap-1\">\n <div class=\"left-btn flex gap-1\">\n <!-- TODO \u6743\u9650\u6570\u636E\u63A5\u5165 -->\n @if(!newBtnTemplateRef){\n @if(this.authLevel() > 2 && addVisible()){\n <p-button (click)=\"goNew()\" [outlined]=\"outlined()\">{{'app.create' | translate}}</p-button>\n }\n } @else {\n <ng-container *ngTemplateOutlet=\"newBtnTemplateRef\"></ng-container>\n }\n </div>\n @if(crumbList().length > 0){\n <div class=\"flex flex-col leading-none\">\n <div class=\"hidden md:flex\">\n @if(crumbList().length <= 2){\n @for(fchild of crumbList(); track fchild.url){\n <div class=\"crumb-title cursor-pointer text-[12px] max-w-[120px] overflow-hidden whitespace-nowrap text-ellipsis\" (click)=\"back(fchild)\">\n @if(fchild.i18nKey!= ''){\n {{ fchild!.i18nKey | translate}}\n } @else {\n {{fchild.title}}\n }\n </div>\n }\n } @else {\n <div class=\"flex\">\n <div class=\"crumb-title cursor-pointer select-crumb\">\n <div class=\"w-[17px] h-[17px] flex items-center font-bold text-[13px]\" (click)=\"toggle($event)\">\n ...\n </div>\n <p-tieredmenu #op [model]=\"crumbFront\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\n <a pRipple class=\"flex items-center p-tieredmenu-item-link\">\n <span class=\"ml-2 w-full\" (click)=\"back(item)\">\n @if(item.i18nKey!= ''){\n {{ item!.i18nKey | translate}}\n } @else {\n {{item.title}}\n }\n </span>\n </a>\n </ng-template>\n </p-tieredmenu>\n </div>\n @for(item of crumbEnd;track item.url){\n <div class=\"crumb-title cursor-pointer text-[12px] max-w-[120px] overflow-hidden whitespace-nowrap text-ellipsis\" (click)=\"back(item)\">\n @if(item.i18nKey!= ''){\n {{ item!.i18nKey | translate}}\n } @else {\n {{item.title}}\n }\n </div>\n }\n </div>\n }\n \n </div>\n <div class=\"min-w-0 text-text-color text-[12px] title-action\">\n <span\n [title]=\"isNew? 'New':crumbTitle().title\" \n class=\"hidden md:inline-block max-w-[150px] overflow-hidden text-ellipsis whitespace-nowrap\">\n {{isNew? 'New':crumbTitle().title}}\n </span>\n @if(isShowCog()){\n @if(isList()){\n <p-button variant=\"text\" severity=\"secondary\" icon=\"pi pi-cog\" aria-label=\"\u64CD\u4F5C\" (onClick)=\"toggleListOp($event)\"/>\n @if(displayOpItems().length > 0){\n <p-tieredmenu #listOp [model]=\"displayOpItems()\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\n <a pRipple class=\"flex items-center p-tieredmenu-item-link\" (click)=\"listAct(item)\">\n <span [class]=\"item.icon\" class=\"p-tieredmenu-item-icon\"></span>\n <span class=\"ml-2\">{{ item.label | translate }}</span>\n <span *ngIf=\"item.shortcut\" class=\"ml-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">\n {{ item.shortcut }}\n </span>\n <i *ngIf=\"hasSubmenu\" class=\"pi pi-angle-right ml-auto\"></i>\n </a>\n </ng-template>\n </p-tieredmenu>\n }\n } @else {\n <p-button variant=\"text\" severity=\"secondary\" icon=\"pi pi-cog\" aria-label=\"\u64CD\u4F5C\" (onClick)=\"toggleAct($event)\"/>\n @if(actionList().length > 0 && showAct){\n <p-tieredmenu #actOp [model]=\"actionList()\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\n <a pRipple \n class=\"flex items-center p-tieredmenu-item-link\"\n [class]=\"(item.auth || 0) > (authLevel() || 0) || !!item.btnHidden?.(data()) ? 'hidden' : 'block'\" \n (click)=\"actEvent(item)\">\n <span class=\"ml-2\">{{item.i18nKey ? (item.i18nKey | translate) : item.label}}</span>\n <span *ngIf=\"item.shortcut\" class=\"ml-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">\n {{ item.shortcut }}\n </span>\n <i *ngIf=\"hasSubmenu\" class=\"pi pi-angle-right ml-auto\"></i>\n </a>\n </ng-template>\n </p-tieredmenu>\n }\n }\n }\n @if(this.authLevel() > 2 && !isList()){\n <p-button \n variant=\"text\" \n [severity]=\"setSaveClass()\" \n icon=\"pi pi-cloud-upload\" \n [loading]=\"loading()\"\n aria-label=\"\u624B\u52A8\u4FDD\u5B58\"\n [disabled]=\"saveBtnDisable()\" \n class=\"p-0\"\n (click)=\"handleSave()\">\n </p-button>\n }\n <!-- @if(crumbList().length >= 2){ -->\n <p-button \n variant=\"text\" \n severity=\"secondary\" \n icon=\"pi pi-times\" \n aria-label=\"\u5173\u95ED\" \n class=\"p-0\"\n (click)=\"closeNew()\">\n </p-button>\n <!-- } -->\n </div>\n </div>\n } @else {\n <!-- \u521D\u59CB\u8282\u70B9 -->\n <div class=\"min-w-0 flex items-center text-[14px] text-text-color\">\n <span \n [title]=\"crumbTitle().i18nKey != '' ? (crumbTitle().i18nKey | translate) : crumbTitle().title\"\n class=\"hidden md:inline-block max-w-[120px] overflow-hidden whitespace-nowrap text-ellipsis\">\n @if(crumbTitle().i18nKey != ''){\n {{crumbTitle().i18nKey | translate}}\n } @else {\n {{crumbTitle().title}}\n }\n </span>\n @if(isShowCog()){\n <p-button \n variant=\"text\"\n severity=\"secondary\" \n icon=\"pi pi-cog\" \n aria-label=\"\u64CD\u4F5C\" \n (onClick)=\"toggleListOp($event)\"/>\n @if(displayOpItems().length > 0){\n <p-tieredmenu #listOp [model]=\"displayOpItems()\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\n <a pRipple class=\"flex items-center p-tieredmenu-item-link\" (click)=\"listAct(item)\">\n <span [class]=\"item.icon\" class=\"p-tieredmenu-item-icon\"></span>\n <span class=\"ml-2\">{{ item.label | translate }}</span>\n <span *ngIf=\"item.shortcut\" class=\"ml-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">\n {{ item.shortcut }}\n </span>\n <i *ngIf=\"hasSubmenu\" class=\"pi pi-angle-right ml-auto\"></i>\n </a>\n </ng-template>\n </p-tieredmenu>\n }\n \n }\n @if(!isList()){\n <p-button \n variant=\"text\" \n severity=\"secondary\" \n icon=\"pi pi-cloud-upload\" \n aria-label=\"\u624B\u52A8\u4FDD\u5B58\"\n [disabled]=\"saveBtnDisable()\" \n class=\"p-0\"\n (click)=\"handleSave()\">\n </p-button>\n <p-button \n variant=\"text\" \n severity=\"secondary\" \n icon=\"pi pi-times\" \n aria-label=\"\u5173\u95ED\" \n class=\"p-0\"\n (click)=\"closeNew()\">\n </p-button>\n }\n </div>\n }\n \n</div>", styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}.crumb-title{color:var(--p-primary-color)}.crumb-title+.crumb-title{padding-left:.5rem}.crumb-title+.crumb-title:before{padding-right:.5rem;content:var(--breadcrumb-divider, \"/\")}:host::ng-deep .p-button-text.p-button-secondary{color:var(--p-surface-700)}:host::ng-deep .title-action .p-button{padding:0}:host::ng-deep .new-action .p-button{padding:0}:host::ng-deep .new-action .p-button button{padding-top:2px;height:100%;align-items:center}:host::ng-deep .select-crumb .p-button{padding:0;background-color:#fff;line-height:1}:host::ng-deep .select-crumb .p-button button{padding:0;width:17px;height:17px}:host::ng-deep .p-popover-content{padding:.5rem}:host::ng-deep .left-btn .p-button{height:33px;min-width:51px}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TieredMenu, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: ["model", "popup", "style", "styleClass", "appendTo", "breakpoint", "autoZIndex", "baseZIndex", "autoDisplay", "showTransitionOptions", "hideTransitionOptions", "id", "ariaLabel", "ariaLabelledBy", "disabled", "tabindex"], outputs: ["onShow", "onHide"] }] }); }
|
|
8159
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: CrumbActionComponent, isStandalone: true, selector: "app-crumb-action", inputs: { isShowCog: { classPropertyName: "isShowCog", publicName: "isShowCog", isSignal: true, isRequired: false, transformFunction: null }, addVisible: { classPropertyName: "addVisible", publicName: "addVisible", isSignal: true, isRequired: false, transformFunction: null }, importVisible: { classPropertyName: "importVisible", publicName: "importVisible", isSignal: true, isRequired: false, transformFunction: null }, exportVisible: { classPropertyName: "exportVisible", publicName: "exportVisible", isSignal: true, isRequired: false, transformFunction: null }, newUrl: { classPropertyName: "newUrl", publicName: "newUrl", isSignal: true, isRequired: false, transformFunction: null }, configNewPath: { classPropertyName: "configNewPath", publicName: "configNewPath", isSignal: true, isRequired: false, transformFunction: null }, onExport: { classPropertyName: "onExport", publicName: "onExport", isSignal: true, isRequired: false, transformFunction: null }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: true, isRequired: false, transformFunction: null }, isList: { classPropertyName: "isList", publicName: "isList", isSignal: true, isRequired: false, transformFunction: null }, authLevel: { classPropertyName: "authLevel", publicName: "authLevel", isSignal: true, isRequired: false, transformFunction: null }, actionList: { classPropertyName: "actionList", publicName: "actionList", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, menus: { classPropertyName: "menus", publicName: "menus", isSignal: true, isRequired: false, transformFunction: null }, saveBtnDisable: { classPropertyName: "saveBtnDisable", publicName: "saveBtnDisable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { saveEvent: "saveEvent", cancelEvent: "cancelEvent", actionEvent: "actionEvent" }, host: { listeners: { "window:resize": "resize($event)" } }, queries: [{ propertyName: "newBtnTemplateRef", first: true, predicate: ["newBtn"] }], viewQueries: [{ propertyName: "op", first: true, predicate: ["op"], descendants: true }, { propertyName: "listOp", first: true, predicate: ["listOp"], descendants: true }, { propertyName: "actOp", first: true, predicate: ["actOp"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"flex items-center gap-1\">\r\n <div class=\"left-btn flex gap-1\">\r\n <!-- TODO \u6743\u9650\u6570\u636E\u63A5\u5165 -->\r\n @if(!newBtnTemplateRef){\r\n @if(this.authLevel() > 2 && addVisible()){\r\n <p-button (click)=\"goNew()\" [outlined]=\"outlined()\">{{'app.create' | translate}}</p-button>\r\n }\r\n } @else {\r\n <ng-container *ngTemplateOutlet=\"newBtnTemplateRef\"></ng-container>\r\n }\r\n </div>\r\n @if(crumbList().length > 0){\r\n <div class=\"flex flex-col leading-none\">\r\n <div class=\"hidden md:flex\">\r\n @if(crumbList().length <= 2){\r\n @for(fchild of crumbList(); track fchild.url){\r\n <div class=\"crumb-title cursor-pointer text-[12px] max-w-[120px] overflow-hidden whitespace-nowrap text-ellipsis\" (click)=\"back(fchild)\">\r\n @if(fchild.i18nKey!= ''){\r\n {{ fchild!.i18nKey | translate}}\r\n } @else {\r\n {{fchild.title}}\r\n }\r\n </div>\r\n }\r\n } @else {\r\n <div class=\"flex\">\r\n <div class=\"crumb-title cursor-pointer select-crumb\">\r\n <div class=\"w-[17px] h-[17px] flex items-center font-bold text-[13px]\" (click)=\"toggle($event)\">\r\n ...\r\n </div>\r\n <p-tieredmenu #op [model]=\"crumbFront\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\r\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\r\n <a pRipple class=\"flex items-center p-tieredmenu-item-link\">\r\n <span class=\"ml-2 w-full\" (click)=\"back(item)\">\r\n @if(item.i18nKey!= ''){\r\n {{ item!.i18nKey | translate}}\r\n } @else {\r\n {{item.title}}\r\n }\r\n </span>\r\n </a>\r\n </ng-template>\r\n </p-tieredmenu>\r\n </div>\r\n @for(item of crumbEnd;track item.url){\r\n <div class=\"crumb-title cursor-pointer text-[12px] max-w-[120px] overflow-hidden whitespace-nowrap text-ellipsis\" (click)=\"back(item)\">\r\n @if(item.i18nKey!= ''){\r\n {{ item!.i18nKey | translate}}\r\n } @else {\r\n {{item.title}}\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n \r\n </div>\r\n <div class=\"min-w-0 text-text-color text-[12px] title-action\">\r\n <span\r\n [title]=\"isNew? 'New':crumbTitle().title\" \r\n class=\"hidden md:inline-block max-w-[150px] overflow-hidden text-ellipsis whitespace-nowrap\">\r\n {{isNew? 'New':crumbTitle().title}}\r\n </span>\r\n @if(isShowCog()){\r\n @if(isList()){\r\n <p-button variant=\"text\" severity=\"secondary\" icon=\"pi pi-cog\" aria-label=\"\u64CD\u4F5C\" (onClick)=\"toggleListOp($event)\"/>\r\n @if(displayOpItems().length > 0){\r\n <p-tieredmenu #listOp [model]=\"displayOpItems()\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\r\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\r\n <a pRipple class=\"flex items-center p-tieredmenu-item-link\" (click)=\"listAct(item)\">\r\n <span [class]=\"item.icon\" class=\"p-tieredmenu-item-icon\"></span>\r\n <span class=\"ml-2\">{{ item.label | translate }}</span>\r\n <span *ngIf=\"item.shortcut\" class=\"ml-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">\r\n {{ item.shortcut }}\r\n </span>\r\n <i *ngIf=\"hasSubmenu\" class=\"pi pi-angle-right ml-auto\"></i>\r\n </a>\r\n </ng-template>\r\n </p-tieredmenu>\r\n }\r\n } @else {\r\n <p-button variant=\"text\" severity=\"secondary\" icon=\"pi pi-cog\" aria-label=\"\u64CD\u4F5C\" (onClick)=\"toggleAct($event)\"/>\r\n @if(actionList().length > 0 && showAct){\r\n <p-tieredmenu #actOp [model]=\"actionList()\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\r\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\r\n <a pRipple \r\n class=\"flex items-center p-tieredmenu-item-link\"\r\n [class]=\"(item.auth || 0) > (authLevel() || 0) || !!item.btnHidden?.(data()) ? 'hidden' : 'block'\" \r\n (click)=\"actEvent(item)\">\r\n <span class=\"ml-2\">{{item.i18nKey ? (item.i18nKey | translate) : item.label}}</span>\r\n <span *ngIf=\"item.shortcut\" class=\"ml-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">\r\n {{ item.shortcut }}\r\n </span>\r\n <i *ngIf=\"hasSubmenu\" class=\"pi pi-angle-right ml-auto\"></i>\r\n </a>\r\n </ng-template>\r\n </p-tieredmenu>\r\n }\r\n }\r\n }\r\n @if(this.authLevel() > 2 && !isList()){\r\n <p-button \r\n variant=\"text\" \r\n [severity]=\"setSaveClass()\" \r\n icon=\"pi pi-cloud-upload\" \r\n [loading]=\"loading()\"\r\n aria-label=\"\u624B\u52A8\u4FDD\u5B58\"\r\n [disabled]=\"saveBtnDisable()\" \r\n class=\"p-0\"\r\n (click)=\"handleSave()\">\r\n </p-button>\r\n }\r\n <!-- @if(crumbList().length >= 2){ -->\r\n <p-button \r\n variant=\"text\" \r\n severity=\"secondary\" \r\n icon=\"pi pi-times\" \r\n aria-label=\"\u5173\u95ED\" \r\n class=\"p-0\"\r\n (click)=\"closeNew()\">\r\n </p-button>\r\n <!-- } -->\r\n </div>\r\n </div>\r\n } @else {\r\n <!-- \u521D\u59CB\u8282\u70B9 -->\r\n <div class=\"min-w-0 flex items-center text-[14px] text-text-color\">\r\n <span \r\n [title]=\"crumbTitle().i18nKey != '' ? (crumbTitle().i18nKey | translate) : crumbTitle().title\"\r\n class=\"hidden md:inline-block max-w-[120px] overflow-hidden whitespace-nowrap text-ellipsis\">\r\n @if(crumbTitle().i18nKey != ''){\r\n {{crumbTitle().i18nKey | translate}}\r\n } @else {\r\n {{crumbTitle().title}}\r\n }\r\n </span>\r\n @if(isShowCog()){\r\n <p-button \r\n variant=\"text\"\r\n severity=\"secondary\" \r\n icon=\"pi pi-cog\" \r\n aria-label=\"\u64CD\u4F5C\" \r\n (onClick)=\"toggleListOp($event)\"/>\r\n @if(displayOpItems().length > 0){\r\n <p-tieredmenu #listOp [model]=\"displayOpItems()\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\r\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\r\n <a pRipple class=\"flex items-center p-tieredmenu-item-link\" (click)=\"listAct(item)\">\r\n <span [class]=\"item.icon\" class=\"p-tieredmenu-item-icon\"></span>\r\n <span class=\"ml-2\">{{ item.label | translate }}</span>\r\n <span *ngIf=\"item.shortcut\" class=\"ml-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">\r\n {{ item.shortcut }}\r\n </span>\r\n <i *ngIf=\"hasSubmenu\" class=\"pi pi-angle-right ml-auto\"></i>\r\n </a>\r\n </ng-template>\r\n </p-tieredmenu>\r\n }\r\n \r\n }\r\n @if(!isList()){\r\n <p-button \r\n variant=\"text\" \r\n severity=\"secondary\" \r\n icon=\"pi pi-cloud-upload\" \r\n aria-label=\"\u624B\u52A8\u4FDD\u5B58\"\r\n [disabled]=\"saveBtnDisable()\" \r\n class=\"p-0\"\r\n (click)=\"handleSave()\">\r\n </p-button>\r\n <p-button \r\n variant=\"text\" \r\n severity=\"secondary\" \r\n icon=\"pi pi-times\" \r\n aria-label=\"\u5173\u95ED\" \r\n class=\"p-0\"\r\n (click)=\"closeNew()\">\r\n </p-button>\r\n }\r\n </div>\r\n }\r\n \r\n</div>", styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}.crumb-title{color:var(--p-primary-color)}.crumb-title+.crumb-title{padding-left:.5rem}.crumb-title+.crumb-title:before{padding-right:.5rem;content:var(--breadcrumb-divider, \"/\")}:host::ng-deep .p-button-text.p-button-secondary{color:var(--p-surface-700)}:host::ng-deep .title-action .p-button{padding:0}:host::ng-deep .new-action .p-button{padding:0}:host::ng-deep .new-action .p-button button{padding-top:2px;height:100%;align-items:center}:host::ng-deep .select-crumb .p-button{padding:0;background-color:#fff;line-height:1}:host::ng-deep .select-crumb .p-button button{padding:0;width:17px;height:17px}:host::ng-deep .p-popover-content{padding:.5rem}:host::ng-deep .left-btn .p-button{height:33px;min-width:51px}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TieredMenu, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: ["model", "popup", "style", "styleClass", "appendTo", "breakpoint", "autoZIndex", "baseZIndex", "autoDisplay", "showTransitionOptions", "hideTransitionOptions", "id", "ariaLabel", "ariaLabelledBy", "disabled", "tabindex"], outputs: ["onShow", "onHide"] }] }); }
|
|
8147
8160
|
}
|
|
8148
8161
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CrumbActionComponent, decorators: [{
|
|
8149
8162
|
type: Component,
|
|
8150
|
-
args: [{ selector: 'app-crumb-action', standalone: true, imports: [ButtonModule, TranslatePipe, CommonModule, TieredMenu], template: "<div class=\"flex items-center gap-1\">\n <div class=\"left-btn flex gap-1\">\n <!-- TODO \u6743\u9650\u6570\u636E\u63A5\u5165 -->\n @if(!newBtnTemplateRef){\n @if(this.authLevel() > 2 && addVisible()){\n <p-button (click)=\"goNew()\" [outlined]=\"outlined()\">{{'app.create' | translate}}</p-button>\n }\n } @else {\n <ng-container *ngTemplateOutlet=\"newBtnTemplateRef\"></ng-container>\n }\n </div>\n @if(crumbList().length > 0){\n <div class=\"flex flex-col leading-none\">\n <div class=\"hidden md:flex\">\n @if(crumbList().length <= 2){\n @for(fchild of crumbList(); track fchild.url){\n <div class=\"crumb-title cursor-pointer text-[12px] max-w-[120px] overflow-hidden whitespace-nowrap text-ellipsis\" (click)=\"back(fchild)\">\n @if(fchild.i18nKey!= ''){\n {{ fchild!.i18nKey | translate}}\n } @else {\n {{fchild.title}}\n }\n </div>\n }\n } @else {\n <div class=\"flex\">\n <div class=\"crumb-title cursor-pointer select-crumb\">\n <div class=\"w-[17px] h-[17px] flex items-center font-bold text-[13px]\" (click)=\"toggle($event)\">\n ...\n </div>\n <p-tieredmenu #op [model]=\"crumbFront\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\n <a pRipple class=\"flex items-center p-tieredmenu-item-link\">\n <span class=\"ml-2 w-full\" (click)=\"back(item)\">\n @if(item.i18nKey!= ''){\n {{ item!.i18nKey | translate}}\n } @else {\n {{item.title}}\n }\n </span>\n </a>\n </ng-template>\n </p-tieredmenu>\n </div>\n @for(item of crumbEnd;track item.url){\n <div class=\"crumb-title cursor-pointer text-[12px] max-w-[120px] overflow-hidden whitespace-nowrap text-ellipsis\" (click)=\"back(item)\">\n @if(item.i18nKey!= ''){\n {{ item!.i18nKey | translate}}\n } @else {\n {{item.title}}\n }\n </div>\n }\n </div>\n }\n \n </div>\n <div class=\"min-w-0 text-text-color text-[12px] title-action\">\n <span\n [title]=\"isNew? 'New':crumbTitle().title\" \n class=\"hidden md:inline-block max-w-[150px] overflow-hidden text-ellipsis whitespace-nowrap\">\n {{isNew? 'New':crumbTitle().title}}\n </span>\n @if(isShowCog()){\n @if(isList()){\n <p-button variant=\"text\" severity=\"secondary\" icon=\"pi pi-cog\" aria-label=\"\u64CD\u4F5C\" (onClick)=\"toggleListOp($event)\"/>\n @if(displayOpItems().length > 0){\n <p-tieredmenu #listOp [model]=\"displayOpItems()\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\n <a pRipple class=\"flex items-center p-tieredmenu-item-link\" (click)=\"listAct(item)\">\n <span [class]=\"item.icon\" class=\"p-tieredmenu-item-icon\"></span>\n <span class=\"ml-2\">{{ item.label | translate }}</span>\n <span *ngIf=\"item.shortcut\" class=\"ml-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">\n {{ item.shortcut }}\n </span>\n <i *ngIf=\"hasSubmenu\" class=\"pi pi-angle-right ml-auto\"></i>\n </a>\n </ng-template>\n </p-tieredmenu>\n }\n } @else {\n <p-button variant=\"text\" severity=\"secondary\" icon=\"pi pi-cog\" aria-label=\"\u64CD\u4F5C\" (onClick)=\"toggleAct($event)\"/>\n @if(actionList().length > 0 && showAct){\n <p-tieredmenu #actOp [model]=\"actionList()\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\n <a pRipple \n class=\"flex items-center p-tieredmenu-item-link\"\n [class]=\"(item.auth || 0) > (authLevel() || 0) || !!item.btnHidden?.(data()) ? 'hidden' : 'block'\" \n (click)=\"actEvent(item)\">\n <span class=\"ml-2\">{{item.i18nKey ? (item.i18nKey | translate) : item.label}}</span>\n <span *ngIf=\"item.shortcut\" class=\"ml-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">\n {{ item.shortcut }}\n </span>\n <i *ngIf=\"hasSubmenu\" class=\"pi pi-angle-right ml-auto\"></i>\n </a>\n </ng-template>\n </p-tieredmenu>\n }\n }\n }\n @if(this.authLevel() > 2 && !isList()){\n <p-button \n variant=\"text\" \n [severity]=\"setSaveClass()\" \n icon=\"pi pi-cloud-upload\" \n [loading]=\"loading()\"\n aria-label=\"\u624B\u52A8\u4FDD\u5B58\"\n [disabled]=\"saveBtnDisable()\" \n class=\"p-0\"\n (click)=\"handleSave()\">\n </p-button>\n }\n <!-- @if(crumbList().length >= 2){ -->\n <p-button \n variant=\"text\" \n severity=\"secondary\" \n icon=\"pi pi-times\" \n aria-label=\"\u5173\u95ED\" \n class=\"p-0\"\n (click)=\"closeNew()\">\n </p-button>\n <!-- } -->\n </div>\n </div>\n } @else {\n <!-- \u521D\u59CB\u8282\u70B9 -->\n <div class=\"min-w-0 flex items-center text-[14px] text-text-color\">\n <span \n [title]=\"crumbTitle().i18nKey != '' ? (crumbTitle().i18nKey | translate) : crumbTitle().title\"\n class=\"hidden md:inline-block max-w-[120px] overflow-hidden whitespace-nowrap text-ellipsis\">\n @if(crumbTitle().i18nKey != ''){\n {{crumbTitle().i18nKey | translate}}\n } @else {\n {{crumbTitle().title}}\n }\n </span>\n @if(isShowCog()){\n <p-button \n variant=\"text\"\n severity=\"secondary\" \n icon=\"pi pi-cog\" \n aria-label=\"\u64CD\u4F5C\" \n (onClick)=\"toggleListOp($event)\"/>\n @if(displayOpItems().length > 0){\n <p-tieredmenu #listOp [model]=\"displayOpItems()\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\n <a pRipple class=\"flex items-center p-tieredmenu-item-link\" (click)=\"listAct(item)\">\n <span [class]=\"item.icon\" class=\"p-tieredmenu-item-icon\"></span>\n <span class=\"ml-2\">{{ item.label | translate }}</span>\n <span *ngIf=\"item.shortcut\" class=\"ml-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">\n {{ item.shortcut }}\n </span>\n <i *ngIf=\"hasSubmenu\" class=\"pi pi-angle-right ml-auto\"></i>\n </a>\n </ng-template>\n </p-tieredmenu>\n }\n \n }\n @if(!isList()){\n <p-button \n variant=\"text\" \n severity=\"secondary\" \n icon=\"pi pi-cloud-upload\" \n aria-label=\"\u624B\u52A8\u4FDD\u5B58\"\n [disabled]=\"saveBtnDisable()\" \n class=\"p-0\"\n (click)=\"handleSave()\">\n </p-button>\n <p-button \n variant=\"text\" \n severity=\"secondary\" \n icon=\"pi pi-times\" \n aria-label=\"\u5173\u95ED\" \n class=\"p-0\"\n (click)=\"closeNew()\">\n </p-button>\n }\n </div>\n }\n \n</div>", styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}.crumb-title{color:var(--p-primary-color)}.crumb-title+.crumb-title{padding-left:.5rem}.crumb-title+.crumb-title:before{padding-right:.5rem;content:var(--breadcrumb-divider, \"/\")}:host::ng-deep .p-button-text.p-button-secondary{color:var(--p-surface-700)}:host::ng-deep .title-action .p-button{padding:0}:host::ng-deep .new-action .p-button{padding:0}:host::ng-deep .new-action .p-button button{padding-top:2px;height:100%;align-items:center}:host::ng-deep .select-crumb .p-button{padding:0;background-color:#fff;line-height:1}:host::ng-deep .select-crumb .p-button button{padding:0;width:17px;height:17px}:host::ng-deep .p-popover-content{padding:.5rem}:host::ng-deep .left-btn .p-button{height:33px;min-width:51px}\n"] }]
|
|
8163
|
+
args: [{ selector: 'app-crumb-action', standalone: true, imports: [ButtonModule, TranslatePipe, CommonModule, TieredMenu], template: "<div class=\"flex items-center gap-1\">\r\n <div class=\"left-btn flex gap-1\">\r\n <!-- TODO \u6743\u9650\u6570\u636E\u63A5\u5165 -->\r\n @if(!newBtnTemplateRef){\r\n @if(this.authLevel() > 2 && addVisible()){\r\n <p-button (click)=\"goNew()\" [outlined]=\"outlined()\">{{'app.create' | translate}}</p-button>\r\n }\r\n } @else {\r\n <ng-container *ngTemplateOutlet=\"newBtnTemplateRef\"></ng-container>\r\n }\r\n </div>\r\n @if(crumbList().length > 0){\r\n <div class=\"flex flex-col leading-none\">\r\n <div class=\"hidden md:flex\">\r\n @if(crumbList().length <= 2){\r\n @for(fchild of crumbList(); track fchild.url){\r\n <div class=\"crumb-title cursor-pointer text-[12px] max-w-[120px] overflow-hidden whitespace-nowrap text-ellipsis\" (click)=\"back(fchild)\">\r\n @if(fchild.i18nKey!= ''){\r\n {{ fchild!.i18nKey | translate}}\r\n } @else {\r\n {{fchild.title}}\r\n }\r\n </div>\r\n }\r\n } @else {\r\n <div class=\"flex\">\r\n <div class=\"crumb-title cursor-pointer select-crumb\">\r\n <div class=\"w-[17px] h-[17px] flex items-center font-bold text-[13px]\" (click)=\"toggle($event)\">\r\n ...\r\n </div>\r\n <p-tieredmenu #op [model]=\"crumbFront\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\r\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\r\n <a pRipple class=\"flex items-center p-tieredmenu-item-link\">\r\n <span class=\"ml-2 w-full\" (click)=\"back(item)\">\r\n @if(item.i18nKey!= ''){\r\n {{ item!.i18nKey | translate}}\r\n } @else {\r\n {{item.title}}\r\n }\r\n </span>\r\n </a>\r\n </ng-template>\r\n </p-tieredmenu>\r\n </div>\r\n @for(item of crumbEnd;track item.url){\r\n <div class=\"crumb-title cursor-pointer text-[12px] max-w-[120px] overflow-hidden whitespace-nowrap text-ellipsis\" (click)=\"back(item)\">\r\n @if(item.i18nKey!= ''){\r\n {{ item!.i18nKey | translate}}\r\n } @else {\r\n {{item.title}}\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n \r\n </div>\r\n <div class=\"min-w-0 text-text-color text-[12px] title-action\">\r\n <span\r\n [title]=\"isNew? 'New':crumbTitle().title\" \r\n class=\"hidden md:inline-block max-w-[150px] overflow-hidden text-ellipsis whitespace-nowrap\">\r\n {{isNew? 'New':crumbTitle().title}}\r\n </span>\r\n @if(isShowCog()){\r\n @if(isList()){\r\n <p-button variant=\"text\" severity=\"secondary\" icon=\"pi pi-cog\" aria-label=\"\u64CD\u4F5C\" (onClick)=\"toggleListOp($event)\"/>\r\n @if(displayOpItems().length > 0){\r\n <p-tieredmenu #listOp [model]=\"displayOpItems()\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\r\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\r\n <a pRipple class=\"flex items-center p-tieredmenu-item-link\" (click)=\"listAct(item)\">\r\n <span [class]=\"item.icon\" class=\"p-tieredmenu-item-icon\"></span>\r\n <span class=\"ml-2\">{{ item.label | translate }}</span>\r\n <span *ngIf=\"item.shortcut\" class=\"ml-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">\r\n {{ item.shortcut }}\r\n </span>\r\n <i *ngIf=\"hasSubmenu\" class=\"pi pi-angle-right ml-auto\"></i>\r\n </a>\r\n </ng-template>\r\n </p-tieredmenu>\r\n }\r\n } @else {\r\n <p-button variant=\"text\" severity=\"secondary\" icon=\"pi pi-cog\" aria-label=\"\u64CD\u4F5C\" (onClick)=\"toggleAct($event)\"/>\r\n @if(actionList().length > 0 && showAct){\r\n <p-tieredmenu #actOp [model]=\"actionList()\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\r\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\r\n <a pRipple \r\n class=\"flex items-center p-tieredmenu-item-link\"\r\n [class]=\"(item.auth || 0) > (authLevel() || 0) || !!item.btnHidden?.(data()) ? 'hidden' : 'block'\" \r\n (click)=\"actEvent(item)\">\r\n <span class=\"ml-2\">{{item.i18nKey ? (item.i18nKey | translate) : item.label}}</span>\r\n <span *ngIf=\"item.shortcut\" class=\"ml-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">\r\n {{ item.shortcut }}\r\n </span>\r\n <i *ngIf=\"hasSubmenu\" class=\"pi pi-angle-right ml-auto\"></i>\r\n </a>\r\n </ng-template>\r\n </p-tieredmenu>\r\n }\r\n }\r\n }\r\n @if(this.authLevel() > 2 && !isList()){\r\n <p-button \r\n variant=\"text\" \r\n [severity]=\"setSaveClass()\" \r\n icon=\"pi pi-cloud-upload\" \r\n [loading]=\"loading()\"\r\n aria-label=\"\u624B\u52A8\u4FDD\u5B58\"\r\n [disabled]=\"saveBtnDisable()\" \r\n class=\"p-0\"\r\n (click)=\"handleSave()\">\r\n </p-button>\r\n }\r\n <!-- @if(crumbList().length >= 2){ -->\r\n <p-button \r\n variant=\"text\" \r\n severity=\"secondary\" \r\n icon=\"pi pi-times\" \r\n aria-label=\"\u5173\u95ED\" \r\n class=\"p-0\"\r\n (click)=\"closeNew()\">\r\n </p-button>\r\n <!-- } -->\r\n </div>\r\n </div>\r\n } @else {\r\n <!-- \u521D\u59CB\u8282\u70B9 -->\r\n <div class=\"min-w-0 flex items-center text-[14px] text-text-color\">\r\n <span \r\n [title]=\"crumbTitle().i18nKey != '' ? (crumbTitle().i18nKey | translate) : crumbTitle().title\"\r\n class=\"hidden md:inline-block max-w-[120px] overflow-hidden whitespace-nowrap text-ellipsis\">\r\n @if(crumbTitle().i18nKey != ''){\r\n {{crumbTitle().i18nKey | translate}}\r\n } @else {\r\n {{crumbTitle().title}}\r\n }\r\n </span>\r\n @if(isShowCog()){\r\n <p-button \r\n variant=\"text\"\r\n severity=\"secondary\" \r\n icon=\"pi pi-cog\" \r\n aria-label=\"\u64CD\u4F5C\" \r\n (onClick)=\"toggleListOp($event)\"/>\r\n @if(displayOpItems().length > 0){\r\n <p-tieredmenu #listOp [model]=\"displayOpItems()\" [popup]=\"true\" [style]=\"{position:'absolute'}\">\r\n <ng-template #item let-item let-hasSubmenu=\"hasSubmenu\">\r\n <a pRipple class=\"flex items-center p-tieredmenu-item-link\" (click)=\"listAct(item)\">\r\n <span [class]=\"item.icon\" class=\"p-tieredmenu-item-icon\"></span>\r\n <span class=\"ml-2\">{{ item.label | translate }}</span>\r\n <span *ngIf=\"item.shortcut\" class=\"ml-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">\r\n {{ item.shortcut }}\r\n </span>\r\n <i *ngIf=\"hasSubmenu\" class=\"pi pi-angle-right ml-auto\"></i>\r\n </a>\r\n </ng-template>\r\n </p-tieredmenu>\r\n }\r\n \r\n }\r\n @if(!isList()){\r\n <p-button \r\n variant=\"text\" \r\n severity=\"secondary\" \r\n icon=\"pi pi-cloud-upload\" \r\n aria-label=\"\u624B\u52A8\u4FDD\u5B58\"\r\n [disabled]=\"saveBtnDisable()\" \r\n class=\"p-0\"\r\n (click)=\"handleSave()\">\r\n </p-button>\r\n <p-button \r\n variant=\"text\" \r\n severity=\"secondary\" \r\n icon=\"pi pi-times\" \r\n aria-label=\"\u5173\u95ED\" \r\n class=\"p-0\"\r\n (click)=\"closeNew()\">\r\n </p-button>\r\n }\r\n </div>\r\n }\r\n \r\n</div>", styles: [":host ::ng-deep .p-disabled,:host ::ng-deep .p-component:disabled{opacity:1}:host ::ng-deep .p-inputtext{border-width:0;border-radius:0;box-shadow:none;background:#fff;padding:0}:host ::ng-deep .p-inputtext:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputtext:not(:disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:not(:disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-inputtext:focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered .p-autocomplete-input:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-label{padding:0}:host ::ng-deep .p-select{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-select .p-select-dropdown{display:none}:host ::ng-deep .p-select .p-select-clear-icon{display:none}:host ::ng-deep .p-select:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-select-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select-open .p-select-dropdown{display:flex}:host ::ng-deep .p-select-open .p-select-clear-icon{display:flex}:host ::ng-deep .p-select:hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select:hover .p-select-dropdown{display:flex}:host ::ng-deep .p-select:hover .p-select-clear-icon{display:flex}:host ::ng-deep .p-select.ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-select.ng-hovered .p-select-dropdown{display:flex}:host ::ng-deep .p-select.ng-hovered .p-select-clear-icon{display:flex}:host ::ng-deep .p-multiselect-label{padding:0}:host ::ng-deep .p-multiselect{border-width:0;border-radius:0;background:#fff;box-shadow:none}:host ::ng-deep .p-multiselect .p-multiselect-dropdown{display:none}:host ::ng-deep .p-multiselect:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-multiselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect-open .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).p-focus .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled):hover .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-multiselect:not(.p-disabled).ng-hovered .p-multiselect-dropdown{display:flex}:host ::ng-deep .p-textarea{border-radius:0;box-shadow:none;padding:0 .25rem;background:#fff;resize:none}:host ::ng-deep .p-textarea:not(.ng-valid).ng-dirty{background:var(--p-red-200)!important;border:1px solid var(--p-red-500)!important}:host ::ng-deep .p-textarea:not(:disabled):hover{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:not(:disabled).ng-hovered{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-textarea:focus{border:1px solid var(--p-primary-color);resize:vertical}:host ::ng-deep .p-treeselect-label{padding:0}:host ::ng-deep .p-treeselect{border-width:0;border-radius:0;box-shadow:none;background:#fff}:host ::ng-deep .p-treeselect .p-treeselect-dropdown{display:none}:host ::ng-deep .ng-invalid.ng-dirty>.p-treeselect{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-treeselect-open{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect-open .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled).p-focus .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-treeselect:not(.p-disabled):hover{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .p-treeselect:not(.p-disabled):hover .p-treeselect-dropdown{display:flex}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled){border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-hovered>.p-treeselect:not(.p-disabled) .p-treeselect-dropdown{display:flex}:host ::ng-deep .p-menubar{border-width:0;padding:0}:host ::ng-deep .p-menubar-submenu{z-index:3}:host ::ng-deep .p-fileupload-advanced{border-width:0;border-radius:0;background-color:#fff}:host ::ng-deep .p-fileupload-header{padding:0}:host ::ng-deep .p-fileupload-content{padding:0;display:block;border-width:0}:host ::ng-deep .p-inputnumber:not(.ng-valid).ng-dirty>.p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .p-inputnumber.ng-hovered:not(.p-disabled)>.p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .ng-invalid.ng-dirty>.p-datepicker .p-inputtext{background:var(--p-red-200)!important;border-bottom:1px solid var(--p-red-500)!important}:host ::ng-deep .ng-hovered>.p-datepicker:not(.p-disabled) .p-inputtext{border-bottom:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor{border:1px solid #cbd5e1}:host ::ng-deep .cm-editor.cm-focused{outline:none!important;border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor:hover{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-editor.ng-hovered{border:1px solid var(--p-primary-color)}:host ::ng-deep .cm-gutters{background-color:#fff;border:\"none\"}:host ::ng-deep .cm-activeLineGutter{background-color:#fff}.crumb-title{color:var(--p-primary-color)}.crumb-title+.crumb-title{padding-left:.5rem}.crumb-title+.crumb-title:before{padding-right:.5rem;content:var(--breadcrumb-divider, \"/\")}:host::ng-deep .p-button-text.p-button-secondary{color:var(--p-surface-700)}:host::ng-deep .title-action .p-button{padding:0}:host::ng-deep .new-action .p-button{padding:0}:host::ng-deep .new-action .p-button button{padding-top:2px;height:100%;align-items:center}:host::ng-deep .select-crumb .p-button{padding:0;background-color:#fff;line-height:1}:host::ng-deep .select-crumb .p-button button{padding:0;width:17px;height:17px}:host::ng-deep .p-popover-content{padding:.5rem}:host::ng-deep .left-btn .p-button{height:33px;min-width:51px}\n"] }]
|
|
8151
8164
|
}], ctorParameters: () => [], propDecorators: { op: [{
|
|
8152
8165
|
type: ViewChild,
|
|
8153
8166
|
args: ['op']
|
|
@@ -8930,11 +8943,13 @@ class PageFormComponent extends AmComponent {
|
|
|
8930
8943
|
if (!deleteFunc) {
|
|
8931
8944
|
this.web_remove(prm).subscribe((res) => {
|
|
8932
8945
|
typeof this.formDetail() == 'function' ? this.formDetail()(this.id) : this.getDetail();
|
|
8946
|
+
this.action.updateGridAction({ type: 'delete', data: e });
|
|
8933
8947
|
});
|
|
8934
8948
|
}
|
|
8935
8949
|
else {
|
|
8936
8950
|
deleteFunc().subscribe(() => {
|
|
8937
8951
|
typeof this.formDetail() == 'function' ? this.formDetail()(this.id) : this.getDetail();
|
|
8952
|
+
this.action.updateGridAction({ type: 'delete', data: e });
|
|
8938
8953
|
});
|
|
8939
8954
|
}
|
|
8940
8955
|
}
|
|
@@ -8972,6 +8987,7 @@ class PageFormComponent extends AmComponent {
|
|
|
8972
8987
|
}
|
|
8973
8988
|
grid.selectData.push(obj);
|
|
8974
8989
|
});
|
|
8990
|
+
this.action.updateGridAction({ type: 'add', data: grid.selectData });
|
|
8975
8991
|
this.action.saveSignal.set(true);
|
|
8976
8992
|
}
|
|
8977
8993
|
}
|
|
@@ -9244,7 +9260,7 @@ class PageFormComponent extends AmComponent {
|
|
|
9244
9260
|
this.sidebarMode.set(this.sidebarMode() === 'left' ? 'right' : 'left');
|
|
9245
9261
|
}
|
|
9246
9262
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PageFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9247
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: PageFormComponent, isStandalone: true, selector: "app-page-form", inputs: { addVisible: { classPropertyName: "addVisible", publicName: "addVisible", isSignal: true, isRequired: false, transformFunction: null }, gridList: { classPropertyName: "gridList", publicName: "gridList", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: true, transformFunction: null }, getPrmInput: { classPropertyName: "getPrmInput", publicName: "getPrmInput", isSignal: true, isRequired: true, transformFunction: null }, statusSteps: { classPropertyName: "statusSteps", publicName: "statusSteps", isSignal: true, isRequired: false, transformFunction: null }, statusKey: { classPropertyName: "statusKey", publicName: "statusKey", isSignal: true, isRequired: false, transformFunction: null }, hrefBtnList: { classPropertyName: "hrefBtnList", publicName: "hrefBtnList", isSignal: true, isRequired: false, transformFunction: null }, setTitle: { classPropertyName: "setTitle", publicName: "setTitle", isSignal: true, isRequired: false, transformFunction: null }, actionList: { classPropertyName: "actionList", publicName: "actionList", isSignal: true, isRequired: false, transformFunction: null }, modelLog: { classPropertyName: "modelLog", publicName: "modelLog", isSignal: true, isRequired: false, transformFunction: null }, formDisabled: { classPropertyName: "formDisabled", publicName: "formDisabled", isSignal: true, isRequired: false, transformFunction: null }, statusConf: { classPropertyName: "statusConf", publicName: "statusConf", isSignal: true, isRequired: false, transformFunction: null }, formDetail: { classPropertyName: "formDetail", publicName: "formDetail", isSignal: true, isRequired: false, transformFunction: null }, saveFunc: { classPropertyName: "saveFunc", publicName: "saveFunc", isSignal: true, isRequired: false, transformFunction: null }, configNewPath: { classPropertyName: "configNewPath", publicName: "configNewPath", isSignal: true, isRequired: false, transformFunction: null }, authLevel: { classPropertyName: "authLevel", publicName: "authLevel", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [], viewQueries: [{ propertyName: "cForm", first: true, predicate: ["cForm"], descendants: true }, { propertyName: "customGrid", predicate: ["customGrid"], descendants: true }, { propertyName: "tabForm", predicate: ["tabForm"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"md:overflow-hidden\">\n\t<div class=\"flex md:flex-wrap lg:flex-nowrap items-center md:justify-between py-1 px-1 border-b-[1px] border-[#dbdbdb] bg-white\">\n\t\t<div class=\"lg:basis-1/3 order-1\">\n\t\t\t<app-crumb-action\n\t\t\t\t[addVisible]=\"addVisible()\"\n\t\t\t\t[newUrl]=\"newUrl\"\n\t\t\t\t[isShowCog]=\"true\"\n\t\t\t\t[outlined]=\"true\"\n\t\t\t\t[authLevel]=\"authLevel()\"\n\t\t\t\t[actionList]=\"actionList()\"\n\t\t\t\t[configNewPath]=\"configNewPath()\"\n\t\t\t\t[data]=\"getPrm.data ?? {}\"\n\t\t\t\t[saveBtnDisable]=\"saveBtnDisable\"\n\t\t\t\t(actionEvent)=\"authClick($event)\"\n\t\t\t\t(saveEvent)=\"submitForm()\">\n\t\t\t</app-crumb-action>\n\t\t</div>\n\n\t\t<div class=\"basis-1/5 lg:basis-2/3 order-2 lg:order-2 md:order-last md:basis-full md:mt-[6px]\">\n\t\t\t<href-btn-list\n\t\t\t\t[hrefs]=\"hrefBtnList()\"\n\t\t\t\t(hrefClick)=\"goRun($event)\"></href-btn-list>\n\t\t\t<!-- @if (id) {\n\t\t\t\t@for (btn of hrefBtnList(); track btn) {\n\t\t\t\t\t<p-button\n\t\t\t\t\t\t[variant]=\"btn?.variant\"\n\t\t\t\t\t\t[severity]=\"btn?.severity\"\n\t\t\t\t\t\tclass=\"mr-[6px]\"\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t[icon]=\"btn?.icon\"\n\t\t\t\t\t\tlabel=\"{{ btn.i18nKey ? i18n.fanyi(btn.i18nKey) : btn.label }}\"\n\t\t\t\t\t\t(click)=\"goRun(btn)\">\n\t\t\t\t\t</p-button>\n\t\t\t\t}\n\t\t\t} -->\n\t\t</div>\n\t\t<div class=\"basis-1/3 order-3 flex flex-row-reverse\">\n\t\t\t@if (modelLog()) {\n\t\t\t\t<div class=\"hidden md:block\">\n\t\t\t\t\t<span\n\t\t\t\t\t\t[class]=\"'iconfont icon-sidebar icon-sidebar-' + (sidebarMode())\"\n\t\t\t\t\t\t(click)=\"toggleLog()\"></span>\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t</div>\n\t<div class=\"flex\">\n\t\t<div class=\"px-2 flex flex-wrap items-center flex-1\">\n\t\t\t<div class=\"hidden md:basis-1/3 py-1 basis-full md:flex items-center flex-row order-1\">\n\t\t\t\t@for (action of actionList(); let i = $index; track action) {\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t[icon]=\"getPrm.data?.icon\"\n\t\t\t\t\t\t[loading]=\"action.loading\"\n\t\t\t\t\t\t[label]=\"action.i18nKey ? (action.i18nKey | translate) : action.label\"\n\t\t\t\t\t\t[disabled]=\"action.btnDisabled ? action.btnDisabled(getPrm.data) : false\"\n\t\t\t\t\t\t[styleClass]=\"\n\t\t\t\t\t\t\t(action.auth || 0) > (authLevel() || 0) || !!action.btnHidden?.(getPrm.data)\n\t\t\t\t\t\t\t\t? 'form-action hidden'\n\t\t\t\t\t\t\t\t: 'form-action block mr-[.5rem]'\n\t\t\t\t\t\t\"\n\t\t\t\t\t\t(onClick)=\"action.onClick != '' && action.onClick?.(getPrm.data,action)\">\n\t\t\t\t\t</p-button>\n\t\t\t\t}\n\t\t\t</div>\n\t\t\t<div class=\"md:basis-2/3 basis-full flex md:flex-row-reverse flex-row md:order-2 order-first w-full\">\n\t\t\t\t@if(stepsVisible) {\n\t\t\t\t\t<custom-steps\n\t\t\t\t\t\t#customSteps\n\t\t\t\t\t\tclass=\"w-full\"\n\t\t\t\t\t\t[steps]=\"statusSteps()\"\n\t\t\t\t\t\t[modelLog]=\"showLog()\"\n\t\t\t\t\t\t[current]=\"getPrm.data && getPrm.data[statusKey()] !== undefined ? getPrm.data[statusKey()] : 0\"\n\t\t\t\t\t\t[authLevel]=\"authLevel()\"\n\t\t\t\t\t\t[isClick]=\"this.statusConf().isClick\"\n\t\t\t\t\t\t(change)=\"statusChange($event, customSteps)\">\n\t\t\t\t\t</custom-steps>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t\t@if (showLog()) {\n\t\t\t<div class=\"lg:w-[400px] md:w-[300px] hidden md:block\"></div>\n\t\t}\n\t</div>\n\t<div class=\"main flex flex-wrap\">\n\t\t<div class=\"w-full md:flex-1 md:h-full md:overflow-y-auto\">\n\t\t\t<div class=\"bg-white mx-2 form-panel\">\n\t\t\t\t<div class=\"p-2 flex-1\">\n\t\t\t\t\t<form [formGroup]=\"form().form!\">\n\t\t\t\t\t\t<custom-form\n\t\t\t\t\t\t\t#cForm\n\t\t\t\t\t\t\t[options]=\"formOptions\"\n\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\n\t\t\t\t\t\t\t[model]=\"getPrm.data ?? {}\"></custom-form>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t\t@if (gridList() && gridList().length > 0) {\n\t\t\t\t\t<div class=\"relative mb-2\">\n\t\t\t\t\t\t<p-tabs [(value)]=\"indexValue\">\n\t\t\t\t\t\t\t<p-tablist>\n\t\t\t\t\t\t\t\t@for (fchild of gridList(); let i = $index; track fchild) {\n\t\t\t\t\t\t\t\t\t<p-tab\n\t\t\t\t\t\t\t\t\t\t[value]=\"i\"\n\t\t\t\t\t\t\t\t\t\t(click)=\"tabClick()\">\n\t\t\t\t\t\t\t\t\t\t{{ fchild.i18nKey ? i18n.fanyi(fchild.i18nKey) : fchild.title }}\n\t\t\t\t\t\t\t\t\t</p-tab>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</p-tablist>\n\t\t\t\t\t\t</p-tabs>\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t@for (grid of gridList(); let i = $index; track grid) {\n\t\t\t\t\t@if (grid.type == 'grid') {\n\t\t\t\t\t\t<custom-grid\n\t\t\t\t\t\t\t#customGrid\n\t\t\t\t\t\t\t[hidden]=\"indexValue != i\"\n\t\t\t\t\t\t\t[rowData]=\"getPrm.data?.[grid.subDataKey!]\"\n\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\n\t\t\t\t\t\t\t(deleteEmit)=\"delRows($event)\"\n\t\t\t\t\t\t\t[addType]=\"grid.subTableSource\"\n\t\t\t\t\t\t\t(addEmit)=\"dataSourceShow()\"\n\t\t\t\t\t\t\t[gridOptions]=\"grid.gridOptions\"\n\t\t\t\t\t\t\t[gridDisable]=\"gridDisable\"\n\t\t\t\t\t\t\t[authLevel]=\"authLevel()\"\n\t\t\t\t\t\t\t[showDelete]=\"grid.showDelete\"\n\t\t\t\t\t\t\t[selectData]=\"grid.selectData\"\n\t\t\t\t\t\t\t[addSort]=\"grid.addSort\">\n\t\t\t\t\t\t</custom-grid>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<!-- @if(indexValue == i){\n\t\t\t\t\t\t\t<form [formGroup]=\"grid.form!\">\n\t\t\t\t\t\t\t\t<custom-form\n\t\t\t\t\t\t\t\t[options]=\"grid\"\n\t\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t</custom-form>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t} -->\n\t\t\t\t\t\t<custom-form\n\t\t\t\t\t\t\t#tabForm\n\t\t\t\t\t\t\t[hidden]=\"indexValue != i\"\n\t\t\t\t\t\t\t[options]=\"grid\"\n\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\n\t\t\t\t\t\t\t[model]=\"subFormModel[grid.subDataKey!] || {}\">\n\t\t\t\t\t\t</custom-form>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t\t@if (showLog()) {\n\t\t\t<div class=\"w-full lg:w-[400px] md:w-[300px] md:h-full md:overflow-y-auto hidden md:block\">\n\t\t\t\t<custom-log [logs]=\"getPrm.data?.log ?? []\"></custom-log>\n\t\t\t</div>\n\t\t}\n\t</div>\n</div>\n<row-selector\n\t[(visible)]=\"visible\"\n\t[searchPrm]=\"dialogSearchPrm\"\n\t[gridOptions]=\"selectOptions\"\n\t[selectionKeys]=\"selectionKeys\"\n\t(onOk)=\"onOk($event)\"\n\t(cancelSelect)=\"onCancelSelected($event)\">\n</row-selector>\n", styles: ["@charset \"UTF-8\";.main{height:calc(100vh - 128px)}:host ::ng-deep .main .ag-root-wrapper{border-left:none!important;border-right:none!important;border-bottom:none!important}:host ::ng-deep .form-action{background:#e7e9ed!important;color:var(--ag-text-color)!important;border-color:#e7e9ed!important}:host ::ng-deep .form-action:not(:disabled):hover{background-color:#d8dadd!important;border-color:#d8dadd}.form-panel{border:solid 1px #dbdbdb}.icon-sidebar{color:#334155;padding:2.5px}.icon-sidebar:hover{color:var(--p-primary-color);cursor:pointer}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: FormComponent, selector: "custom-form", inputs: ["options", "model", "upsert"] }, { kind: "component", type: LogComponent, selector: "custom-log", inputs: ["logs", "id"] }, { kind: "component", type: CrumbActionComponent, selector: "app-crumb-action", inputs: ["isShowCog", "addVisible", "importVisible", "exportVisible", "newUrl", "configNewPath", "onExport", "outlined", "isList", "authLevel", "actionList", "data", "menus", "saveBtnDisable"], outputs: ["saveEvent", "cancelEvent", "actionEvent"] }, { kind: "component", type: StepsComponent, selector: "custom-steps", inputs: ["modelLog", "needSelfAdjusting", "steps", "current", "authLevel", "isClick"], outputs: ["change"] }, { kind: "component", type: GridComponent, selector: "custom-grid", inputs: ["gridOptions", "selectionKeys", "upsert", "rowData", "searchPrm", "addType", "selectData", "showAct", "actPos", "authLevel", "showDelete", "gridDisable", "addSort"], outputs: ["deleteEmit", "addEmit"] }, { kind: "ngmodule", type: TabsModule }, { kind: "component", type: i3$2.Tabs, selector: "p-tabs", inputs: ["value", "scrollable", "lazy", "selectOnFocus", "showNavigators", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: i3$2.TabList, selector: "p-tablist" }, { kind: "component", type: i3$2.Tab, selector: "p-tab", inputs: ["value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: RowSelectorComponent$1, selector: "row-selector", inputs: ["title", "selectionKeys", "gridOptions", "searchPrm", "visible", "showSearch"], outputs: ["onOk", "visibleChange", "cancelSelect"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: HrefBtnListComponent, selector: "href-btn-list", inputs: ["hrefs"], outputs: ["hrefClick"] }] }); }
|
|
9263
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: PageFormComponent, isStandalone: true, selector: "app-page-form", inputs: { addVisible: { classPropertyName: "addVisible", publicName: "addVisible", isSignal: true, isRequired: false, transformFunction: null }, gridList: { classPropertyName: "gridList", publicName: "gridList", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: true, transformFunction: null }, getPrmInput: { classPropertyName: "getPrmInput", publicName: "getPrmInput", isSignal: true, isRequired: true, transformFunction: null }, statusSteps: { classPropertyName: "statusSteps", publicName: "statusSteps", isSignal: true, isRequired: false, transformFunction: null }, statusKey: { classPropertyName: "statusKey", publicName: "statusKey", isSignal: true, isRequired: false, transformFunction: null }, hrefBtnList: { classPropertyName: "hrefBtnList", publicName: "hrefBtnList", isSignal: true, isRequired: false, transformFunction: null }, setTitle: { classPropertyName: "setTitle", publicName: "setTitle", isSignal: true, isRequired: false, transformFunction: null }, actionList: { classPropertyName: "actionList", publicName: "actionList", isSignal: true, isRequired: false, transformFunction: null }, modelLog: { classPropertyName: "modelLog", publicName: "modelLog", isSignal: true, isRequired: false, transformFunction: null }, formDisabled: { classPropertyName: "formDisabled", publicName: "formDisabled", isSignal: true, isRequired: false, transformFunction: null }, statusConf: { classPropertyName: "statusConf", publicName: "statusConf", isSignal: true, isRequired: false, transformFunction: null }, formDetail: { classPropertyName: "formDetail", publicName: "formDetail", isSignal: true, isRequired: false, transformFunction: null }, saveFunc: { classPropertyName: "saveFunc", publicName: "saveFunc", isSignal: true, isRequired: false, transformFunction: null }, configNewPath: { classPropertyName: "configNewPath", publicName: "configNewPath", isSignal: true, isRequired: false, transformFunction: null }, authLevel: { classPropertyName: "authLevel", publicName: "authLevel", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "window:resize": "onResize($event)" } }, providers: [], viewQueries: [{ propertyName: "cForm", first: true, predicate: ["cForm"], descendants: true }, { propertyName: "customGrid", predicate: ["customGrid"], descendants: true }, { propertyName: "tabForm", predicate: ["tabForm"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"md:overflow-hidden\">\r\n\t<div class=\"flex md:flex-wrap lg:flex-nowrap items-center md:justify-between py-1 px-1 border-b-[1px] border-[#dbdbdb] bg-white\">\r\n\t\t<div class=\"lg:basis-1/3 order-1\">\r\n\t\t\t<app-crumb-action\r\n\t\t\t\t[addVisible]=\"addVisible()\"\r\n\t\t\t\t[newUrl]=\"newUrl\"\r\n\t\t\t\t[isShowCog]=\"true\"\r\n\t\t\t\t[outlined]=\"true\"\r\n\t\t\t\t[authLevel]=\"authLevel()\"\r\n\t\t\t\t[actionList]=\"actionList()\"\r\n\t\t\t\t[configNewPath]=\"configNewPath()\"\r\n\t\t\t\t[data]=\"getPrm.data ?? {}\"\r\n\t\t\t\t[saveBtnDisable]=\"saveBtnDisable\"\r\n\t\t\t\t(actionEvent)=\"authClick($event)\"\r\n\t\t\t\t(saveEvent)=\"submitForm()\">\r\n\t\t\t</app-crumb-action>\r\n\t\t</div>\r\n\r\n\t\t<div class=\"basis-1/5 lg:basis-2/3 order-2 lg:order-2 md:order-last md:basis-full md:mt-[6px]\">\r\n\t\t\t<href-btn-list\r\n\t\t\t\t[hrefs]=\"hrefBtnList()\"\r\n\t\t\t\t(hrefClick)=\"goRun($event)\"></href-btn-list>\r\n\t\t\t<!-- @if (id) {\r\n\t\t\t\t@for (btn of hrefBtnList(); track btn) {\r\n\t\t\t\t\t<p-button\r\n\t\t\t\t\t\t[variant]=\"btn?.variant\"\r\n\t\t\t\t\t\t[severity]=\"btn?.severity\"\r\n\t\t\t\t\t\tclass=\"mr-[6px]\"\r\n\t\t\t\t\t\tsize=\"small\"\r\n\t\t\t\t\t\t[icon]=\"btn?.icon\"\r\n\t\t\t\t\t\tlabel=\"{{ btn.i18nKey ? i18n.fanyi(btn.i18nKey) : btn.label }}\"\r\n\t\t\t\t\t\t(click)=\"goRun(btn)\">\r\n\t\t\t\t\t</p-button>\r\n\t\t\t\t}\r\n\t\t\t} -->\r\n\t\t</div>\r\n\t\t<div class=\"basis-1/3 order-3 flex flex-row-reverse\">\r\n\t\t\t@if (modelLog()) {\r\n\t\t\t\t<div class=\"hidden md:block\">\r\n\t\t\t\t\t<span\r\n\t\t\t\t\t\t[class]=\"'iconfont icon-sidebar icon-sidebar-' + (sidebarMode())\"\r\n\t\t\t\t\t\t(click)=\"toggleLog()\"></span>\r\n\t\t\t\t</div>\r\n\t\t\t}\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"flex\">\r\n\t\t<div class=\"px-2 flex flex-wrap items-center flex-1\">\r\n\t\t\t<div class=\"hidden md:basis-1/3 py-1 basis-full md:flex items-center flex-row order-1\">\r\n\t\t\t\t@for (action of actionList(); let i = $index; track action) {\r\n\t\t\t\t\t<p-button\r\n\t\t\t\t\t\tsize=\"small\"\r\n\t\t\t\t\t\t[icon]=\"getPrm.data?.icon\"\r\n\t\t\t\t\t\t[loading]=\"action.loading\"\r\n\t\t\t\t\t\t[label]=\"action.i18nKey ? (action.i18nKey | translate) : action.label\"\r\n\t\t\t\t\t\t[disabled]=\"action.btnDisabled ? action.btnDisabled(getPrm.data) : false\"\r\n\t\t\t\t\t\t[styleClass]=\"\r\n\t\t\t\t\t\t\t(action.auth || 0) > (authLevel() || 0) || !!action.btnHidden?.(getPrm.data)\r\n\t\t\t\t\t\t\t\t? 'form-action hidden'\r\n\t\t\t\t\t\t\t\t: 'form-action block mr-[.5rem]'\r\n\t\t\t\t\t\t\"\r\n\t\t\t\t\t\t(onClick)=\"action.onClick != '' && action.onClick?.(getPrm.data,action)\">\r\n\t\t\t\t\t</p-button>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t\t<div class=\"md:basis-2/3 basis-full flex md:flex-row-reverse flex-row md:order-2 order-first w-full\">\r\n\t\t\t\t@if(stepsVisible) {\r\n\t\t\t\t\t<custom-steps\r\n\t\t\t\t\t\t#customSteps\r\n\t\t\t\t\t\tclass=\"w-full\"\r\n\t\t\t\t\t\t[steps]=\"statusSteps()\"\r\n\t\t\t\t\t\t[modelLog]=\"showLog()\"\r\n\t\t\t\t\t\t[current]=\"getPrm.data && getPrm.data[statusKey()] !== undefined ? getPrm.data[statusKey()] : 0\"\r\n\t\t\t\t\t\t[authLevel]=\"authLevel()\"\r\n\t\t\t\t\t\t[isClick]=\"this.statusConf().isClick\"\r\n\t\t\t\t\t\t(change)=\"statusChange($event, customSteps)\">\r\n\t\t\t\t\t</custom-steps>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t@if (showLog()) {\r\n\t\t\t<div class=\"lg:w-[400px] md:w-[300px] hidden md:block\"></div>\r\n\t\t}\r\n\t</div>\r\n\t<div class=\"main flex flex-wrap\">\r\n\t\t<div class=\"w-full md:flex-1 md:h-full md:overflow-y-auto\">\r\n\t\t\t<div class=\"bg-white mx-2 form-panel\">\r\n\t\t\t\t<div class=\"p-2 flex-1\">\r\n\t\t\t\t\t<form [formGroup]=\"form().form!\">\r\n\t\t\t\t\t\t<custom-form\r\n\t\t\t\t\t\t\t#cForm\r\n\t\t\t\t\t\t\t[options]=\"formOptions\"\r\n\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\r\n\t\t\t\t\t\t\t[model]=\"getPrm.data ?? {}\"></custom-form>\r\n\t\t\t\t\t</form>\r\n\t\t\t\t</div>\r\n\t\t\t\t@if (gridList() && gridList().length > 0) {\r\n\t\t\t\t\t<div class=\"relative mb-2\">\r\n\t\t\t\t\t\t<p-tabs [(value)]=\"indexValue\">\r\n\t\t\t\t\t\t\t<p-tablist>\r\n\t\t\t\t\t\t\t\t@for (fchild of gridList(); let i = $index; track fchild) {\r\n\t\t\t\t\t\t\t\t\t<p-tab\r\n\t\t\t\t\t\t\t\t\t\t[value]=\"i\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"tabClick()\">\r\n\t\t\t\t\t\t\t\t\t\t{{ fchild.i18nKey ? i18n.fanyi(fchild.i18nKey) : fchild.title }}\r\n\t\t\t\t\t\t\t\t\t</p-tab>\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t</p-tablist>\r\n\t\t\t\t\t\t</p-tabs>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t\t@for (grid of gridList(); let i = $index; track grid) {\r\n\t\t\t\t\t@if (grid.type == 'grid') {\r\n\t\t\t\t\t\t<custom-grid\r\n\t\t\t\t\t\t\t#customGrid\r\n\t\t\t\t\t\t\t[hidden]=\"indexValue != i\"\r\n\t\t\t\t\t\t\t[rowData]=\"getPrm.data?.[grid.subDataKey!]\"\r\n\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\r\n\t\t\t\t\t\t\t(deleteEmit)=\"delRows($event)\"\r\n\t\t\t\t\t\t\t[addType]=\"grid.subTableSource\"\r\n\t\t\t\t\t\t\t(addEmit)=\"dataSourceShow()\"\r\n\t\t\t\t\t\t\t[gridOptions]=\"grid.gridOptions\"\r\n\t\t\t\t\t\t\t[gridDisable]=\"gridDisable\"\r\n\t\t\t\t\t\t\t[authLevel]=\"authLevel()\"\r\n\t\t\t\t\t\t\t[showDelete]=\"grid.showDelete\"\r\n\t\t\t\t\t\t\t[selectData]=\"grid.selectData\"\r\n\t\t\t\t\t\t\t[addSort]=\"grid.addSort\">\r\n\t\t\t\t\t\t</custom-grid>\r\n\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t<!-- @if(indexValue == i){\r\n\t\t\t\t\t\t\t<form [formGroup]=\"grid.form!\">\r\n\t\t\t\t\t\t\t\t<custom-form\r\n\t\t\t\t\t\t\t\t[options]=\"grid\"\r\n\t\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t</custom-form>\r\n\t\t\t\t\t\t\t</form>\r\n\t\t\t\t\t\t} -->\r\n\t\t\t\t\t\t<custom-form\r\n\t\t\t\t\t\t\t#tabForm\r\n\t\t\t\t\t\t\t[hidden]=\"indexValue != i\"\r\n\t\t\t\t\t\t\t[options]=\"grid\"\r\n\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\r\n\t\t\t\t\t\t\t[model]=\"subFormModel[grid.subDataKey!] || {}\">\r\n\t\t\t\t\t\t</custom-form>\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t@if (showLog()) {\r\n\t\t\t<div class=\"w-full lg:w-[400px] md:w-[300px] md:h-full md:overflow-y-auto hidden md:block\">\r\n\t\t\t\t<custom-log [logs]=\"getPrm.data?.log ?? []\"></custom-log>\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n</div>\r\n<row-selector\r\n\t[(visible)]=\"visible\"\r\n\t[searchPrm]=\"dialogSearchPrm\"\r\n\t[gridOptions]=\"selectOptions\"\r\n\t[selectionKeys]=\"selectionKeys\"\r\n\t(onOk)=\"onOk($event)\"\r\n\t(cancelSelect)=\"onCancelSelected($event)\">\r\n</row-selector>\r\n", styles: ["@charset \"UTF-8\";.main{height:calc(100vh - 128px)}:host ::ng-deep .main .ag-root-wrapper{border-left:none!important;border-right:none!important;border-bottom:none!important}:host ::ng-deep .form-action{background:#e7e9ed!important;color:var(--ag-text-color)!important;border-color:#e7e9ed!important}:host ::ng-deep .form-action:not(:disabled):hover{background-color:#d8dadd!important;border-color:#d8dadd}.form-panel{border:solid 1px #dbdbdb}.icon-sidebar{color:#334155;padding:2.5px}.icon-sidebar:hover{color:var(--p-primary-color);cursor:pointer}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: FormComponent, selector: "custom-form", inputs: ["options", "model", "upsert"] }, { kind: "component", type: LogComponent, selector: "custom-log", inputs: ["logs", "id"] }, { kind: "component", type: CrumbActionComponent, selector: "app-crumb-action", inputs: ["isShowCog", "addVisible", "importVisible", "exportVisible", "newUrl", "configNewPath", "onExport", "outlined", "isList", "authLevel", "actionList", "data", "menus", "saveBtnDisable"], outputs: ["saveEvent", "cancelEvent", "actionEvent"] }, { kind: "component", type: StepsComponent, selector: "custom-steps", inputs: ["modelLog", "needSelfAdjusting", "steps", "current", "authLevel", "isClick"], outputs: ["change"] }, { kind: "component", type: GridComponent, selector: "custom-grid", inputs: ["gridOptions", "selectionKeys", "upsert", "rowData", "searchPrm", "addType", "selectData", "showAct", "actPos", "authLevel", "showDelete", "gridDisable", "addSort"], outputs: ["deleteEmit", "addEmit"] }, { kind: "ngmodule", type: TabsModule }, { kind: "component", type: i3$2.Tabs, selector: "p-tabs", inputs: ["value", "scrollable", "lazy", "selectOnFocus", "showNavigators", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: i3$2.TabList, selector: "p-tablist" }, { kind: "component", type: i3$2.Tab, selector: "p-tab", inputs: ["value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: RowSelectorComponent$1, selector: "row-selector", inputs: ["title", "selectionKeys", "gridOptions", "searchPrm", "visible", "showSearch"], outputs: ["onOk", "visibleChange", "cancelSelect"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: HrefBtnListComponent, selector: "href-btn-list", inputs: ["hrefs"], outputs: ["hrefClick"] }] }); }
|
|
9248
9264
|
}
|
|
9249
9265
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PageFormComponent, decorators: [{
|
|
9250
9266
|
type: Component,
|
|
@@ -9260,7 +9276,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
9260
9276
|
RowSelectorComponent$1,
|
|
9261
9277
|
TranslatePipe,
|
|
9262
9278
|
HrefBtnListComponent,
|
|
9263
|
-
], providers: [], template: "<div class=\"md:overflow-hidden\">\n\t<div class=\"flex md:flex-wrap lg:flex-nowrap items-center md:justify-between py-1 px-1 border-b-[1px] border-[#dbdbdb] bg-white\">\n\t\t<div class=\"lg:basis-1/3 order-1\">\n\t\t\t<app-crumb-action\n\t\t\t\t[addVisible]=\"addVisible()\"\n\t\t\t\t[newUrl]=\"newUrl\"\n\t\t\t\t[isShowCog]=\"true\"\n\t\t\t\t[outlined]=\"true\"\n\t\t\t\t[authLevel]=\"authLevel()\"\n\t\t\t\t[actionList]=\"actionList()\"\n\t\t\t\t[configNewPath]=\"configNewPath()\"\n\t\t\t\t[data]=\"getPrm.data ?? {}\"\n\t\t\t\t[saveBtnDisable]=\"saveBtnDisable\"\n\t\t\t\t(actionEvent)=\"authClick($event)\"\n\t\t\t\t(saveEvent)=\"submitForm()\">\n\t\t\t</app-crumb-action>\n\t\t</div>\n\n\t\t<div class=\"basis-1/5 lg:basis-2/3 order-2 lg:order-2 md:order-last md:basis-full md:mt-[6px]\">\n\t\t\t<href-btn-list\n\t\t\t\t[hrefs]=\"hrefBtnList()\"\n\t\t\t\t(hrefClick)=\"goRun($event)\"></href-btn-list>\n\t\t\t<!-- @if (id) {\n\t\t\t\t@for (btn of hrefBtnList(); track btn) {\n\t\t\t\t\t<p-button\n\t\t\t\t\t\t[variant]=\"btn?.variant\"\n\t\t\t\t\t\t[severity]=\"btn?.severity\"\n\t\t\t\t\t\tclass=\"mr-[6px]\"\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t[icon]=\"btn?.icon\"\n\t\t\t\t\t\tlabel=\"{{ btn.i18nKey ? i18n.fanyi(btn.i18nKey) : btn.label }}\"\n\t\t\t\t\t\t(click)=\"goRun(btn)\">\n\t\t\t\t\t</p-button>\n\t\t\t\t}\n\t\t\t} -->\n\t\t</div>\n\t\t<div class=\"basis-1/3 order-3 flex flex-row-reverse\">\n\t\t\t@if (modelLog()) {\n\t\t\t\t<div class=\"hidden md:block\">\n\t\t\t\t\t<span\n\t\t\t\t\t\t[class]=\"'iconfont icon-sidebar icon-sidebar-' + (sidebarMode())\"\n\t\t\t\t\t\t(click)=\"toggleLog()\"></span>\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t</div>\n\t<div class=\"flex\">\n\t\t<div class=\"px-2 flex flex-wrap items-center flex-1\">\n\t\t\t<div class=\"hidden md:basis-1/3 py-1 basis-full md:flex items-center flex-row order-1\">\n\t\t\t\t@for (action of actionList(); let i = $index; track action) {\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t[icon]=\"getPrm.data?.icon\"\n\t\t\t\t\t\t[loading]=\"action.loading\"\n\t\t\t\t\t\t[label]=\"action.i18nKey ? (action.i18nKey | translate) : action.label\"\n\t\t\t\t\t\t[disabled]=\"action.btnDisabled ? action.btnDisabled(getPrm.data) : false\"\n\t\t\t\t\t\t[styleClass]=\"\n\t\t\t\t\t\t\t(action.auth || 0) > (authLevel() || 0) || !!action.btnHidden?.(getPrm.data)\n\t\t\t\t\t\t\t\t? 'form-action hidden'\n\t\t\t\t\t\t\t\t: 'form-action block mr-[.5rem]'\n\t\t\t\t\t\t\"\n\t\t\t\t\t\t(onClick)=\"action.onClick != '' && action.onClick?.(getPrm.data,action)\">\n\t\t\t\t\t</p-button>\n\t\t\t\t}\n\t\t\t</div>\n\t\t\t<div class=\"md:basis-2/3 basis-full flex md:flex-row-reverse flex-row md:order-2 order-first w-full\">\n\t\t\t\t@if(stepsVisible) {\n\t\t\t\t\t<custom-steps\n\t\t\t\t\t\t#customSteps\n\t\t\t\t\t\tclass=\"w-full\"\n\t\t\t\t\t\t[steps]=\"statusSteps()\"\n\t\t\t\t\t\t[modelLog]=\"showLog()\"\n\t\t\t\t\t\t[current]=\"getPrm.data && getPrm.data[statusKey()] !== undefined ? getPrm.data[statusKey()] : 0\"\n\t\t\t\t\t\t[authLevel]=\"authLevel()\"\n\t\t\t\t\t\t[isClick]=\"this.statusConf().isClick\"\n\t\t\t\t\t\t(change)=\"statusChange($event, customSteps)\">\n\t\t\t\t\t</custom-steps>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t\t@if (showLog()) {\n\t\t\t<div class=\"lg:w-[400px] md:w-[300px] hidden md:block\"></div>\n\t\t}\n\t</div>\n\t<div class=\"main flex flex-wrap\">\n\t\t<div class=\"w-full md:flex-1 md:h-full md:overflow-y-auto\">\n\t\t\t<div class=\"bg-white mx-2 form-panel\">\n\t\t\t\t<div class=\"p-2 flex-1\">\n\t\t\t\t\t<form [formGroup]=\"form().form!\">\n\t\t\t\t\t\t<custom-form\n\t\t\t\t\t\t\t#cForm\n\t\t\t\t\t\t\t[options]=\"formOptions\"\n\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\n\t\t\t\t\t\t\t[model]=\"getPrm.data ?? {}\"></custom-form>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t\t@if (gridList() && gridList().length > 0) {\n\t\t\t\t\t<div class=\"relative mb-2\">\n\t\t\t\t\t\t<p-tabs [(value)]=\"indexValue\">\n\t\t\t\t\t\t\t<p-tablist>\n\t\t\t\t\t\t\t\t@for (fchild of gridList(); let i = $index; track fchild) {\n\t\t\t\t\t\t\t\t\t<p-tab\n\t\t\t\t\t\t\t\t\t\t[value]=\"i\"\n\t\t\t\t\t\t\t\t\t\t(click)=\"tabClick()\">\n\t\t\t\t\t\t\t\t\t\t{{ fchild.i18nKey ? i18n.fanyi(fchild.i18nKey) : fchild.title }}\n\t\t\t\t\t\t\t\t\t</p-tab>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</p-tablist>\n\t\t\t\t\t\t</p-tabs>\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t@for (grid of gridList(); let i = $index; track grid) {\n\t\t\t\t\t@if (grid.type == 'grid') {\n\t\t\t\t\t\t<custom-grid\n\t\t\t\t\t\t\t#customGrid\n\t\t\t\t\t\t\t[hidden]=\"indexValue != i\"\n\t\t\t\t\t\t\t[rowData]=\"getPrm.data?.[grid.subDataKey!]\"\n\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\n\t\t\t\t\t\t\t(deleteEmit)=\"delRows($event)\"\n\t\t\t\t\t\t\t[addType]=\"grid.subTableSource\"\n\t\t\t\t\t\t\t(addEmit)=\"dataSourceShow()\"\n\t\t\t\t\t\t\t[gridOptions]=\"grid.gridOptions\"\n\t\t\t\t\t\t\t[gridDisable]=\"gridDisable\"\n\t\t\t\t\t\t\t[authLevel]=\"authLevel()\"\n\t\t\t\t\t\t\t[showDelete]=\"grid.showDelete\"\n\t\t\t\t\t\t\t[selectData]=\"grid.selectData\"\n\t\t\t\t\t\t\t[addSort]=\"grid.addSort\">\n\t\t\t\t\t\t</custom-grid>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<!-- @if(indexValue == i){\n\t\t\t\t\t\t\t<form [formGroup]=\"grid.form!\">\n\t\t\t\t\t\t\t\t<custom-form\n\t\t\t\t\t\t\t\t[options]=\"grid\"\n\t\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t</custom-form>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t} -->\n\t\t\t\t\t\t<custom-form\n\t\t\t\t\t\t\t#tabForm\n\t\t\t\t\t\t\t[hidden]=\"indexValue != i\"\n\t\t\t\t\t\t\t[options]=\"grid\"\n\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\n\t\t\t\t\t\t\t[model]=\"subFormModel[grid.subDataKey!] || {}\">\n\t\t\t\t\t\t</custom-form>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t\t@if (showLog()) {\n\t\t\t<div class=\"w-full lg:w-[400px] md:w-[300px] md:h-full md:overflow-y-auto hidden md:block\">\n\t\t\t\t<custom-log [logs]=\"getPrm.data?.log ?? []\"></custom-log>\n\t\t\t</div>\n\t\t}\n\t</div>\n</div>\n<row-selector\n\t[(visible)]=\"visible\"\n\t[searchPrm]=\"dialogSearchPrm\"\n\t[gridOptions]=\"selectOptions\"\n\t[selectionKeys]=\"selectionKeys\"\n\t(onOk)=\"onOk($event)\"\n\t(cancelSelect)=\"onCancelSelected($event)\">\n</row-selector>\n", styles: ["@charset \"UTF-8\";.main{height:calc(100vh - 128px)}:host ::ng-deep .main .ag-root-wrapper{border-left:none!important;border-right:none!important;border-bottom:none!important}:host ::ng-deep .form-action{background:#e7e9ed!important;color:var(--ag-text-color)!important;border-color:#e7e9ed!important}:host ::ng-deep .form-action:not(:disabled):hover{background-color:#d8dadd!important;border-color:#d8dadd}.form-panel{border:solid 1px #dbdbdb}.icon-sidebar{color:#334155;padding:2.5px}.icon-sidebar:hover{color:var(--p-primary-color);cursor:pointer}\n"] }]
|
|
9279
|
+
], providers: [], template: "<div class=\"md:overflow-hidden\">\r\n\t<div class=\"flex md:flex-wrap lg:flex-nowrap items-center md:justify-between py-1 px-1 border-b-[1px] border-[#dbdbdb] bg-white\">\r\n\t\t<div class=\"lg:basis-1/3 order-1\">\r\n\t\t\t<app-crumb-action\r\n\t\t\t\t[addVisible]=\"addVisible()\"\r\n\t\t\t\t[newUrl]=\"newUrl\"\r\n\t\t\t\t[isShowCog]=\"true\"\r\n\t\t\t\t[outlined]=\"true\"\r\n\t\t\t\t[authLevel]=\"authLevel()\"\r\n\t\t\t\t[actionList]=\"actionList()\"\r\n\t\t\t\t[configNewPath]=\"configNewPath()\"\r\n\t\t\t\t[data]=\"getPrm.data ?? {}\"\r\n\t\t\t\t[saveBtnDisable]=\"saveBtnDisable\"\r\n\t\t\t\t(actionEvent)=\"authClick($event)\"\r\n\t\t\t\t(saveEvent)=\"submitForm()\">\r\n\t\t\t</app-crumb-action>\r\n\t\t</div>\r\n\r\n\t\t<div class=\"basis-1/5 lg:basis-2/3 order-2 lg:order-2 md:order-last md:basis-full md:mt-[6px]\">\r\n\t\t\t<href-btn-list\r\n\t\t\t\t[hrefs]=\"hrefBtnList()\"\r\n\t\t\t\t(hrefClick)=\"goRun($event)\"></href-btn-list>\r\n\t\t\t<!-- @if (id) {\r\n\t\t\t\t@for (btn of hrefBtnList(); track btn) {\r\n\t\t\t\t\t<p-button\r\n\t\t\t\t\t\t[variant]=\"btn?.variant\"\r\n\t\t\t\t\t\t[severity]=\"btn?.severity\"\r\n\t\t\t\t\t\tclass=\"mr-[6px]\"\r\n\t\t\t\t\t\tsize=\"small\"\r\n\t\t\t\t\t\t[icon]=\"btn?.icon\"\r\n\t\t\t\t\t\tlabel=\"{{ btn.i18nKey ? i18n.fanyi(btn.i18nKey) : btn.label }}\"\r\n\t\t\t\t\t\t(click)=\"goRun(btn)\">\r\n\t\t\t\t\t</p-button>\r\n\t\t\t\t}\r\n\t\t\t} -->\r\n\t\t</div>\r\n\t\t<div class=\"basis-1/3 order-3 flex flex-row-reverse\">\r\n\t\t\t@if (modelLog()) {\r\n\t\t\t\t<div class=\"hidden md:block\">\r\n\t\t\t\t\t<span\r\n\t\t\t\t\t\t[class]=\"'iconfont icon-sidebar icon-sidebar-' + (sidebarMode())\"\r\n\t\t\t\t\t\t(click)=\"toggleLog()\"></span>\r\n\t\t\t\t</div>\r\n\t\t\t}\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"flex\">\r\n\t\t<div class=\"px-2 flex flex-wrap items-center flex-1\">\r\n\t\t\t<div class=\"hidden md:basis-1/3 py-1 basis-full md:flex items-center flex-row order-1\">\r\n\t\t\t\t@for (action of actionList(); let i = $index; track action) {\r\n\t\t\t\t\t<p-button\r\n\t\t\t\t\t\tsize=\"small\"\r\n\t\t\t\t\t\t[icon]=\"getPrm.data?.icon\"\r\n\t\t\t\t\t\t[loading]=\"action.loading\"\r\n\t\t\t\t\t\t[label]=\"action.i18nKey ? (action.i18nKey | translate) : action.label\"\r\n\t\t\t\t\t\t[disabled]=\"action.btnDisabled ? action.btnDisabled(getPrm.data) : false\"\r\n\t\t\t\t\t\t[styleClass]=\"\r\n\t\t\t\t\t\t\t(action.auth || 0) > (authLevel() || 0) || !!action.btnHidden?.(getPrm.data)\r\n\t\t\t\t\t\t\t\t? 'form-action hidden'\r\n\t\t\t\t\t\t\t\t: 'form-action block mr-[.5rem]'\r\n\t\t\t\t\t\t\"\r\n\t\t\t\t\t\t(onClick)=\"action.onClick != '' && action.onClick?.(getPrm.data,action)\">\r\n\t\t\t\t\t</p-button>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t\t<div class=\"md:basis-2/3 basis-full flex md:flex-row-reverse flex-row md:order-2 order-first w-full\">\r\n\t\t\t\t@if(stepsVisible) {\r\n\t\t\t\t\t<custom-steps\r\n\t\t\t\t\t\t#customSteps\r\n\t\t\t\t\t\tclass=\"w-full\"\r\n\t\t\t\t\t\t[steps]=\"statusSteps()\"\r\n\t\t\t\t\t\t[modelLog]=\"showLog()\"\r\n\t\t\t\t\t\t[current]=\"getPrm.data && getPrm.data[statusKey()] !== undefined ? getPrm.data[statusKey()] : 0\"\r\n\t\t\t\t\t\t[authLevel]=\"authLevel()\"\r\n\t\t\t\t\t\t[isClick]=\"this.statusConf().isClick\"\r\n\t\t\t\t\t\t(change)=\"statusChange($event, customSteps)\">\r\n\t\t\t\t\t</custom-steps>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t@if (showLog()) {\r\n\t\t\t<div class=\"lg:w-[400px] md:w-[300px] hidden md:block\"></div>\r\n\t\t}\r\n\t</div>\r\n\t<div class=\"main flex flex-wrap\">\r\n\t\t<div class=\"w-full md:flex-1 md:h-full md:overflow-y-auto\">\r\n\t\t\t<div class=\"bg-white mx-2 form-panel\">\r\n\t\t\t\t<div class=\"p-2 flex-1\">\r\n\t\t\t\t\t<form [formGroup]=\"form().form!\">\r\n\t\t\t\t\t\t<custom-form\r\n\t\t\t\t\t\t\t#cForm\r\n\t\t\t\t\t\t\t[options]=\"formOptions\"\r\n\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\r\n\t\t\t\t\t\t\t[model]=\"getPrm.data ?? {}\"></custom-form>\r\n\t\t\t\t\t</form>\r\n\t\t\t\t</div>\r\n\t\t\t\t@if (gridList() && gridList().length > 0) {\r\n\t\t\t\t\t<div class=\"relative mb-2\">\r\n\t\t\t\t\t\t<p-tabs [(value)]=\"indexValue\">\r\n\t\t\t\t\t\t\t<p-tablist>\r\n\t\t\t\t\t\t\t\t@for (fchild of gridList(); let i = $index; track fchild) {\r\n\t\t\t\t\t\t\t\t\t<p-tab\r\n\t\t\t\t\t\t\t\t\t\t[value]=\"i\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"tabClick()\">\r\n\t\t\t\t\t\t\t\t\t\t{{ fchild.i18nKey ? i18n.fanyi(fchild.i18nKey) : fchild.title }}\r\n\t\t\t\t\t\t\t\t\t</p-tab>\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t</p-tablist>\r\n\t\t\t\t\t\t</p-tabs>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t\t@for (grid of gridList(); let i = $index; track grid) {\r\n\t\t\t\t\t@if (grid.type == 'grid') {\r\n\t\t\t\t\t\t<custom-grid\r\n\t\t\t\t\t\t\t#customGrid\r\n\t\t\t\t\t\t\t[hidden]=\"indexValue != i\"\r\n\t\t\t\t\t\t\t[rowData]=\"getPrm.data?.[grid.subDataKey!]\"\r\n\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\r\n\t\t\t\t\t\t\t(deleteEmit)=\"delRows($event)\"\r\n\t\t\t\t\t\t\t[addType]=\"grid.subTableSource\"\r\n\t\t\t\t\t\t\t(addEmit)=\"dataSourceShow()\"\r\n\t\t\t\t\t\t\t[gridOptions]=\"grid.gridOptions\"\r\n\t\t\t\t\t\t\t[gridDisable]=\"gridDisable\"\r\n\t\t\t\t\t\t\t[authLevel]=\"authLevel()\"\r\n\t\t\t\t\t\t\t[showDelete]=\"grid.showDelete\"\r\n\t\t\t\t\t\t\t[selectData]=\"grid.selectData\"\r\n\t\t\t\t\t\t\t[addSort]=\"grid.addSort\">\r\n\t\t\t\t\t\t</custom-grid>\r\n\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t<!-- @if(indexValue == i){\r\n\t\t\t\t\t\t\t<form [formGroup]=\"grid.form!\">\r\n\t\t\t\t\t\t\t\t<custom-form\r\n\t\t\t\t\t\t\t\t[options]=\"grid\"\r\n\t\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t</custom-form>\r\n\t\t\t\t\t\t\t</form>\r\n\t\t\t\t\t\t} -->\r\n\t\t\t\t\t\t<custom-form\r\n\t\t\t\t\t\t\t#tabForm\r\n\t\t\t\t\t\t\t[hidden]=\"indexValue != i\"\r\n\t\t\t\t\t\t\t[options]=\"grid\"\r\n\t\t\t\t\t\t\t[upsert]=\"upsertPrm\"\r\n\t\t\t\t\t\t\t[model]=\"subFormModel[grid.subDataKey!] || {}\">\r\n\t\t\t\t\t\t</custom-form>\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t@if (showLog()) {\r\n\t\t\t<div class=\"w-full lg:w-[400px] md:w-[300px] md:h-full md:overflow-y-auto hidden md:block\">\r\n\t\t\t\t<custom-log [logs]=\"getPrm.data?.log ?? []\"></custom-log>\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n</div>\r\n<row-selector\r\n\t[(visible)]=\"visible\"\r\n\t[searchPrm]=\"dialogSearchPrm\"\r\n\t[gridOptions]=\"selectOptions\"\r\n\t[selectionKeys]=\"selectionKeys\"\r\n\t(onOk)=\"onOk($event)\"\r\n\t(cancelSelect)=\"onCancelSelected($event)\">\r\n</row-selector>\r\n", styles: ["@charset \"UTF-8\";.main{height:calc(100vh - 128px)}:host ::ng-deep .main .ag-root-wrapper{border-left:none!important;border-right:none!important;border-bottom:none!important}:host ::ng-deep .form-action{background:#e7e9ed!important;color:var(--ag-text-color)!important;border-color:#e7e9ed!important}:host ::ng-deep .form-action:not(:disabled):hover{background-color:#d8dadd!important;border-color:#d8dadd}.form-panel{border:solid 1px #dbdbdb}.icon-sidebar{color:#334155;padding:2.5px}.icon-sidebar:hover{color:var(--p-primary-color);cursor:pointer}\n"] }]
|
|
9264
9280
|
}], ctorParameters: () => [], propDecorators: { cForm: [{
|
|
9265
9281
|
type: ViewChild,
|
|
9266
9282
|
args: ['cForm']
|
|
@@ -9311,11 +9327,11 @@ class PageGridListComponent extends AmComponent {
|
|
|
9311
9327
|
return searchPrm;
|
|
9312
9328
|
}
|
|
9313
9329
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PageGridListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9314
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: PageGridListComponent, isStandalone: true, selector: "app-page-grid-list", inputs: { params: { classPropertyName: "params", publicName: "params", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, menus: { classPropertyName: "menus", publicName: "menus", isSignal: true, isRequired: false, transformFunction: null }, gridOptions: { classPropertyName: "gridOptions", publicName: "gridOptions", isSignal: true, isRequired: false, transformFunction: null }, authLevel: { classPropertyName: "authLevel", publicName: "authLevel", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "customGrid", first: true, predicate: ["customGrid"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"flex flex-col h-full\">\n\t<div class=\"flex flex-wrap items-center py-1 px-1 bg-white\">\n\t\t<div class=\"lg:basis-1/6 md:basis-1/4 basis-1/2 flex justify-start order-1\">\n\t\t\t<app-crumb-action\n\t\t\t\t[addVisible]=\"params().addVisible\"\n\t\t\t\t[exportVisible]=\"params().exportVisible ?? true\"\n\t\t\t\t[importVisible]=\"params().importVisible ?? true\"\n\t\t\t\t[newUrl]=\"params().newUrl\"\n\t\t\t\t[onExport]=\"params().onExport\"\n\t\t\t\t[isList]=\"true\"\n\t\t\t\t[isShowCog]=\"true\"\n\t\t\t\t[menus]=\"menus()\"\n\t\t\t\t[authLevel]=\"authLevel()\">\n\t\t\t</app-crumb-action>\n\t\t</div>\n\t\t<div class=\"lg:basis-4/6 md:basis-1/2 basis-full flex justify-center items-center md:order-2 order-last\">\n\t\t\t<custom-head\n\t\t\t\tclass=\"max-lg:min-w-full\"\n\t\t\t\t[actions]=\"actions()\"\n\t\t\t\t[grid]=\"customGrid\"\n\t\t\t\t[authLevel]=\"authLevel()\"\n\t\t\t\t[gridOptions]=\"gridOptions()\"></custom-head>\n\t\t</div>\n\t\t<div class=\"lg:basis-1/6 md:basis-1/4 basis-1/2 flex justify-end order-3\">\n\t\t\t<custom-pager></custom-pager>\n\t\t</div>\n\t</div>\n\t<div class=\"flex-1\">\n\t\t<custom-grid\n\t\t\t#customGrid\n\t\t\t[upsert]=\"upsertPrm\"\n\t\t\t[searchPrm]=\"searchPrm\"\n\t\t\t[showAct]=\"false\"\n\t\t\t[gridOptions]=\"gridOptions()!\">\n\t\t</custom-grid>\n\t</div>\n</div>\n<app-import\n\t[fileName]=\"params()?.importFileName\"\n\t[funcName]=\"params()?.importFuncName\"\n\t[orgVisible]=\"params()?.importOrgVisible\"\n\t[orgField]=\"params()?.importOrgField\"\n\t[grid]=\"customGrid\"\n\t[modelName]=\"gridOptions()!.modelName ?? ''\">\n</app-import>\n", styles: [".ms-grid{background-color:#efefef}.ms-content{border-top:solid 1px #dbdbdb;background-color:#f9fafb}.mode-hide{display:none}\n"], dependencies: [{ kind: "component", type: GridComponent, selector: "custom-grid", inputs: ["gridOptions", "selectionKeys", "upsert", "rowData", "searchPrm", "addType", "selectData", "showAct", "actPos", "authLevel", "showDelete", "gridDisable", "addSort"], outputs: ["deleteEmit", "addEmit"] }, { kind: "component", type: CrumbActionComponent, selector: "app-crumb-action", inputs: ["isShowCog", "addVisible", "importVisible", "exportVisible", "newUrl", "configNewPath", "onExport", "outlined", "isList", "authLevel", "actionList", "data", "menus", "saveBtnDisable"], outputs: ["saveEvent", "cancelEvent", "actionEvent"] }, { kind: "component", type: PagerComponent, selector: "custom-pager" }, { kind: "component", type: HeadComponent, selector: "custom-head", inputs: ["gridOptions", "grid", "actions", "authLevel"] }, { kind: "component", type: ImportComponent, selector: "app-import", inputs: ["visible", "fileName", "funcName", "orgVisible", "orgField", "modelName", "grid"], outputs: ["visibleChange"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9330
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: PageGridListComponent, isStandalone: true, selector: "app-page-grid-list", inputs: { params: { classPropertyName: "params", publicName: "params", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, menus: { classPropertyName: "menus", publicName: "menus", isSignal: true, isRequired: false, transformFunction: null }, gridOptions: { classPropertyName: "gridOptions", publicName: "gridOptions", isSignal: true, isRequired: false, transformFunction: null }, authLevel: { classPropertyName: "authLevel", publicName: "authLevel", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "customGrid", first: true, predicate: ["customGrid"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"flex flex-col h-full\">\r\n\t<div class=\"flex flex-wrap items-center py-1 px-1 bg-white\">\r\n\t\t<div class=\"lg:basis-1/6 md:basis-1/4 basis-1/2 flex justify-start order-1\">\r\n\t\t\t<app-crumb-action\r\n\t\t\t\t[addVisible]=\"params().addVisible\"\r\n\t\t\t\t[exportVisible]=\"params().exportVisible ?? true\"\r\n\t\t\t\t[importVisible]=\"params().importVisible ?? true\"\r\n\t\t\t\t[newUrl]=\"params().newUrl\"\r\n\t\t\t\t[onExport]=\"params().onExport\"\r\n\t\t\t\t[isList]=\"true\"\r\n\t\t\t\t[isShowCog]=\"true\"\r\n\t\t\t\t[menus]=\"menus()\"\r\n\t\t\t\t[authLevel]=\"authLevel()\">\r\n\t\t\t</app-crumb-action>\r\n\t\t</div>\r\n\t\t<div class=\"lg:basis-4/6 md:basis-1/2 basis-full flex justify-center items-center md:order-2 order-last\">\r\n\t\t\t<custom-head\r\n\t\t\t\tclass=\"max-lg:min-w-full\"\r\n\t\t\t\t[actions]=\"actions()\"\r\n\t\t\t\t[grid]=\"customGrid\"\r\n\t\t\t\t[authLevel]=\"authLevel()\"\r\n\t\t\t\t[gridOptions]=\"gridOptions()\"></custom-head>\r\n\t\t</div>\r\n\t\t<div class=\"lg:basis-1/6 md:basis-1/4 basis-1/2 flex justify-end order-3\">\r\n\t\t\t<custom-pager></custom-pager>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"flex-1\">\r\n\t\t<custom-grid\r\n\t\t\t#customGrid\r\n\t\t\t[upsert]=\"upsertPrm\"\r\n\t\t\t[searchPrm]=\"searchPrm\"\r\n\t\t\t[showAct]=\"false\"\r\n\t\t\t[gridOptions]=\"gridOptions()!\">\r\n\t\t</custom-grid>\r\n\t</div>\r\n</div>\r\n<app-import\r\n\t[fileName]=\"params()?.importFileName\"\r\n\t[funcName]=\"params()?.importFuncName\"\r\n\t[orgVisible]=\"params()?.importOrgVisible\"\r\n\t[orgField]=\"params()?.importOrgField\"\r\n\t[grid]=\"customGrid\"\r\n\t[modelName]=\"gridOptions()!.modelName ?? ''\">\r\n</app-import>\r\n", styles: [".ms-grid{background-color:#efefef}.ms-content{border-top:solid 1px #dbdbdb;background-color:#f9fafb}.mode-hide{display:none}\n"], dependencies: [{ kind: "component", type: GridComponent, selector: "custom-grid", inputs: ["gridOptions", "selectionKeys", "upsert", "rowData", "searchPrm", "addType", "selectData", "showAct", "actPos", "authLevel", "showDelete", "gridDisable", "addSort"], outputs: ["deleteEmit", "addEmit"] }, { kind: "component", type: CrumbActionComponent, selector: "app-crumb-action", inputs: ["isShowCog", "addVisible", "importVisible", "exportVisible", "newUrl", "configNewPath", "onExport", "outlined", "isList", "authLevel", "actionList", "data", "menus", "saveBtnDisable"], outputs: ["saveEvent", "cancelEvent", "actionEvent"] }, { kind: "component", type: PagerComponent, selector: "custom-pager" }, { kind: "component", type: HeadComponent, selector: "custom-head", inputs: ["gridOptions", "grid", "actions", "authLevel"] }, { kind: "component", type: ImportComponent, selector: "app-import", inputs: ["visible", "fileName", "funcName", "orgVisible", "orgField", "modelName", "grid"], outputs: ["visibleChange"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9315
9331
|
}
|
|
9316
9332
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PageGridListComponent, decorators: [{
|
|
9317
9333
|
type: Component,
|
|
9318
|
-
args: [{ selector: 'app-page-grid-list', standalone: true, imports: [GridComponent, CrumbActionComponent, PagerComponent, HeadComponent, ImportComponent], encapsulation: ViewEncapsulation.None, template: "<div class=\"flex flex-col h-full\">\n\t<div class=\"flex flex-wrap items-center py-1 px-1 bg-white\">\n\t\t<div class=\"lg:basis-1/6 md:basis-1/4 basis-1/2 flex justify-start order-1\">\n\t\t\t<app-crumb-action\n\t\t\t\t[addVisible]=\"params().addVisible\"\n\t\t\t\t[exportVisible]=\"params().exportVisible ?? true\"\n\t\t\t\t[importVisible]=\"params().importVisible ?? true\"\n\t\t\t\t[newUrl]=\"params().newUrl\"\n\t\t\t\t[onExport]=\"params().onExport\"\n\t\t\t\t[isList]=\"true\"\n\t\t\t\t[isShowCog]=\"true\"\n\t\t\t\t[menus]=\"menus()\"\n\t\t\t\t[authLevel]=\"authLevel()\">\n\t\t\t</app-crumb-action>\n\t\t</div>\n\t\t<div class=\"lg:basis-4/6 md:basis-1/2 basis-full flex justify-center items-center md:order-2 order-last\">\n\t\t\t<custom-head\n\t\t\t\tclass=\"max-lg:min-w-full\"\n\t\t\t\t[actions]=\"actions()\"\n\t\t\t\t[grid]=\"customGrid\"\n\t\t\t\t[authLevel]=\"authLevel()\"\n\t\t\t\t[gridOptions]=\"gridOptions()\"></custom-head>\n\t\t</div>\n\t\t<div class=\"lg:basis-1/6 md:basis-1/4 basis-1/2 flex justify-end order-3\">\n\t\t\t<custom-pager></custom-pager>\n\t\t</div>\n\t</div>\n\t<div class=\"flex-1\">\n\t\t<custom-grid\n\t\t\t#customGrid\n\t\t\t[upsert]=\"upsertPrm\"\n\t\t\t[searchPrm]=\"searchPrm\"\n\t\t\t[showAct]=\"false\"\n\t\t\t[gridOptions]=\"gridOptions()!\">\n\t\t</custom-grid>\n\t</div>\n</div>\n<app-import\n\t[fileName]=\"params()?.importFileName\"\n\t[funcName]=\"params()?.importFuncName\"\n\t[orgVisible]=\"params()?.importOrgVisible\"\n\t[orgField]=\"params()?.importOrgField\"\n\t[grid]=\"customGrid\"\n\t[modelName]=\"gridOptions()!.modelName ?? ''\">\n</app-import>\n", styles: [".ms-grid{background-color:#efefef}.ms-content{border-top:solid 1px #dbdbdb;background-color:#f9fafb}.mode-hide{display:none}\n"] }]
|
|
9334
|
+
args: [{ selector: 'app-page-grid-list', standalone: true, imports: [GridComponent, CrumbActionComponent, PagerComponent, HeadComponent, ImportComponent], encapsulation: ViewEncapsulation.None, template: "<div class=\"flex flex-col h-full\">\r\n\t<div class=\"flex flex-wrap items-center py-1 px-1 bg-white\">\r\n\t\t<div class=\"lg:basis-1/6 md:basis-1/4 basis-1/2 flex justify-start order-1\">\r\n\t\t\t<app-crumb-action\r\n\t\t\t\t[addVisible]=\"params().addVisible\"\r\n\t\t\t\t[exportVisible]=\"params().exportVisible ?? true\"\r\n\t\t\t\t[importVisible]=\"params().importVisible ?? true\"\r\n\t\t\t\t[newUrl]=\"params().newUrl\"\r\n\t\t\t\t[onExport]=\"params().onExport\"\r\n\t\t\t\t[isList]=\"true\"\r\n\t\t\t\t[isShowCog]=\"true\"\r\n\t\t\t\t[menus]=\"menus()\"\r\n\t\t\t\t[authLevel]=\"authLevel()\">\r\n\t\t\t</app-crumb-action>\r\n\t\t</div>\r\n\t\t<div class=\"lg:basis-4/6 md:basis-1/2 basis-full flex justify-center items-center md:order-2 order-last\">\r\n\t\t\t<custom-head\r\n\t\t\t\tclass=\"max-lg:min-w-full\"\r\n\t\t\t\t[actions]=\"actions()\"\r\n\t\t\t\t[grid]=\"customGrid\"\r\n\t\t\t\t[authLevel]=\"authLevel()\"\r\n\t\t\t\t[gridOptions]=\"gridOptions()\"></custom-head>\r\n\t\t</div>\r\n\t\t<div class=\"lg:basis-1/6 md:basis-1/4 basis-1/2 flex justify-end order-3\">\r\n\t\t\t<custom-pager></custom-pager>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"flex-1\">\r\n\t\t<custom-grid\r\n\t\t\t#customGrid\r\n\t\t\t[upsert]=\"upsertPrm\"\r\n\t\t\t[searchPrm]=\"searchPrm\"\r\n\t\t\t[showAct]=\"false\"\r\n\t\t\t[gridOptions]=\"gridOptions()!\">\r\n\t\t</custom-grid>\r\n\t</div>\r\n</div>\r\n<app-import\r\n\t[fileName]=\"params()?.importFileName\"\r\n\t[funcName]=\"params()?.importFuncName\"\r\n\t[orgVisible]=\"params()?.importOrgVisible\"\r\n\t[orgField]=\"params()?.importOrgField\"\r\n\t[grid]=\"customGrid\"\r\n\t[modelName]=\"gridOptions()!.modelName ?? ''\">\r\n</app-import>\r\n", styles: [".ms-grid{background-color:#efefef}.ms-content{border-top:solid 1px #dbdbdb;background-color:#f9fafb}.mode-hide{display:none}\n"] }]
|
|
9319
9335
|
}], ctorParameters: () => [], propDecorators: { customGrid: [{
|
|
9320
9336
|
type: ViewChild,
|
|
9321
9337
|
args: ['customGrid']
|
|
@@ -9330,11 +9346,11 @@ class LoadingComponent {
|
|
|
9330
9346
|
});
|
|
9331
9347
|
}
|
|
9332
9348
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LoadingComponent, deps: [{ token: LoadingService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9333
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: LoadingComponent, isStandalone: true, selector: "custom-loading", ngImport: i0, template: "@if (visible()) {\n\t<div class=\"mask\"></div>\n\t<div class=\"progress\">\n\t\t<p-progressSpinner\n\t\t\t[style]=\"{ width: '50px', height: '50px' }\"\n\t\t\tstyleClass=\"custom-spinner\"\n\t\t\tstrokeWidth=\"6\"\n\t\t\tanimationDuration=\"1s\"></p-progressSpinner>\n\t</div>\n}\n", styles: [".mask{position:fixed;top:0;left:0;height:100vh;width:100vw;z-index:9998}.progress{position:fixed;top:35vh;left:50vw;height:5rem;width:5rem;border-radius:.5rem;display:flex;justify-content:center;align-items:center;z-index:9999}:host ::ng-deep .custom-spinner .p-progress-spinner-circle{animation:custom-progress-spinner-dash 3s ease-in-out infinite,custom-progress-spinner-color 12s ease-in-out infinite}@keyframes custom-progress-spinner-color{to,0%{stroke:#fff}}\n"], dependencies: [{ kind: "ngmodule", type: ProgressSpinnerModule }, { kind: "component", type: i2$a.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }] }); }
|
|
9349
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: LoadingComponent, isStandalone: true, selector: "custom-loading", ngImport: i0, template: "@if (visible()) {\r\n\t<div class=\"mask\"></div>\r\n\t<div class=\"progress\">\r\n\t\t<p-progressSpinner\r\n\t\t\t[style]=\"{ width: '50px', height: '50px' }\"\r\n\t\t\tstyleClass=\"custom-spinner\"\r\n\t\t\tstrokeWidth=\"6\"\r\n\t\t\tanimationDuration=\"1s\"></p-progressSpinner>\r\n\t</div>\r\n}\r\n", styles: [".mask{position:fixed;top:0;left:0;height:100vh;width:100vw;z-index:9998}.progress{position:fixed;top:35vh;left:50vw;height:5rem;width:5rem;border-radius:.5rem;display:flex;justify-content:center;align-items:center;z-index:9999}:host ::ng-deep .custom-spinner .p-progress-spinner-circle{animation:custom-progress-spinner-dash 3s ease-in-out infinite,custom-progress-spinner-color 12s ease-in-out infinite}@keyframes custom-progress-spinner-color{to,0%{stroke:#fff}}\n"], dependencies: [{ kind: "ngmodule", type: ProgressSpinnerModule }, { kind: "component", type: i2$a.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }] }); }
|
|
9334
9350
|
}
|
|
9335
9351
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LoadingComponent, decorators: [{
|
|
9336
9352
|
type: Component,
|
|
9337
|
-
args: [{ selector: 'custom-loading', standalone: true, imports: [ProgressSpinnerModule], template: "@if (visible()) {\n\t<div class=\"mask\"></div>\n\t<div class=\"progress\">\n\t\t<p-progressSpinner\n\t\t\t[style]=\"{ width: '50px', height: '50px' }\"\n\t\t\tstyleClass=\"custom-spinner\"\n\t\t\tstrokeWidth=\"6\"\n\t\t\tanimationDuration=\"1s\"></p-progressSpinner>\n\t</div>\n}\n", styles: [".mask{position:fixed;top:0;left:0;height:100vh;width:100vw;z-index:9998}.progress{position:fixed;top:35vh;left:50vw;height:5rem;width:5rem;border-radius:.5rem;display:flex;justify-content:center;align-items:center;z-index:9999}:host ::ng-deep .custom-spinner .p-progress-spinner-circle{animation:custom-progress-spinner-dash 3s ease-in-out infinite,custom-progress-spinner-color 12s ease-in-out infinite}@keyframes custom-progress-spinner-color{to,0%{stroke:#fff}}\n"] }]
|
|
9353
|
+
args: [{ selector: 'custom-loading', standalone: true, imports: [ProgressSpinnerModule], template: "@if (visible()) {\r\n\t<div class=\"mask\"></div>\r\n\t<div class=\"progress\">\r\n\t\t<p-progressSpinner\r\n\t\t\t[style]=\"{ width: '50px', height: '50px' }\"\r\n\t\t\tstyleClass=\"custom-spinner\"\r\n\t\t\tstrokeWidth=\"6\"\r\n\t\t\tanimationDuration=\"1s\"></p-progressSpinner>\r\n\t</div>\r\n}\r\n", styles: [".mask{position:fixed;top:0;left:0;height:100vh;width:100vw;z-index:9998}.progress{position:fixed;top:35vh;left:50vw;height:5rem;width:5rem;border-radius:.5rem;display:flex;justify-content:center;align-items:center;z-index:9999}:host ::ng-deep .custom-spinner .p-progress-spinner-circle{animation:custom-progress-spinner-dash 3s ease-in-out infinite,custom-progress-spinner-color 12s ease-in-out infinite}@keyframes custom-progress-spinner-color{to,0%{stroke:#fff}}\n"] }]
|
|
9338
9354
|
}], ctorParameters: () => [{ type: LoadingService }] });
|
|
9339
9355
|
|
|
9340
9356
|
const presets = {
|