@sdcorejs/angular 21.3.4 → 21.3.6
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/assets/STYLE-GUIDE.md +78 -1
- package/assets/THEME.md +45 -3
- package/assets/scss/core/_popover-panel.scss +90 -0
- package/assets/scss/core/form.scss +5 -2
- package/assets/scss/core/utilities/_grid.scss +15 -0
- package/assets/scss/core/utilities/_sizing.scss +4 -0
- package/assets/scss/themes/_component-tokens.scss +9 -4
- package/assets/scss/themes/_semantic.scss +6 -5
- package/fesm2022/sdcorejs-angular-components-anchor.mjs +62 -3
- package/fesm2022/sdcorejs-angular-components-anchor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-button.mjs +14 -6
- package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-calendar.mjs +2479 -0
- package/fesm2022/sdcorejs-angular-components-calendar.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components-card.mjs +486 -23
- package/fesm2022/sdcorejs-angular-components-card.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-editor-engine.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-editor-engine.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +4 -18
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +7 -7
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-kanban.mjs +833 -154
- package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal.mjs +66 -14
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +1477 -365
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-quick-action.mjs +68 -2
- package/fesm2022/sdcorejs-angular-components-quick-action.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-scheduler.mjs +1932 -0
- package/fesm2022/sdcorejs-angular-components-scheduler.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs +126 -26
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab.mjs +31 -2
- package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +5967 -3690
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-timeline.mjs +473 -0
- package/fesm2022/sdcorejs-angular-components-timeline.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components-tree.mjs +597 -36
- package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +2 -4
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components.mjs +3 -1
- package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-directives.mjs +109 -22
- package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +140 -42
- package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs +70 -21
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-directives.mjs +4 -3
- package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-select.mjs +23 -4
- package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-i18n.mjs +812 -52
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-BR6jxyYd.mjs → sdcorejs-angular-modules-generic-generic-configuration.page-BfvRoiKg.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-BR6jxyYd.mjs.map → sdcorejs-angular-modules-generic-generic-configuration.page-BfvRoiKg.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs → sdcorejs-angular-modules-generic-generic-form-host.page-C9jW2AkB.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs.map → sdcorejs-angular-modules-generic-generic-form-host.page-C9jW2AkB.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs → sdcorejs-angular-modules-generic-generic-list.page-BwGHv8k-.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs.map → sdcorejs-angular-modules-generic-generic-list.page-BwGHv8k-.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.mjs → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BhUf_wyg.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.mjs.map → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BhUf_wyg.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-generic.mjs +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +17 -8
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-5uIBONB3.mjs → sdcorejs-angular-modules-pattern-base-api.service-VnxHofZl.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-5uIBONB3.mjs.map → sdcorejs-angular-modules-pattern-base-api.service-VnxHofZl.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-CCHeD5tf.mjs → sdcorejs-angular-modules-pattern-create.component-7VOgxRio.mjs} +11 -7
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-7VOgxRio.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-B35CvNrI.mjs → sdcorejs-angular-modules-pattern-create.component-COnQ3U15.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-B35CvNrI.mjs.map → sdcorejs-angular-modules-pattern-create.component-COnQ3U15.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-Cvxx5s1o.mjs → sdcorejs-angular-modules-pattern-create.component-CggApoVx.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-Cvxx5s1o.mjs.map → sdcorejs-angular-modules-pattern-create.component-CggApoVx.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-5hBM9st3.mjs → sdcorejs-angular-modules-pattern-customer.service-5th_X0wz.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-5hBM9st3.mjs.map → sdcorejs-angular-modules-pattern-customer.service-5th_X0wz.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-BuvAy1by.mjs → sdcorejs-angular-modules-pattern-detail.component-BBqMMusi.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-BuvAy1by.mjs.map → sdcorejs-angular-modules-pattern-detail.component-BBqMMusi.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-BcxxJCVt.mjs → sdcorejs-angular-modules-pattern-detail.component-LS8QNECh.mjs} +58 -55
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-LS8QNECh.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-BDixzOA6.mjs → sdcorejs-angular-modules-pattern-flow.component-CQajWHBR.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-BDixzOA6.mjs.map → sdcorejs-angular-modules-pattern-flow.component-CQajWHBR.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-iRIG7WQo.mjs → sdcorejs-angular-modules-pattern-index.component-DHRtqSRm.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-iRIG7WQo.mjs.map → sdcorejs-angular-modules-pattern-index.component-DHRtqSRm.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-lines-table-form.component-BqKJDK9M.mjs → sdcorejs-angular-modules-pattern-lines-table-form.component-DBPMTKqD.mjs} +5 -5
- package/fesm2022/{sdcorejs-angular-modules-pattern-lines-table-form.component-BqKJDK9M.mjs.map → sdcorejs-angular-modules-pattern-lines-table-form.component-DBPMTKqD.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CIkZmM47.mjs +501 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CIkZmM47.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CgKUBP46.mjs +506 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CgKUBP46.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-Cj03DgF1.mjs → sdcorejs-angular-modules-pattern-list.component-Co22ltOo.mjs} +30 -39
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Co22ltOo.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-DH3CroK1.mjs → sdcorejs-angular-modules-pattern-list.component-D1Q69_3M.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-DH3CroK1.mjs.map → sdcorejs-angular-modules-pattern-list.component-D1Q69_3M.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-BMpOXn7E.mjs → sdcorejs-angular-modules-pattern-list.component-DBnStJM_.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-BMpOXn7E.mjs.map → sdcorejs-angular-modules-pattern-list.component-DBnStJM_.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-DnB5_C1D.mjs → sdcorejs-angular-modules-pattern-mock-backend.factory-DexrG-bI.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-DnB5_C1D.mjs.map → sdcorejs-angular-modules-pattern-mock-backend.factory-DexrG-bI.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs → sdcorejs-angular-modules-pattern-pattern-source-viewer-DuhyXsGn.mjs} +4 -22
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-DuhyXsGn.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs → sdcorejs-angular-modules-pattern-pattern-source.generated-bfpj85ke.mjs} +26 -27
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-bfpj85ke.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-DZ3fY-yQ.mjs → sdcorejs-angular-modules-pattern-product.service-DG1pe8fb.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-DZ3fY-yQ.mjs.map → sdcorejs-angular-modules-pattern-product.service-DG1pe8fb.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-profile.component-DVYnHOtn.mjs → sdcorejs-angular-modules-pattern-profile.component-CLvjGnbA.mjs} +24 -14
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-CLvjGnbA.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-B8ceLXT4.mjs +65 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-B8ceLXT4.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-C1YBKLdb.mjs +56 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-C1YBKLdb.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BGZzmwY2.mjs → sdcorejs-angular-modules-pattern-routes-CntNjuzb.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BGZzmwY2.mjs.map → sdcorejs-angular-modules-pattern-routes-CntNjuzb.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CdSiqJCz.mjs → sdcorejs-angular-modules-pattern-routes-CwfyLo_V.mjs} +5 -5
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CdSiqJCz.mjs.map → sdcorejs-angular-modules-pattern-routes-CwfyLo_V.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-B8i5MUtz.mjs → sdcorejs-angular-modules-pattern-routes-DAw75sbm.mjs} +8 -8
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-B8i5MUtz.mjs.map → sdcorejs-angular-modules-pattern-routes-DAw75sbm.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-C_CLbNSs.mjs → sdcorejs-angular-modules-pattern-routes-DZmBTvxf.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-C_CLbNSs.mjs.map → sdcorejs-angular-modules-pattern-routes-DZmBTvxf.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-uRsy0zag.mjs → sdcorejs-angular-modules-pattern-routes-Dp3-TMG3.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-uRsy0zag.mjs.map → sdcorejs-angular-modules-pattern-routes-Dp3-TMG3.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-p7lQcGGX.mjs → sdcorejs-angular-modules-pattern-routes-WyOa9Q3H.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-p7lQcGGX.mjs.map → sdcorejs-angular-modules-pattern-routes-WyOa9Q3H.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-els-Wxch.mjs → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-CsipDO_7.mjs} +12 -12
- package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-els-Wxch.mjs.map → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-CsipDO_7.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-5G4lKoLv.mjs → sdcorejs-angular-modules-pattern-shell.component-Dy1a9seQ.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-5G4lKoLv.mjs.map → sdcorejs-angular-modules-pattern-shell.component-Dy1a9seQ.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-CBpuQnHp.mjs +480 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-CBpuQnHp.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-CpGbjd_m.mjs → sdcorejs-angular-modules-pattern-update.component-B8N158up.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-CpGbjd_m.mjs.map → sdcorejs-angular-modules-pattern-update.component-B8N158up.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-Bwsqvl4A.mjs → sdcorejs-angular-modules-pattern-update.component-BBktRBkQ.mjs} +9 -6
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BBktRBkQ.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-Bq_5H0xM.mjs → sdcorejs-angular-modules-pattern-update.component-C9Wf6jhW.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-Bq_5H0xM.mjs.map → sdcorejs-angular-modules-pattern-update.component-C9Wf6jhW.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern.mjs +1 -1
- package/fesm2022/sdcorejs-angular-services-confirm.mjs +171 -158
- package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-excel.mjs +34 -0
- package/fesm2022/sdcorejs-angular-services-excel.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-query-params.mjs +226 -0
- package/fesm2022/sdcorejs-angular-services-query-params.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-utilities-extensions.mjs +24 -1
- package/fesm2022/sdcorejs-angular-utilities-extensions.mjs.map +1 -1
- package/modules/pattern/README.md +5 -4
- package/modules/pattern/docs/detail.md +18 -9
- package/modules/pattern/docs/drawer.md +185 -83
- package/modules/pattern/docs/header-actions.md +1 -1
- package/modules/pattern/docs/list.md +3 -3
- package/modules/pattern/docs/states.md +1 -1
- package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +12 -16
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +58 -29
- package/modules/pattern/features/category/pages/list/list.component.html +11 -3
- package/modules/pattern/features/category/pages/list/list.component.ts +36 -10
- package/modules/pattern/features/category/routes.ts +5 -22
- package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +7 -11
- package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +70 -27
- package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +9 -53
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +53 -19
- package/modules/pattern/features/customer/entity.resolver.ts +1 -1
- package/modules/pattern/features/customer/pages/list/list.component.html +18 -3
- package/modules/pattern/features/customer/pages/list/list.component.ts +43 -16
- package/modules/pattern/features/customer/pages/profile/profile.component.ts +17 -8
- package/modules/pattern/features/customer/routes.ts +6 -27
- package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +37 -56
- package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +14 -76
- package/modules/pattern/features/order/pages/create/create.component.ts +7 -3
- package/modules/pattern/features/order/pages/detail/detail.component.ts +1 -1
- package/modules/pattern/features/order/pages/update/update.component.ts +5 -2
- package/package.json +17 -5
- package/types/sdcorejs-angular-components-anchor.d.ts +6 -1
- package/types/sdcorejs-angular-components-button.d.ts +7 -1
- package/types/sdcorejs-angular-components-calendar.d.ts +1092 -0
- package/types/sdcorejs-angular-components-card.d.ts +247 -9
- package/types/sdcorejs-angular-components-kanban.d.ts +191 -74
- package/types/sdcorejs-angular-components-modal.d.ts +15 -1
- package/types/sdcorejs-angular-components-query-bar.d.ts +204 -38
- package/types/sdcorejs-angular-components-quick-action.d.ts +65 -1
- package/types/sdcorejs-angular-components-scheduler.d.ts +544 -0
- package/types/sdcorejs-angular-components-tab.d.ts +6 -1
- package/types/sdcorejs-angular-components-table.d.ts +338 -31
- package/types/sdcorejs-angular-components-timeline.d.ts +216 -0
- package/types/sdcorejs-angular-components-tree.d.ts +119 -6
- package/types/sdcorejs-angular-components.d.ts +3 -1
- package/types/sdcorejs-angular-directives.d.ts +4 -2
- package/types/sdcorejs-angular-forms-date.d.ts +2 -0
- package/types/sdcorejs-angular-forms-directives.d.ts +1 -1
- package/types/sdcorejs-angular-i18n.d.ts +159 -9
- package/types/sdcorejs-angular-modules-layout.d.ts +2 -1
- package/types/sdcorejs-angular-services-confirm.d.ts +22 -81
- package/types/sdcorejs-angular-services-excel.d.ts +59 -0
- package/types/sdcorejs-angular-services-query-params.d.ts +67 -0
- package/types/sdcorejs-angular-utilities-extensions.d.ts +10 -1
- package/fesm2022/sdcorejs-angular-components-history.mjs +0 -54
- package/fesm2022/sdcorejs-angular-components-history.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-7d4hJjAo.mjs +0 -144
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-7d4hJjAo.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CGkdzJ-A.mjs +0 -145
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CGkdzJ-A.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CCHeD5tf.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +0 -18
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bza4JOdZ.mjs +0 -148
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bza4JOdZ.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BcxxJCVt.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-B9vCzIT6.mjs +0 -232
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-B9vCzIT6.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BnROr-Wg.mjs +0 -87
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BnROr-Wg.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-Cbwdhc0Z.mjs +0 -70
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-Cbwdhc0Z.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-B6_x5N3F.mjs +0 -164
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-B6_x5N3F.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Cj03DgF1.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-D-pHPHFP.mjs +0 -118
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-D-pHPHFP.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-DVYnHOtn.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BPofy0Oq.mjs +0 -99
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BPofy0Oq.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CYeHFGl1.mjs +0 -74
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CYeHFGl1.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-BF0hAVrv.mjs +0 -132
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-BF0hAVrv.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DJeQxfDA.mjs +0 -143
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DJeQxfDA.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-Bwsqvl4A.mjs.map +0 -1
- package/modules/pattern/features/category/entity.resolver.ts +0 -27
- package/types/sdcorejs-angular-components-history.d.ts +0 -23
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i5 from '@angular/common';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { viewChild, contentChild, inject, ChangeDetectorRef, input, computed, model, Injector, afterNextRender, booleanAttribute, output, signal, untracked, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
+
import { viewChild, contentChild, inject, ChangeDetectorRef, input, computed, model, Injector, afterNextRender, booleanAttribute, output, signal, untracked, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
5
5
|
import * as i1 from '@angular/forms';
|
|
6
6
|
import { NgForm, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import { MAT_DATE_LOCALE } from '@angular/material/core';
|
|
8
8
|
import * as i4 from '@angular/material/datepicker';
|
|
9
|
-
import { MatDatepicker, MatDatepickerModule } from '@angular/material/datepicker';
|
|
9
|
+
import { MatDatepicker, MatDatepickerInput, MatDatepickerModule } from '@angular/material/datepicker';
|
|
10
10
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
11
11
|
import * as i2 from '@angular/material/input';
|
|
12
12
|
import { MatInputModule } from '@angular/material/input';
|
|
@@ -100,6 +100,8 @@ class SdDate {
|
|
|
100
100
|
// ==========================================
|
|
101
101
|
inputRef = viewChild('input', ...(ngDevMode ? [{ debugName: "inputRef" }] : /* istanbul ignore next */ []));
|
|
102
102
|
datePicker = viewChild(MatDatepicker, ...(ngDevMode ? [{ debugName: "datePicker" }] : /* istanbul ignore next */ []));
|
|
103
|
+
// why: query signal không đặt được trên field ES private (#).
|
|
104
|
+
pickerInput = viewChild((MatDatepickerInput), ...(ngDevMode ? [{ debugName: "pickerInput" }] : /* istanbul ignore next */ []));
|
|
103
105
|
sdLabelTemplate = contentChild('sdLabel', ...(ngDevMode ? [{ debugName: "sdLabelTemplate" }] : /* istanbul ignore next */ []));
|
|
104
106
|
sdValueTemplate = contentChild('sdValue', ...(ngDevMode ? [{ debugName: "sdValueTemplate" }] : /* istanbul ignore next */ []));
|
|
105
107
|
sdViewDef = contentChild(SdViewDefDirective, ...(ngDevMode ? [{ debugName: "sdViewDef" }] : /* istanbul ignore next */ []));
|
|
@@ -209,6 +211,9 @@ class SdDate {
|
|
|
209
211
|
*/
|
|
210
212
|
errorMessage = computed(() => {
|
|
211
213
|
void this.#state();
|
|
214
|
+
// why: `model` đổi từ ngoài ghi control bằng `emitEvent: false` nên #state không tick; cờ lỗi hạ theo thì
|
|
215
|
+
// message phải tính lại.
|
|
216
|
+
void this.#textError();
|
|
212
217
|
const errors = this.formControl.errors;
|
|
213
218
|
if (!errors)
|
|
214
219
|
return undefined;
|
|
@@ -265,16 +270,22 @@ class SdDate {
|
|
|
265
270
|
// ==========================================
|
|
266
271
|
isMobileOrTablet = BrowserUtilities.isMobile();
|
|
267
272
|
formControl = new SdFormControl();
|
|
268
|
-
/** `
|
|
269
|
-
#
|
|
273
|
+
/** Lỗi của chuỗi đang nằm trong ô: `format` → "Sai định dạng", `calendar` → "Ngày không hợp lệ". */
|
|
274
|
+
#textError = signal(null, ...(ngDevMode ? [{ debugName: "#textError" }] : /* istanbul ignore next */ []));
|
|
270
275
|
/**
|
|
271
|
-
* why: lỗi
|
|
272
|
-
* `
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
+
* why: lỗi của chuỗi PHẢI đi qua pipeline validator. Chuỗi sai được GIỮ LẠI trong ô sau khi rời ô, nên lỗi phải
|
|
277
|
+
* sống qua mọi `updateValueAndValidity` (effect validators của connector, `setValue`) — nhét bằng `setErrors()`
|
|
278
|
+
* thì lần tính lại kế tiếp xoá mất. Cờ được hạ ở mọi chỗ ô bị ghi đè: gõ tiếp, chọn lịch, nút xoá, `model` đổi từ
|
|
279
|
+
* ngoài, rời ô với chuỗi hợp lệ hoặc ô trống.
|
|
280
|
+
* Validator giữ identity ổn định (connector chỉ gắn 1 lần) và đọc cờ qua `untracked` để không tự biến mình thành
|
|
281
|
+
* dependency reactive khi bị gọi trong effect/computed.
|
|
276
282
|
*/
|
|
277
|
-
#dateFormatValidator = () => untracked(() =>
|
|
283
|
+
#dateFormatValidator = () => untracked(() => {
|
|
284
|
+
const kind = this.#textError();
|
|
285
|
+
if (!kind)
|
|
286
|
+
return null;
|
|
287
|
+
return { date: this.#i18n.t(kind === 'calendar' ? 'core.form.date.invalid-date' : 'core.form.date.invalid-format') };
|
|
288
|
+
});
|
|
278
289
|
#validators = computed(() => this.inlineError() ? [this.#dateFormatValidator, SdInlineErrorValidator] : [this.#dateFormatValidator], ...(ngDevMode ? [{ debugName: "#validators" }] : /* istanbul ignore next */ []));
|
|
279
290
|
/**
|
|
280
291
|
* why: control gắn thẳng vào `matDatepicker` nên nó giữ `Date` — đó là biểu diễn của editor, không
|
|
@@ -337,7 +348,16 @@ class SdDate {
|
|
|
337
348
|
this.valueModel.set(value);
|
|
338
349
|
this.sdChange.emit(value);
|
|
339
350
|
},
|
|
340
|
-
modelToControl: value =>
|
|
351
|
+
modelToControl: value => {
|
|
352
|
+
const controlValue = this.#modelToControl(value);
|
|
353
|
+
// why: `model` đổi là ô sắp được ghi đè bằng giá trị đó — chuỗi sai trước đó (và lỗi của nó) không còn.
|
|
354
|
+
untracked(() => {
|
|
355
|
+
this.#textError.set(null);
|
|
356
|
+
if (controlValue === null)
|
|
357
|
+
this.#clearInputText();
|
|
358
|
+
});
|
|
359
|
+
return controlValue;
|
|
360
|
+
},
|
|
341
361
|
controlToModel: value => this.#serializeCommitted(value),
|
|
342
362
|
modelEquals: (left, right) => this.#modelsEqual(left, right),
|
|
343
363
|
controlEquals: dateControlsEqual,
|
|
@@ -349,8 +369,20 @@ class SdDate {
|
|
|
349
369
|
});
|
|
350
370
|
isFocused = false;
|
|
351
371
|
isValid;
|
|
352
|
-
#
|
|
372
|
+
#syncingPicker = false;
|
|
353
373
|
#subscription = new Subscription();
|
|
374
|
+
constructor() {
|
|
375
|
+
// Giành quyền ghi view → control của ô nhập.
|
|
376
|
+
// why: `MatDatepickerInput` là value accessor của ô, nó parse lại sau MỖI phím và ghi null vào control ngay khi
|
|
377
|
+
// chuỗi còn dở dang; connector đẩy tiếp null đó ra `model` / `sdChange` trong lúc người dùng đang sửa. Đăng ký
|
|
378
|
+
// lại `onChange` (API công khai của ControlValueAccessor) để chỉ ngày gõ xong mới vào control. Ô nhập bị dựng
|
|
379
|
+
// lại khi đổi `viewed`, nên phải đăng ký theo từng instance của directive.
|
|
380
|
+
effect(() => {
|
|
381
|
+
const pickerInput = this.pickerInput();
|
|
382
|
+
if (pickerInput)
|
|
383
|
+
untracked(() => pickerInput.registerOnChange((value) => this.#commitFromInput(value)));
|
|
384
|
+
});
|
|
385
|
+
}
|
|
354
386
|
ngOnInit() {
|
|
355
387
|
this.#subscription.add(this.formControl.sdChanges.subscribe(() => {
|
|
356
388
|
this.ref.markForCheck();
|
|
@@ -372,6 +404,19 @@ class SdDate {
|
|
|
372
404
|
return new Date(val);
|
|
373
405
|
return null;
|
|
374
406
|
}
|
|
407
|
+
/**
|
|
408
|
+
* Giá trị ô nhập gửi lên control trong lúc gõ hoặc khi chọn trên lịch.
|
|
409
|
+
* why: null ở đây luôn là "chuỗi chưa thành ngày" (dở dang, sai, hoặc vừa xoá trắng) — chưa phải người dùng chốt
|
|
410
|
+
* bỏ giá trị. Control giữ ngày đã chốt gần nhất; null chỉ được chốt khi rời ô (`onBlur`), nhấn Enter trên ô trống
|
|
411
|
+
* hoặc bấm nút xoá.
|
|
412
|
+
*/
|
|
413
|
+
#commitFromInput(value) {
|
|
414
|
+
this.formControl.markAsDirty();
|
|
415
|
+
if (!value || dateControlsEqual(this.formControl.value, value))
|
|
416
|
+
return;
|
|
417
|
+
// why: ô đang hiển thị đúng chuỗi này rồi, không ghi ngược lại view để khỏi động vào con trỏ.
|
|
418
|
+
this.formControl.setValue(value, { emitModelToViewChange: false });
|
|
419
|
+
}
|
|
375
420
|
onFocus = () => {
|
|
376
421
|
this.isFocused = true;
|
|
377
422
|
this.sdFocus.emit();
|
|
@@ -380,21 +425,20 @@ class SdDate {
|
|
|
380
425
|
this.isFocused = false;
|
|
381
426
|
const input = this.inputRef()?.nativeElement;
|
|
382
427
|
const displayValue = input?.value ?? '';
|
|
383
|
-
const parsedValue =
|
|
428
|
+
const parsedValue = parseDateInput(displayValue);
|
|
384
429
|
this.formControl.markAsTouched();
|
|
385
430
|
this.isValid = false;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
if (!dateControlsEqual(this.formControl.value, parsedValue)) {
|
|
431
|
+
// Ô trống hoặc một ngày gõ xong: chốt (null / ngày đó).
|
|
432
|
+
if (!displayValue || parsedValue) {
|
|
433
|
+
if (!dateControlsEqual(this.formControl.value, parsedValue))
|
|
390
434
|
this.formControl.setValue(parsedValue);
|
|
391
|
-
|
|
435
|
+
this.#setDateError(null);
|
|
392
436
|
return;
|
|
393
437
|
}
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
438
|
+
// why: chuỗi dở dang hoặc ngày không có trên lịch (31/02/2026) KHÔNG bị xoá và không đưa giá trị về null nữa —
|
|
439
|
+
// người dùng nhìn thấy đúng thứ mình gõ kèm lỗi, giá trị đã chốt giữ nguyên, control invalid nên form không
|
|
440
|
+
// submit được cho tới khi sửa.
|
|
441
|
+
this.#setDateError(this.#errorOfText(displayValue));
|
|
398
442
|
};
|
|
399
443
|
onClick = () => {
|
|
400
444
|
if (this.sdViewDef()?.templateRef) {
|
|
@@ -443,7 +487,8 @@ class SdDate {
|
|
|
443
487
|
};
|
|
444
488
|
onInput = (event) => {
|
|
445
489
|
const input = event.target;
|
|
446
|
-
|
|
490
|
+
// why: lượt `input` do chính component bắn lại (xem #syncPicker) chỉ để Material parse, không định dạng lần nữa.
|
|
491
|
+
if (!input || this.#syncingPicker)
|
|
447
492
|
return;
|
|
448
493
|
const rawValue = input.value;
|
|
449
494
|
const inputType = event.inputType;
|
|
@@ -456,10 +501,27 @@ class SdDate {
|
|
|
456
501
|
input.value = formattedValue;
|
|
457
502
|
const caretPosition = getCaretPosition(rawValue, selectionStart, formattedValue, addTrailingSeparator);
|
|
458
503
|
input.setSelectionRange?.(caretPosition, caretPosition);
|
|
504
|
+
this.#syncPicker(input);
|
|
459
505
|
}
|
|
460
|
-
this.#hasInvalidInput = hasInvalidCharacters;
|
|
461
506
|
this.#validateDateInput(formattedValue, hasInvalidCharacters);
|
|
462
507
|
};
|
|
508
|
+
/**
|
|
509
|
+
* why: `MatDatepickerInput` parse chuỗi THÔ trước khi component định dạng lại, và gán `input.value` bằng code
|
|
510
|
+
* không phát `input`. Sửa giữa chuỗi (`19/11/2026` → `19/10/2026`) đi qua chuỗi thô sai khuôn, nên Material giữ
|
|
511
|
+
* null dù ô đã hiện ngày đủ; `change` lúc rời ô khi đó phát null và xoá giá trị. Bắn lại `input` để Material
|
|
512
|
+
* parse đúng chuỗi đang hiển thị.
|
|
513
|
+
*/
|
|
514
|
+
#syncPicker(input) {
|
|
515
|
+
if (typeof input.dispatchEvent !== 'function')
|
|
516
|
+
return;
|
|
517
|
+
this.#syncingPicker = true;
|
|
518
|
+
try {
|
|
519
|
+
input.dispatchEvent(new Event('input', { bubbles: true }));
|
|
520
|
+
}
|
|
521
|
+
finally {
|
|
522
|
+
this.#syncingPicker = false;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
463
525
|
/** Kept as a compatibility entry point for callers that used the old keyup handler. */
|
|
464
526
|
onKeyup = (event) => {
|
|
465
527
|
const target = event.target;
|
|
@@ -468,39 +530,62 @@ class SdDate {
|
|
|
468
530
|
};
|
|
469
531
|
#validateDateInput(value, hasInvalidCharacters) {
|
|
470
532
|
const parsedValue = parseDateInput(value);
|
|
471
|
-
|
|
533
|
+
// why: khi đang gõ, chuỗi dở dang chưa phải lỗi; chỉ báo ngay khi đã đủ dd/MM/yyyy mà ngày không tồn tại, hoặc
|
|
534
|
+
// có ký tự lạ.
|
|
535
|
+
const kind = !value || parsedValue
|
|
536
|
+
? null
|
|
537
|
+
: hasInvalidCharacters
|
|
538
|
+
? 'format'
|
|
539
|
+
: DATE_DISPLAY_PATTERN.test(value)
|
|
540
|
+
? 'calendar'
|
|
541
|
+
: isPartialDateInput(value)
|
|
542
|
+
? null
|
|
543
|
+
: 'format';
|
|
472
544
|
this.isValid = !!value && !parsedValue;
|
|
473
|
-
if (
|
|
545
|
+
if (kind)
|
|
474
546
|
this.formControl.markAsDirty();
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
547
|
+
this.#setDateError(kind);
|
|
548
|
+
}
|
|
549
|
+
/** Lỗi của một chuỗi được CHỐT (rời ô, Enter): mọi chuỗi không rỗng mà chưa thành ngày đều là lỗi. */
|
|
550
|
+
#errorOfText(text) {
|
|
551
|
+
if (!text || parseDateInput(text))
|
|
552
|
+
return null;
|
|
553
|
+
return DATE_DISPLAY_PATTERN.test(text) ? 'calendar' : 'format';
|
|
480
554
|
}
|
|
481
555
|
/**
|
|
482
|
-
*
|
|
556
|
+
* Đặt cờ lỗi của chuỗi rồi chạy lại pipeline NGAY khi kết quả đổi.
|
|
483
557
|
* why: chạy lại đồng bộ để lỗi xuất hiện/biến mất đúng nhịp gõ, đồng thời phát `events` cho
|
|
484
|
-
* `sdFormControlState` tick — connector gắn validator bằng `emitEvent: false` nên không tick hộ.
|
|
558
|
+
* `sdFormControlState` tick — connector gắn validator bằng `emitEvent: false` nên không tick hộ. So với lỗi
|
|
559
|
+
* đang nằm trên control (không chỉ so cờ) vì validator còn phụ thuộc chuỗi trong ô.
|
|
485
560
|
*/
|
|
486
|
-
#setDateError(
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
this.#
|
|
490
|
-
this.formControl.
|
|
561
|
+
#setDateError(kind) {
|
|
562
|
+
const flagChanged = this.#textError() !== kind;
|
|
563
|
+
this.#textError.set(kind);
|
|
564
|
+
const expected = this.#dateFormatValidator(this.formControl)?.['date'] ?? null;
|
|
565
|
+
const current = this.formControl.errors?.['date'] ?? null;
|
|
566
|
+
if (flagChanged || expected !== current)
|
|
567
|
+
this.formControl.updateValueAndValidity();
|
|
491
568
|
}
|
|
492
569
|
onChange = (event) => {
|
|
570
|
+
// why: `change` (Enter, hoặc ngay trước blur) khi chuỗi chưa thành ngày thì Material báo null. Enter là một lần
|
|
571
|
+
// chốt: không đổi giá trị, nhưng báo lỗi của chuỗi như khi rời ô.
|
|
572
|
+
const typedText = this.inputRef()?.nativeElement?.value ?? '';
|
|
573
|
+
if (!event.value && typedText) {
|
|
574
|
+
this.formControl.markAsTouched();
|
|
575
|
+
this.#setDateError(this.#errorOfText(typedText));
|
|
576
|
+
return;
|
|
577
|
+
}
|
|
493
578
|
this.inputRef()?.nativeElement?.focus();
|
|
494
579
|
const value = event.value ?? null;
|
|
495
|
-
this.#hasInvalidInput = false;
|
|
496
580
|
this.isValid = false;
|
|
497
|
-
this.#setDateError(false);
|
|
498
581
|
if (!dateControlsEqual(this.formControl.value, value)) {
|
|
499
582
|
// why: người dùng sửa thì control của form phải dirty trước khi nhận giá trị, như value accessor của Angular;
|
|
500
583
|
// ngày chọn trên lịch và nút xoá không đi qua value accessor của ô nhập.
|
|
501
584
|
this.formControl.markAsDirty();
|
|
502
585
|
this.formControl.setValue(value);
|
|
503
586
|
}
|
|
587
|
+
// why: hạ cờ SAU khi ghi control — lúc này ô đã hiện đúng giá trị vừa chốt.
|
|
588
|
+
this.#setDateError(null);
|
|
504
589
|
};
|
|
505
590
|
clear = ($event) => {
|
|
506
591
|
$event?.stopPropagation();
|
|
@@ -508,7 +593,20 @@ class SdDate {
|
|
|
508
593
|
this.formControl.markAsDirty();
|
|
509
594
|
this.formControl.setValue(null);
|
|
510
595
|
}
|
|
596
|
+
this.#clearInputText();
|
|
597
|
+
this.#setDateError(null);
|
|
511
598
|
};
|
|
599
|
+
/**
|
|
600
|
+
* Xoá chuỗi đang nằm trong ô khi giá trị về null.
|
|
601
|
+
* why: sau khi người dùng gõ một chuỗi chưa thành ngày, `MatDatepickerInput` đã giữ null. Ghi null vào control
|
|
602
|
+
* lúc đó không làm giá trị của nó đổi, và từ Angular Material 22 nó không ghi lại ô nhập nữa — chuỗi sai nằm lại
|
|
603
|
+
* dù giá trị đã bị xoá. Bản 19–21 thì có ghi; xoá tay để không phụ thuộc phiên bản.
|
|
604
|
+
*/
|
|
605
|
+
#clearInputText() {
|
|
606
|
+
const input = this.inputRef()?.nativeElement;
|
|
607
|
+
if (input?.value)
|
|
608
|
+
input.value = '';
|
|
609
|
+
}
|
|
512
610
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdDate, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
513
611
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SdDate, isStandalone: true, selector: "sd-date", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, operators: { classPropertyName: "operators", publicName: "operators", isSignal: true, isRequired: false, transformFunction: null }, operator: { classPropertyName: "operator", publicName: "operator", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, hideInlineError: { classPropertyName: "hideInlineError", publicName: "hideInlineError", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, viewed: { classPropertyName: "viewed", publicName: "viewed", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, inlineError: { classPropertyName: "inlineError", publicName: "inlineError", isSignal: true, isRequired: false, transformFunction: null }, hyperlink: { classPropertyName: "hyperlink", publicName: "hyperlink", isSignal: true, isRequired: false, transformFunction: null }, appearanceInput: { classPropertyName: "appearanceInput", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, labelPlacement: { classPropertyName: "labelPlacement", publicName: "labelPlacement", isSignal: true, isRequired: false, transformFunction: null }, minInput: { classPropertyName: "minInput", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, minDateInput: { classPropertyName: "minDateInput", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxInput: { classPropertyName: "maxInput", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, maxDateInput: { classPropertyName: "maxDateInput", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, transform: { classPropertyName: "transform", publicName: "transform", isSignal: true, isRequired: false, transformFunction: null }, valueModel: { classPropertyName: "valueModel", publicName: "model", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { operator: "operatorChange", valueModel: "modelChange", sdChange: "sdChange", sdFocus: "sdFocus" }, host: { properties: { "class.sd-bare": "isInline()", "class.sd-viewed": "isViewed() || isInline()", "class.sd-has-label": "!!label()", "class.sd-label-top": "labelPlacement() === 'top'" } }, providers: [
|
|
514
612
|
// DateFnsAdapter inject MAT_DATE_LOCALE; nếu undefined sẽ throw khi format/parse.
|
|
@@ -525,7 +623,7 @@ class SdDate {
|
|
|
525
623
|
monthYearA11yLabel: 'MMMM yyyy',
|
|
526
624
|
},
|
|
527
625
|
}),
|
|
528
|
-
], queries: [{ propertyName: "sdLabelTemplate", first: true, predicate: ["sdLabel"], descendants: true, isSignal: true }, { propertyName: "sdValueTemplate", first: true, predicate: ["sdValue"], descendants: true, isSignal: true }, { propertyName: "sdViewDef", first: true, predicate: SdViewDefDirective, descendants: true, isSignal: true }, { propertyName: "sdLabelDef", first: true, predicate: SdLabelDefDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["input"], descendants: true, isSignal: true }, { propertyName: "datePicker", first: true, predicate: MatDatepicker, descendants: true, isSignal: true }, { propertyName: "operatorChipRef", first: true, predicate: _SdOperatorChip, descendants: true, isSignal: true }], ngImport: i0, template: "@let _label = label();\r\n@let _appearance = appearance();\r\n@let _hideInlineError = hideInlineError();\r\n@let _errorMessage = errorMessage();\r\n@let _helperText = helperText();\r\n@let _required = required();\r\n@let _isInline = isInline();\r\n@let _labelTop = labelPlacement() === 'top';\r\n<!-- why: c\u00F3 chip operator th\u00EC label lu\u00F4n float, placeholder kh\u00F4ng l\u1EB7p l\u1EA1i label. -->\r\n@let _placeholder = placeholder() || (_labelTop || operatorChip() ? '' : _label) || '';\r\n@let _bare = _isInline;\r\n@let _hasValue = !!formControl.value;\r\n<!-- why: m\u1ED9t c\u1ED5ng gate duy nh\u1EA5t cho <mat-error>, aria-invalid v\u00E0 aria-describedby \u2014 message\r\n hi\u1EC7n m\u00E0 control kh\u00F4ng b\u00E1o invalid th\u00EC screen reader kh\u00F4ng bi\u1EBFt \u00F4 \u0111ang l\u1ED7i. -->\r\n@let _errorVisible = !!_errorMessage && formControl.touched;\r\n@let _showInlineError = !_hideInlineError && _errorVisible;\r\n\r\n@let _resolvedMin = resolvedMin();\r\n@let _resolvedMax = resolvedMax();\r\n\r\n@if (isViewed()) {\r\n <sd-view\r\n [label]=\"_label\"\r\n [labelTemplate]=\"sdLabelTemplate()\"\r\n [value]=\"formControl.value\"\r\n [display]=\"formControl.value | date: 'dd/MM/yyyy'\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"viewTemplate()\">\r\n </sd-view>\r\n} @else {\r\n @if (_isInline) {\r\n <!-- why: inline \u2014 sd-view l\u00E0 \"m\u1EB7t\" + trigger; calendar editor render \u1EA9n (.sd-inline-editor) ch\u1EC9 \u0111\u1EC3 m\u1EDF panel. -->\r\n <span class=\"sd-inline-view\" role=\"button\" tabindex=\"0\" (click)=\"enterInlineEdit()\" (keydown.enter)=\"enterInlineEdit()\">\r\n <sd-view\r\n [label]=\"_label\"\r\n [labelTemplate]=\"sdLabelTemplate()\"\r\n [value]=\"formControl.value\"\r\n [display]=\"formControl.value | date: 'dd/MM/yyyy'\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"viewTemplate()\">\r\n </sd-view>\r\n @if (clearable() && _hasValue && !_required && !formControl.disabled) {\r\n <button type=\"button\" class=\"sd-inline-clear\" (click)=\"clear($event)\" title=\"X\u00F3a\" aria-label=\"X\u00F3a\">\r\n <sd-icon name=\"close\"></sd-icon>\r\n </button>\r\n }\r\n </span>\r\n }\r\n @if (!_appearance || _labelTop) {\r\n <ng-content select=\"[sdLabel]\">\r\n @if (_label) {\r\n <sd-label\r\n [label]=\"_label\"\r\n [required]=\"_required\"\r\n [for]=\"_labelTop ? id : null\"\r\n [labelId]=\"_labelTop ? labelId : null\"></sd-label>\r\n }\r\n </ng-content>\r\n }\r\n\r\n <!-- why: div ch\u1EC9 l\u00E0 h\u1ED9p layout. aria-hidden=\"true\" c\u0169 \u1EA9n C\u1EA2 c\u00E2y con \u2014 label, <input>,\r\n <mat-error>, n\u00FAt clear, n\u00FAt m\u1EDF l\u1ECBch \u2014 kh\u1ECFi accessibility tree. role=\"presentation\" ch\u1EC9\r\n v\u00F4 hi\u1EC7u ho\u00E1 ch\u00EDnh div, KH\u00D4NG lan xu\u1ED1ng con; (click) l\u00E0 ti\u1EC7n \u00EDch chu\u1ED9t m\u00E0 b\u00E0n ph\u00EDm \u0111\u00E3 c\u00F3\r\n qua Tab v\u00E0o <input>. -->\r\n <div\r\n class=\"d-flex align-items-center\"\r\n role=\"presentation\"\r\n [class.sd-inline-editor]=\"_isInline\"\r\n [class.c-focused]=\"isFocused\"\r\n [class.c-disabled]=\"formControl.disabled\"\r\n (click)=\"onClick()\">\r\n <mat-form-field\r\n class=\"c-form-field-date-input\"\r\n [class.sd-md]=\"size() === 'md'\"\r\n [class.sd-sm]=\"size() === 'sm'\"\r\n [class.hide-inline-error]=\"_hideInlineError\"\r\n [class.sd-label-top]=\"_labelTop\"\r\n [appearance]=\"_appearance!\"\r\n [floatLabel]=\"operatorChip() ? 'always' : floatLabel()\">\r\n <!-- Operator (thi\u1EBFt k\u1EBF \u0111\u1EE3t 2 \u00B7 G): chip ti\u1EC1n t\u1ED1 khi c\u00F3 t\u1EEB hai operator. -->\r\n @if (operatorChip()) {\r\n <sd-operator-chip\r\n matPrefix\r\n [operators]=\"operators()\"\r\n [(operator)]=\"operator\"\r\n [size]=\"size()\"\r\n [hasValue]=\"operatorHasValue()\"\r\n [disabled]=\"formControl.disabled && !operatorLocked()\"\r\n [autoId]=\"autoId() ? autoId() + '-operator' : undefined\"\r\n (chosen)=\"onOperatorChosen()\" />\r\n }\r\n @if (_appearance && _label && !_labelTop) {\r\n <mat-label class=\"sd-form-field-label\">\r\n <span>{{ _label }}</span>\r\n @if (_helperText) {\r\n <sd-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"below\" name=\"info\"></sd-icon>\r\n }\r\n </mat-label>\r\n }\r\n\r\n <!-- why: B\u1ECE aria-hidden tr\u00EAn ch\u00EDnh <input> \u2014 \u00F4 v\u1EABn Tab t\u1EDBi \u0111\u01B0\u1EE3c, aria-hidden ch\u1EC9 khi\u1EBFn\r\n screen reader \u0111\u1ECDc ra kho\u1EA3ng l\u1EB7ng. -->\r\n <input\r\n [id]=\"id\"\r\n matInput\r\n (input)=\"onInput($event)\"\r\n (keydown)=\"onKeyDown($event)\"\r\n (dateChange)=\"onChange($event)\"\r\n [autocomplete]=\"id\"\r\n autocorrect=\"off\"\r\n [formControl]=\"formControl\"\r\n [required]=\"_required\"\r\n [matDatepicker]=\"picker\"\r\n [placeholder]=\"_placeholder\"\r\n [min]=\"_resolvedMin\"\r\n [max]=\"_resolvedMax\"\r\n (focus)=\"onFocus()\"\r\n (blur)=\"onBlur()\"\r\n [attr.data-autoId]=\"autoId()\"\r\n [attr.data-disabled]=\"dataDisabled()\"\r\n [attr.data-invalid]=\"dataInvalid()\"\r\n [attr.data-empty]=\"dataEmpty()\"\r\n [attr.data-value]=\"dataValue()\"\r\n [attr.data-required]=\"dataRequired()\"\r\n [attr.data-error-message]=\"dataErrorMessage()\"\r\n [attr.aria-invalid]=\"_errorVisible ? 'true' : null\"\r\n [attr.aria-describedby]=\"_errorMessage ? errorId : null\"\r\n #input\r\n [maxLength]=\"10\" />\r\n\r\n <mat-datepicker #picker [touchUi]=\"isMobileOrTablet\"></mat-datepicker>\r\n\r\n @if (_hideInlineError && _errorVisible) {\r\n <sd-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\" name=\"error\"></sd-icon>\n }\r\n @if (_hideInlineError && _errorVisible) {\r\n <span class=\"sd-visually-hidden\" [id]=\"errorId\" matSuffix>{{ _errorMessage }}</span>\r\r\n }\r\n\r\n @if (_showInlineError) {\r\n <mat-error [id]=\"errorId\">{{ _errorMessage }}</mat-error>\r\n } @else if (_labelTop && _helperText) {\r\n <mat-hint [id]=\"hintId\">{{ _helperText }}</mat-hint>\r\n }\r\n\r\n @if (clearable() && formControl.value && !_required && !formControl.disabled && !_bare) {\r\n <button type=\"button\" class=\"sd-clear-btn sd-hover\" matSuffix (click)=\"clear($event)\" title=\"X\u00F3a\" aria-label=\"X\u00F3a\">\r\n <sd-icon name=\"close\"></sd-icon>\r\n </button>\r\n }\r\n\r\n <!-- why: n\u00FAt m\u1EDF l\u1ECBch tr\u01B0\u1EDBc l\u00E0 <sd-icon> tr\u1EA7n \u2014 kh\u00F4ng Tab t\u1EDBi \u0111\u01B0\u1EE3c, kh\u00F4ng c\u00F3 t\u00EAn, v\u00E0 n\u1EB1m\r\n trong c\u00E2y b\u1ECB aria-hidden n\u00EAn v\u00F4 h\u00ECnh ho\u00E0n to\u00E0n v\u1EDBi AT. <button type=\"button\"> c\u00F3 s\u1EB5n\r\n semantics Enter/Space + `disabled` th\u1EADt, kh\u1ECFi ph\u1EA3i b\u1ECBa role/tabindex/keydown. -->\r\n <button\r\n #btn\r\n type=\"button\"\r\n matSuffix\r\n class=\"cursor-pointer sd-suffix-icon sd-suffix-btn\"\r\n [disabled]=\"formControl.disabled\"\r\n [attr.aria-label]=\"'core.form.date.open-picker' | sdTranslate\"\r\n (click)=\"picker.open()\">\r\n <sd-icon name=\"today\"></sd-icon>\r\n </button>\r\n </mat-form-field>\r\n </div>\r\n}\r\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-primary-contrast{color:var(--sd-primary-contrast)!important}.bg-primary-contrast{background:var(--sd-primary-contrast)!important}.border-primary-contrast{border-color:var(--sd-primary-contrast)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-secondary-contrast{color:var(--sd-secondary-contrast)!important}.bg-secondary-contrast{background:var(--sd-secondary-contrast)!important}.border-secondary-contrast{border-color:var(--sd-secondary-contrast)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-info-contrast{color:var(--sd-info-contrast)!important}.bg-info-contrast{background:var(--sd-info-contrast)!important}.border-info-contrast{border-color:var(--sd-info-contrast)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-success-contrast{color:var(--sd-success-contrast)!important}.bg-success-contrast{background:var(--sd-success-contrast)!important}.border-success-contrast{border-color:var(--sd-success-contrast)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-warning-contrast{color:var(--sd-warning-contrast)!important}.bg-warning-contrast{background:var(--sd-warning-contrast)!important}.border-warning-contrast{border-color:var(--sd-warning-contrast)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-error-contrast{color:var(--sd-error-contrast)!important}.bg-error-contrast{background:var(--sd-error-contrast)!important}.border-error-contrast{border-color:var(--sd-error-contrast)!important}.text-surface{color:var(--sd-surface)!important}.bg-surface{background:var(--sd-surface)!important}.border-surface{border-color:var(--sd-surface)!important}.text-surface-muted{color:var(--sd-surface-muted)!important}.bg-surface-muted{background:var(--sd-surface-muted)!important}.border-surface-muted{border-color:var(--sd-surface-muted)!important}.text-text{color:var(--sd-text)!important}.bg-text{background:var(--sd-text)!important}.border-text{border-color:var(--sd-text)!important}.text-text-secondary{color:var(--sd-text-secondary)!important}.bg-text-secondary{background:var(--sd-text-secondary)!important}.border-text-secondary{border-color:var(--sd-text-secondary)!important}.text-text-muted{color:var(--sd-text-muted)!important}.bg-text-muted{background:var(--sd-text-muted)!important}.border-text-muted{border-color:var(--sd-text-muted)!important}.text-border{color:var(--sd-border)!important}.bg-border{background:var(--sd-border)!important}.border-border{border-color:var(--sd-border)!important}.text-border-strong{color:var(--sd-border-strong)!important}.bg-border-strong{background:var(--sd-border-strong)!important}.border-border-strong{border-color:var(--sd-border-strong)!important}.text-disabled-bg{color:var(--sd-disabled-bg)!important}.bg-disabled-bg{background:var(--sd-disabled-bg)!important}.border-disabled-bg{border-color:var(--sd-disabled-bg)!important}.text-disabled-text{color:var(--sd-disabled-text)!important}.bg-disabled-text{background:var(--sd-disabled-text)!important}.border-disabled-text{border-color:var(--sd-disabled-text)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}.text-secondary{color:var(--sd-text-secondary)!important}.text-muted{color:var(--sd-text-muted)!important}.text-body{color:var(--sd-text)!important}.bg-muted{background:var(--sd-surface-muted)!important}:host{display:block}:host(.sd-has-label){padding-top:4px}:host(.sd-label-top){padding-top:0}:host(.sd-viewed){padding-top:0}:host ::ng-deep .mat-mdc-form-field input.mat-mdc-input-element:disabled{color:var(--sd-disabled-text)!important}:host ::ng-deep .mat-mdc-form-field .mat-mdc-placeholder-required{color:var(--sd-error)}:host ::ng-deep .mat-mdc-form-field-icon-suffix{display:flex}.sd-suffix-btn{display:inline-flex;align-items:center;justify-content:center;border:0;padding:0;background:transparent;cursor:pointer;color:inherit}.sd-suffix-btn:disabled{cursor:default;opacity:.5}:host(.sd-bare){position:relative}.sd-inline-view{cursor:pointer;display:inline-flex;align-items:center;width:100%;padding:1px 6px;border-radius:var(--sd-radius-4, 4px);background-color:#0000000a;transition:background-color .15s ease}.sd-inline-view:hover{background-color:#00000014}.sd-inline-view .sd-inline-clear{display:none;align-items:center;margin-left:4px;padding:0;border:0;background:transparent;cursor:pointer;line-height:0;color:var(--sd-text-secondary, #6b7280);transition:color .15s ease}.sd-inline-view .sd-inline-clear sd-icon{font-size:var(--sd-font-size-16, 16px);width:16px;height:16px}.sd-inline-view .sd-inline-clear:hover{color:var(--sd-error, #b32626)}.sd-inline-view:hover .sd-inline-clear{display:inline-flex}.sd-inline-editor{position:absolute;inset:0;opacity:0;pointer-events:none}.sd-inline-editor ::ng-deep *{pointer-events:none!important}:host(.sd-bare){display:inline-flex;align-items:center}:host(.sd-bare) ::ng-deep .mat-mdc-form-field{width:auto}:host(.sd-bare) ::ng-deep .mat-mdc-text-field-wrapper{padding:0;background:transparent}:host(.sd-bare) ::ng-deep .mat-mdc-form-field-flex{padding:0;align-items:center}:host(.sd-bare) ::ng-deep .mdc-notched-outline{display:none}:host(.sd-bare) ::ng-deep .mat-mdc-form-field-subscript-wrapper{display:none}:host(.sd-bare) ::ng-deep .mat-mdc-form-field-infix{padding:0;min-height:0;width:auto;border:0;display:inline-flex;align-items:center}\n"], dependencies: [{ kind: "component", type: _SdOperatorChip, selector: "sd-operator-chip", inputs: ["operators", "operator", "size", "hasValue", "disabled", "autoId", "showCode", "standalone"], outputs: ["operatorChange", "chosen"] }, { kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { 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: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i4.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i4.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: SdLabel, selector: "sd-label", inputs: ["label", "description", "required", "helperText", "for", "labelId"] }, { kind: "component", type: SdView, selector: "sd-view", inputs: ["label", "value", "display", "hyperlink", "labelTemplate", "valueTemplate", "selectedItems"] }, { kind: "pipe", type: i5.DatePipe, name: "date" }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
626
|
+
], queries: [{ propertyName: "sdLabelTemplate", first: true, predicate: ["sdLabel"], descendants: true, isSignal: true }, { propertyName: "sdValueTemplate", first: true, predicate: ["sdValue"], descendants: true, isSignal: true }, { propertyName: "sdViewDef", first: true, predicate: SdViewDefDirective, descendants: true, isSignal: true }, { propertyName: "sdLabelDef", first: true, predicate: SdLabelDefDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["input"], descendants: true, isSignal: true }, { propertyName: "datePicker", first: true, predicate: MatDatepicker, descendants: true, isSignal: true }, { propertyName: "pickerInput", first: true, predicate: (MatDatepickerInput), descendants: true, isSignal: true }, { propertyName: "operatorChipRef", first: true, predicate: _SdOperatorChip, descendants: true, isSignal: true }], ngImport: i0, template: "@let _label = label();\r\n@let _appearance = appearance();\r\n@let _hideInlineError = hideInlineError();\r\n@let _errorMessage = errorMessage();\r\n@let _helperText = helperText();\r\n@let _required = required();\r\n@let _isInline = isInline();\r\n@let _labelTop = labelPlacement() === 'top';\r\n<!-- why: c\u00F3 chip operator th\u00EC label lu\u00F4n float, placeholder kh\u00F4ng l\u1EB7p l\u1EA1i label. -->\r\n@let _placeholder = placeholder() || (_labelTop || operatorChip() ? '' : _label) || '';\r\n@let _bare = _isInline;\r\n@let _hasValue = !!formControl.value;\r\n<!-- why: m\u1ED9t c\u1ED5ng gate duy nh\u1EA5t cho <mat-error>, aria-invalid v\u00E0 aria-describedby \u2014 message\r\n hi\u1EC7n m\u00E0 control kh\u00F4ng b\u00E1o invalid th\u00EC screen reader kh\u00F4ng bi\u1EBFt \u00F4 \u0111ang l\u1ED7i. -->\r\n@let _errorVisible = !!_errorMessage && formControl.touched;\r\n@let _showInlineError = !_hideInlineError && _errorVisible;\r\n\r\n@let _resolvedMin = resolvedMin();\r\n@let _resolvedMax = resolvedMax();\r\n\r\n@if (isViewed()) {\r\n <sd-view\r\n [label]=\"_label\"\r\n [labelTemplate]=\"sdLabelTemplate()\"\r\n [value]=\"formControl.value\"\r\n [display]=\"formControl.value | date: 'dd/MM/yyyy'\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"viewTemplate()\">\r\n </sd-view>\r\n} @else {\r\n @if (_isInline) {\r\n <!-- why: inline \u2014 sd-view l\u00E0 \"m\u1EB7t\" + trigger; calendar editor render \u1EA9n (.sd-inline-editor) ch\u1EC9 \u0111\u1EC3 m\u1EDF panel. -->\r\n <span class=\"sd-inline-view\" role=\"button\" tabindex=\"0\" (click)=\"enterInlineEdit()\" (keydown.enter)=\"enterInlineEdit()\">\r\n <sd-view\r\n [label]=\"_label\"\r\n [labelTemplate]=\"sdLabelTemplate()\"\r\n [value]=\"formControl.value\"\r\n [display]=\"formControl.value | date: 'dd/MM/yyyy'\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"viewTemplate()\">\r\n </sd-view>\r\n @if (clearable() && _hasValue && !_required && !formControl.disabled) {\r\n <button type=\"button\" class=\"sd-inline-clear\" (click)=\"clear($event)\" title=\"X\u00F3a\" aria-label=\"X\u00F3a\">\r\n <sd-icon name=\"close\"></sd-icon>\r\n </button>\r\n }\r\n </span>\r\n }\r\n @if (!_appearance || _labelTop) {\r\n <ng-content select=\"[sdLabel]\">\r\n @if (_label) {\r\n <sd-label\r\n [label]=\"_label\"\r\n [required]=\"_required\"\r\n [for]=\"_labelTop ? id : null\"\r\n [labelId]=\"_labelTop ? labelId : null\"></sd-label>\r\n }\r\n </ng-content>\r\n }\r\n\r\n <!-- why: div ch\u1EC9 l\u00E0 h\u1ED9p layout. aria-hidden=\"true\" c\u0169 \u1EA9n C\u1EA2 c\u00E2y con \u2014 label, <input>,\r\n <mat-error>, n\u00FAt clear, n\u00FAt m\u1EDF l\u1ECBch \u2014 kh\u1ECFi accessibility tree. role=\"presentation\" ch\u1EC9\r\n v\u00F4 hi\u1EC7u ho\u00E1 ch\u00EDnh div, KH\u00D4NG lan xu\u1ED1ng con; (click) l\u00E0 ti\u1EC7n \u00EDch chu\u1ED9t m\u00E0 b\u00E0n ph\u00EDm \u0111\u00E3 c\u00F3\r\n qua Tab v\u00E0o <input>. -->\r\n <div\r\n class=\"d-flex align-items-center\"\r\n role=\"presentation\"\r\n [class.sd-inline-editor]=\"_isInline\"\r\n [class.c-focused]=\"isFocused\"\r\n [class.c-disabled]=\"formControl.disabled\"\r\n (click)=\"onClick()\">\r\n <mat-form-field\r\n class=\"c-form-field-date-input\"\r\n [class.sd-md]=\"size() === 'md'\"\r\n [class.sd-sm]=\"size() === 'sm'\"\r\n [class.hide-inline-error]=\"_hideInlineError\"\r\n [class.sd-label-top]=\"_labelTop\"\r\n [appearance]=\"_appearance!\"\r\n [floatLabel]=\"operatorChip() ? 'always' : floatLabel()\">\r\n <!-- Operator (thi\u1EBFt k\u1EBF \u0111\u1EE3t 2 \u00B7 G): chip ti\u1EC1n t\u1ED1 khi c\u00F3 t\u1EEB hai operator. -->\r\n @if (operatorChip()) {\r\n <sd-operator-chip\r\n matPrefix\r\n [operators]=\"operators()\"\r\n [(operator)]=\"operator\"\r\n [size]=\"size()\"\r\n [hasValue]=\"operatorHasValue()\"\r\n [disabled]=\"formControl.disabled && !operatorLocked()\"\r\n [autoId]=\"autoId() ? autoId() + '-operator' : undefined\"\r\n (chosen)=\"onOperatorChosen()\" />\r\n }\r\n @if (_appearance && _label && !_labelTop) {\r\n <mat-label class=\"sd-form-field-label\">\r\n <span>{{ _label }}</span>\r\n @if (_helperText) {\r\n <sd-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"below\" name=\"info\"></sd-icon>\r\n }\r\n </mat-label>\r\n }\r\n\r\n <!-- why: B\u1ECE aria-hidden tr\u00EAn ch\u00EDnh <input> \u2014 \u00F4 v\u1EABn Tab t\u1EDBi \u0111\u01B0\u1EE3c, aria-hidden ch\u1EC9 khi\u1EBFn\r\n screen reader \u0111\u1ECDc ra kho\u1EA3ng l\u1EB7ng. -->\r\n <input\r\n [id]=\"id\"\r\n matInput\r\n (input)=\"onInput($event)\"\r\n (keydown)=\"onKeyDown($event)\"\r\n (dateChange)=\"onChange($event)\"\r\n [autocomplete]=\"id\"\r\n autocorrect=\"off\"\r\n [formControl]=\"formControl\"\r\n [required]=\"_required\"\r\n [matDatepicker]=\"picker\"\r\n [placeholder]=\"_placeholder\"\r\n [min]=\"_resolvedMin\"\r\n [max]=\"_resolvedMax\"\r\n (focus)=\"onFocus()\"\r\n (blur)=\"onBlur()\"\r\n [attr.data-autoId]=\"autoId()\"\r\n [attr.data-disabled]=\"dataDisabled()\"\r\n [attr.data-invalid]=\"dataInvalid()\"\r\n [attr.data-empty]=\"dataEmpty()\"\r\n [attr.data-value]=\"dataValue()\"\r\n [attr.data-required]=\"dataRequired()\"\r\n [attr.data-error-message]=\"dataErrorMessage()\"\r\n [attr.aria-invalid]=\"_errorVisible ? 'true' : null\"\r\n [attr.aria-describedby]=\"_errorMessage ? errorId : null\"\r\n #input\r\n [maxLength]=\"10\" />\r\n\r\n <mat-datepicker #picker [touchUi]=\"isMobileOrTablet\"></mat-datepicker>\r\n\r\n @if (_hideInlineError && _errorVisible) {\r\n <sd-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\" name=\"error\"></sd-icon>\n }\r\n @if (_hideInlineError && _errorVisible) {\r\n <span class=\"sd-visually-hidden\" [id]=\"errorId\" matSuffix>{{ _errorMessage }}</span>\r\r\n }\r\n\r\n @if (_showInlineError) {\r\n <mat-error [id]=\"errorId\">{{ _errorMessage }}</mat-error>\r\n } @else if (_labelTop && _helperText) {\r\n <mat-hint [id]=\"hintId\">{{ _helperText }}</mat-hint>\r\n }\r\n\r\n @if (clearable() && formControl.value && !_required && !formControl.disabled && !_bare) {\r\n <button type=\"button\" class=\"sd-clear-btn sd-hover\" matSuffix (click)=\"clear($event)\" title=\"X\u00F3a\" aria-label=\"X\u00F3a\">\r\n <sd-icon name=\"close\"></sd-icon>\r\n </button>\r\n }\r\n\r\n <!-- why: n\u00FAt m\u1EDF l\u1ECBch tr\u01B0\u1EDBc l\u00E0 <sd-icon> tr\u1EA7n \u2014 kh\u00F4ng Tab t\u1EDBi \u0111\u01B0\u1EE3c, kh\u00F4ng c\u00F3 t\u00EAn, v\u00E0 n\u1EB1m\r\n trong c\u00E2y b\u1ECB aria-hidden n\u00EAn v\u00F4 h\u00ECnh ho\u00E0n to\u00E0n v\u1EDBi AT. <button type=\"button\"> c\u00F3 s\u1EB5n\r\n semantics Enter/Space + `disabled` th\u1EADt, kh\u1ECFi ph\u1EA3i b\u1ECBa role/tabindex/keydown. -->\r\n <button\r\n #btn\r\n type=\"button\"\r\n matSuffix\r\n class=\"cursor-pointer sd-suffix-icon sd-suffix-btn\"\r\n [disabled]=\"formControl.disabled\"\r\n [attr.aria-label]=\"'core.form.date.open-picker' | sdTranslate\"\r\n (click)=\"picker.open()\">\r\n <sd-icon name=\"today\"></sd-icon>\r\n </button>\r\n </mat-form-field>\r\n </div>\r\n}\r\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-primary-contrast{color:var(--sd-primary-contrast)!important}.bg-primary-contrast{background:var(--sd-primary-contrast)!important}.border-primary-contrast{border-color:var(--sd-primary-contrast)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-secondary-contrast{color:var(--sd-secondary-contrast)!important}.bg-secondary-contrast{background:var(--sd-secondary-contrast)!important}.border-secondary-contrast{border-color:var(--sd-secondary-contrast)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-info-contrast{color:var(--sd-info-contrast)!important}.bg-info-contrast{background:var(--sd-info-contrast)!important}.border-info-contrast{border-color:var(--sd-info-contrast)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-success-contrast{color:var(--sd-success-contrast)!important}.bg-success-contrast{background:var(--sd-success-contrast)!important}.border-success-contrast{border-color:var(--sd-success-contrast)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-warning-contrast{color:var(--sd-warning-contrast)!important}.bg-warning-contrast{background:var(--sd-warning-contrast)!important}.border-warning-contrast{border-color:var(--sd-warning-contrast)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-error-contrast{color:var(--sd-error-contrast)!important}.bg-error-contrast{background:var(--sd-error-contrast)!important}.border-error-contrast{border-color:var(--sd-error-contrast)!important}.text-surface{color:var(--sd-surface)!important}.bg-surface{background:var(--sd-surface)!important}.border-surface{border-color:var(--sd-surface)!important}.text-surface-muted{color:var(--sd-surface-muted)!important}.bg-surface-muted{background:var(--sd-surface-muted)!important}.border-surface-muted{border-color:var(--sd-surface-muted)!important}.text-text{color:var(--sd-text)!important}.bg-text{background:var(--sd-text)!important}.border-text{border-color:var(--sd-text)!important}.text-text-secondary{color:var(--sd-text-secondary)!important}.bg-text-secondary{background:var(--sd-text-secondary)!important}.border-text-secondary{border-color:var(--sd-text-secondary)!important}.text-text-muted{color:var(--sd-text-muted)!important}.bg-text-muted{background:var(--sd-text-muted)!important}.border-text-muted{border-color:var(--sd-text-muted)!important}.text-border{color:var(--sd-border)!important}.bg-border{background:var(--sd-border)!important}.border-border{border-color:var(--sd-border)!important}.text-border-strong{color:var(--sd-border-strong)!important}.bg-border-strong{background:var(--sd-border-strong)!important}.border-border-strong{border-color:var(--sd-border-strong)!important}.text-disabled-bg{color:var(--sd-disabled-bg)!important}.bg-disabled-bg{background:var(--sd-disabled-bg)!important}.border-disabled-bg{border-color:var(--sd-disabled-bg)!important}.text-disabled-text{color:var(--sd-disabled-text)!important}.bg-disabled-text{background:var(--sd-disabled-text)!important}.border-disabled-text{border-color:var(--sd-disabled-text)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}.text-secondary{color:var(--sd-text-secondary)!important}.text-muted{color:var(--sd-text-muted)!important}.text-body{color:var(--sd-text)!important}.bg-muted{background:var(--sd-surface-muted)!important}:host{display:block}:host(.sd-has-label){padding-top:4px}:host(.sd-label-top){padding-top:0}:host(.sd-viewed){padding-top:0}:host ::ng-deep .mat-mdc-form-field input.mat-mdc-input-element:disabled{color:var(--sd-disabled-text)!important}:host ::ng-deep .mat-mdc-form-field .mat-mdc-placeholder-required{color:var(--sd-error)}:host ::ng-deep .mat-mdc-form-field-icon-suffix{display:flex}.sd-suffix-btn{display:inline-flex;align-items:center;justify-content:center;border:0;padding:0;background:transparent;cursor:pointer;color:inherit}.sd-suffix-btn:disabled{cursor:default;opacity:.5}:host(.sd-bare){position:relative}.sd-inline-view{cursor:pointer;display:inline-flex;align-items:center;width:100%;padding:1px 6px;border-radius:var(--sd-radius-4, 4px);background-color:#0000000a;transition:background-color .15s ease}.sd-inline-view:hover{background-color:#00000014}.sd-inline-view .sd-inline-clear{display:none;align-items:center;margin-left:4px;padding:0;border:0;background:transparent;cursor:pointer;line-height:0;color:var(--sd-text-secondary, #6b7280);transition:color .15s ease}.sd-inline-view .sd-inline-clear sd-icon{font-size:var(--sd-font-size-16, 16px);width:16px;height:16px}.sd-inline-view .sd-inline-clear:hover{color:var(--sd-error, #b32626)}.sd-inline-view:hover .sd-inline-clear{display:inline-flex}.sd-inline-editor{position:absolute;inset:0;opacity:0;pointer-events:none}.sd-inline-editor ::ng-deep *{pointer-events:none!important}:host(.sd-bare){display:inline-flex;align-items:center}:host(.sd-bare) ::ng-deep .mat-mdc-form-field{width:auto}:host(.sd-bare) ::ng-deep .mat-mdc-text-field-wrapper{padding:0;background:transparent}:host(.sd-bare) ::ng-deep .mat-mdc-form-field-flex{padding:0;align-items:center}:host(.sd-bare) ::ng-deep .mdc-notched-outline{display:none}:host(.sd-bare) ::ng-deep .mat-mdc-form-field-subscript-wrapper{display:none}:host(.sd-bare) ::ng-deep .mat-mdc-form-field-infix{padding:0;min-height:0;width:auto;border:0;display:inline-flex;align-items:center}\n"], dependencies: [{ kind: "component", type: _SdOperatorChip, selector: "sd-operator-chip", inputs: ["operators", "operator", "size", "hasValue", "disabled", "autoId", "showCode", "standalone"], outputs: ["operatorChange", "chosen"] }, { kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { 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: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i4.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i4.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: SdLabel, selector: "sd-label", inputs: ["label", "description", "required", "helperText", "for", "labelId"] }, { kind: "component", type: SdView, selector: "sd-view", inputs: ["label", "value", "display", "hyperlink", "labelTemplate", "valueTemplate", "selectedItems"] }, { kind: "pipe", type: i5.DatePipe, name: "date" }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
529
627
|
}
|
|
530
628
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdDate, decorators: [{
|
|
531
629
|
type: Component,
|
|
@@ -563,7 +661,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
563
661
|
SdView,
|
|
564
662
|
SdTranslatePipe,
|
|
565
663
|
], template: "@let _label = label();\r\n@let _appearance = appearance();\r\n@let _hideInlineError = hideInlineError();\r\n@let _errorMessage = errorMessage();\r\n@let _helperText = helperText();\r\n@let _required = required();\r\n@let _isInline = isInline();\r\n@let _labelTop = labelPlacement() === 'top';\r\n<!-- why: c\u00F3 chip operator th\u00EC label lu\u00F4n float, placeholder kh\u00F4ng l\u1EB7p l\u1EA1i label. -->\r\n@let _placeholder = placeholder() || (_labelTop || operatorChip() ? '' : _label) || '';\r\n@let _bare = _isInline;\r\n@let _hasValue = !!formControl.value;\r\n<!-- why: m\u1ED9t c\u1ED5ng gate duy nh\u1EA5t cho <mat-error>, aria-invalid v\u00E0 aria-describedby \u2014 message\r\n hi\u1EC7n m\u00E0 control kh\u00F4ng b\u00E1o invalid th\u00EC screen reader kh\u00F4ng bi\u1EBFt \u00F4 \u0111ang l\u1ED7i. -->\r\n@let _errorVisible = !!_errorMessage && formControl.touched;\r\n@let _showInlineError = !_hideInlineError && _errorVisible;\r\n\r\n@let _resolvedMin = resolvedMin();\r\n@let _resolvedMax = resolvedMax();\r\n\r\n@if (isViewed()) {\r\n <sd-view\r\n [label]=\"_label\"\r\n [labelTemplate]=\"sdLabelTemplate()\"\r\n [value]=\"formControl.value\"\r\n [display]=\"formControl.value | date: 'dd/MM/yyyy'\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"viewTemplate()\">\r\n </sd-view>\r\n} @else {\r\n @if (_isInline) {\r\n <!-- why: inline \u2014 sd-view l\u00E0 \"m\u1EB7t\" + trigger; calendar editor render \u1EA9n (.sd-inline-editor) ch\u1EC9 \u0111\u1EC3 m\u1EDF panel. -->\r\n <span class=\"sd-inline-view\" role=\"button\" tabindex=\"0\" (click)=\"enterInlineEdit()\" (keydown.enter)=\"enterInlineEdit()\">\r\n <sd-view\r\n [label]=\"_label\"\r\n [labelTemplate]=\"sdLabelTemplate()\"\r\n [value]=\"formControl.value\"\r\n [display]=\"formControl.value | date: 'dd/MM/yyyy'\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"viewTemplate()\">\r\n </sd-view>\r\n @if (clearable() && _hasValue && !_required && !formControl.disabled) {\r\n <button type=\"button\" class=\"sd-inline-clear\" (click)=\"clear($event)\" title=\"X\u00F3a\" aria-label=\"X\u00F3a\">\r\n <sd-icon name=\"close\"></sd-icon>\r\n </button>\r\n }\r\n </span>\r\n }\r\n @if (!_appearance || _labelTop) {\r\n <ng-content select=\"[sdLabel]\">\r\n @if (_label) {\r\n <sd-label\r\n [label]=\"_label\"\r\n [required]=\"_required\"\r\n [for]=\"_labelTop ? id : null\"\r\n [labelId]=\"_labelTop ? labelId : null\"></sd-label>\r\n }\r\n </ng-content>\r\n }\r\n\r\n <!-- why: div ch\u1EC9 l\u00E0 h\u1ED9p layout. aria-hidden=\"true\" c\u0169 \u1EA9n C\u1EA2 c\u00E2y con \u2014 label, <input>,\r\n <mat-error>, n\u00FAt clear, n\u00FAt m\u1EDF l\u1ECBch \u2014 kh\u1ECFi accessibility tree. role=\"presentation\" ch\u1EC9\r\n v\u00F4 hi\u1EC7u ho\u00E1 ch\u00EDnh div, KH\u00D4NG lan xu\u1ED1ng con; (click) l\u00E0 ti\u1EC7n \u00EDch chu\u1ED9t m\u00E0 b\u00E0n ph\u00EDm \u0111\u00E3 c\u00F3\r\n qua Tab v\u00E0o <input>. -->\r\n <div\r\n class=\"d-flex align-items-center\"\r\n role=\"presentation\"\r\n [class.sd-inline-editor]=\"_isInline\"\r\n [class.c-focused]=\"isFocused\"\r\n [class.c-disabled]=\"formControl.disabled\"\r\n (click)=\"onClick()\">\r\n <mat-form-field\r\n class=\"c-form-field-date-input\"\r\n [class.sd-md]=\"size() === 'md'\"\r\n [class.sd-sm]=\"size() === 'sm'\"\r\n [class.hide-inline-error]=\"_hideInlineError\"\r\n [class.sd-label-top]=\"_labelTop\"\r\n [appearance]=\"_appearance!\"\r\n [floatLabel]=\"operatorChip() ? 'always' : floatLabel()\">\r\n <!-- Operator (thi\u1EBFt k\u1EBF \u0111\u1EE3t 2 \u00B7 G): chip ti\u1EC1n t\u1ED1 khi c\u00F3 t\u1EEB hai operator. -->\r\n @if (operatorChip()) {\r\n <sd-operator-chip\r\n matPrefix\r\n [operators]=\"operators()\"\r\n [(operator)]=\"operator\"\r\n [size]=\"size()\"\r\n [hasValue]=\"operatorHasValue()\"\r\n [disabled]=\"formControl.disabled && !operatorLocked()\"\r\n [autoId]=\"autoId() ? autoId() + '-operator' : undefined\"\r\n (chosen)=\"onOperatorChosen()\" />\r\n }\r\n @if (_appearance && _label && !_labelTop) {\r\n <mat-label class=\"sd-form-field-label\">\r\n <span>{{ _label }}</span>\r\n @if (_helperText) {\r\n <sd-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"below\" name=\"info\"></sd-icon>\r\n }\r\n </mat-label>\r\n }\r\n\r\n <!-- why: B\u1ECE aria-hidden tr\u00EAn ch\u00EDnh <input> \u2014 \u00F4 v\u1EABn Tab t\u1EDBi \u0111\u01B0\u1EE3c, aria-hidden ch\u1EC9 khi\u1EBFn\r\n screen reader \u0111\u1ECDc ra kho\u1EA3ng l\u1EB7ng. -->\r\n <input\r\n [id]=\"id\"\r\n matInput\r\n (input)=\"onInput($event)\"\r\n (keydown)=\"onKeyDown($event)\"\r\n (dateChange)=\"onChange($event)\"\r\n [autocomplete]=\"id\"\r\n autocorrect=\"off\"\r\n [formControl]=\"formControl\"\r\n [required]=\"_required\"\r\n [matDatepicker]=\"picker\"\r\n [placeholder]=\"_placeholder\"\r\n [min]=\"_resolvedMin\"\r\n [max]=\"_resolvedMax\"\r\n (focus)=\"onFocus()\"\r\n (blur)=\"onBlur()\"\r\n [attr.data-autoId]=\"autoId()\"\r\n [attr.data-disabled]=\"dataDisabled()\"\r\n [attr.data-invalid]=\"dataInvalid()\"\r\n [attr.data-empty]=\"dataEmpty()\"\r\n [attr.data-value]=\"dataValue()\"\r\n [attr.data-required]=\"dataRequired()\"\r\n [attr.data-error-message]=\"dataErrorMessage()\"\r\n [attr.aria-invalid]=\"_errorVisible ? 'true' : null\"\r\n [attr.aria-describedby]=\"_errorMessage ? errorId : null\"\r\n #input\r\n [maxLength]=\"10\" />\r\n\r\n <mat-datepicker #picker [touchUi]=\"isMobileOrTablet\"></mat-datepicker>\r\n\r\n @if (_hideInlineError && _errorVisible) {\r\n <sd-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\" name=\"error\"></sd-icon>\n }\r\n @if (_hideInlineError && _errorVisible) {\r\n <span class=\"sd-visually-hidden\" [id]=\"errorId\" matSuffix>{{ _errorMessage }}</span>\r\r\n }\r\n\r\n @if (_showInlineError) {\r\n <mat-error [id]=\"errorId\">{{ _errorMessage }}</mat-error>\r\n } @else if (_labelTop && _helperText) {\r\n <mat-hint [id]=\"hintId\">{{ _helperText }}</mat-hint>\r\n }\r\n\r\n @if (clearable() && formControl.value && !_required && !formControl.disabled && !_bare) {\r\n <button type=\"button\" class=\"sd-clear-btn sd-hover\" matSuffix (click)=\"clear($event)\" title=\"X\u00F3a\" aria-label=\"X\u00F3a\">\r\n <sd-icon name=\"close\"></sd-icon>\r\n </button>\r\n }\r\n\r\n <!-- why: n\u00FAt m\u1EDF l\u1ECBch tr\u01B0\u1EDBc l\u00E0 <sd-icon> tr\u1EA7n \u2014 kh\u00F4ng Tab t\u1EDBi \u0111\u01B0\u1EE3c, kh\u00F4ng c\u00F3 t\u00EAn, v\u00E0 n\u1EB1m\r\n trong c\u00E2y b\u1ECB aria-hidden n\u00EAn v\u00F4 h\u00ECnh ho\u00E0n to\u00E0n v\u1EDBi AT. <button type=\"button\"> c\u00F3 s\u1EB5n\r\n semantics Enter/Space + `disabled` th\u1EADt, kh\u1ECFi ph\u1EA3i b\u1ECBa role/tabindex/keydown. -->\r\n <button\r\n #btn\r\n type=\"button\"\r\n matSuffix\r\n class=\"cursor-pointer sd-suffix-icon sd-suffix-btn\"\r\n [disabled]=\"formControl.disabled\"\r\n [attr.aria-label]=\"'core.form.date.open-picker' | sdTranslate\"\r\n (click)=\"picker.open()\">\r\n <sd-icon name=\"today\"></sd-icon>\r\n </button>\r\n </mat-form-field>\r\n </div>\r\n}\r\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-primary-contrast{color:var(--sd-primary-contrast)!important}.bg-primary-contrast{background:var(--sd-primary-contrast)!important}.border-primary-contrast{border-color:var(--sd-primary-contrast)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-secondary-contrast{color:var(--sd-secondary-contrast)!important}.bg-secondary-contrast{background:var(--sd-secondary-contrast)!important}.border-secondary-contrast{border-color:var(--sd-secondary-contrast)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-info-contrast{color:var(--sd-info-contrast)!important}.bg-info-contrast{background:var(--sd-info-contrast)!important}.border-info-contrast{border-color:var(--sd-info-contrast)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-success-contrast{color:var(--sd-success-contrast)!important}.bg-success-contrast{background:var(--sd-success-contrast)!important}.border-success-contrast{border-color:var(--sd-success-contrast)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-warning-contrast{color:var(--sd-warning-contrast)!important}.bg-warning-contrast{background:var(--sd-warning-contrast)!important}.border-warning-contrast{border-color:var(--sd-warning-contrast)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-error-contrast{color:var(--sd-error-contrast)!important}.bg-error-contrast{background:var(--sd-error-contrast)!important}.border-error-contrast{border-color:var(--sd-error-contrast)!important}.text-surface{color:var(--sd-surface)!important}.bg-surface{background:var(--sd-surface)!important}.border-surface{border-color:var(--sd-surface)!important}.text-surface-muted{color:var(--sd-surface-muted)!important}.bg-surface-muted{background:var(--sd-surface-muted)!important}.border-surface-muted{border-color:var(--sd-surface-muted)!important}.text-text{color:var(--sd-text)!important}.bg-text{background:var(--sd-text)!important}.border-text{border-color:var(--sd-text)!important}.text-text-secondary{color:var(--sd-text-secondary)!important}.bg-text-secondary{background:var(--sd-text-secondary)!important}.border-text-secondary{border-color:var(--sd-text-secondary)!important}.text-text-muted{color:var(--sd-text-muted)!important}.bg-text-muted{background:var(--sd-text-muted)!important}.border-text-muted{border-color:var(--sd-text-muted)!important}.text-border{color:var(--sd-border)!important}.bg-border{background:var(--sd-border)!important}.border-border{border-color:var(--sd-border)!important}.text-border-strong{color:var(--sd-border-strong)!important}.bg-border-strong{background:var(--sd-border-strong)!important}.border-border-strong{border-color:var(--sd-border-strong)!important}.text-disabled-bg{color:var(--sd-disabled-bg)!important}.bg-disabled-bg{background:var(--sd-disabled-bg)!important}.border-disabled-bg{border-color:var(--sd-disabled-bg)!important}.text-disabled-text{color:var(--sd-disabled-text)!important}.bg-disabled-text{background:var(--sd-disabled-text)!important}.border-disabled-text{border-color:var(--sd-disabled-text)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}.text-secondary{color:var(--sd-text-secondary)!important}.text-muted{color:var(--sd-text-muted)!important}.text-body{color:var(--sd-text)!important}.bg-muted{background:var(--sd-surface-muted)!important}:host{display:block}:host(.sd-has-label){padding-top:4px}:host(.sd-label-top){padding-top:0}:host(.sd-viewed){padding-top:0}:host ::ng-deep .mat-mdc-form-field input.mat-mdc-input-element:disabled{color:var(--sd-disabled-text)!important}:host ::ng-deep .mat-mdc-form-field .mat-mdc-placeholder-required{color:var(--sd-error)}:host ::ng-deep .mat-mdc-form-field-icon-suffix{display:flex}.sd-suffix-btn{display:inline-flex;align-items:center;justify-content:center;border:0;padding:0;background:transparent;cursor:pointer;color:inherit}.sd-suffix-btn:disabled{cursor:default;opacity:.5}:host(.sd-bare){position:relative}.sd-inline-view{cursor:pointer;display:inline-flex;align-items:center;width:100%;padding:1px 6px;border-radius:var(--sd-radius-4, 4px);background-color:#0000000a;transition:background-color .15s ease}.sd-inline-view:hover{background-color:#00000014}.sd-inline-view .sd-inline-clear{display:none;align-items:center;margin-left:4px;padding:0;border:0;background:transparent;cursor:pointer;line-height:0;color:var(--sd-text-secondary, #6b7280);transition:color .15s ease}.sd-inline-view .sd-inline-clear sd-icon{font-size:var(--sd-font-size-16, 16px);width:16px;height:16px}.sd-inline-view .sd-inline-clear:hover{color:var(--sd-error, #b32626)}.sd-inline-view:hover .sd-inline-clear{display:inline-flex}.sd-inline-editor{position:absolute;inset:0;opacity:0;pointer-events:none}.sd-inline-editor ::ng-deep *{pointer-events:none!important}:host(.sd-bare){display:inline-flex;align-items:center}:host(.sd-bare) ::ng-deep .mat-mdc-form-field{width:auto}:host(.sd-bare) ::ng-deep .mat-mdc-text-field-wrapper{padding:0;background:transparent}:host(.sd-bare) ::ng-deep .mat-mdc-form-field-flex{padding:0;align-items:center}:host(.sd-bare) ::ng-deep .mdc-notched-outline{display:none}:host(.sd-bare) ::ng-deep .mat-mdc-form-field-subscript-wrapper{display:none}:host(.sd-bare) ::ng-deep .mat-mdc-form-field-infix{padding:0;min-height:0;width:auto;border:0;display:inline-flex;align-items:center}\n"] }]
|
|
566
|
-
}], propDecorators: { inputRef: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }], datePicker: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatDatepicker), { isSignal: true }] }], sdLabelTemplate: [{ type: i0.ContentChild, args: ['sdLabel', { isSignal: true }] }], sdValueTemplate: [{ type: i0.ContentChild, args: ['sdValue', { isSignal: true }] }], sdViewDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdViewDefDirective), { isSignal: true }] }], sdLabelDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdLabelDefDirective), { isSignal: true }] }], autoIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], operators: [{ type: i0.Input, args: [{ isSignal: true, alias: "operators", required: false }] }], operator: [{ type: i0.Input, args: [{ isSignal: true, alias: "operator", required: false }] }, { type: i0.Output, args: ["operatorChange"] }], operatorChipRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => _SdOperatorChip), { isSignal: true }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], hideInlineError: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideInlineError", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], viewed: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewed", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], inlineError: [{ type: i0.Input, args: [{ isSignal: true, alias: "inlineError", required: false }] }], hyperlink: [{ type: i0.Input, args: [{ isSignal: true, alias: "hyperlink", required: false }] }], appearanceInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], labelPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPlacement", required: false }] }], minInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], minDateInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], maxDateInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], transform: [{ type: i0.Input, args: [{ isSignal: true, alias: "transform", required: false }] }], valueModel: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }, { type: i0.Output, args: ["modelChange"] }], sdChange: [{ type: i0.Output, args: ["sdChange"] }], sdFocus: [{ type: i0.Output, args: ["sdFocus"] }] } });
|
|
664
|
+
}], ctorParameters: () => [], propDecorators: { inputRef: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }], datePicker: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatDatepicker), { isSignal: true }] }], pickerInput: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatDatepickerInput), { isSignal: true }] }], sdLabelTemplate: [{ type: i0.ContentChild, args: ['sdLabel', { isSignal: true }] }], sdValueTemplate: [{ type: i0.ContentChild, args: ['sdValue', { isSignal: true }] }], sdViewDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdViewDefDirective), { isSignal: true }] }], sdLabelDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdLabelDefDirective), { isSignal: true }] }], autoIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], operators: [{ type: i0.Input, args: [{ isSignal: true, alias: "operators", required: false }] }], operator: [{ type: i0.Input, args: [{ isSignal: true, alias: "operator", required: false }] }, { type: i0.Output, args: ["operatorChange"] }], operatorChipRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => _SdOperatorChip), { isSignal: true }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], hideInlineError: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideInlineError", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], viewed: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewed", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], inlineError: [{ type: i0.Input, args: [{ isSignal: true, alias: "inlineError", required: false }] }], hyperlink: [{ type: i0.Input, args: [{ isSignal: true, alias: "hyperlink", required: false }] }], appearanceInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], labelPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPlacement", required: false }] }], minInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], minDateInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], maxDateInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], transform: [{ type: i0.Input, args: [{ isSignal: true, alias: "transform", required: false }] }], valueModel: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }, { type: i0.Output, args: ["modelChange"] }], sdChange: [{ type: i0.Output, args: ["sdChange"] }], sdFocus: [{ type: i0.Output, args: ["sdFocus"] }] } });
|
|
567
665
|
|
|
568
666
|
/**
|
|
569
667
|
* Generated bundle index. Do not edit.
|