ngx-t-forms 3.1.2 → 3.1.4
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/fesm2022/{ngx-t-forms-api-endpoint-config.component-B9tCHtwV.mjs → ngx-t-forms-api-endpoint-config.component-Bt7rWYJq.mjs} +15 -13
- package/fesm2022/ngx-t-forms-api-endpoint-config.component-Bt7rWYJq.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D2Vty1Aj.mjs → ngx-t-forms-auto-complete-input-element.component-IS266hPn.mjs} +28 -11
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-IS266hPn.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-Dr2bhCnH.mjs → ngx-t-forms-basic-input-input-element.component-BLcDBM6M.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-Dr2bhCnH.mjs.map → ngx-t-forms-basic-input-input-element.component-BLcDBM6M.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-DLBTjfMj.mjs → ngx-t-forms-calculated-field-rules.component-BMheLioT.mjs} +2 -42
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BMheLioT.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-Bh6jMmtu.mjs → ngx-t-forms-chip-options-creator-editor.component-mPoQRw0c.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-Bh6jMmtu.mjs.map → ngx-t-forms-chip-options-creator-editor.component-mPoQRw0c.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-conditional-display-config.component-ayrWl-c2.mjs → ngx-t-forms-conditional-display-config.component-Cw7Axzql.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-conditional-display-config.component-ayrWl-c2.mjs.map → ngx-t-forms-conditional-display-config.component-Cw7Axzql.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-nOnJfMTo.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-Cacd0Sl8.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-nOnJfMTo.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-Cacd0Sl8.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-data-source-picker.component-mmyhOBvA.mjs → ngx-t-forms-data-source-picker.component-CwQgtKfU.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-data-source-picker.component-mmyhOBvA.mjs.map → ngx-t-forms-data-source-picker.component-CwQgtKfU.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DmiBra1D.mjs → ngx-t-forms-date-picker-input-element.component-OAnP4aVx.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DmiBra1D.mjs.map → ngx-t-forms-date-picker-input-element.component-OAnP4aVx.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-Cke5qSzR.mjs → ngx-t-forms-date-range-picker-input-element.component-DJVUs5xV.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-Cke5qSzR.mjs.map → ngx-t-forms-date-range-picker-input-element.component-DJVUs5xV.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-date-time-picker-input-element.component-2Cq0ZEVD.mjs +232 -0
- package/fesm2022/ngx-t-forms-date-time-picker-input-element.component-2Cq0ZEVD.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-C0xx4jrN.mjs → ngx-t-forms-document-list-label-config-editor.component-CZ-XFrjM.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-C0xx4jrN.mjs.map → ngx-t-forms-document-list-label-config-editor.component-CZ-XFrjM.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-document-picker.component-DI7wtEv6.mjs → ngx-t-forms-document-picker.component-qzqg4O0I.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-document-picker.component-DI7wtEv6.mjs.map → ngx-t-forms-document-picker.component-qzqg4O0I.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-editor-input-element.component-DbogKrdk.mjs → ngx-t-forms-editor-input-element.component-hf5qe7sH.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-editor-input-element.component-DbogKrdk.mjs.map → ngx-t-forms-editor-input-element.component-hf5qe7sH.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-DbwvZghJ.mjs → ngx-t-forms-file-upload-input-element.component-s1pe3gKq.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-DbwvZghJ.mjs.map → ngx-t-forms-file-upload-input-element.component-s1pe3gKq.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CkuzNdjx.mjs → ngx-t-forms-form-input-selector.component-T3yqbRnV.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CkuzNdjx.mjs.map → ngx-t-forms-form-input-selector.component-T3yqbRnV.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-DBCpa_rZ.mjs → ngx-t-forms-form-json-view.component-D5AXKbXq.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-DBCpa_rZ.mjs.map → ngx-t-forms-form-json-view.component-D5AXKbXq.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-jLj6vePZ.mjs → ngx-t-forms-form-section-stepper.component-5p9gBgjj.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-jLj6vePZ.mjs.map → ngx-t-forms-form-section-stepper.component-5p9gBgjj.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-Iyd0grju.mjs → ngx-t-forms-forms-builder-menu.component-DH4-vxBX.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-Iyd0grju.mjs.map → ngx-t-forms-forms-builder-menu.component-DH4-vxBX.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-geo-location.component-BUXRaPy0.mjs → ngx-t-forms-geo-location.component-CaW4y8X1.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-geo-location.component-BUXRaPy0.mjs.map → ngx-t-forms-geo-location.component-CaW4y8X1.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-header-template-editor.component-BLmAqiQA.mjs → ngx-t-forms-header-template-editor.component-D9lka3Y5.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-header-template-editor.component-BLmAqiQA.mjs.map → ngx-t-forms-header-template-editor.component-D9lka3Y5.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-D6Ffuhbv.mjs → ngx-t-forms-image-capture-input-element.component-Dt50q6pH.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-D6Ffuhbv.mjs.map → ngx-t-forms-image-capture-input-element.component-Dt50q6pH.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-index-CJwmJP3u.mjs +2 -0
- package/fesm2022/ngx-t-forms-index-CJwmJP3u.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-input-custom.component-45DTVv-R.mjs +309 -0
- package/fesm2022/ngx-t-forms-input-custom.component-45DTVv-R.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-editor.component-D60TpWzO.mjs → ngx-t-forms-input-editor.component-DNg-p_Wl.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-input-editor.component-D60TpWzO.mjs.map → ngx-t-forms-input-editor.component-DNg-p_Wl.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-yfxnNDPs.mjs → ngx-t-forms-map-mat-options-keys-DvrLH9wd.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-yfxnNDPs.mjs.map → ngx-t-forms-map-mat-options-keys-DvrLH9wd.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-cfBBan80.mjs → ngx-t-forms-mat-chip-list-editor.component-1YdhWOqQ.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-cfBBan80.mjs.map → ngx-t-forms-mat-chip-list-editor.component-1YdhWOqQ.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-BcYuduah.mjs → ngx-t-forms-missing-form-configs.component-P8CDm5nZ.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-BcYuduah.mjs.map → ngx-t-forms-missing-form-configs.component-P8CDm5nZ.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-nLawxM9j.mjs → ngx-t-forms-mscoa-chart-toolbar.component-Cj1zfMAW.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-nLawxM9j.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-Cj1zfMAW.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-config.component-B9G_WlEc.mjs → ngx-t-forms-mscoa-config.component-CyG4Lafw.mjs} +61 -12
- package/fesm2022/ngx-t-forms-mscoa-config.component-CyG4Lafw.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-DKEEZ8MD.mjs → ngx-t-forms-mscoa-segment-config.component-BcAgMwcV.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-DKEEZ8MD.mjs.map → ngx-t-forms-mscoa-segment-config.component-BcAgMwcV.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-B99ANTUL.mjs → ngx-t-forms-multiple-input-input-element.component-DN25FtGd.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-B99ANTUL.mjs.map → ngx-t-forms-multiple-input-input-element.component-DN25FtGd.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-ngx-t-forms-9BfJdjl4.mjs → ngx-t-forms-ngx-t-forms-D_PCGH-i.mjs} +10585 -154
- package/fesm2022/ngx-t-forms-ngx-t-forms-D_PCGH-i.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-paginated-selection-table-Bm5-5VWe.mjs → ngx-t-forms-paginated-selection-table-B62XtkB5.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-paginated-selection-table-Bm5-5VWe.mjs.map → ngx-t-forms-paginated-selection-table-B62XtkB5.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-2hwGuKAB.mjs → ngx-t-forms-payload-template-editor.component-CY7BRHuw.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-2hwGuKAB.mjs.map → ngx-t-forms-payload-template-editor.component-CY7BRHuw.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-BvjT2zfL.mjs → ngx-t-forms-pipeline-generator.component-I2K-Csz3.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-BvjT2zfL.mjs.map → ngx-t-forms-pipeline-generator.component-I2K-Csz3.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-quill-input.component-BsuOKfZT.mjs → ngx-t-forms-quill-input.component-BrOSKvq1.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-quill-input.component-BsuOKfZT.mjs.map → ngx-t-forms-quill-input.component-BrOSKvq1.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-record-list-manager.component-BK5nwwDp.mjs → ngx-t-forms-record-list-manager.component-BEeTQy5N.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-record-list-manager.component-BK5nwwDp.mjs.map → ngx-t-forms-record-list-manager.component-BEeTQy5N.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-required-inputs.component-DiwMttVf.mjs → ngx-t-forms-required-inputs.component-BUUrpNR0.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-required-inputs.component-DiwMttVf.mjs.map → ngx-t-forms-required-inputs.component-BUUrpNR0.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CBgG_f06.mjs → ngx-t-forms-rest-api-call-setup.component-CJyrmfYU.mjs} +345 -176
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-CJyrmfYU.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-section-report.component-CyPpFiWS.mjs → ngx-t-forms-section-report.component-Dxecd1uL.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-section-report.component-CyPpFiWS.mjs.map → ngx-t-forms-section-report.component-Dxecd1uL.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-select-input-element.component-B2wr5_88.mjs → ngx-t-forms-select-input-element.component-DPMSwCHF.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-select-input-element.component-B2wr5_88.mjs.map → ngx-t-forms-select-input-element.component-DPMSwCHF.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-BEZLG1Z8.mjs → ngx-t-forms-selection-options-editor.component-i0c0M02r.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-BEZLG1Z8.mjs.map → ngx-t-forms-selection-options-editor.component-i0c0M02r.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-Cmbd0krg.mjs → ngx-t-forms-textarea-input-element.component-CZ5Zlcdy.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-Cmbd0krg.mjs.map → ngx-t-forms-textarea-input-element.component-CZ5Zlcdy.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-Dd_FcAoD.mjs → ngx-t-forms-toggle-input-element.component-Cbnjjcv4.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-Dd_FcAoD.mjs.map → ngx-t-forms-toggle-input-element.component-Cbnjjcv4.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-token-text-input.component-DY04Z0fn.mjs → ngx-t-forms-token-text-input.component-B0_C_BSx.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-token-text-input.component-DY04Z0fn.mjs.map → ngx-t-forms-token-text-input.component-B0_C_BSx.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-validators-config.component-Btmz2cKH.mjs → ngx-t-forms-validators-config.component-BvCwOCgs.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-validators-config.component-Btmz2cKH.mjs.map → ngx-t-forms-validators-config.component-BvCwOCgs.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CT6sN9E4.mjs → ngx-t-forms-workflow-adjudication.component-DzE8_xCE.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CT6sN9E4.mjs.map → ngx-t-forms-workflow-adjudication.component-DzE8_xCE.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/package.json +3 -3
- package/types/ngx-t-forms.d.ts +1754 -5
- package/fesm2022/ngx-t-forms-api-endpoint-config.component-B9tCHtwV.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-D2Vty1Aj.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-DLBTjfMj.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-CKj1Oacc.mjs +0 -2
- package/fesm2022/ngx-t-forms-index-CKj1Oacc.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-custom.component-BMui37o-.mjs +0 -105
- package/fesm2022/ngx-t-forms-input-custom.component-BMui37o-.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-config.component-B9G_WlEc.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-9BfJdjl4.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-CBgG_f06.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-date-picker-input-element.component-DmiBra1D.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-picker-input-element/core/date-picker-reactive-input/date-picker-reactive-input.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-picker-input-element/core/date-picker-reactive-input/date-picker-reactive-input.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-picker-input-element/date-picker-input-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-picker-input-element/date-picker-input-element.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { BaseCustomInput, BaseCustomInputConfig } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\r\nimport { ITowerStepColumn } from 'ngx-t-forms-types';\r\nimport { NgControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatDatepicker, MatDatepickerInputEvent, MatDatepickerModule } from '@angular/material/datepicker';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatInputModule } from '@angular/material/input';\r\n\r\nconst customInputConfig: BaseCustomInputConfig = {\r\n controlType: 'lib-auto-complet-reactive-input',\r\n nextId: 0\r\n};\r\n\r\n@Component({\r\n selector: 'lib-date-picker-reactive-input',\r\n imports: [\r\n MatDatepickerModule,\r\n MatFormFieldModule,\r\n MatInputModule,\r\n ReactiveFormsModule\r\n ],\r\n host: {\r\n '[class.floating]': 'shouldLabelFloat',\r\n '[id]': 'id',\r\n },\r\n providers: [{ provide: MatFormFieldControl, useExisting: DatePickerReactiveInputComponent }],\r\n templateUrl: './date-picker-reactive-input.component.html',\r\n styleUrl: './date-picker-reactive-input.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class DatePickerReactiveInputComponent extends BaseCustomInput<Date> {\r\n readonly picker = input.required<MatDatepicker<unknown>>();\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n constructor() {\r\n super(\r\n inject(NgControl, { optional: true, self: true }) as NgControl,\r\n inject<ElementRef<HTMLElement>>(ElementRef),\r\n customInputConfig\r\n );\r\n }\r\n\r\n override get empty(): boolean {\r\n const n = this.value;\r\n // Check for null, undefined, or empty string, but allow 0\r\n return n === null || n === undefined || (n as unknown) === '';\r\n }\r\n\r\n override get shouldLabelFloat(): boolean {\r\n return true;\r\n }\r\n\r\n protected changed(event: MatDatepickerInputEvent<unknown, unknown>): void {\r\n this.value = event.value as Date | null;\r\n this.stateChanges.next();\r\n this.onChange(this.value);\r\n }\r\n}\r\n","<input\r\n[required]=\"inputConfig().required\"\r\n[disabled]=\"inputConfig().disabled || inputConfig().readonly\"\r\n[min]=\"inputConfig().min\"\r\n(dateChange)=\"changed($event)\"\r\n[value]=\"value\"\r\n[max]=\"inputConfig().max\" matInput\r\n[matDatepicker]=\"picker()\" />\r\n","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\r\nimport { FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { provideNativeDateAdapter } from '@angular/material/core';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatDatepickerModule } from '@angular/material/datepicker';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\r\nimport { TFormInputStatusComponent } from '../../../t-form-input-status/t-form-input-status.component';\r\nimport { DatePickerReactiveInputComponent } from './core/date-picker-reactive-input/date-picker-reactive-input.component';\r\nimport { getInputErrorMessage } from '../../../../services/core/t-input-controller/functions/inputErrorMessage';\r\n\r\n/** Wraps a reactive date-picker control inside a `mat-form-field`. */\r\n@Component({\r\n selector: 'lib-date-picker-input-element',\r\n templateUrl: './date-picker-input-element.component.html',\r\n styleUrl: './date-picker-input-element.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [provideNativeDateAdapter()],\r\n imports: [\r\n ReactiveFormsModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n MatDatepickerModule,\r\n TFormInputStatusComponent,\r\n DatePickerReactiveInputComponent,\r\n ],\r\n})\r\nexport class DatePickerInputElementComponent {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n readonly formGroup = input.required<FormGroup>();\r\n readonly reload = output<void>();\r\n\r\n protected readonly errorMessage = computed(() =>\r\n getInputErrorMessage(this.inputConfig(), this.formGroup()),\r\n );\r\n}\r\n","<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-date-picker-reactive-input\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n [picker]=\"picker\"\r\n ></lib-date-picker-reactive-input>\r\n\r\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\r\n <mat-datepicker #picker>\r\n <button mat-button matDatepickerCancel>Cancel</button>\r\n <button mat-raised-button color=\"primary\" matDatepickerApply>Apply</button>\r\n </mat-datepicker>\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon) {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</form>\r\n"],"names":["i4"],"mappings":";;;;;;;;;;;;;;;;;;;AASA,MAAM,iBAAiB,GAA0B;AAC/C,IAAA,WAAW,EAAE,iCAAiC;AAC9C,IAAA,MAAM,EAAE;CACT;AAmBK,MAAO,gCAAiC,SAAQ,eAAqB,CAAA;AAIzE,IAAA,WAAA,GAAA;QACE,KAAK,CACH,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAc,EAC9D,MAAM,CAA0B,UAAU,CAAC,EAC3C,iBAAiB,CAClB;AARM,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,4EAA0B;AACjD,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,iFAAoB;IAQzD;AAEA,IAAA,IAAa,KAAK,GAAA;AAChB,QAAA,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK;;QAEpB,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS,IAAK,CAAa,KAAK,EAAE;IAC/D;AAEA,IAAA,IAAa,gBAAgB,GAAA;AAC3B,QAAA,OAAO,IAAI;IACb;AAEU,IAAA,OAAO,CAAC,KAAgD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AA,EAAA,uBAAA,EAAA,MAAA,EAAA,CAAA,KAAA,EAAA,UAAA,EAAA,YAAA,EAAA,UAAA,EAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,QAAA,EAAA,mDAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,iDAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,yBAAyB,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACzB,gCAAgC,EAAA,QAAA,EAAA,gCAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAGvB,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAjB3C,SAAS;+BACE,+BAA+B,EAAA,eAAA,EAGxB,uBAAuB,CAAC,MAAM,aACpC,CAAC,wBAAwB,EAAE,CAAC,EAAA,OAAA,EAC9B;wBACP,mBAAmB;wBACnB,kBAAkB;wBAClB,aAAa;wBACb,eAAe;wBACf,gBAAgB;wBAChB,mBAAmB;wBACnB,yBAAyB;wBACzB,gCAAgC;AACjC,qBAAA,EAAA,QAAA,EAAA,4/EAAA,EAAA,MAAA,EAAA,CAAA,oJAAA,CAAA,EAAA;;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-date-picker-input-element.component-OAnP4aVx.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-picker-input-element/core/date-picker-reactive-input/date-picker-reactive-input.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-picker-input-element/core/date-picker-reactive-input/date-picker-reactive-input.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-picker-input-element/date-picker-input-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-picker-input-element/date-picker-input-element.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { BaseCustomInput, BaseCustomInputConfig } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\r\nimport { ITowerStepColumn } from 'ngx-t-forms-types';\r\nimport { NgControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatDatepicker, MatDatepickerInputEvent, MatDatepickerModule } from '@angular/material/datepicker';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatInputModule } from '@angular/material/input';\r\n\r\nconst customInputConfig: BaseCustomInputConfig = {\r\n controlType: 'lib-auto-complet-reactive-input',\r\n nextId: 0\r\n};\r\n\r\n@Component({\r\n selector: 'lib-date-picker-reactive-input',\r\n imports: [\r\n MatDatepickerModule,\r\n MatFormFieldModule,\r\n MatInputModule,\r\n ReactiveFormsModule\r\n ],\r\n host: {\r\n '[class.floating]': 'shouldLabelFloat',\r\n '[id]': 'id',\r\n },\r\n providers: [{ provide: MatFormFieldControl, useExisting: DatePickerReactiveInputComponent }],\r\n templateUrl: './date-picker-reactive-input.component.html',\r\n styleUrl: './date-picker-reactive-input.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class DatePickerReactiveInputComponent extends BaseCustomInput<Date> {\r\n readonly picker = input.required<MatDatepicker<unknown>>();\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n constructor() {\r\n super(\r\n inject(NgControl, { optional: true, self: true }) as NgControl,\r\n inject<ElementRef<HTMLElement>>(ElementRef),\r\n customInputConfig\r\n );\r\n }\r\n\r\n override get empty(): boolean {\r\n const n = this.value;\r\n // Check for null, undefined, or empty string, but allow 0\r\n return n === null || n === undefined || (n as unknown) === '';\r\n }\r\n\r\n override get shouldLabelFloat(): boolean {\r\n return true;\r\n }\r\n\r\n protected changed(event: MatDatepickerInputEvent<unknown, unknown>): void {\r\n this.value = event.value as Date | null;\r\n this.stateChanges.next();\r\n this.onChange(this.value);\r\n }\r\n}\r\n","<input\r\n[required]=\"inputConfig().required\"\r\n[disabled]=\"inputConfig().disabled || inputConfig().readonly\"\r\n[min]=\"inputConfig().min\"\r\n(dateChange)=\"changed($event)\"\r\n[value]=\"value\"\r\n[max]=\"inputConfig().max\" matInput\r\n[matDatepicker]=\"picker()\" />\r\n","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\r\nimport { FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { provideNativeDateAdapter } from '@angular/material/core';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatDatepickerModule } from '@angular/material/datepicker';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\r\nimport { TFormInputStatusComponent } from '../../../t-form-input-status/t-form-input-status.component';\r\nimport { DatePickerReactiveInputComponent } from './core/date-picker-reactive-input/date-picker-reactive-input.component';\r\nimport { getInputErrorMessage } from '../../../../services/core/t-input-controller/functions/inputErrorMessage';\r\n\r\n/** Wraps a reactive date-picker control inside a `mat-form-field`. */\r\n@Component({\r\n selector: 'lib-date-picker-input-element',\r\n templateUrl: './date-picker-input-element.component.html',\r\n styleUrl: './date-picker-input-element.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [provideNativeDateAdapter()],\r\n imports: [\r\n ReactiveFormsModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n MatDatepickerModule,\r\n TFormInputStatusComponent,\r\n DatePickerReactiveInputComponent,\r\n ],\r\n})\r\nexport class DatePickerInputElementComponent {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n readonly formGroup = input.required<FormGroup>();\r\n readonly reload = output<void>();\r\n\r\n protected readonly errorMessage = computed(() =>\r\n getInputErrorMessage(this.inputConfig(), this.formGroup()),\r\n );\r\n}\r\n","<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-date-picker-reactive-input\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n [picker]=\"picker\"\r\n ></lib-date-picker-reactive-input>\r\n\r\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\r\n <mat-datepicker #picker>\r\n <button mat-button matDatepickerCancel>Cancel</button>\r\n <button mat-raised-button color=\"primary\" matDatepickerApply>Apply</button>\r\n </mat-datepicker>\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon) {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</form>\r\n"],"names":["i4"],"mappings":";;;;;;;;;;;;;;;;;;;AASA,MAAM,iBAAiB,GAA0B;AAC/C,IAAA,WAAW,EAAE,iCAAiC;AAC9C,IAAA,MAAM,EAAE;CACT;AAmBK,MAAO,gCAAiC,SAAQ,eAAqB,CAAA;AAIzE,IAAA,WAAA,GAAA;QACE,KAAK,CACH,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAc,EAC9D,MAAM,CAA0B,UAAU,CAAC,EAC3C,iBAAiB,CAClB;AARM,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,4EAA0B;AACjD,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,iFAAoB;IAQzD;AAEA,IAAA,IAAa,KAAK,GAAA;AAChB,QAAA,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK;;QAEpB,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS,IAAK,CAAa,KAAK,EAAE;IAC/D;AAEA,IAAA,IAAa,gBAAgB,GAAA;AAC3B,QAAA,OAAO,IAAI;IACb;AAEU,IAAA,OAAO,CAAC,KAAgD,EAAA;AAChE,QAAA,IAAI,CAAC,KAAK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AAA,KAAA,EAAA,UAAA,EAAA,YAAA,EAAA,UAAA,EAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,QAAA,EAAA,mDAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,iDAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,yBAAyB,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACzB,gCAAgC,EAAA,QAAA,EAAA,gCAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAGvB,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAjB3C,SAAS;+BACE,+BAA+B,EAAA,eAAA,EAGxB,uBAAuB,CAAC,MAAM,aACpC,CAAC,wBAAwB,EAAE,CAAC,EAAA,OAAA,EAC9B;wBACP,mBAAmB;wBACnB,kBAAkB;wBAClB,aAAa;wBACb,eAAe;wBACf,gBAAgB;wBAChB,mBAAmB;wBACnB,yBAAyB;wBACzB,gCAAgC;AACjC,qBAAA,EAAA,QAAA,EAAA,4/EAAA,EAAA,MAAA,EAAA,CAAA,oJAAA,CAAA,EAAA;;;;;"}
|
|
@@ -13,7 +13,7 @@ import * as i2$1 from '@angular/material/button';
|
|
|
13
13
|
import { MatButtonModule } from '@angular/material/button';
|
|
14
14
|
import * as i5 from '@angular/material/tooltip';
|
|
15
15
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
16
|
-
import { B as BaseCustomInput,
|
|
16
|
+
import { B as BaseCustomInput, a4 as resolveDateRangeControlNames, a2 as getInputErrorMessage, a3 as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-D_PCGH-i.mjs';
|
|
17
17
|
import { MatInputModule } from '@angular/material/input';
|
|
18
18
|
|
|
19
19
|
const customInputConfig = {
|
|
@@ -163,4 +163,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
163
163
|
}], propDecorators: { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], reload: [{ type: i0.Output, args: ["reload"] }] } });
|
|
164
164
|
|
|
165
165
|
export { DateRangePickerInputElementComponent };
|
|
166
|
-
//# sourceMappingURL=ngx-t-forms-date-range-picker-input-element.component-
|
|
166
|
+
//# sourceMappingURL=ngx-t-forms-date-range-picker-input-element.component-DJVUs5xV.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-date-range-picker-input-element.component-Cke5qSzR.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-range-picker-input-element/core/date-range-picker-reactive-input/date-range-picker-reactive-input.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-range-picker-input-element/core/date-range-picker-reactive-input/date-range-picker-reactive-input.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-range-picker-input-element/date-range-picker-input-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-range-picker-input-element/date-range-picker-input-element.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewEncapsulation,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { AbstractControl, FormGroup, NgControl, ReactiveFormsModule } from '@angular/forms';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\nimport {\n BaseCustomInput,\n BaseCustomInputConfig,\n} from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\nimport { resolveDateRangeControlNames } from '../../../../../../shared/functions/dateRangeControlNames';\n\nconst customInputConfig: BaseCustomInputConfig = {\n controlType: 'lib-date-range-picker-reactive-input',\n nextId: 0,\n};\n\n/**\n * Inner Material `MatFormFieldControl` host for the date-range-picker reactive\n * input. Owns start/end `FormControl` lookups and the cross-field required\n * validation reconciliation.\n */\n@Component({\n selector: 'lib-date-range-picker-reactive-input',\n imports: [\n ReactiveFormsModule,\n MatDatepickerModule,\n MatInputModule,\n MatIconModule,\n MatButtonModule,\n ],\n host: {\n '[class.floating]': 'shouldLabelFloat',\n '[id]': 'id',\n },\n providers: [\n { provide: MatFormFieldControl, useExisting: DateRangePickerReactiveInputComponent },\n ],\n templateUrl: './date-range-picker-reactive-input.component.html',\n styleUrl: './date-range-picker-reactive-input.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class DateRangePickerReactiveInputComponent extends BaseCustomInput<Date> {\n /** Column definition used to resolve the start/end `FormControl` names. */\n readonly inputConfig = input.required<ITowerStepColumn>();\n\n constructor() {\n super(\n inject(NgControl, { self: true, optional: true }) as NgControl,\n inject(ElementRef),\n customInputConfig,\n );\n }\n\n override get empty(): boolean {\n const n: Date | null = this.value;\n // Check for null, undefined, or empty string, but allow 0\n return n === null || n === undefined || (typeof n === 'string' && n === '');\n }\n\n override get shouldLabelFloat(): boolean {\n return true;\n }\n\n protected readonly startDateControl = computed(() => {\n const parent = this.parentFormGroup;\n const ctrl: AbstractControl | undefined =\n parent?.controls[resolveDateRangeControlNames(this.inputConfig()).startControlName];\n return ctrl ?? null;\n });\n\n protected readonly endDateControl = computed(() => {\n const parent = this.parentFormGroup;\n const ctrl: AbstractControl | undefined =\n parent?.controls[resolveDateRangeControlNames(this.inputConfig()).endControlName];\n return ctrl ?? null;\n });\n\n protected get parentFormGroup(): FormGroup | null {\n return (this.ngControl?.control?.parent as FormGroup) ?? null;\n }\n\n override checkValidationsAnErrors(): void {\n const control = this.ngControl?.control;\n if (!control || !this.touched) return;\n // A disabled control does not participate in validation, and a DISABLED\n // half is never `valid` — so without this guard the required-sync below\n // stamps `{required:true}` onto a control Angular just excluded from the\n // form. `disable()` nulls errors but keeps the DISABLED status through a\n // later `setErrors`, producing a form that is valid and 100% complete with\n // a blocking error nobody can see. Conditionally-hidden date ranges hit\n // this on every render; author-disabled ones could always have.\n if (control.disabled) return;\n\n const errors = { ...control.errors };\n\n this.errors = errors;\n const validStartDate = this.startDateControl()?.valid;\n const validEndDate = this.endDateControl()?.valid;\n if (validStartDate && validEndDate && 'required' in errors) {\n const hasOtherErrors = Object.keys(errors).length > 1;\n if (!hasOtherErrors) {\n control.setErrors(null);\n } else {\n delete errors['required'];\n control.setErrors(errors);\n }\n } else if (\n (!('required' in errors) && this.required && !validStartDate) ||\n (!('required' in errors) && this.required && !validEndDate)\n ) {\n control.setErrors({ required: true, ...errors });\n }\n }\n}\n","","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\r\nimport { FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { provideNativeDateAdapter } from '@angular/material/core';\r\nimport { DateRange, MatDatepickerInputEvent, MatDatepickerModule } from '@angular/material/datepicker';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\r\nimport { TFormInputStatusComponent } from '../../../t-form-input-status/t-form-input-status.component';\r\nimport { DateRangePickerReactiveInputComponent } from './core/date-range-picker-reactive-input/date-range-picker-reactive-input.component';\r\nimport { getInputErrorMessage } from '../../../../services/core/t-input-controller/functions/inputErrorMessage';\r\nimport { resolveDateRangeControlNames } from '../../../../shared/functions/dateRangeControlNames';\r\n\r\n/** Wraps a reactive date-range-picker control inside a `mat-form-field`. */\r\n@Component({\r\n selector: 'lib-date-range-picker-input-element',\r\n templateUrl: './date-range-picker-input-element.component.html',\r\n styleUrl: './date-range-picker-input-element.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [provideNativeDateAdapter()],\r\n imports: [\r\n ReactiveFormsModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n MatDatepickerModule,\r\n TFormInputStatusComponent,\r\n DateRangePickerReactiveInputComponent,\r\n ],\r\n})\r\nexport class DateRangePickerInputElementComponent {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n readonly formGroup = input.required<FormGroup>();\r\n readonly reload = output<void>();\r\n\r\n protected readonly errorMessage = computed(() =>\r\n getInputErrorMessage(this.inputConfig(), this.formGroup()),\r\n );\r\n\r\n /**\r\n * Flat control name of the start endpoint on the bound section group, with the\r\n * shared `startDate` fallback applied so an incomplete descriptor still\r\n * renders a `matStartDate` input (its absence makes Material throw).\r\n */\r\n protected readonly startControlName = computed<string>(\r\n () => resolveDateRangeControlNames(this.inputConfig()).startControlName,\r\n );\r\n\r\n /** Flat control name of the end endpoint, with the `endDate` fallback. */\r\n protected readonly endControlName = computed<string>(\r\n () => resolveDateRangeControlNames(this.inputConfig()).endControlName,\r\n );\r\n\r\n protected hasStartDateError(errorName: string): boolean {\r\n const control = this.formGroup().get(this.startControlName());\r\n return control ? control.hasError(errorName) : false;\r\n }\r\n\r\n protected hasEndDateError(errorName: string): boolean {\r\n const control = this.formGroup().get(this.endControlName());\r\n return control ? control.hasError(errorName) : false;\r\n }\r\n\r\n /**\r\n * Writes a committed endpoint date back to its own control.\r\n *\r\n * @param event Picker/typed commit event.\r\n * @param controlName Flat control name — pass `startControlName()` /\r\n * `endControlName()`, already `id`-prefixed.\r\n */\r\n protected dateChanged(\r\n event: MatDatepickerInputEvent<unknown, DateRange<unknown>>,\r\n controlName: string,\r\n ): void {\r\n const control = this.formGroup().controls[controlName];\r\n if (control) {\r\n control.setValue(event.value);\r\n control.updateValueAndValidity();\r\n control.markAsTouched();\r\n control.markAsDirty();\r\n }\r\n }\r\n}\r\n","<form [formGroup]=\"formGroup()\">\n @if (inputConfig(); as inputConfig) {\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\n <mat-label>\n {{ inputConfig.label }}\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\n </mat-label>\n\n <lib-date-range-picker-reactive-input\n [inputConfig]=\"inputConfig\"\n [required]=\"inputConfig.required\"\n [formControlName]=\"endControlName()\"\n ></lib-date-range-picker-reactive-input>\n\n <!--\n Both endpoints render unconditionally, and their control names come from\n `startControlName()` / `endControlName()` — never from the raw, optional\n `inputConfig.startDateControl` / `.endDateControl`. These inputs used to sit\n behind `@if (inputConfig.startDateControl)` guards, so a descriptor that\n omitted either key built a `mat-date-range-input` with a missing endpoint\n and Material threw \"must contain a matStartDate input\" from\n `ngAfterContentInit`. The resolved names carry a `startDate` / `endDate`\n fallback (see dateRangeControlNames.ts) that the control generator applies\n too, so the control each input binds to always exists.\n -->\n <mat-date-range-input [required]=\"inputConfig.required\" [formGroup]=\"formGroup()\" [rangePicker]=\"picker\">\n <input\n matStartDate\n [disabled]=\"!!(inputConfig.disabled ?? inputConfig.readonly)\"\n [formControlName]=\"startControlName()\"\n [min]=\"inputConfig.startMinDate\"\n [max]=\"inputConfig.startMaxDate\"\n [value]=\"formGroup().controls[startControlName()]?.value\"\n (dateChange)=\"dateChanged($event, startControlName())\"\n placeholder=\"Start date\"\n />\n <input\n matEndDate\n [disabled]=\"!!(inputConfig.disabled ?? inputConfig.readonly)\"\n [formControlName]=\"endControlName()\"\n [value]=\"formGroup().controls[endControlName()]?.value\"\n placeholder=\"End date\"\n [min]=\"inputConfig.endMinDate\"\n [max]=\"inputConfig.endMaxDate\"\n (dateChange)=\"dateChanged($event, endControlName())\"\n />\n </mat-date-range-input>\n\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker>\n <mat-datepicker-actions>\n <button mat-button matDatepickerCancel>Cancel</button>\n <button mat-raised-button color=\"primary\" matDatepickerApply>Apply</button>\n </mat-datepicker-actions>\n </mat-date-range-picker>\n\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\n <mat-hint [matTooltip]=\"inputConfig.hintLabel || ''\" class=\"inputHint\">\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\n </mat-hint>\n }\n\n @if (!!errorMessage()) {\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\n }\n\n @if (inputConfig.canReload?.canReload) {\n <button\n mat-icon-button\n style=\"margin-right: 4px;\"\n matTooltip=\"Click to refresh this field.\"\n class=\"input-sync-button\"\n (click)=\"inputConfig.canReload.emit()\"\n matSuffix\n >\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\n </button>\n }\n\n @if (inputConfig.prefixIcon) {\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\n }\n\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\n }\n\n @if (inputConfig.prefixText) {\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\n }\n @if (inputConfig.suffixText) {\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\n }\n\n @if (inputConfig.maxLength && formGroup()) {\n <mat-hint>\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\n </mat-hint>\n }\n </mat-form-field>\n }\n</form>\n"],"names":["i4"],"mappings":";;;;;;;;;;;;;;;;;;AAsBA,MAAM,iB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xV.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-range-picker-input-element/core/date-range-picker-reactive-input/date-range-picker-reactive-input.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-range-picker-input-element/core/date-range-picker-reactive-input/date-range-picker-reactive-input.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-range-picker-input-element/date-range-picker-input-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-range-picker-input-element/date-range-picker-input-element.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewEncapsulation,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { AbstractControl, FormGroup, NgControl, ReactiveFormsModule } from '@angular/forms';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\nimport {\n BaseCustomInput,\n BaseCustomInputConfig,\n} from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\nimport { resolveDateRangeControlNames } from '../../../../../../shared/functions/dateRangeControlNames';\n\nconst customInputConfig: BaseCustomInputConfig = {\n controlType: 'lib-date-range-picker-reactive-input',\n nextId: 0,\n};\n\n/**\n * Inner Material `MatFormFieldControl` host for the date-range-picker reactive\n * input. Owns start/end `FormControl` lookups and the cross-field required\n * validation reconciliation.\n */\n@Component({\n selector: 'lib-date-range-picker-reactive-input',\n imports: [\n ReactiveFormsModule,\n MatDatepickerModule,\n MatInputModule,\n MatIconModule,\n MatButtonModule,\n ],\n host: {\n '[class.floating]': 'shouldLabelFloat',\n '[id]': 'id',\n },\n providers: [\n { provide: MatFormFieldControl, useExisting: DateRangePickerReactiveInputComponent },\n ],\n templateUrl: './date-range-picker-reactive-input.component.html',\n styleUrl: './date-range-picker-reactive-input.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class DateRangePickerReactiveInputComponent extends BaseCustomInput<Date> {\n /** Column definition used to resolve the start/end `FormControl` names. */\n readonly inputConfig = input.required<ITowerStepColumn>();\n\n constructor() {\n super(\n inject(NgControl, { self: true, optional: true }) as NgControl,\n inject(ElementRef),\n customInputConfig,\n );\n }\n\n override get empty(): boolean {\n const n: Date | null = this.value;\n // Check for null, undefined, or empty string, but allow 0\n return n === null || n === undefined || (typeof n === 'string' && n === '');\n }\n\n override get shouldLabelFloat(): boolean {\n return true;\n }\n\n protected readonly startDateControl = computed(() => {\n const parent = this.parentFormGroup;\n const ctrl: AbstractControl | undefined =\n parent?.controls[resolveDateRangeControlNames(this.inputConfig()).startControlName];\n return ctrl ?? null;\n });\n\n protected readonly endDateControl = computed(() => {\n const parent = this.parentFormGroup;\n const ctrl: AbstractControl | undefined =\n parent?.controls[resolveDateRangeControlNames(this.inputConfig()).endControlName];\n return ctrl ?? null;\n });\n\n protected get parentFormGroup(): FormGroup | null {\n return (this.ngControl?.control?.parent as FormGroup) ?? null;\n }\n\n override checkValidationsAnErrors(): void {\n const control = this.ngControl?.control;\n if (!control || !this.touched) return;\n // A disabled control does not participate in validation, and a DISABLED\n // half is never `valid` — so without this guard the required-sync below\n // stamps `{required:true}` onto a control Angular just excluded from the\n // form. `disable()` nulls errors but keeps the DISABLED status through a\n // later `setErrors`, producing a form that is valid and 100% complete with\n // a blocking error nobody can see. Conditionally-hidden date ranges hit\n // this on every render; author-disabled ones could always have.\n if (control.disabled) return;\n\n const errors = { ...control.errors };\n\n this.errors = errors;\n const validStartDate = this.startDateControl()?.valid;\n const validEndDate = this.endDateControl()?.valid;\n if (validStartDate && validEndDate && 'required' in errors) {\n const hasOtherErrors = Object.keys(errors).length > 1;\n if (!hasOtherErrors) {\n control.setErrors(null);\n } else {\n delete errors['required'];\n control.setErrors(errors);\n }\n } else if (\n (!('required' in errors) && this.required && !validStartDate) ||\n (!('required' in errors) && this.required && !validEndDate)\n ) {\n control.setErrors({ required: true, ...errors });\n }\n }\n}\n","","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\r\nimport { FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { provideNativeDateAdapter } from '@angular/material/core';\r\nimport { DateRange, MatDatepickerInputEvent, MatDatepickerModule } from '@angular/material/datepicker';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\r\nimport { TFormInputStatusComponent } from '../../../t-form-input-status/t-form-input-status.component';\r\nimport { DateRangePickerReactiveInputComponent } from './core/date-range-picker-reactive-input/date-range-picker-reactive-input.component';\r\nimport { getInputErrorMessage } from '../../../../services/core/t-input-controller/functions/inputErrorMessage';\r\nimport { resolveDateRangeControlNames } from '../../../../shared/functions/dateRangeControlNames';\r\n\r\n/** Wraps a reactive date-range-picker control inside a `mat-form-field`. */\r\n@Component({\r\n selector: 'lib-date-range-picker-input-element',\r\n templateUrl: './date-range-picker-input-element.component.html',\r\n styleUrl: './date-range-picker-input-element.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [provideNativeDateAdapter()],\r\n imports: [\r\n ReactiveFormsModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n MatDatepickerModule,\r\n TFormInputStatusComponent,\r\n DateRangePickerReactiveInputComponent,\r\n ],\r\n})\r\nexport class DateRangePickerInputElementComponent {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n readonly formGroup = input.required<FormGroup>();\r\n readonly reload = output<void>();\r\n\r\n protected readonly errorMessage = computed(() =>\r\n getInputErrorMessage(this.inputConfig(), this.formGroup()),\r\n );\r\n\r\n /**\r\n * Flat control name of the start endpoint on the bound section group, with the\r\n * shared `startDate` fallback applied so an incomplete descriptor still\r\n * renders a `matStartDate` input (its absence makes Material throw).\r\n */\r\n protected readonly startControlName = computed<string>(\r\n () => resolveDateRangeControlNames(this.inputConfig()).startControlName,\r\n );\r\n\r\n /** Flat control name of the end endpoint, with the `endDate` fallback. */\r\n protected readonly endControlName = computed<string>(\r\n () => resolveDateRangeControlNames(this.inputConfig()).endControlName,\r\n );\r\n\r\n protected hasStartDateError(errorName: string): boolean {\r\n const control = this.formGroup().get(this.startControlName());\r\n return control ? control.hasError(errorName) : false;\r\n }\r\n\r\n protected hasEndDateError(errorName: string): boolean {\r\n const control = this.formGroup().get(this.endControlName());\r\n return control ? control.hasError(errorName) : false;\r\n }\r\n\r\n /**\r\n * Writes a committed endpoint date back to its own control.\r\n *\r\n * @param event Picker/typed commit event.\r\n * @param controlName Flat control name — pass `startControlName()` /\r\n * `endControlName()`, already `id`-prefixed.\r\n */\r\n protected dateChanged(\r\n event: MatDatepickerInputEvent<unknown, DateRange<unknown>>,\r\n controlName: string,\r\n ): void {\r\n const control = this.formGroup().controls[controlName];\r\n if (control) {\r\n control.setValue(event.value);\r\n control.updateValueAndValidity();\r\n control.markAsTouched();\r\n control.markAsDirty();\r\n }\r\n }\r\n}\r\n","<form [formGroup]=\"formGroup()\">\n @if (inputConfig(); as inputConfig) {\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\n <mat-label>\n {{ inputConfig.label }}\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\n </mat-label>\n\n <lib-date-range-picker-reactive-input\n [inputConfig]=\"inputConfig\"\n [required]=\"inputConfig.required\"\n [formControlName]=\"endControlName()\"\n ></lib-date-range-picker-reactive-input>\n\n <!--\n Both endpoints render unconditionally, and their control names come from\n `startControlName()` / `endControlName()` — never from the raw, optional\n `inputConfig.startDateControl` / `.endDateControl`. These inputs used to sit\n behind `@if (inputConfig.startDateControl)` guards, so a descriptor that\n omitted either key built a `mat-date-range-input` with a missing endpoint\n and Material threw \"must contain a matStartDate input\" from\n `ngAfterContentInit`. The resolved names carry a `startDate` / `endDate`\n fallback (see dateRangeControlNames.ts) that the control generator applies\n too, so the control each input binds to always exists.\n -->\n <mat-date-range-input [required]=\"inputConfig.required\" [formGroup]=\"formGroup()\" [rangePicker]=\"picker\">\n <input\n matStartDate\n [disabled]=\"!!(inputConfig.disabled ?? inputConfig.readonly)\"\n [formControlName]=\"startControlName()\"\n [min]=\"inputConfig.startMinDate\"\n [max]=\"inputConfig.startMaxDate\"\n [value]=\"formGroup().controls[startControlName()]?.value\"\n (dateChange)=\"dateChanged($event, startControlName())\"\n placeholder=\"Start date\"\n />\n <input\n matEndDate\n [disabled]=\"!!(inputConfig.disabled ?? inputConfig.readonly)\"\n [formControlName]=\"endControlName()\"\n [value]=\"formGroup().controls[endControlName()]?.value\"\n placeholder=\"End date\"\n [min]=\"inputConfig.endMinDate\"\n [max]=\"inputConfig.endMaxDate\"\n (dateChange)=\"dateChanged($event, endControlName())\"\n />\n </mat-date-range-input>\n\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker>\n <mat-datepicker-actions>\n <button mat-button matDatepickerCancel>Cancel</button>\n <button mat-raised-button color=\"primary\" matDatepickerApply>Apply</button>\n </mat-datepicker-actions>\n </mat-date-range-picker>\n\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\n <mat-hint [matTooltip]=\"inputConfig.hintLabel || ''\" class=\"inputHint\">\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\n </mat-hint>\n }\n\n @if (!!errorMessage()) {\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\n }\n\n @if (inputConfig.canReload?.canReload) {\n <button\n mat-icon-button\n style=\"margin-right: 4px;\"\n matTooltip=\"Click to refresh this field.\"\n class=\"input-sync-button\"\n (click)=\"inputConfig.canReload.emit()\"\n matSuffix\n >\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\n </button>\n }\n\n @if (inputConfig.prefixIcon) {\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\n }\n\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\n }\n\n @if (inputConfig.prefixText) {\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\n }\n @if (inputConfig.suffixText) {\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\n }\n\n @if (inputConfig.maxLength && formGroup()) {\n <mat-hint>\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\n </mat-hint>\n }\n </mat-form-field>\n }\n</form>\n"],"names":["i4"],"mappings":";;;;;;;;;;;;;;;;;;AAsBA,MAAM,iBAAiB,GAA0B;AAC/C,IAAA,WAAW,EAAE,sCAAsC;AACnD,IAAA,MAAM,EAAE,CAAC;CACV;AAED;;;;AAIG;AAsBG,MAAO,qCAAsC,SAAQ,eAAqB,CAAA;AAI9E,IAAA,WAAA,GAAA;QACE,KAAK,CACH,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAc,EAC9D,MAAM,CAAC,UAAU,CAAC,EAClB,iBAAiB,CAClB;;AAPM,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,iFAAoB;AAoBtC,QAAA,IAAA,CAAA,gBAAgB,GAAG,QAAQ,CAAC,MAAK;AAClD,YAAA,MAAM,MAAM,GAAG,IAAI,CAAC,eAAe;AACnC,YAAA,MAAM,IAAI,GACR,MAAM,EAAE,QAAQ,CAAC,4BAA4B,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,gBAAgB,CAAC;YACrF,OAAO,IAAI,IAAI,IAAI;AACrB,QAAA,CAAC,uFAAC;A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A,QAAA,EAAA,sCAAA,EAAA,MAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAG5B,oCAAoC,EAAA,UAAA,EAAA,CAAA;kBAjBhD,SAAS;+BACE,qCAAqC,EAAA,eAAA,EAG9B,uBAAuB,CAAC,MAAM,aACpC,CAAC,wBAAwB,EAAE,CAAC,EAAA,OAAA,EAC9B;wBACP,mBAAmB;wBACnB,kBAAkB;wBAClB,aAAa;wBACb,eAAe;wBACf,gBAAgB;wBAChB,mBAAmB;wBACnB,yBAAyB;wBACzB,qCAAqC;AACtC,qBAAA,EAAA,QAAA,EAAA,gvIAAA,EAAA,MAAA,EAAA,CAAA,oJAAA,CAAA,EAAA;;;;;"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, ElementRef, input, computed, ChangeDetectionStrategy, Component, output } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { NgControl, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { DateAdapter, provideNativeDateAdapter } from '@angular/material/core';
|
|
6
|
+
import * as i2$2 from '@angular/material/button';
|
|
7
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
8
|
+
import * as i6 from '@angular/material/datepicker';
|
|
9
|
+
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
10
|
+
import * as i2$1 from '@angular/material/form-field';
|
|
11
|
+
import { MatFormFieldModule, MatFormFieldControl } from '@angular/material/form-field';
|
|
12
|
+
import * as i3 from '@angular/material/icon';
|
|
13
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
14
|
+
import * as i7 from '@angular/material/timepicker';
|
|
15
|
+
import { MatTimepickerModule } from '@angular/material/timepicker';
|
|
16
|
+
import * as i5 from '@angular/material/tooltip';
|
|
17
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
18
|
+
import { B as BaseCustomInput, a2 as getInputErrorMessage, a3 as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-D_PCGH-i.mjs';
|
|
19
|
+
import * as i2 from '@angular/material/input';
|
|
20
|
+
import { MatInputModule } from '@angular/material/input';
|
|
21
|
+
|
|
22
|
+
const customInputConfig = {
|
|
23
|
+
controlType: 'lib-date-time-picker-reactive-input',
|
|
24
|
+
nextId: 0,
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* The `MatFormFieldControl` behind `dateTimePicker`: two native inputs — a date
|
|
28
|
+
* one driven by `matDatepicker`, a time one driven by `matTimepicker` — that
|
|
29
|
+
* together read and write **a single `Date`** on one form control.
|
|
30
|
+
*
|
|
31
|
+
* ## Why the merge is done here rather than left to Material
|
|
32
|
+
*
|
|
33
|
+
* Material's two directives each own only their own half of the value and
|
|
34
|
+
* disagree about the other half:
|
|
35
|
+
*
|
|
36
|
+
* - Picking a day in the calendar yields a `Date` at midnight, so it would
|
|
37
|
+
* silently discard a time the user had already chosen.
|
|
38
|
+
* - The timepicker generates its options from `adapter.today()`, so a time
|
|
39
|
+
* picked before a date is chosen carries *today's* date.
|
|
40
|
+
*
|
|
41
|
+
* Both halves are therefore recombined explicitly by {@link combine}: the
|
|
42
|
+
* calendar contributes year/month/day, the clock contributes hours/minutes/
|
|
43
|
+
* seconds, and the control emits one `Date`. Doing it here — rather than
|
|
44
|
+
* relying on `MatTimepickerInput`'s own "apply the time onto my current value"
|
|
45
|
+
* behaviour — keeps the result the same whichever half the user edits first,
|
|
46
|
+
* and whether or not the other half is set yet.
|
|
47
|
+
*
|
|
48
|
+
* ## Why the clock does not open on click
|
|
49
|
+
*
|
|
50
|
+
* Inside a `mat-form-field`, `MatTimepickerInput` listens for `click` on the
|
|
51
|
+
* WHOLE field (`getConnectedOverlayOrigin()`), not on its own input — so under
|
|
52
|
+
* the default `matTimepickerOpenOnClick` every click anywhere in the field opens
|
|
53
|
+
* the clock: the reload button, a suffix icon, and worst of all the calendar
|
|
54
|
+
* toggle, which would raise both overlays at once. That listener is
|
|
55
|
+
* all-or-nothing, so the option is turned off here. The clock opens from its own
|
|
56
|
+
* `mat-timepicker-toggle` or with the arrow keys (`_handleKeydown` ignores the
|
|
57
|
+
* flag), and the time can still be typed straight into the field.
|
|
58
|
+
*
|
|
59
|
+
* Everything reaches the form through the single `Date`, so calculations,
|
|
60
|
+
* value-fetch APIs, dependency resolution and pre-population all see the same
|
|
61
|
+
* one value they see for a plain `datePicker`.
|
|
62
|
+
*/
|
|
63
|
+
class DateTimePickerReactiveInputComponent extends BaseCustomInput {
|
|
64
|
+
#adapter;
|
|
65
|
+
constructor() {
|
|
66
|
+
super(inject(NgControl, { optional: true, self: true }), inject(ElementRef), customInputConfig);
|
|
67
|
+
/** Calendar overlay owned by the wrapping element renderer. */
|
|
68
|
+
this.datePicker = input.required(...(ngDevMode ? [{ debugName: "datePicker" }] : /* istanbul ignore next */ []));
|
|
69
|
+
/** Clock overlay owned by the wrapping element renderer. */
|
|
70
|
+
this.timePicker = input.required(...(ngDevMode ? [{ debugName: "timePicker" }] : /* istanbul ignore next */ []));
|
|
71
|
+
/** The column this control renders. */
|
|
72
|
+
this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
73
|
+
this.#adapter = inject(DateAdapter);
|
|
74
|
+
/**
|
|
75
|
+
* True while the column forbids editing. `readonly` is folded into `disabled`
|
|
76
|
+
* because a `matDatepicker`/`matTimepicker` input left merely read-only still
|
|
77
|
+
* opens its overlay on click, which would let a "read-only" field be changed.
|
|
78
|
+
*/
|
|
79
|
+
this.isDisabled = computed(() => !!this.inputConfig().disabled || !!this.inputConfig().readonly, ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
80
|
+
/**
|
|
81
|
+
* `min`/`max` as calendar bounds, or `null` when the column declares none the
|
|
82
|
+
* adapter can read.
|
|
83
|
+
*
|
|
84
|
+
* They are bound to the **calendar only**. `matTimepickerMin`/`Max` compare
|
|
85
|
+
* time-of-day alone, so a datetime bound applied there would forbid, on every
|
|
86
|
+
* other day, the hours that only the boundary day actually excludes. The true
|
|
87
|
+
* datetime bound is enforced by the engine's `datetime` constraint validators
|
|
88
|
+
* (`configConstraintValidators`), which see the whole value.
|
|
89
|
+
*/
|
|
90
|
+
this.minDate = computed(() => this.#bound(this.inputConfig().min), ...(ngDevMode ? [{ debugName: "minDate" }] : /* istanbul ignore next */ []));
|
|
91
|
+
this.maxDate = computed(() => this.#bound(this.inputConfig().max), ...(ngDevMode ? [{ debugName: "maxDate" }] : /* istanbul ignore next */ []));
|
|
92
|
+
/** Accessible name for the date half — the two inputs share one `mat-label`. */
|
|
93
|
+
this.dateAriaLabel = computed(() => `${this.inputConfig().label ?? ''} date`.trim(), ...(ngDevMode ? [{ debugName: "dateAriaLabel" }] : /* istanbul ignore next */ []));
|
|
94
|
+
/** Accessible name for the time half. */
|
|
95
|
+
this.timeAriaLabel = computed(() => `${this.inputConfig().label ?? ''} time`.trim(), ...(ngDevMode ? [{ debugName: "timeAriaLabel" }] : /* istanbul ignore next */ []));
|
|
96
|
+
}
|
|
97
|
+
get empty() {
|
|
98
|
+
const value = this.value;
|
|
99
|
+
// null / undefined / legacy empty string, but a real date at epoch 0 counts.
|
|
100
|
+
return value === null || value === undefined || value === '';
|
|
101
|
+
}
|
|
102
|
+
get shouldLabelFloat() {
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Coerces whatever the form control holds into a `Date` before it reaches the
|
|
107
|
+
* two halves.
|
|
108
|
+
*
|
|
109
|
+
* A pre-populated form, a value-fetch API response and an import row all seed
|
|
110
|
+
* the control with an ISO string rather than a `Date`, and the merge below
|
|
111
|
+
* needs real date arithmetic on both halves. Unreadable values become `null`
|
|
112
|
+
* rather than an `Invalid Date` the adapter would then format as junk.
|
|
113
|
+
*/
|
|
114
|
+
writeValue(value) {
|
|
115
|
+
// Assigns the protected field directly rather than calling `super`, whose
|
|
116
|
+
// parameter is typed `T` even though the field it writes is `T | null`:
|
|
117
|
+
// an unreadable seed legitimately coerces to null. Same two steps as the
|
|
118
|
+
// base — seed the value, announce the state change — nothing else.
|
|
119
|
+
this._value = this.#coerce(value);
|
|
120
|
+
this.stateChanges.next();
|
|
121
|
+
}
|
|
122
|
+
/** The user picked or typed a day: keep the time already chosen. */
|
|
123
|
+
dateChanged(event) {
|
|
124
|
+
this.#commit(this.combine(event.value, this.value));
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* The user picked or typed a time. Clearing the time keeps the day and falls
|
|
128
|
+
* back to midnight rather than destroying the value — an empty clock on a
|
|
129
|
+
* chosen day means "that day", not "no day".
|
|
130
|
+
*/
|
|
131
|
+
timeChanged(time) {
|
|
132
|
+
const current = this.value;
|
|
133
|
+
if (!time) {
|
|
134
|
+
this.#commit(current ? this.#adapter.setTime(current, 0, 0, 0) : null);
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
this.#commit(this.combine(current ?? this.#adapter.today(), time));
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Year/month/day from `datePart`, hours/minutes/seconds from `timePart`.
|
|
141
|
+
*
|
|
142
|
+
* A null `datePart` is the whole value cleared — there is no moment without a
|
|
143
|
+
* day. A null (or unreadable) `timePart` contributes midnight.
|
|
144
|
+
*
|
|
145
|
+
* @param datePart - Source of the calendar half.
|
|
146
|
+
* @param timePart - Source of the clock half.
|
|
147
|
+
* @returns The single combined moment, or `null` when there is no day.
|
|
148
|
+
*/
|
|
149
|
+
combine(datePart, timePart) {
|
|
150
|
+
const day = this.#coerce(datePart);
|
|
151
|
+
if (!day)
|
|
152
|
+
return null;
|
|
153
|
+
const time = this.#coerce(timePart);
|
|
154
|
+
return this.#adapter.setTime(day, time ? this.#adapter.getHours(time) : 0, time ? this.#adapter.getMinutes(time) : 0, time ? this.#adapter.getSeconds(time) : 0);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Publishes a merged value. The assignment alone notifies the form — the
|
|
158
|
+
* base class's `value` setter is what calls `onChange`, and calling it again
|
|
159
|
+
* here would emit the same edit twice (the defect pinned on the sibling
|
|
160
|
+
* date-picker control's spec).
|
|
161
|
+
*/
|
|
162
|
+
#commit(next) {
|
|
163
|
+
this.value = next;
|
|
164
|
+
this.stateChanges.next();
|
|
165
|
+
}
|
|
166
|
+
/** A readable `Date`, or `null` for anything the adapter cannot interpret. */
|
|
167
|
+
#coerce(value) {
|
|
168
|
+
if (value === null || value === undefined || value === '')
|
|
169
|
+
return null;
|
|
170
|
+
return this.#adapter.getValidDateOrNull(this.#adapter.deserialize(value));
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* A configured bound as a `Date`. Returns `null` for the `MaxMinCustomScripts`
|
|
174
|
+
* sentinels and any other value the adapter cannot read, so an unresolved
|
|
175
|
+
* host script never collapses the calendar to an empty range.
|
|
176
|
+
*/
|
|
177
|
+
#bound(raw) {
|
|
178
|
+
return typeof raw === 'number' ? null : this.#coerce(raw);
|
|
179
|
+
}
|
|
180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DateTimePickerReactiveInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
181
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: DateTimePickerReactiveInputComponent, isStandalone: true, selector: "lib-date-time-picker-reactive-input", inputs: { datePicker: { classPropertyName: "datePicker", publicName: "datePicker", isSignal: true, isRequired: true, transformFunction: null }, timePicker: { classPropertyName: "timePicker", publicName: "timePicker", isSignal: true, isRequired: true, transformFunction: null }, inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.floating": "shouldLabelFloat", "id": "id" } }, providers: [{ provide: MatFormFieldControl, useExisting: DateTimePickerReactiveInputComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"lib-date-time-picker-fields\">\n <input\n class=\"lib-date-time-picker-reactive-input lib-date-time-picker-date\"\n matInput\n [matDatepicker]=\"datePicker()\"\n [value]=\"value\"\n [required]=\"inputConfig().required\"\n [disabled]=\"isDisabled()\"\n [min]=\"minDate()\"\n [max]=\"maxDate()\"\n [attr.aria-label]=\"dateAriaLabel()\"\n (dateChange)=\"dateChanged($event)\"\n />\n\n <span class=\"lib-date-time-picker-separator\" aria-hidden=\"true\">at</span>\n\n <input\n class=\"lib-date-time-picker-time\"\n matInput\n [matTimepicker]=\"timePicker()\"\n [matTimepickerOpenOnClick]=\"false\"\n [value]=\"value\"\n [required]=\"inputConfig().required\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"timeAriaLabel()\"\n (valueChange)=\"timeChanged($event)\"\n />\n</div>\n", styles: [".lib-date-time-picker-fields{display:flex;align-items:baseline;gap:.5rem;width:100%}.lib-date-time-picker-date{flex:1 1 auto;min-width:0}.lib-date-time-picker-time{flex:0 0 auto;width:7ch}.lib-date-time-picker-separator{flex:0 0 auto;color:var(--mat-sys-on-surface-variant);font-size:.8125rem;opacity:.7;transition:opacity .4s cubic-bezier(.16,1,.3,1)}.lib-date-time-picker-fields:focus-within .lib-date-time-picker-separator{opacity:1}\n"], dependencies: [{ kind: "ngmodule", type: MatDatepickerModule }, { kind: "directive", type: i6.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatTimepickerModule }, { kind: "directive", type: i7.MatTimepickerInput, selector: "input[matTimepicker]", inputs: ["value", "matTimepicker", "matTimepickerMin", "matTimepickerMax", "matTimepickerOpenOnClick", "disabled"], outputs: ["valueChange"], exportAs: ["matTimepickerInput"] }, { kind: "ngmodule", type: ReactiveFormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
182
|
+
}
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DateTimePickerReactiveInputComponent, decorators: [{
|
|
184
|
+
type: Component,
|
|
185
|
+
args: [{ selector: 'lib-date-time-picker-reactive-input', imports: [
|
|
186
|
+
MatDatepickerModule,
|
|
187
|
+
MatFormFieldModule,
|
|
188
|
+
MatInputModule,
|
|
189
|
+
MatTimepickerModule,
|
|
190
|
+
ReactiveFormsModule,
|
|
191
|
+
], host: {
|
|
192
|
+
'[class.floating]': 'shouldLabelFloat',
|
|
193
|
+
'[id]': 'id',
|
|
194
|
+
}, providers: [{ provide: MatFormFieldControl, useExisting: DateTimePickerReactiveInputComponent }], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"lib-date-time-picker-fields\">\n <input\n class=\"lib-date-time-picker-reactive-input lib-date-time-picker-date\"\n matInput\n [matDatepicker]=\"datePicker()\"\n [value]=\"value\"\n [required]=\"inputConfig().required\"\n [disabled]=\"isDisabled()\"\n [min]=\"minDate()\"\n [max]=\"maxDate()\"\n [attr.aria-label]=\"dateAriaLabel()\"\n (dateChange)=\"dateChanged($event)\"\n />\n\n <span class=\"lib-date-time-picker-separator\" aria-hidden=\"true\">at</span>\n\n <input\n class=\"lib-date-time-picker-time\"\n matInput\n [matTimepicker]=\"timePicker()\"\n [matTimepickerOpenOnClick]=\"false\"\n [value]=\"value\"\n [required]=\"inputConfig().required\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"timeAriaLabel()\"\n (valueChange)=\"timeChanged($event)\"\n />\n</div>\n", styles: [".lib-date-time-picker-fields{display:flex;align-items:baseline;gap:.5rem;width:100%}.lib-date-time-picker-date{flex:1 1 auto;min-width:0}.lib-date-time-picker-time{flex:0 0 auto;width:7ch}.lib-date-time-picker-separator{flex:0 0 auto;color:var(--mat-sys-on-surface-variant);font-size:.8125rem;opacity:.7;transition:opacity .4s cubic-bezier(.16,1,.3,1)}.lib-date-time-picker-fields:focus-within .lib-date-time-picker-separator{opacity:1}\n"] }]
|
|
195
|
+
}], ctorParameters: () => [], propDecorators: { datePicker: [{ type: i0.Input, args: [{ isSignal: true, alias: "datePicker", required: true }] }], timePicker: [{ type: i0.Input, args: [{ isSignal: true, alias: "timePicker", required: true }] }], inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }] } });
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Wraps the composite date-and-time control inside a `mat-form-field`.
|
|
199
|
+
*
|
|
200
|
+
* The two overlays are declared here and handed down, exactly as the plain
|
|
201
|
+
* date-picker element hands down its calendar: the field owns the toggles that
|
|
202
|
+
* open them, the control owns the value they write. Both halves resolve to one
|
|
203
|
+
* `Date` on the single control named by `inputConfig.id`, so this element needs
|
|
204
|
+
* none of the multi-control plumbing `dateRangePicker` carries.
|
|
205
|
+
*/
|
|
206
|
+
class DateTimePickerInputElementComponent {
|
|
207
|
+
constructor() {
|
|
208
|
+
this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
209
|
+
this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
|
|
210
|
+
this.reload = output();
|
|
211
|
+
this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
212
|
+
}
|
|
213
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DateTimePickerInputElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
214
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DateTimePickerInputElementComponent, isStandalone: true, selector: "lib-date-time-picker-input-element", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { reload: "reload" }, providers: [provideNativeDateAdapter()], ngImport: i0, template: "<form [formGroup]=\"formGroup()\">\n @if (inputConfig(); as inputConfig) {\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\n <mat-label>\n {{ inputConfig.label }}\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\n </mat-label>\n\n <lib-date-time-picker-reactive-input\n [inputConfig]=\"inputConfig\"\n [required]=\"inputConfig.required\"\n [formControlName]=\"inputConfig.id\"\n [datePicker]=\"datePicker\"\n [timePicker]=\"timePicker\"\n ></lib-date-time-picker-reactive-input>\n\n <mat-datepicker-toggle matIconSuffix [for]=\"datePicker\"></mat-datepicker-toggle>\n <mat-datepicker #datePicker>\n <button mat-button matDatepickerCancel>Cancel</button>\n <button mat-raised-button color=\"primary\" matDatepickerApply>Apply</button>\n </mat-datepicker>\n\n <mat-timepicker-toggle matIconSuffix [for]=\"timePicker\"></mat-timepicker-toggle>\n <mat-timepicker #timePicker />\n\n @if (inputConfig.canReload?.canReload) {\n <button\n mat-icon-button\n style=\"margin-right: 4px;\"\n matTooltip=\"Click to refresh this field.\"\n class=\"input-sync-button\"\n (click)=\"inputConfig.canReload.emit()\"\n matSuffix\n >\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\n </button>\n }\n\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\n <mat-hint class=\"inputHint\">\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\n </mat-hint>\n }\n\n @if (!!errorMessage()) {\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\n }\n\n @if (inputConfig.prefixIcon) {\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\n }\n\n @if (inputConfig.suffixIcon) {\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\n }\n\n @if (inputConfig.prefixText) {\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\n }\n @if (inputConfig.suffixText) {\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\n }\n </mat-form-field>\n }\n</form>\n", styles: ["mat-form-field{width:100%!important}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i6.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "component", type: i6.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "directive", type: i6.MatDatepickerCancel, selector: "[matDatepickerCancel], [matDateRangePickerCancel]" }, { kind: "directive", type: i6.MatDatepickerApply, selector: "[matDatepickerApply], [matDateRangePickerApply]" }, { kind: "ngmodule", type: MatTimepickerModule }, { kind: "component", type: i7.MatTimepicker, selector: "mat-timepicker", inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby", "panelClass"], outputs: ["selected", "opened", "closed"], exportAs: ["matTimepicker"] }, { kind: "component", type: i7.MatTimepickerToggle, selector: "mat-timepicker-toggle", inputs: ["for", "aria-label", "aria-labelledby", "disabled", "tabIndex", "disableRipple"], exportAs: ["matTimepickerToggle"] }, { kind: "component", type: TFormInputStatusComponent, selector: "lib-t-form-input-status", inputs: ["inputConfig"] }, { kind: "component", type: DateTimePickerReactiveInputComponent, selector: "lib-date-time-picker-reactive-input", inputs: ["datePicker", "timePicker", "inputConfig"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
215
|
+
}
|
|
216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DateTimePickerInputElementComponent, decorators: [{
|
|
217
|
+
type: Component,
|
|
218
|
+
args: [{ selector: 'lib-date-time-picker-input-element', changeDetection: ChangeDetectionStrategy.OnPush, providers: [provideNativeDateAdapter()], imports: [
|
|
219
|
+
ReactiveFormsModule,
|
|
220
|
+
MatFormFieldModule,
|
|
221
|
+
MatIconModule,
|
|
222
|
+
MatButtonModule,
|
|
223
|
+
MatTooltipModule,
|
|
224
|
+
MatDatepickerModule,
|
|
225
|
+
MatTimepickerModule,
|
|
226
|
+
TFormInputStatusComponent,
|
|
227
|
+
DateTimePickerReactiveInputComponent,
|
|
228
|
+
], template: "<form [formGroup]=\"formGroup()\">\n @if (inputConfig(); as inputConfig) {\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\n <mat-label>\n {{ inputConfig.label }}\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\n </mat-label>\n\n <lib-date-time-picker-reactive-input\n [inputConfig]=\"inputConfig\"\n [required]=\"inputConfig.required\"\n [formControlName]=\"inputConfig.id\"\n [datePicker]=\"datePicker\"\n [timePicker]=\"timePicker\"\n ></lib-date-time-picker-reactive-input>\n\n <mat-datepicker-toggle matIconSuffix [for]=\"datePicker\"></mat-datepicker-toggle>\n <mat-datepicker #datePicker>\n <button mat-button matDatepickerCancel>Cancel</button>\n <button mat-raised-button color=\"primary\" matDatepickerApply>Apply</button>\n </mat-datepicker>\n\n <mat-timepicker-toggle matIconSuffix [for]=\"timePicker\"></mat-timepicker-toggle>\n <mat-timepicker #timePicker />\n\n @if (inputConfig.canReload?.canReload) {\n <button\n mat-icon-button\n style=\"margin-right: 4px;\"\n matTooltip=\"Click to refresh this field.\"\n class=\"input-sync-button\"\n (click)=\"inputConfig.canReload.emit()\"\n matSuffix\n >\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\n </button>\n }\n\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\n <mat-hint class=\"inputHint\">\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\n </mat-hint>\n }\n\n @if (!!errorMessage()) {\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\n }\n\n @if (inputConfig.prefixIcon) {\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\n }\n\n @if (inputConfig.suffixIcon) {\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\n }\n\n @if (inputConfig.prefixText) {\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\n }\n @if (inputConfig.suffixText) {\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\n }\n </mat-form-field>\n }\n</form>\n", styles: ["mat-form-field{width:100%!important}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"] }]
|
|
229
|
+
}], propDecorators: { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], reload: [{ type: i0.Output, args: ["reload"] }] } });
|
|
230
|
+
|
|
231
|
+
export { DateTimePickerInputElementComponent };
|
|
232
|
+
//# sourceMappingURL=ngx-t-forms-date-time-picker-input-element.component-2Cq0ZEVD.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-date-time-picker-input-element.component-2Cq0ZEVD.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-time-picker-input-element/core/date-time-picker-reactive-input/date-time-picker-reactive-input.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-time-picker-input-element/core/date-time-picker-reactive-input/date-time-picker-reactive-input.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-time-picker-input-element/date-time-picker-input-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/date-time-picker-input-element/date-time-picker-input-element.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, computed, inject, input } from '@angular/core';\nimport { NgControl, ReactiveFormsModule } from '@angular/forms';\nimport { DateAdapter } from '@angular/material/core';\nimport { MatDatepicker, MatDatepickerInputEvent, MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatTimepicker, MatTimepickerModule } from '@angular/material/timepicker';\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\n\nimport {\n BaseCustomInput,\n BaseCustomInputConfig,\n} from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\n\nconst customInputConfig: BaseCustomInputConfig = {\n controlType: 'lib-date-time-picker-reactive-input',\n nextId: 0,\n};\n\n/**\n * The `MatFormFieldControl` behind `dateTimePicker`: two native inputs — a date\n * one driven by `matDatepicker`, a time one driven by `matTimepicker` — that\n * together read and write **a single `Date`** on one form control.\n *\n * ## Why the merge is done here rather than left to Material\n *\n * Material's two directives each own only their own half of the value and\n * disagree about the other half:\n *\n * - Picking a day in the calendar yields a `Date` at midnight, so it would\n * silently discard a time the user had already chosen.\n * - The timepicker generates its options from `adapter.today()`, so a time\n * picked before a date is chosen carries *today's* date.\n *\n * Both halves are therefore recombined explicitly by {@link combine}: the\n * calendar contributes year/month/day, the clock contributes hours/minutes/\n * seconds, and the control emits one `Date`. Doing it here — rather than\n * relying on `MatTimepickerInput`'s own \"apply the time onto my current value\"\n * behaviour — keeps the result the same whichever half the user edits first,\n * and whether or not the other half is set yet.\n *\n * ## Why the clock does not open on click\n *\n * Inside a `mat-form-field`, `MatTimepickerInput` listens for `click` on the\n * WHOLE field (`getConnectedOverlayOrigin()`), not on its own input — so under\n * the default `matTimepickerOpenOnClick` every click anywhere in the field opens\n * the clock: the reload button, a suffix icon, and worst of all the calendar\n * toggle, which would raise both overlays at once. That listener is\n * all-or-nothing, so the option is turned off here. The clock opens from its own\n * `mat-timepicker-toggle` or with the arrow keys (`_handleKeydown` ignores the\n * flag), and the time can still be typed straight into the field.\n *\n * Everything reaches the form through the single `Date`, so calculations,\n * value-fetch APIs, dependency resolution and pre-population all see the same\n * one value they see for a plain `datePicker`.\n */\n@Component({\n selector: 'lib-date-time-picker-reactive-input',\n imports: [\n MatDatepickerModule,\n MatFormFieldModule,\n MatInputModule,\n MatTimepickerModule,\n ReactiveFormsModule,\n ],\n host: {\n '[class.floating]': 'shouldLabelFloat',\n '[id]': 'id',\n },\n providers: [{ provide: MatFormFieldControl, useExisting: DateTimePickerReactiveInputComponent }],\n templateUrl: './date-time-picker-reactive-input.component.html',\n styleUrl: './date-time-picker-reactive-input.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DateTimePickerReactiveInputComponent extends BaseCustomInput<Date> {\n /** Calendar overlay owned by the wrapping element renderer. */\n readonly datePicker = input.required<MatDatepicker<Date>>();\n\n /** Clock overlay owned by the wrapping element renderer. */\n readonly timePicker = input.required<MatTimepicker<Date>>();\n\n /** The column this control renders. */\n readonly inputConfig = input.required<ITowerStepColumn>();\n\n readonly #adapter = inject<DateAdapter<Date>>(DateAdapter);\n\n constructor() {\n super(\n inject(NgControl, { optional: true, self: true }) as NgControl,\n inject<ElementRef<HTMLElement>>(ElementRef),\n customInputConfig,\n );\n }\n\n /**\n * True while the column forbids editing. `readonly` is folded into `disabled`\n * because a `matDatepicker`/`matTimepicker` input left merely read-only still\n * opens its overlay on click, which would let a \"read-only\" field be changed.\n */\n protected readonly isDisabled = computed<boolean>(\n () => !!this.inputConfig().disabled || !!this.inputConfig().readonly,\n );\n\n /**\n * `min`/`max` as calendar bounds, or `null` when the column declares none the\n * adapter can read.\n *\n * They are bound to the **calendar only**. `matTimepickerMin`/`Max` compare\n * time-of-day alone, so a datetime bound applied there would forbid, on every\n * other day, the hours that only the boundary day actually excludes. The true\n * datetime bound is enforced by the engine's `datetime` constraint validators\n * (`configConstraintValidators`), which see the whole value.\n */\n protected readonly minDate = computed<Date | null>(() => this.#bound(this.inputConfig().min));\n protected readonly maxDate = computed<Date | null>(() => this.#bound(this.inputConfig().max));\n\n /** Accessible name for the date half — the two inputs share one `mat-label`. */\n protected readonly dateAriaLabel = computed<string>(() => `${this.inputConfig().label ?? ''} date`.trim());\n\n /** Accessible name for the time half. */\n protected readonly timeAriaLabel = computed<string>(() => `${this.inputConfig().label ?? ''} time`.trim());\n\n override get empty(): boolean {\n const value = this.value;\n // null / undefined / legacy empty string, but a real date at epoch 0 counts.\n return value === null || value === undefined || (value as unknown) === '';\n }\n\n override get shouldLabelFloat(): boolean {\n return true;\n }\n\n /**\n * Coerces whatever the form control holds into a `Date` before it reaches the\n * two halves.\n *\n * A pre-populated form, a value-fetch API response and an import row all seed\n * the control with an ISO string rather than a `Date`, and the merge below\n * needs real date arithmetic on both halves. Unreadable values become `null`\n * rather than an `Invalid Date` the adapter would then format as junk.\n */\n override writeValue(value: Date): void {\n // Assigns the protected field directly rather than calling `super`, whose\n // parameter is typed `T` even though the field it writes is `T | null`:\n // an unreadable seed legitimately coerces to null. Same two steps as the\n // base — seed the value, announce the state change — nothing else.\n this._value = this.#coerce(value);\n this.stateChanges.next();\n }\n\n /** The user picked or typed a day: keep the time already chosen. */\n protected dateChanged(event: MatDatepickerInputEvent<Date, unknown>): void {\n this.#commit(this.combine(event.value, this.value));\n }\n\n /**\n * The user picked or typed a time. Clearing the time keeps the day and falls\n * back to midnight rather than destroying the value — an empty clock on a\n * chosen day means \"that day\", not \"no day\".\n */\n protected timeChanged(time: Date | null): void {\n const current = this.value;\n if (!time) {\n this.#commit(current ? this.#adapter.setTime(current, 0, 0, 0) : null);\n return;\n }\n this.#commit(this.combine(current ?? this.#adapter.today(), time));\n }\n\n /**\n * Year/month/day from `datePart`, hours/minutes/seconds from `timePart`.\n *\n * A null `datePart` is the whole value cleared — there is no moment without a\n * day. A null (or unreadable) `timePart` contributes midnight.\n *\n * @param datePart - Source of the calendar half.\n * @param timePart - Source of the clock half.\n * @returns The single combined moment, or `null` when there is no day.\n */\n combine(datePart: Date | null, timePart: Date | null): Date | null {\n const day = this.#coerce(datePart);\n if (!day) return null;\n const time = this.#coerce(timePart);\n return this.#adapter.setTime(\n day,\n time ? this.#adapter.getHours(time) : 0,\n time ? this.#adapter.getMinutes(time) : 0,\n time ? this.#adapter.getSeconds(time) : 0,\n );\n }\n\n /**\n * Publishes a merged value. The assignment alone notifies the form — the\n * base class's `value` setter is what calls `onChange`, and calling it again\n * here would emit the same edit twice (the defect pinned on the sibling\n * date-picker control's spec).\n */\n #commit(next: Date | null): void {\n this.value = next;\n this.stateChanges.next();\n }\n\n /** A readable `Date`, or `null` for anything the adapter cannot interpret. */\n #coerce(value: unknown): Date | null {\n if (value === null || value === undefined || value === '') return null;\n return this.#adapter.getValidDateOrNull(this.#adapter.deserialize(value));\n }\n\n /**\n * A configured bound as a `Date`. Returns `null` for the `MaxMinCustomScripts`\n * sentinels and any other value the adapter cannot read, so an unresolved\n * host script never collapses the calendar to an empty range.\n */\n #bound(raw: unknown): Date | null {\n return typeof raw === 'number' ? null : this.#coerce(raw);\n }\n}\n","<div class=\"lib-date-time-picker-fields\">\n <input\n class=\"lib-date-time-picker-reactive-input lib-date-time-picker-date\"\n matInput\n [matDatepicker]=\"datePicker()\"\n [value]=\"value\"\n [required]=\"inputConfig().required\"\n [disabled]=\"isDisabled()\"\n [min]=\"minDate()\"\n [max]=\"maxDate()\"\n [attr.aria-label]=\"dateAriaLabel()\"\n (dateChange)=\"dateChanged($event)\"\n />\n\n <span class=\"lib-date-time-picker-separator\" aria-hidden=\"true\">at</span>\n\n <input\n class=\"lib-date-time-picker-time\"\n matInput\n [matTimepicker]=\"timePicker()\"\n [matTimepickerOpenOnClick]=\"false\"\n [value]=\"value\"\n [required]=\"inputConfig().required\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"timeAriaLabel()\"\n (valueChange)=\"timeChanged($event)\"\n />\n</div>\n","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\nimport { FormGroup, ReactiveFormsModule } from '@angular/forms';\nimport { provideNativeDateAdapter } from '@angular/material/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTimepickerModule } from '@angular/material/timepicker';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\n\nimport { TFormInputStatusComponent } from '../../../t-form-input-status/t-form-input-status.component';\nimport { getInputErrorMessage } from '../../../../services/core/t-input-controller/functions/inputErrorMessage';\nimport { DateTimePickerReactiveInputComponent } from './core/date-time-picker-reactive-input/date-time-picker-reactive-input.component';\n\n/**\n * Wraps the composite date-and-time control inside a `mat-form-field`.\n *\n * The two overlays are declared here and handed down, exactly as the plain\n * date-picker element hands down its calendar: the field owns the toggles that\n * open them, the control owns the value they write. Both halves resolve to one\n * `Date` on the single control named by `inputConfig.id`, so this element needs\n * none of the multi-control plumbing `dateRangePicker` carries.\n */\n@Component({\n selector: 'lib-date-time-picker-input-element',\n templateUrl: './date-time-picker-input-element.component.html',\n styleUrl: './date-time-picker-input-element.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [provideNativeDateAdapter()],\n imports: [\n ReactiveFormsModule,\n MatFormFieldModule,\n MatIconModule,\n MatButtonModule,\n MatTooltipModule,\n MatDatepickerModule,\n MatTimepickerModule,\n TFormInputStatusComponent,\n DateTimePickerReactiveInputComponent,\n ],\n})\nexport class DateTimePickerInputElementComponent {\n readonly inputConfig = input.required<ITowerStepColumn>();\n readonly formGroup = input.required<FormGroup>();\n readonly reload = output<void>();\n\n protected readonly errorMessage = computed(() =>\n getInputErrorMessage(this.inputConfig(), this.formGroup()),\n );\n}\n","<form [formGroup]=\"formGroup()\">\n @if (inputConfig(); as inputConfig) {\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\n <mat-label>\n {{ inputConfig.label }}\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\n </mat-label>\n\n <lib-date-time-picker-reactive-input\n [inputConfig]=\"inputConfig\"\n [required]=\"inputConfig.required\"\n [formControlName]=\"inputConfig.id\"\n [datePicker]=\"datePicker\"\n [timePicker]=\"timePicker\"\n ></lib-date-time-picker-reactive-input>\n\n <mat-datepicker-toggle matIconSuffix [for]=\"datePicker\"></mat-datepicker-toggle>\n <mat-datepicker #datePicker>\n <button mat-button matDatepickerCancel>Cancel</button>\n <button mat-raised-button color=\"primary\" matDatepickerApply>Apply</button>\n </mat-datepicker>\n\n <mat-timepicker-toggle matIconSuffix [for]=\"timePicker\"></mat-timepicker-toggle>\n <mat-timepicker #timePicker />\n\n @if (inputConfig.canReload?.canReload) {\n <button\n mat-icon-button\n style=\"margin-right: 4px;\"\n matTooltip=\"Click to refresh this field.\"\n class=\"input-sync-button\"\n (click)=\"inputConfig.canReload.emit()\"\n matSuffix\n >\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\n </button>\n }\n\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\n <mat-hint class=\"inputHint\">\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\n </mat-hint>\n }\n\n @if (!!errorMessage()) {\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\n }\n\n @if (inputConfig.prefixIcon) {\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\n }\n\n @if (inputConfig.suffixIcon) {\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\n }\n\n @if (inputConfig.prefixText) {\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\n }\n @if (inputConfig.suffixText) {\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\n }\n </mat-form-field>\n }\n</form>\n"],"names":["i1","i3","i2","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAcA,MAAM,iBAAiB,GAA0B;AAC/C,IAAA,WAAW,EAAE,qCAAqC;AAClD,IAAA,MAAM,EAAE,CAAC;CACV;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCG;AAmBG,MAAO,oCAAqC,SAAQ,eAAqB,CAAA;AAUpE,IAAA,QAAQ;AAEjB,IAAA,WAAA,GAAA;QACE,KAAK,CACH,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAc,EAC9D,MAAM,CAA0B,UAAU,CAAC,EAC3C,iBAAiB,CAClB;;AAfM,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,QAAQ,gFAAuB;;AAGlD,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,QAAQ,gFAAuB;;AAGlD,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,iFAAoB;AAEhD,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAoB,WAAW,CAAC;AAU1D;;;;AAIG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,uBAAA,EAAA,MAAA,EAAA,CAAA,KAAA,EAAA,YAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,yBAAyB,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACzB,oCAAoC,EAAA,QAAA,EAAA,qCAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,YAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAG3B,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAlB/C,SAAS;+BACE,oCAAoC,EAAA,eAAA,EAG7B,uBAAuB,CAAC,MAAM,aACpC,CAAC,wBAAwB,EAAE,CAAC,EAAA,OAAA,EAC9B;wBACP,mBAAmB;wBACnB,kBAAkB;wBAClB,aAAa;wBACb,eAAe;wBACf,gBAAgB;wBAChB,mBAAmB;wBACnB,mBAAmB;wBACnB,yBAAyB;wBACzB,oCAAoC;AACrC,qBAAA,EAAA,QAAA,EAAA,u1EAAA,EAAA,MAAA,EAAA,CAAA,oJAAA,CAAA,EAAA;;;;;"}
|
|
@@ -20,9 +20,9 @@ import { ClipboardModule } from '@angular/cdk/clipboard';
|
|
|
20
20
|
import { CdkDropList, CdkDrag } from '@angular/cdk/drag-drop';
|
|
21
21
|
import { Subject } from 'rxjs';
|
|
22
22
|
import { DocumentLitsLabelConfigInterfaceValueType, ReportTypes, InputDataTypes, InputTypes, InputPipeTypes, ElementTypes } from 'ngx-t-forms-types';
|
|
23
|
-
import { MatChipListEditorComponent } from './ngx-t-forms-mat-chip-list-editor.component-
|
|
23
|
+
import { MatChipListEditorComponent } from './ngx-t-forms-mat-chip-list-editor.component-1YdhWOqQ.mjs';
|
|
24
24
|
import { MatSliderToggleEditorComponent } from './ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs';
|
|
25
|
-
import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-
|
|
25
|
+
import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-D_PCGH-i.mjs';
|
|
26
26
|
import * as i8 from '@angular/material/select';
|
|
27
27
|
|
|
28
28
|
/** Title-cases an enum key: `daysAgo` → `Days Ago`. */
|
|
@@ -370,4 +370,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
370
370
|
}] } });
|
|
371
371
|
|
|
372
372
|
export { DocumentListLabelConfigEditorComponent };
|
|
373
|
-
//# sourceMappingURL=ngx-t-forms-document-list-label-config-editor.component-
|
|
373
|
+
//# sourceMappingURL=ngx-t-forms-document-list-label-config-editor.component-CZ-XFrjM.mjs.map
|