nira-falcon 0.1.22 → 0.1.23
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/ng-package.json +7 -0
- package/package copy.json +13 -0
- package/package.json +13 -26
- package/src/assets/images/hub-dashboard-title-bg.png +0 -0
- package/src/assets/images/iran.png +0 -0
- package/src/environments/environment.ts +7 -0
- package/src/lib/core-auto-complete/core-auto-complete.component.html +30 -0
- package/src/lib/core-auto-complete/core-auto-complete.component.scss +89 -0
- package/src/lib/core-auto-complete/core-auto-complete.component.ts +92 -0
- package/src/lib/core-btn/core-btn-bluebird.component.html +21 -0
- package/src/lib/core-btn/core-btn-bluebird.component.scss +123 -0
- package/src/lib/core-btn/core-btn-falcon.component.html +20 -0
- package/src/lib/core-btn/core-btn-falcon.component.scss +115 -0
- package/src/lib/core-btn/core-btn.component.ts +54 -0
- package/src/lib/core-card/core-card.component.html +3 -0
- package/src/lib/core-card/core-card.component.scss +0 -0
- package/src/lib/core-card/core-card.component.ts +10 -0
- package/src/lib/core-checkbox/core-checkbox.component.html +9 -0
- package/src/lib/core-checkbox/core-checkbox.component.scss +60 -0
- package/src/lib/core-checkbox/core-checkbox.component.ts +19 -0
- package/src/lib/core-confirm-dialog/core-confirm-dialog.component.html +28 -0
- package/src/lib/core-confirm-dialog/core-confirm-dialog.component.scss +131 -0
- package/src/lib/core-confirm-dialog/core-confirm-dialog.component.ts +29 -0
- package/src/lib/core-date-picker/core-date-picker-bluebird.component.html +15 -0
- package/src/lib/core-date-picker/core-date-picker-bluebird.component.scss +0 -0
- package/src/lib/core-date-picker/core-date-picker-falcon.component.html +14 -0
- package/src/lib/core-date-picker/core-date-picker-falcon.component.scss +0 -0
- package/src/lib/core-date-picker/core-date-picker.component.ts +44 -0
- package/src/lib/core-input/core-input-bluebird.component.html +95 -0
- package/src/lib/core-input/core-input-bluebird.component.scss +152 -0
- package/src/lib/core-input/core-input-falcon.component.html +90 -0
- package/src/lib/core-input/core-input-falcon.component.scss +141 -0
- package/src/lib/core-input/core-input.component.ts +112 -0
- package/src/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.html +3 -0
- package/src/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.scss +15 -0
- package/src/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.ts +19 -0
- package/src/lib/core-multi-select/core-multi-select.component.html +41 -0
- package/src/lib/core-multi-select/core-multi-select.component.scss +119 -0
- package/src/lib/core-multi-select/core-multi-select.component.ts +139 -0
- package/src/lib/core-number/core-number.component.html +3 -0
- package/src/lib/core-number/core-number.component.scss +1 -0
- package/src/lib/core-number/core-number.component.ts +45 -0
- package/src/lib/core-page-title/core-page-title.component.html +14 -0
- package/src/lib/core-page-title/core-page-title.component.scss +16 -0
- package/src/lib/core-page-title/core-page-title.component.ts +11 -0
- package/src/lib/core-radio-buttons/core-radio-buttons.component.html +17 -0
- package/src/lib/core-radio-buttons/core-radio-buttons.component.scss +46 -0
- package/src/lib/core-radio-buttons/core-radio-buttons.component.spec.ts +21 -0
- package/src/lib/core-radio-buttons/core-radio-buttons.component.ts +64 -0
- package/src/lib/core-search-box/core-search-box.component.html +14 -0
- package/src/lib/core-search-box/core-search-box.component.scss +37 -0
- package/src/lib/core-search-box/core-search-box.component.ts +15 -0
- package/src/lib/core-select/core-select-bluebird.component.html +57 -0
- package/src/lib/core-select/core-select-bluebird.component.scss +129 -0
- package/src/lib/core-select/core-select-falcon.component.html +56 -0
- package/src/lib/core-select/core-select-falcon.component.scss +123 -0
- package/src/lib/core-select/core-select.component.spec.ts +21 -0
- package/src/lib/core-select/core-select.component.ts +93 -0
- package/src/lib/core-spinner/core-spinner.component.html +14 -0
- package/src/lib/core-spinner/core-spinner.component.scss +162 -0
- package/src/lib/core-spinner/core-spinner.component.ts +13 -0
- package/src/lib/core-switch/core-switch.component.html +13 -0
- package/src/lib/core-switch/core-switch.component.scss +58 -0
- package/src/lib/core-switch/core-switch.component.spec.ts +21 -0
- package/src/lib/core-switch/core-switch.component.ts +28 -0
- package/src/lib/core-table/core-column-date-picker/core-column-date-picker.component.html +21 -0
- package/src/lib/core-table/core-column-date-picker/core-column-date-picker.component.scss +3 -0
- package/src/lib/core-table/core-column-date-picker/core-column-date-picker.component.ts +55 -0
- package/src/lib/core-table/core-column-input/core-column-input.component.html +17 -0
- package/src/lib/core-table/core-column-input/core-column-input.component.scss +21 -0
- package/src/lib/core-table/core-column-input/core-column-input.component.ts +23 -0
- package/src/lib/core-table/core-column-selector/core-column-selector.component.html +47 -0
- package/src/lib/core-table/core-column-selector/core-column-selector.component.scss +113 -0
- package/src/lib/core-table/core-column-selector/core-column-selector.component.ts +94 -0
- package/src/lib/core-table/core-row-pelak/core-row-pelak.component.html +12 -0
- package/src/lib/core-table/core-row-pelak/core-row-pelak.component.scss +21 -0
- package/src/lib/core-table/core-row-pelak/core-row-pelak.component.ts +12 -0
- package/src/lib/core-table/core-table/core-table.component.html +168 -0
- package/src/lib/core-table/core-table/core-table.component.scss +65 -0
- package/src/lib/core-table/core-table/core-table.component.ts +179 -0
- package/src/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.html +10 -0
- package/src/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.scss +3 -0
- package/src/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.ts +24 -0
- package/src/lib/core-table/core-table-action-column/core-table-action-column.component.html +6 -0
- package/src/lib/core-table/core-table-action-column/core-table-action-column.component.scss +3 -0
- package/src/lib/core-table/core-table-action-column/core-table-action-column.component.ts +19 -0
- package/src/lib/core-table/core-table-card-manager/core-table-card-manager.component.html +94 -0
- package/src/lib/core-table/core-table-card-manager/core-table-card-manager.component.scss +0 -0
- package/src/lib/core-table/core-table-card-manager/core-table-card-manager.component.ts +58 -0
- package/src/lib/core-table/core-table-column-manager/core-table-column-manager.component.html +99 -0
- package/src/lib/core-table/core-table-column-manager/core-table-column-manager.component.scss +0 -0
- package/src/lib/core-table/core-table-column-manager/core-table-column-manager.component.ts +59 -0
- package/src/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.html +5 -0
- package/src/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.scss +8 -0
- package/src/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.ts +28 -0
- package/src/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.html +24 -0
- package/src/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.scss +10 -0
- package/src/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.ts +76 -0
- package/src/lib/core-table/core-table-no-content/core-table-no-content.component.html +6 -0
- package/src/lib/core-table/core-table-no-content/core-table-no-content.component.scss +7 -0
- package/src/lib/core-table/core-table-no-content/core-table-no-content.component.ts +14 -0
- package/src/lib/core-table/core-table-no-content/core-table-no-content.label.ts +14 -0
- package/src/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.html +5 -0
- package/src/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.scss +0 -0
- package/src/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.ts +60 -0
- package/src/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.html +3 -0
- package/src/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.scss +0 -0
- package/src/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.ts +24 -0
- package/src/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.html +3 -0
- package/src/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.scss +14 -0
- package/src/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.ts +14 -0
- package/src/lib/core-table/core-table-status-column/core-table-status-column.component.html +3 -0
- package/src/lib/core-table/core-table-status-column/core-table-status-column.component.scss +14 -0
- package/src/lib/core-table/core-table-status-column/core-table-status-column.component.ts +11 -0
- package/src/lib/core-textarea/core-textarea.component.html +18 -0
- package/src/lib/core-textarea/core-textarea.component.scss +62 -0
- package/src/lib/core-textarea/core-textarea.component.ts +31 -0
- package/src/lib/core-time-picker/core-time-picker.component.html +51 -0
- package/src/lib/core-time-picker/core-time-picker.component.scss +144 -0
- package/src/lib/core-time-picker/core-time-picker.component.ts +102 -0
- package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.html +50 -0
- package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.scss +424 -0
- package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.spec.ts +21 -0
- package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.ts +172 -0
- package/src/lib/falcon-lib.module.ts +157 -0
- package/src/lib/falconTypes.ts +35 -0
- package/src/lib/pipes/digit-group.pipe.ts +10 -0
- package/src/lib/pipes/form-control.pipe.ts +11 -0
- package/src/lib/pipes/persian-digits.pipe.ts +33 -0
- package/src/lib/pipes/price-format.pipe.ts +20 -0
- package/src/lib/pipes/shamsi-date.pipe.ts +24 -0
- package/src/lib/pipes/time-format.pipe.ts +21 -0
- package/src/lib/pipes/weight.pipe.ts +10 -0
- package/src/lib/wordify.ts +116 -0
- package/{public-api.d.ts → src/public-api.ts} +31 -27
- package/src/svg-icon/arrow-down-icon/arrow-down-icon.component.html +8 -0
- package/src/svg-icon/arrow-down-icon/arrow-down-icon.component.scss +0 -0
- package/src/svg-icon/arrow-down-icon/arrow-down-icon.component.ts +8 -0
- package/src/svg-icon/calendar-icon/calendar-icon.component.html +10 -0
- package/src/svg-icon/calendar-icon/calendar-icon.component.scss +0 -0
- package/src/svg-icon/calendar-icon/calendar-icon.component.ts +8 -0
- package/src/svg-icon/caret-up-icon/caret-up-icon.component.html +16 -0
- package/src/svg-icon/caret-up-icon/caret-up-icon.component.scss +0 -0
- package/src/svg-icon/caret-up-icon/caret-up-icon.component.ts +10 -0
- package/src/svg-icon/close-icon/close-icon.component.html +10 -0
- package/src/svg-icon/close-icon/close-icon.component.scss +0 -0
- package/src/svg-icon/close-icon/close-icon.component.ts +8 -0
- package/src/svg-icon/edit-square-icon/edit-square-icon.component.html +10 -0
- package/src/svg-icon/edit-square-icon/edit-square-icon.component.scss +0 -0
- package/src/svg-icon/edit-square-icon/edit-square-icon.component.ts +8 -0
- package/src/svg-icon/pelak-icon/pelak-icon.component.html +32 -0
- package/src/svg-icon/pelak-icon/pelak-icon.component.scss +0 -0
- package/src/svg-icon/pelak-icon/pelak-icon.component.ts +8 -0
- package/src/svg-icon/search-icon/search-icon.component.html +10 -0
- package/src/svg-icon/search-icon/search-icon.component.scss +0 -0
- package/src/svg-icon/search-icon/search-icon.component.spec.ts +21 -0
- package/src/svg-icon/search-icon/search-icon.component.ts +8 -0
- package/src/svg-icon/sort-down-icon/sort-down-icon.component.html +5 -0
- package/src/svg-icon/sort-down-icon/sort-down-icon.component.scss +0 -0
- package/src/svg-icon/sort-down-icon/sort-down-icon.component.ts +10 -0
- package/src/svg-icon/sort-solid-icon/sort-solid-icon.component.html +5 -0
- package/src/svg-icon/sort-solid-icon/sort-solid-icon.component.scss +0 -0
- package/src/svg-icon/sort-solid-icon/sort-solid-icon.component.ts +8 -0
- package/src/svg-icon/sort-up-icon/sort-up-icon.component.html +5 -0
- package/src/svg-icon/sort-up-icon/sort-up-icon.component.scss +0 -0
- package/src/svg-icon/sort-up-icon/sort-up-icon.component.ts +8 -0
- package/src/svg-icon/time-icon/time-icon.component.html +10 -0
- package/src/svg-icon/time-icon/time-icon.component.scss +0 -0
- package/src/svg-icon/time-icon/time-icon.component.ts +8 -0
- package/src/svg-icon/warning-icon/warning-icon.component.html +10 -0
- package/src/svg-icon/warning-icon/warning-icon.component.scss +0 -0
- package/src/svg-icon/warning-icon/warning-icon.component.ts +10 -0
- package/src/utils/constants.ts +182 -0
- package/src/utils/directives/detail-viewer-manager.directive.ts +78 -0
- package/src/utils/directives/filterTableDirective.ts +36 -0
- package/src/utils/directives/table-detail-viewer-manager.directive.ts +57 -0
- package/src/utils/interfaces.ts +0 -0
- package/src/utils/jsonparser.ts +49 -0
- package/src/utils/links.ts +67 -0
- package/src/utils/toast.ts +35 -0
- package/src/utils/types.ts +20 -0
- package/src/utils/util.ts +32 -0
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/environments/environment.d.ts +0 -4
- package/esm2022/environments/environment.mjs +0 -7
- package/esm2022/lib/core-auto-complete/core-auto-complete.component.mjs +0 -82
- package/esm2022/lib/core-btn/core-btn.component.mjs +0 -68
- package/esm2022/lib/core-card/core-card.component.mjs +0 -16
- package/esm2022/lib/core-checkbox/core-checkbox.component.mjs +0 -33
- package/esm2022/lib/core-confirm-dialog/core-confirm-dialog.component.mjs +0 -31
- package/esm2022/lib/core-date-picker/core-date-picker.component.mjs +0 -46
- package/esm2022/lib/core-input/core-input.component.mjs +0 -132
- package/esm2022/lib/core-mulite-select/core-mulite-select-row/core-mulite-select-row.component.mjs +0 -29
- package/esm2022/lib/core-mulite-select/core-mulite-select.component.mjs +0 -130
- package/esm2022/lib/core-number/core-number.component.mjs +0 -64
- package/esm2022/lib/core-page-title/core-page-title.component.mjs +0 -19
- package/esm2022/lib/core-radio-buttons/core-radio-buttons.component.mjs +0 -75
- package/esm2022/lib/core-search-box/core-search-box.component.mjs +0 -25
- package/esm2022/lib/core-select/core-select.component.mjs +0 -91
- package/esm2022/lib/core-spinner/core-spinner.component.mjs +0 -23
- package/esm2022/lib/core-switch/core-switch.component.mjs +0 -33
- package/esm2022/lib/core-table/core-column-date-picker/core-column-date-picker.component.mjs +0 -62
- package/esm2022/lib/core-table/core-column-input/core-column-input.component.mjs +0 -37
- package/esm2022/lib/core-table/core-column-selector/core-column-selector.component.mjs +0 -99
- package/esm2022/lib/core-table/core-row-pelak/core-row-pelak.component.mjs +0 -21
- package/esm2022/lib/core-table/core-table/core-table.component.mjs +0 -182
- package/esm2022/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.mjs +0 -34
- package/esm2022/lib/core-table/core-table-action-column/core-table-action-column.component.mjs +0 -27
- package/esm2022/lib/core-table/core-table-card-manager/core-table-card-manager.component.mjs +0 -83
- package/esm2022/lib/core-table/core-table-column-manager/core-table-column-manager.component.mjs +0 -85
- package/esm2022/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.mjs +0 -29
- package/esm2022/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.mjs +0 -82
- package/esm2022/lib/core-table/core-table-no-content/core-table-no-content.component.mjs +0 -23
- package/esm2022/lib/core-table/core-table-no-content/core-table-no-content.label.mjs +0 -9
- package/esm2022/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.mjs +0 -68
- package/esm2022/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.mjs +0 -34
- package/esm2022/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.mjs +0 -20
- package/esm2022/lib/core-table/core-table-status-column/core-table-status-column.component.mjs +0 -18
- package/esm2022/lib/core-textarea/core-textarea.component.mjs +0 -47
- package/esm2022/lib/core-time-picker/core-time-picker.component.mjs +0 -118
- package/esm2022/lib/core-time-picker/time-picker-modal/time-picker-modal.component.mjs +0 -147
- package/esm2022/lib/falcon-lib.module.mjs +0 -246
- package/esm2022/lib/falconTypes.mjs +0 -9
- package/esm2022/lib/pipes/digit-group.pipe.mjs +0 -16
- package/esm2022/lib/pipes/form-control.pipe.mjs +0 -16
- package/esm2022/lib/pipes/persian-digits.pipe.mjs +0 -40
- package/esm2022/lib/pipes/price-format.pipe.mjs +0 -23
- package/esm2022/lib/pipes/shamsi-date.pipe.mjs +0 -24
- package/esm2022/lib/pipes/time-format.pipe.mjs +0 -28
- package/esm2022/lib/pipes/weight.pipe.mjs +0 -16
- package/esm2022/lib/wordify.mjs +0 -109
- package/esm2022/nira-falcon.mjs +0 -5
- package/esm2022/public-api.mjs +0 -31
- package/esm2022/svg-icon/caret-up-icon/caret-up-icon.component.mjs +0 -11
- package/esm2022/svg-icon/close-icon/close-icon.component.mjs +0 -11
- package/esm2022/svg-icon/edit-square-icon/edit-square-icon.component.mjs +0 -11
- package/esm2022/svg-icon/pelak-icon/pelak-icon.component.mjs +0 -11
- package/esm2022/svg-icon/search-icon/search-icon.component.mjs +0 -11
- package/esm2022/svg-icon/sort-down-icon/sort-down-icon.component.mjs +0 -11
- package/esm2022/svg-icon/sort-solid-icon/sort-solid-icon.component.mjs +0 -11
- package/esm2022/svg-icon/sort-up-icon/sort-up-icon.component.mjs +0 -11
- package/esm2022/svg-icon/time-icon/time-icon.component.mjs +0 -11
- package/esm2022/svg-icon/warning-icon/warning-icon.component.mjs +0 -11
- package/esm2022/utils/constants.mjs +0 -184
- package/esm2022/utils/directives/detail-viewer-manager.directive.mjs +0 -71
- package/esm2022/utils/directives/table-detail-viewer-manager.directive.mjs +0 -49
- package/esm2022/utils/util.mjs +0 -26
- package/fesm2022/nira-falcon.mjs +0 -2831
- package/fesm2022/nira-falcon.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/core-auto-complete/core-auto-complete.component.d.ts +0 -30
- package/lib/core-btn/core-btn.component.d.ts +0 -22
- package/lib/core-card/core-card.component.d.ts +0 -6
- package/lib/core-checkbox/core-checkbox.component.d.ts +0 -13
- package/lib/core-confirm-dialog/core-confirm-dialog.component.d.ts +0 -14
- package/lib/core-date-picker/core-date-picker.component.d.ts +0 -20
- package/lib/core-input/core-input.component.d.ts +0 -28
- package/lib/core-mulite-select/core-mulite-select-row/core-mulite-select-row.component.d.ts +0 -11
- package/lib/core-mulite-select/core-mulite-select.component.d.ts +0 -42
- package/lib/core-number/core-number.component.d.ts +0 -12
- package/lib/core-page-title/core-page-title.component.d.ts +0 -7
- package/lib/core-radio-buttons/core-radio-buttons.component.d.ts +0 -29
- package/lib/core-search-box/core-search-box.component.d.ts +0 -10
- package/lib/core-select/core-select.component.d.ts +0 -36
- package/lib/core-spinner/core-spinner.component.d.ts +0 -9
- package/lib/core-switch/core-switch.component.d.ts +0 -17
- package/lib/core-table/core-column-date-picker/core-column-date-picker.component.d.ts +0 -21
- package/lib/core-table/core-column-input/core-column-input.component.d.ts +0 -15
- package/lib/core-table/core-column-selector/core-column-selector.component.d.ts +0 -35
- package/lib/core-table/core-row-pelak/core-row-pelak.component.d.ts +0 -8
- package/lib/core-table/core-table/core-table.component.d.ts +0 -42
- package/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.d.ts +0 -11
- package/lib/core-table/core-table-action-column/core-table-action-column.component.d.ts +0 -11
- package/lib/core-table/core-table-card-manager/core-table-card-manager.component.d.ts +0 -24
- package/lib/core-table/core-table-column-manager/core-table-column-manager.component.d.ts +0 -24
- package/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.d.ts +0 -11
- package/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.d.ts +0 -22
- package/lib/core-table/core-table-no-content/core-table-no-content.component.d.ts +0 -9
- package/lib/core-table/core-table-no-content/core-table-no-content.label.d.ts +0 -5
- package/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.d.ts +0 -14
- package/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.d.ts +0 -13
- package/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.d.ts +0 -8
- package/lib/core-table/core-table-status-column/core-table-status-column.component.d.ts +0 -7
- package/lib/core-textarea/core-textarea.component.d.ts +0 -13
- package/lib/core-time-picker/core-time-picker.component.d.ts +0 -26
- package/lib/core-time-picker/time-picker-modal/time-picker-modal.component.d.ts +0 -35
- package/lib/falcon-lib.module.d.ts +0 -64
- package/lib/falconTypes.d.ts +0 -23
- package/lib/pipes/digit-group.pipe.d.ts +0 -7
- package/lib/pipes/form-control.pipe.d.ts +0 -8
- package/lib/pipes/persian-digits.pipe.d.ts +0 -7
- package/lib/pipes/price-format.pipe.d.ts +0 -7
- package/lib/pipes/shamsi-date.pipe.d.ts +0 -9
- package/lib/pipes/time-format.pipe.d.ts +0 -7
- package/lib/pipes/weight.pipe.d.ts +0 -7
- package/lib/wordify.d.ts +0 -2
- package/svg-icon/caret-up-icon/caret-up-icon.component.d.ts +0 -5
- package/svg-icon/close-icon/close-icon.component.d.ts +0 -5
- package/svg-icon/edit-square-icon/edit-square-icon.component.d.ts +0 -5
- package/svg-icon/pelak-icon/pelak-icon.component.d.ts +0 -5
- package/svg-icon/search-icon/search-icon.component.d.ts +0 -5
- package/svg-icon/sort-down-icon/sort-down-icon.component.d.ts +0 -5
- package/svg-icon/sort-solid-icon/sort-solid-icon.component.d.ts +0 -5
- package/svg-icon/sort-up-icon/sort-up-icon.component.d.ts +0 -5
- package/svg-icon/time-icon/time-icon.component.d.ts +0 -5
- package/svg-icon/warning-icon/warning-icon.component.d.ts +0 -5
- package/utils/constants.d.ts +0 -70
- package/utils/directives/detail-viewer-manager.directive.d.ts +0 -18
- package/utils/directives/table-detail-viewer-manager.directive.d.ts +0 -16
- package/utils/util.d.ts +0 -11
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
display: inline;
|
|
3
|
+
position: relative;
|
|
4
|
+
padding-left: 35px;
|
|
5
|
+
margin-bottom: 12px;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
font-size: 18px;
|
|
8
|
+
padding-inline: 8px;
|
|
9
|
+
-webkit-user-select: none;
|
|
10
|
+
-moz-user-select: none;
|
|
11
|
+
-ms-user-select: none;
|
|
12
|
+
user-select: none;
|
|
13
|
+
}
|
|
14
|
+
.label {
|
|
15
|
+
padding-right: 8px;
|
|
16
|
+
}
|
|
17
|
+
.container input {
|
|
18
|
+
position: absolute;
|
|
19
|
+
opacity: 0;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
height: 0;
|
|
22
|
+
width: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.checkmark {
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.container:hover input ~ .checkmark {
|
|
29
|
+
background-color: var(--default-checkbox-input-hover-background-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.container input:checked ~ .checkmark {
|
|
33
|
+
background-color: var(--default-checkbox-input-checked-background-color);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.checkmark:after {
|
|
37
|
+
content: "";
|
|
38
|
+
position: absolute;
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.container input:checked ~ .checkmark:after {
|
|
43
|
+
display: block;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.container .checkmark:after {
|
|
47
|
+
left: 10px;
|
|
48
|
+
top: 4px;
|
|
49
|
+
width: 4px;
|
|
50
|
+
height: 10px;
|
|
51
|
+
border: solid white;
|
|
52
|
+
border-width: 0 3px 3px 0;
|
|
53
|
+
-webkit-transform: rotate(45deg);
|
|
54
|
+
-ms-transform: rotate(45deg);
|
|
55
|
+
transform: rotate(45deg);
|
|
56
|
+
}
|
|
57
|
+
.container {
|
|
58
|
+
font-size: 13px;
|
|
59
|
+
font-weight: 500;
|
|
60
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'core-checkbox',
|
|
6
|
+
templateUrl: './core-checkbox.component.html',
|
|
7
|
+
styleUrls: ['./core-checkbox.component.scss'],
|
|
8
|
+
})
|
|
9
|
+
export class CoreCheckboxComponent {
|
|
10
|
+
@Input() label = '';
|
|
11
|
+
@Input() name = '1';
|
|
12
|
+
@Input() checked = false;
|
|
13
|
+
@Output() onChange: EventEmitter<any> = new EventEmitter();
|
|
14
|
+
@Input() inputFormControl: FormControl = new FormControl('', []);
|
|
15
|
+
|
|
16
|
+
change(event: any) {
|
|
17
|
+
this.onChange.emit(event);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<core-card class="block min-w-64 m-5">
|
|
2
|
+
<div class="header flex mb-6 justify-between">
|
|
3
|
+
<b class="m-3 self-center">{{ confirmDialog.title }}</b>
|
|
4
|
+
<close-icon
|
|
5
|
+
(click)="close()"
|
|
6
|
+
class="header-icon h-10 m-3 rounded-full cursor-pointer p-2 hover:shadow-md"
|
|
7
|
+
></close-icon>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<p class="max-w-lg px-6">{{ confirmDialog.text }}</p>
|
|
11
|
+
<div class="grid grid-cols-4 gap-x-2 p-3" dir="ltr">
|
|
12
|
+
<button
|
|
13
|
+
class="col-span-1 button square default small"
|
|
14
|
+
(click)="close()"
|
|
15
|
+
type="button"
|
|
16
|
+
>
|
|
17
|
+
{{ confirmDialog.cancelBtn }}
|
|
18
|
+
</button>
|
|
19
|
+
|
|
20
|
+
<button
|
|
21
|
+
class="col-span-1 button square danger small"
|
|
22
|
+
(click)="confirm()"
|
|
23
|
+
type="button"
|
|
24
|
+
>
|
|
25
|
+
{{ confirmDialog.confirmBtn }}
|
|
26
|
+
</button>
|
|
27
|
+
</div>
|
|
28
|
+
</core-card>
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
.header {
|
|
2
|
+
background-color: var(--default-confirm-dialog-header-background-color);
|
|
3
|
+
}
|
|
4
|
+
.header-icon {
|
|
5
|
+
fill: var(--default-confirm-dialog-header-close-icon-color);
|
|
6
|
+
:hover {
|
|
7
|
+
fill: var(--default-confirm-dialog-header-close-icon-hover-color);
|
|
8
|
+
background-color: var(
|
|
9
|
+
--default-confirm-dialog-header-close-icon-hover-background-color
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.button {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 30px;
|
|
17
|
+
outline: none;
|
|
18
|
+
border: none;
|
|
19
|
+
text-align: center;
|
|
20
|
+
color: var(--default);
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
box-shadow: 0 0 0 1px rgba(43, 45, 80, 0.1),
|
|
23
|
+
0 2px 5px 0 rgba(43, 45, 80, 0.08), 0 1px 1.5px 0 rgba(0, 0, 0, 0.07),
|
|
24
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.08);
|
|
25
|
+
line-height: 1.5;
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
display: inline-block;
|
|
29
|
+
margin-inline-start: auto;
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
vertical-align: middle;
|
|
32
|
+
user-select: none;
|
|
33
|
+
transition: 0.3s;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
&:hover {
|
|
36
|
+
box-shadow: 0 0 0 1px rgba(43, 45, 80, 0.1),
|
|
37
|
+
0 2px 5px 0 rgba(43, 45, 80, 0.1), 0 3px 9px 0 rgba(43, 45, 80, 0.08),
|
|
38
|
+
0 1px 1.5px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.08);
|
|
39
|
+
}
|
|
40
|
+
&.small {
|
|
41
|
+
height: 30px;
|
|
42
|
+
}
|
|
43
|
+
&.medium {
|
|
44
|
+
height: 38px;
|
|
45
|
+
}
|
|
46
|
+
&.round {
|
|
47
|
+
border: 2px solid #7b1fa2;
|
|
48
|
+
height: 44px;
|
|
49
|
+
border-radius: 30px;
|
|
50
|
+
background-color: #7b1fa2;
|
|
51
|
+
&:hover {
|
|
52
|
+
color: #fff;
|
|
53
|
+
background-color: #7b1fa2;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:active {
|
|
57
|
+
color: #fff;
|
|
58
|
+
background-color: #7b1fa2;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:disabled {
|
|
62
|
+
cursor: not-allowed;
|
|
63
|
+
opacity: 0.4;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.success {
|
|
68
|
+
color: var(--success-button-color);
|
|
69
|
+
&:active {
|
|
70
|
+
background-color: var(--success-button-background-color);
|
|
71
|
+
box-shadow: none;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.warning {
|
|
76
|
+
color: var(--warning-button-color);
|
|
77
|
+
&:active {
|
|
78
|
+
background-color: var(--warning-button-background-color);
|
|
79
|
+
box-shadow: none;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.default {
|
|
84
|
+
color: var(--default-button-color);
|
|
85
|
+
&:active {
|
|
86
|
+
background-color: var(--default-button-background-color);
|
|
87
|
+
box-shadow: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.primary {
|
|
92
|
+
color: var(--primary-button-color);
|
|
93
|
+
&:active {
|
|
94
|
+
background-color: var(--primary-button-background-color);
|
|
95
|
+
box-shadow: none;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.danger {
|
|
100
|
+
color: var(--danger-button-color);
|
|
101
|
+
&:active {
|
|
102
|
+
background-color: var(--danger-button-background-color);
|
|
103
|
+
box-shadow: none;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.round {
|
|
108
|
+
border-radius: 30px;
|
|
109
|
+
background: transparent;
|
|
110
|
+
|
|
111
|
+
&:active {
|
|
112
|
+
color: #fff;
|
|
113
|
+
background-color: transparent;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:disabled {
|
|
117
|
+
cursor: not-allowed;
|
|
118
|
+
opacity: 0.4;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&.square {
|
|
123
|
+
padding-inline: 16px;
|
|
124
|
+
border-radius: 0.25rem;
|
|
125
|
+
|
|
126
|
+
&:disabled {
|
|
127
|
+
cursor: not-allowed;
|
|
128
|
+
opacity: 0.4;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { IModal, NiraModalConfig } from 'nira-modal';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { ConfirmDialog } from '../falconTypes';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'app-core-confirm-dialog',
|
|
8
|
+
templateUrl: './core-confirm-dialog.component.html',
|
|
9
|
+
styleUrls: ['./core-confirm-dialog.component.scss'],
|
|
10
|
+
})
|
|
11
|
+
export class CoreConfirmDialogComponent implements IModal {
|
|
12
|
+
@Input() closeSubject!: Subject<any>;
|
|
13
|
+
@Input() config!: NiraModalConfig;
|
|
14
|
+
confirmDialog!: ConfirmDialog;
|
|
15
|
+
async ngOnInit() {
|
|
16
|
+
this.confirmDialog = {
|
|
17
|
+
cancelBtn: this.config.data.cancelBtn,
|
|
18
|
+
confirmBtn: this.config.data.confirmBtn,
|
|
19
|
+
text: this.config.data.text,
|
|
20
|
+
title: this.config.data.title,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
close() {
|
|
24
|
+
this.closeSubject.next('false');
|
|
25
|
+
}
|
|
26
|
+
confirm() {
|
|
27
|
+
this.closeSubject.next('true');
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<core-input
|
|
2
|
+
[placeholder]="label"
|
|
3
|
+
[inputFormControl]="_inputFormControl"
|
|
4
|
+
(click)="isOpenCalendar = true"
|
|
5
|
+
[size]="size"
|
|
6
|
+
>
|
|
7
|
+
</core-input>
|
|
8
|
+
<lib-nira-date-picker
|
|
9
|
+
[(isOpenCalendar)]="isOpenCalendar"
|
|
10
|
+
[defaultDate]="date ? date : defaultDate"
|
|
11
|
+
(datePickerResult)="onDatePickerResult($event)"
|
|
12
|
+
[selectToday]="canSelectToday"
|
|
13
|
+
(todayDate)="onTodayDate($event)"
|
|
14
|
+
>
|
|
15
|
+
</lib-nira-date-picker>
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<core-input
|
|
2
|
+
[placeholder]="label"
|
|
3
|
+
[inputFormControl]="_inputFormControl"
|
|
4
|
+
(click)="isOpenCalendar = true"
|
|
5
|
+
>
|
|
6
|
+
</core-input>
|
|
7
|
+
<lib-nira-date-picker
|
|
8
|
+
[(isOpenCalendar)]="isOpenCalendar"
|
|
9
|
+
[defaultDate]="date ? date : defaultDate"
|
|
10
|
+
(datePickerResult)="onDatePickerResult($event)"
|
|
11
|
+
[selectToday]="canSelectToday"
|
|
12
|
+
(todayDate)="onTodayDate($event)"
|
|
13
|
+
>
|
|
14
|
+
</lib-nira-date-picker>
|
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectorRef,
|
|
3
|
+
Component,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
Input,
|
|
6
|
+
OnInit,
|
|
7
|
+
Output,
|
|
8
|
+
} from '@angular/core';
|
|
9
|
+
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
|
10
|
+
import { environment } from '../../environments/environment';
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'core-date-picker',
|
|
14
|
+
templateUrl: './core-date-picker' + environment.tempName,
|
|
15
|
+
styleUrls: ['./core-date-picker' + environment.styleName],
|
|
16
|
+
})
|
|
17
|
+
export class CoreDatePickerComponent implements OnInit {
|
|
18
|
+
_inputFormControl = new FormControl('', []);
|
|
19
|
+
|
|
20
|
+
@Input() canSelectToday: boolean = false;
|
|
21
|
+
@Input() defaultDate: string = '';
|
|
22
|
+
@Input() label: string = '';
|
|
23
|
+
@Input() set inputFormControl(value: FormControl) {
|
|
24
|
+
this._inputFormControl = value;
|
|
25
|
+
}
|
|
26
|
+
@Input() size = '';
|
|
27
|
+
isOpenCalendar: boolean = false;
|
|
28
|
+
date: string = '';
|
|
29
|
+
constructor(private changeDetectorRef: ChangeDetectorRef) {}
|
|
30
|
+
ngOnInit(): void {}
|
|
31
|
+
|
|
32
|
+
ngAfterViewInit(): void {
|
|
33
|
+
this.changeDetectorRef.detectChanges();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
onDatePickerResult(result: string) {
|
|
37
|
+
this._inputFormControl.setValue(result);
|
|
38
|
+
this.date = result;
|
|
39
|
+
}
|
|
40
|
+
onTodayDate(todayDate: string) {
|
|
41
|
+
this.date = todayDate;
|
|
42
|
+
this._inputFormControl.setValue(todayDate);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<div>
|
|
2
|
+
<div
|
|
3
|
+
class="container-input"
|
|
4
|
+
[ngClass]="{
|
|
5
|
+
error:
|
|
6
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
7
|
+
inputFormControl.errors
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<input
|
|
11
|
+
[type]="'text'"
|
|
12
|
+
class="a-input-style"
|
|
13
|
+
[formControl]="inputFormControl"
|
|
14
|
+
(blur)="onBlur()"
|
|
15
|
+
(keyup)="change($event)"
|
|
16
|
+
(paste)="onPaste($event)"
|
|
17
|
+
[ngClass]="{
|
|
18
|
+
xsmall: size == 'xsmall',
|
|
19
|
+
'have-value': inputFormControl.value.toString().length > 0,
|
|
20
|
+
'highlight-background':
|
|
21
|
+
canHighlightBackground &&
|
|
22
|
+
inputFormControl.value.toString().length === 0 &&
|
|
23
|
+
!(
|
|
24
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
25
|
+
inputFormControl.errors
|
|
26
|
+
),
|
|
27
|
+
'disable-input': isDisable
|
|
28
|
+
}"
|
|
29
|
+
(keypress)="onKeyPress()"
|
|
30
|
+
/>
|
|
31
|
+
<label
|
|
32
|
+
*ngIf="placeholder.length > 0"
|
|
33
|
+
[ngClass]="{ xsmall: size == 'xsmall' }"
|
|
34
|
+
>{{ placeholder }}
|
|
35
|
+
</label>
|
|
36
|
+
<div class="label-error overflow-hidden">
|
|
37
|
+
<span
|
|
38
|
+
class="label-number"
|
|
39
|
+
*ngIf="
|
|
40
|
+
canShowWordifyFa &&
|
|
41
|
+
inputFormControl.value.toString().length > 0 &&
|
|
42
|
+
inputType === 'number'
|
|
43
|
+
"
|
|
44
|
+
><app-core-number
|
|
45
|
+
[canShowWordInToolTip]="false"
|
|
46
|
+
[type]="'word'"
|
|
47
|
+
[number]="inputFormControl.value"
|
|
48
|
+
></app-core-number
|
|
49
|
+
></span>
|
|
50
|
+
|
|
51
|
+
<span
|
|
52
|
+
*ngIf="
|
|
53
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
54
|
+
inputFormControl.errors?.['required']
|
|
55
|
+
"
|
|
56
|
+
>این فیلد خالی است</span
|
|
57
|
+
>
|
|
58
|
+
<span
|
|
59
|
+
*ngIf="
|
|
60
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
61
|
+
inputFormControl.errors?.['prePayment']
|
|
62
|
+
"
|
|
63
|
+
>مبلغ صحیح نیست</span
|
|
64
|
+
>
|
|
65
|
+
<span
|
|
66
|
+
*ngIf="
|
|
67
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
68
|
+
inputFormControl.errors?.['minlength']
|
|
69
|
+
"
|
|
70
|
+
>
|
|
71
|
+
حداقل تعداد کارکتر
|
|
72
|
+
{{inputFormControl.errors?.['minlength'].requiredLength|persianDigits}}
|
|
73
|
+
عدد باشد
|
|
74
|
+
</span>
|
|
75
|
+
<span
|
|
76
|
+
*ngIf="
|
|
77
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
78
|
+
inputFormControl.errors?.['maxlength']
|
|
79
|
+
"
|
|
80
|
+
>
|
|
81
|
+
حداکثر تعداد کارکتر
|
|
82
|
+
{{inputFormControl.errors?.['maxlength'].requiredLength |persianDigits}}
|
|
83
|
+
عدد باشد
|
|
84
|
+
</span>
|
|
85
|
+
<span
|
|
86
|
+
*ngIf="
|
|
87
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
88
|
+
inputFormControl.errors?.['pattern']?.requiredPattern=='^09[0-9]{9}$'
|
|
89
|
+
"
|
|
90
|
+
>
|
|
91
|
+
شماره همراه اشتباه هست
|
|
92
|
+
</span>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
input:focus {
|
|
6
|
+
border: 2px solid blue;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
input {
|
|
10
|
+
border: 1px solid #ced4da;
|
|
11
|
+
border-radius: 0.25rem;
|
|
12
|
+
&.xsmall {
|
|
13
|
+
height: 30px !important;
|
|
14
|
+
border-radius: 8px !important;
|
|
15
|
+
padding: 15px !important;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.highlight-background {
|
|
20
|
+
background-color: #dcf6ff !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.icon-style {
|
|
24
|
+
position: absolute;
|
|
25
|
+
right: 16px;
|
|
26
|
+
top: 16px;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.icon-style-email {
|
|
32
|
+
position: absolute;
|
|
33
|
+
right: 16px;
|
|
34
|
+
top: 16px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.a-input-style {
|
|
38
|
+
height: 42px;
|
|
39
|
+
width: 100%;
|
|
40
|
+
padding: 16px;
|
|
41
|
+
outline: none;
|
|
42
|
+
caret-color: rgba(2, 2, 2, 0.7);
|
|
43
|
+
background-color: rgb(255, 255, 255);
|
|
44
|
+
color: rgba(0, 0, 0, 0.7);
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.a-input-style:focus {
|
|
49
|
+
// background-color: rgba(242, 244, 247, 0.05);
|
|
50
|
+
border-radius: 3px;
|
|
51
|
+
border: 1px solid rgba(19, 92, 175, 0.397);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.a-input-style::placeholder {
|
|
55
|
+
height: 15px;
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-weight: normal;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
line-height: 15px;
|
|
60
|
+
letter-spacing: -0.03em;
|
|
61
|
+
color: rgba(194, 194, 194, 0.7);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
input:-webkit-autofill,
|
|
65
|
+
input:-webkit-autofill:hover,
|
|
66
|
+
input:-webkit-autofill:focus {
|
|
67
|
+
-webkit-text-fill-color: #ffffff00;
|
|
68
|
+
&.have-value {
|
|
69
|
+
-webkit-text-fill-color: #181818 !important;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Chrome, Safari, Edge, Opera */
|
|
74
|
+
input::-webkit-outer-spin-button,
|
|
75
|
+
input::-webkit-inner-spin-button {
|
|
76
|
+
-webkit-appearance: none;
|
|
77
|
+
margin: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Firefox */
|
|
81
|
+
input[type="number"] {
|
|
82
|
+
-moz-appearance: textfield;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.label-error {
|
|
86
|
+
color: red;
|
|
87
|
+
font-size: 13px;
|
|
88
|
+
margin-block-start: 4px;
|
|
89
|
+
min-height: 21px;
|
|
90
|
+
width: 100%;
|
|
91
|
+
display: inline-block !important;
|
|
92
|
+
text-align: start;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.label-number {
|
|
96
|
+
color: #6a6a6a;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.error input {
|
|
100
|
+
border: 1px solid #fe5f5f;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.container-input {
|
|
104
|
+
background: transparent;
|
|
105
|
+
position: relative;
|
|
106
|
+
|
|
107
|
+
.disable-input {
|
|
108
|
+
background-color: #f7f7f7;
|
|
109
|
+
border: 1px dashed #ced4da;
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
}
|
|
112
|
+
label {
|
|
113
|
+
position: absolute;
|
|
114
|
+
right: 20px;
|
|
115
|
+
top: 12px;
|
|
116
|
+
color: gray;
|
|
117
|
+
font-size: 12px;
|
|
118
|
+
padding: 0px 8px;
|
|
119
|
+
border-radius: 15px;
|
|
120
|
+
pointer-events: none;
|
|
121
|
+
transition: 0.2s;
|
|
122
|
+
&.xsmall {
|
|
123
|
+
top: 8px !important;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
input {
|
|
128
|
+
&:focus + label,
|
|
129
|
+
&.have-value + label {
|
|
130
|
+
top: -10px;
|
|
131
|
+
font-size: 10px;
|
|
132
|
+
z-index: 3;
|
|
133
|
+
&.xsmall {
|
|
134
|
+
top: -8px !important;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&:focus + label::after,
|
|
139
|
+
&.have-value + label::after {
|
|
140
|
+
content: "";
|
|
141
|
+
display: block;
|
|
142
|
+
background: rgb(255, 255, 255);
|
|
143
|
+
position: absolute;
|
|
144
|
+
width: 100%;
|
|
145
|
+
height: 1px;
|
|
146
|
+
top: 10px;
|
|
147
|
+
right: 0;
|
|
148
|
+
transition: 0.3s;
|
|
149
|
+
z-index: -1;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<div>
|
|
2
|
+
<div
|
|
3
|
+
class="container-input"
|
|
4
|
+
[ngClass]="{
|
|
5
|
+
error:
|
|
6
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
7
|
+
inputFormControl.errors
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<input
|
|
11
|
+
[type]="inputType"
|
|
12
|
+
class="a-input-style"
|
|
13
|
+
[formControl]="inputFormControl"
|
|
14
|
+
(blur)="onBlur()"
|
|
15
|
+
(keyup)="change($event)"
|
|
16
|
+
(paste)="onPaste($event)"
|
|
17
|
+
[ngClass]="{
|
|
18
|
+
'have-value': inputFormControl.value.toString().length > 0,
|
|
19
|
+
'highlight-background':
|
|
20
|
+
canHighlightBackground &&
|
|
21
|
+
inputFormControl.value.toString().length === 0 &&
|
|
22
|
+
!(
|
|
23
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
24
|
+
inputFormControl.errors
|
|
25
|
+
),
|
|
26
|
+
'disable-input': isDisable
|
|
27
|
+
}"
|
|
28
|
+
(keypress)="onKeyPress()"
|
|
29
|
+
/>
|
|
30
|
+
<label *ngIf="placeholder.length > 0">{{ placeholder }} </label>
|
|
31
|
+
<div class="label-error overflow-hidden">
|
|
32
|
+
<span
|
|
33
|
+
class="label-number"
|
|
34
|
+
*ngIf="
|
|
35
|
+
canShowWordifyFa &&
|
|
36
|
+
inputFormControl.value.toString().length > 0 &&
|
|
37
|
+
inputType === 'number'
|
|
38
|
+
"
|
|
39
|
+
><app-core-number
|
|
40
|
+
[canShowWordInToolTip]="false"
|
|
41
|
+
[type]="'word'"
|
|
42
|
+
[number]="inputFormControl.value"
|
|
43
|
+
></app-core-number
|
|
44
|
+
></span>
|
|
45
|
+
|
|
46
|
+
<span
|
|
47
|
+
*ngIf="
|
|
48
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
49
|
+
inputFormControl.errors?.['required']
|
|
50
|
+
"
|
|
51
|
+
>این فیلد خالی است</span
|
|
52
|
+
>
|
|
53
|
+
<span
|
|
54
|
+
*ngIf="
|
|
55
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
56
|
+
inputFormControl.errors?.['prePayment']
|
|
57
|
+
"
|
|
58
|
+
>مبلغ صحیح نیست</span
|
|
59
|
+
>
|
|
60
|
+
<span
|
|
61
|
+
*ngIf="
|
|
62
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
63
|
+
inputFormControl.errors?.['minlength']
|
|
64
|
+
"
|
|
65
|
+
>
|
|
66
|
+
حداقل تعداد کارکتر
|
|
67
|
+
{{inputFormControl.errors?.['minlength'].requiredLength|persianDigits}}
|
|
68
|
+
عدد باشد
|
|
69
|
+
</span>
|
|
70
|
+
<span
|
|
71
|
+
*ngIf="
|
|
72
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
73
|
+
inputFormControl.errors?.['maxlength']
|
|
74
|
+
"
|
|
75
|
+
>
|
|
76
|
+
حداکثر تعداد کارکتر
|
|
77
|
+
{{inputFormControl.errors?.['maxlength'].requiredLength |persianDigits}}
|
|
78
|
+
عدد باشد
|
|
79
|
+
</span>
|
|
80
|
+
<span
|
|
81
|
+
*ngIf="
|
|
82
|
+
(inputFormControl.touched || inputFormControl.dirty) &&
|
|
83
|
+
inputFormControl.errors?.['pattern']?.requiredPattern=='^09[0-9]{9}$'
|
|
84
|
+
"
|
|
85
|
+
>
|
|
86
|
+
شماره همراه اشتباه هست
|
|
87
|
+
</span>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|