nira-falcon 0.1.25 → 0.1.27
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/environments/environment.d.ts +4 -0
- package/esm2022/environments/environment.mjs +7 -0
- package/esm2022/lib/core-auto-complete/core-auto-complete.component.mjs +82 -0
- package/esm2022/lib/core-btn/core-btn.component.mjs +71 -0
- package/esm2022/lib/core-card/core-card.component.mjs +16 -0
- package/esm2022/lib/core-checkbox/core-checkbox.component.mjs +33 -0
- package/esm2022/lib/core-confirm-dialog/core-confirm-dialog.component.mjs +31 -0
- package/esm2022/lib/core-date-picker/core-date-picker.component.mjs +50 -0
- package/esm2022/lib/core-input/core-input.component.mjs +136 -0
- package/esm2022/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.mjs +28 -0
- package/esm2022/lib/core-multi-select/core-multi-select.component.mjs +145 -0
- package/esm2022/lib/core-number/core-number.component.mjs +64 -0
- package/esm2022/lib/core-page-title/core-page-title.component.mjs +19 -0
- package/esm2022/lib/core-radio-buttons/core-radio-buttons.component.mjs +75 -0
- package/esm2022/lib/core-search-box/core-search-box.component.mjs +25 -0
- package/esm2022/lib/core-select/core-select.component.mjs +96 -0
- package/esm2022/lib/core-spinner/core-spinner.component.mjs +23 -0
- package/esm2022/lib/core-switch/core-switch.component.mjs +33 -0
- package/esm2022/lib/core-table/core-column-date-picker/core-column-date-picker.component.mjs +62 -0
- package/esm2022/lib/core-table/core-column-input/core-column-input.component.mjs +43 -0
- package/esm2022/lib/core-table/core-column-selector/core-column-selector.component.mjs +100 -0
- package/esm2022/lib/core-table/core-row-pelak/core-row-pelak.component.mjs +21 -0
- package/esm2022/lib/core-table/core-table/core-table.component.mjs +182 -0
- package/esm2022/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.mjs +34 -0
- package/esm2022/lib/core-table/core-table-action-column/core-table-action-column.component.mjs +27 -0
- package/esm2022/lib/core-table/core-table-card-manager/core-table-card-manager.component.mjs +84 -0
- package/esm2022/lib/core-table/core-table-color-column/core-table-color-column.component.mjs +23 -0
- package/esm2022/lib/core-table/core-table-column-manager/core-table-column-manager.component.mjs +86 -0
- package/esm2022/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.mjs +29 -0
- package/esm2022/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.mjs +82 -0
- package/esm2022/lib/core-table/core-table-no-content/core-table-no-content.component.mjs +23 -0
- package/esm2022/lib/core-table/core-table-no-content/core-table-no-content.label.mjs +9 -0
- package/esm2022/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.mjs +68 -0
- package/esm2022/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.mjs +34 -0
- package/esm2022/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.mjs +20 -0
- package/esm2022/lib/core-table/core-table-status-column/core-table-status-column.component.mjs +18 -0
- package/esm2022/lib/core-textarea/core-textarea.component.mjs +47 -0
- package/esm2022/lib/core-time-picker/core-time-picker.component.mjs +118 -0
- package/esm2022/lib/core-time-picker/time-picker-modal/time-picker-modal.component.mjs +147 -0
- package/esm2022/lib/falcon-lib.module.mjs +255 -0
- package/esm2022/lib/falconTypes.mjs +9 -0
- package/esm2022/lib/pipes/digit-group.pipe.mjs +16 -0
- package/esm2022/lib/pipes/form-control.pipe.mjs +16 -0
- package/esm2022/lib/pipes/persian-digits.pipe.mjs +40 -0
- package/esm2022/lib/pipes/price-format.pipe.mjs +23 -0
- package/esm2022/lib/pipes/shamsi-date.pipe.mjs +24 -0
- package/esm2022/lib/pipes/time-format.pipe.mjs +28 -0
- package/esm2022/lib/pipes/weight.pipe.mjs +16 -0
- package/esm2022/lib/wordify.mjs +109 -0
- package/esm2022/nira-falcon.mjs +5 -0
- package/esm2022/public-api.mjs +31 -0
- package/esm2022/svg-icon/arrow-down-icon/arrow-down-icon.component.mjs +11 -0
- package/esm2022/svg-icon/calendar-icon/calendar-icon.component.mjs +11 -0
- package/esm2022/svg-icon/caret-up-icon/caret-up-icon.component.mjs +11 -0
- package/esm2022/svg-icon/close-icon/close-icon.component.mjs +11 -0
- package/esm2022/svg-icon/edit-square-icon/edit-square-icon.component.mjs +11 -0
- package/esm2022/svg-icon/pelak-icon/pelak-icon.component.mjs +11 -0
- package/esm2022/svg-icon/search-icon/search-icon.component.mjs +11 -0
- package/esm2022/svg-icon/sort-down-icon/sort-down-icon.component.mjs +11 -0
- package/esm2022/svg-icon/sort-solid-icon/sort-solid-icon.component.mjs +11 -0
- package/esm2022/svg-icon/sort-up-icon/sort-up-icon.component.mjs +11 -0
- package/esm2022/svg-icon/time-icon/time-icon.component.mjs +11 -0
- package/esm2022/svg-icon/warning-icon/warning-icon.component.mjs +11 -0
- package/esm2022/utils/constants.mjs +185 -0
- package/esm2022/utils/directives/detail-viewer-manager.directive.mjs +71 -0
- package/esm2022/utils/directives/table-detail-viewer-manager.directive.mjs +49 -0
- package/esm2022/utils/util.mjs +26 -0
- package/fesm2022/nira-falcon.mjs +2905 -0
- package/fesm2022/nira-falcon.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/core-auto-complete/core-auto-complete.component.d.ts +30 -0
- package/lib/core-btn/core-btn.component.d.ts +23 -0
- package/lib/core-card/core-card.component.d.ts +6 -0
- package/lib/core-checkbox/core-checkbox.component.d.ts +13 -0
- package/lib/core-confirm-dialog/core-confirm-dialog.component.d.ts +14 -0
- package/lib/core-date-picker/core-date-picker.component.d.ts +21 -0
- package/lib/core-input/core-input.component.d.ts +29 -0
- package/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.d.ts +11 -0
- package/lib/core-multi-select/core-multi-select.component.d.ts +43 -0
- package/lib/core-number/core-number.component.d.ts +12 -0
- package/lib/core-page-title/core-page-title.component.d.ts +7 -0
- package/lib/core-radio-buttons/core-radio-buttons.component.d.ts +29 -0
- package/lib/core-search-box/core-search-box.component.d.ts +10 -0
- package/lib/core-select/core-select.component.d.ts +37 -0
- package/lib/core-spinner/core-spinner.component.d.ts +9 -0
- package/lib/core-switch/core-switch.component.d.ts +17 -0
- package/lib/core-table/core-column-date-picker/core-column-date-picker.component.d.ts +21 -0
- package/lib/core-table/core-column-input/core-column-input.component.d.ts +16 -0
- package/lib/core-table/core-column-selector/core-column-selector.component.d.ts +35 -0
- package/lib/core-table/core-row-pelak/core-row-pelak.component.d.ts +8 -0
- package/lib/core-table/core-table/core-table.component.d.ts +42 -0
- package/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.d.ts +11 -0
- package/lib/core-table/core-table-action-column/core-table-action-column.component.d.ts +11 -0
- package/lib/core-table/core-table-card-manager/core-table-card-manager.component.d.ts +24 -0
- package/lib/core-table/core-table-color-column/core-table-color-column.component.d.ts +9 -0
- package/lib/core-table/core-table-column-manager/core-table-column-manager.component.d.ts +24 -0
- package/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.d.ts +11 -0
- package/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.d.ts +22 -0
- package/lib/core-table/core-table-no-content/core-table-no-content.component.d.ts +9 -0
- package/lib/core-table/core-table-no-content/core-table-no-content.label.d.ts +5 -0
- package/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.d.ts +14 -0
- package/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.d.ts +13 -0
- package/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.d.ts +8 -0
- package/lib/core-table/core-table-status-column/core-table-status-column.component.d.ts +7 -0
- package/lib/core-textarea/core-textarea.component.d.ts +13 -0
- package/lib/core-time-picker/core-time-picker.component.d.ts +26 -0
- package/lib/core-time-picker/time-picker-modal/time-picker-modal.component.d.ts +35 -0
- package/lib/falcon-lib.module.d.ts +67 -0
- package/lib/falconTypes.d.ts +24 -0
- package/lib/pipes/digit-group.pipe.d.ts +7 -0
- package/lib/pipes/form-control.pipe.d.ts +8 -0
- package/lib/pipes/persian-digits.pipe.d.ts +7 -0
- package/lib/pipes/price-format.pipe.d.ts +7 -0
- package/lib/pipes/shamsi-date.pipe.d.ts +9 -0
- package/lib/pipes/time-format.pipe.d.ts +7 -0
- package/lib/pipes/weight.pipe.d.ts +7 -0
- package/lib/wordify.d.ts +2 -0
- package/package.json +26 -13
- package/{src/public-api.ts → public-api.d.ts} +27 -31
- package/svg-icon/arrow-down-icon/arrow-down-icon.component.d.ts +5 -0
- package/svg-icon/calendar-icon/calendar-icon.component.d.ts +5 -0
- package/svg-icon/caret-up-icon/caret-up-icon.component.d.ts +5 -0
- package/svg-icon/close-icon/close-icon.component.d.ts +5 -0
- package/svg-icon/edit-square-icon/edit-square-icon.component.d.ts +5 -0
- package/svg-icon/pelak-icon/pelak-icon.component.d.ts +5 -0
- package/svg-icon/search-icon/search-icon.component.d.ts +5 -0
- package/svg-icon/sort-down-icon/sort-down-icon.component.d.ts +5 -0
- package/svg-icon/sort-solid-icon/sort-solid-icon.component.d.ts +5 -0
- package/svg-icon/sort-up-icon/sort-up-icon.component.d.ts +5 -0
- package/svg-icon/time-icon/time-icon.component.d.ts +5 -0
- package/svg-icon/warning-icon/warning-icon.component.d.ts +5 -0
- package/utils/constants.d.ts +71 -0
- package/utils/directives/detail-viewer-manager.directive.d.ts +18 -0
- package/utils/directives/table-detail-viewer-manager.directive.d.ts +16 -0
- package/utils/util.d.ts +11 -0
- package/ng-package.json +0 -7
- package/package copy.json +0 -13
- package/src/assets/images/hub-dashboard-title-bg.png +0 -0
- package/src/assets/images/iran.png +0 -0
- package/src/environments/environment.ts +0 -7
- package/src/lib/core-auto-complete/core-auto-complete.component.html +0 -30
- package/src/lib/core-auto-complete/core-auto-complete.component.scss +0 -89
- package/src/lib/core-auto-complete/core-auto-complete.component.ts +0 -92
- package/src/lib/core-btn/core-btn-bluebird.component.html +0 -21
- package/src/lib/core-btn/core-btn-bluebird.component.scss +0 -123
- package/src/lib/core-btn/core-btn-falcon.component.html +0 -20
- package/src/lib/core-btn/core-btn-falcon.component.scss +0 -115
- package/src/lib/core-btn/core-btn.component.ts +0 -54
- package/src/lib/core-card/core-card.component.html +0 -3
- package/src/lib/core-card/core-card.component.scss +0 -0
- package/src/lib/core-card/core-card.component.ts +0 -10
- package/src/lib/core-checkbox/core-checkbox.component.html +0 -9
- package/src/lib/core-checkbox/core-checkbox.component.scss +0 -60
- package/src/lib/core-checkbox/core-checkbox.component.ts +0 -19
- package/src/lib/core-confirm-dialog/core-confirm-dialog.component.html +0 -28
- package/src/lib/core-confirm-dialog/core-confirm-dialog.component.scss +0 -131
- package/src/lib/core-confirm-dialog/core-confirm-dialog.component.ts +0 -29
- package/src/lib/core-date-picker/core-date-picker-bluebird.component.html +0 -15
- 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 +0 -14
- 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 +0 -44
- package/src/lib/core-input/core-input-bluebird.component.html +0 -95
- package/src/lib/core-input/core-input-bluebird.component.scss +0 -152
- package/src/lib/core-input/core-input-falcon.component.html +0 -90
- package/src/lib/core-input/core-input-falcon.component.scss +0 -141
- package/src/lib/core-input/core-input.component.ts +0 -112
- package/src/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.html +0 -3
- package/src/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.scss +0 -15
- package/src/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.ts +0 -19
- package/src/lib/core-multi-select/core-multi-select.component.html +0 -41
- package/src/lib/core-multi-select/core-multi-select.component.scss +0 -119
- package/src/lib/core-multi-select/core-multi-select.component.ts +0 -139
- package/src/lib/core-number/core-number.component.html +0 -3
- package/src/lib/core-number/core-number.component.scss +0 -1
- package/src/lib/core-number/core-number.component.ts +0 -45
- package/src/lib/core-page-title/core-page-title.component.html +0 -14
- package/src/lib/core-page-title/core-page-title.component.scss +0 -16
- package/src/lib/core-page-title/core-page-title.component.ts +0 -11
- package/src/lib/core-radio-buttons/core-radio-buttons.component.html +0 -17
- package/src/lib/core-radio-buttons/core-radio-buttons.component.scss +0 -46
- package/src/lib/core-radio-buttons/core-radio-buttons.component.spec.ts +0 -21
- package/src/lib/core-radio-buttons/core-radio-buttons.component.ts +0 -64
- package/src/lib/core-search-box/core-search-box.component.html +0 -14
- package/src/lib/core-search-box/core-search-box.component.scss +0 -37
- package/src/lib/core-search-box/core-search-box.component.ts +0 -15
- package/src/lib/core-select/core-select-bluebird.component.html +0 -57
- package/src/lib/core-select/core-select-bluebird.component.scss +0 -129
- package/src/lib/core-select/core-select-falcon.component.html +0 -56
- package/src/lib/core-select/core-select-falcon.component.scss +0 -123
- package/src/lib/core-select/core-select.component.spec.ts +0 -21
- package/src/lib/core-select/core-select.component.ts +0 -93
- package/src/lib/core-spinner/core-spinner.component.html +0 -14
- package/src/lib/core-spinner/core-spinner.component.scss +0 -162
- package/src/lib/core-spinner/core-spinner.component.ts +0 -13
- package/src/lib/core-switch/core-switch.component.html +0 -13
- package/src/lib/core-switch/core-switch.component.scss +0 -58
- package/src/lib/core-switch/core-switch.component.spec.ts +0 -21
- package/src/lib/core-switch/core-switch.component.ts +0 -28
- package/src/lib/core-table/core-column-date-picker/core-column-date-picker.component.html +0 -21
- package/src/lib/core-table/core-column-date-picker/core-column-date-picker.component.scss +0 -3
- package/src/lib/core-table/core-column-date-picker/core-column-date-picker.component.ts +0 -55
- package/src/lib/core-table/core-column-input/core-column-input.component.html +0 -17
- package/src/lib/core-table/core-column-input/core-column-input.component.scss +0 -21
- package/src/lib/core-table/core-column-input/core-column-input.component.ts +0 -23
- package/src/lib/core-table/core-column-selector/core-column-selector.component.html +0 -47
- package/src/lib/core-table/core-column-selector/core-column-selector.component.scss +0 -113
- package/src/lib/core-table/core-column-selector/core-column-selector.component.ts +0 -94
- package/src/lib/core-table/core-row-pelak/core-row-pelak.component.html +0 -12
- package/src/lib/core-table/core-row-pelak/core-row-pelak.component.scss +0 -21
- package/src/lib/core-table/core-row-pelak/core-row-pelak.component.ts +0 -12
- package/src/lib/core-table/core-table/core-table.component.html +0 -168
- package/src/lib/core-table/core-table/core-table.component.scss +0 -65
- package/src/lib/core-table/core-table/core-table.component.ts +0 -179
- package/src/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.html +0 -10
- package/src/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.scss +0 -3
- package/src/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.ts +0 -24
- package/src/lib/core-table/core-table-action-column/core-table-action-column.component.html +0 -6
- package/src/lib/core-table/core-table-action-column/core-table-action-column.component.scss +0 -3
- package/src/lib/core-table/core-table-action-column/core-table-action-column.component.ts +0 -19
- package/src/lib/core-table/core-table-card-manager/core-table-card-manager.component.html +0 -94
- 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 +0 -58
- package/src/lib/core-table/core-table-column-manager/core-table-column-manager.component.html +0 -99
- 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 +0 -59
- package/src/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.html +0 -5
- package/src/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.scss +0 -8
- package/src/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.ts +0 -28
- package/src/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.html +0 -24
- package/src/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.scss +0 -10
- package/src/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.ts +0 -76
- package/src/lib/core-table/core-table-no-content/core-table-no-content.component.html +0 -6
- package/src/lib/core-table/core-table-no-content/core-table-no-content.component.scss +0 -7
- package/src/lib/core-table/core-table-no-content/core-table-no-content.component.ts +0 -14
- package/src/lib/core-table/core-table-no-content/core-table-no-content.label.ts +0 -14
- package/src/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.html +0 -5
- 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 +0 -60
- package/src/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.html +0 -3
- 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 +0 -24
- package/src/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.html +0 -3
- package/src/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.scss +0 -14
- package/src/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.ts +0 -14
- package/src/lib/core-table/core-table-status-column/core-table-status-column.component.html +0 -3
- package/src/lib/core-table/core-table-status-column/core-table-status-column.component.scss +0 -14
- package/src/lib/core-table/core-table-status-column/core-table-status-column.component.ts +0 -11
- package/src/lib/core-textarea/core-textarea.component.html +0 -18
- package/src/lib/core-textarea/core-textarea.component.scss +0 -62
- package/src/lib/core-textarea/core-textarea.component.ts +0 -31
- package/src/lib/core-time-picker/core-time-picker.component.html +0 -51
- package/src/lib/core-time-picker/core-time-picker.component.scss +0 -144
- package/src/lib/core-time-picker/core-time-picker.component.ts +0 -102
- package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.html +0 -50
- package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.scss +0 -424
- package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.spec.ts +0 -21
- package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.ts +0 -172
- package/src/lib/falcon-lib.module.ts +0 -157
- package/src/lib/falconTypes.ts +0 -35
- package/src/lib/pipes/digit-group.pipe.ts +0 -10
- package/src/lib/pipes/form-control.pipe.ts +0 -11
- package/src/lib/pipes/persian-digits.pipe.ts +0 -33
- package/src/lib/pipes/price-format.pipe.ts +0 -20
- package/src/lib/pipes/shamsi-date.pipe.ts +0 -24
- package/src/lib/pipes/time-format.pipe.ts +0 -21
- package/src/lib/pipes/weight.pipe.ts +0 -10
- package/src/lib/wordify.ts +0 -116
- package/src/svg-icon/arrow-down-icon/arrow-down-icon.component.html +0 -8
- 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 +0 -8
- package/src/svg-icon/calendar-icon/calendar-icon.component.html +0 -10
- package/src/svg-icon/calendar-icon/calendar-icon.component.scss +0 -0
- package/src/svg-icon/calendar-icon/calendar-icon.component.ts +0 -8
- package/src/svg-icon/caret-up-icon/caret-up-icon.component.html +0 -16
- 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 +0 -10
- package/src/svg-icon/close-icon/close-icon.component.html +0 -10
- package/src/svg-icon/close-icon/close-icon.component.scss +0 -0
- package/src/svg-icon/close-icon/close-icon.component.ts +0 -8
- package/src/svg-icon/edit-square-icon/edit-square-icon.component.html +0 -10
- 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 +0 -8
- package/src/svg-icon/pelak-icon/pelak-icon.component.html +0 -32
- package/src/svg-icon/pelak-icon/pelak-icon.component.scss +0 -0
- package/src/svg-icon/pelak-icon/pelak-icon.component.ts +0 -8
- package/src/svg-icon/search-icon/search-icon.component.html +0 -10
- package/src/svg-icon/search-icon/search-icon.component.scss +0 -0
- package/src/svg-icon/search-icon/search-icon.component.spec.ts +0 -21
- package/src/svg-icon/search-icon/search-icon.component.ts +0 -8
- package/src/svg-icon/sort-down-icon/sort-down-icon.component.html +0 -5
- 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 +0 -10
- package/src/svg-icon/sort-solid-icon/sort-solid-icon.component.html +0 -5
- 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 +0 -8
- package/src/svg-icon/sort-up-icon/sort-up-icon.component.html +0 -5
- 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 +0 -8
- package/src/svg-icon/time-icon/time-icon.component.html +0 -10
- package/src/svg-icon/time-icon/time-icon.component.scss +0 -0
- package/src/svg-icon/time-icon/time-icon.component.ts +0 -8
- package/src/svg-icon/warning-icon/warning-icon.component.html +0 -10
- package/src/svg-icon/warning-icon/warning-icon.component.scss +0 -0
- package/src/svg-icon/warning-icon/warning-icon.component.ts +0 -10
- package/src/utils/constants.ts +0 -182
- package/src/utils/directives/detail-viewer-manager.directive.ts +0 -78
- package/src/utils/directives/filterTableDirective.ts +0 -36
- package/src/utils/directives/table-detail-viewer-manager.directive.ts +0 -57
- package/src/utils/interfaces.ts +0 -0
- package/src/utils/jsonparser.ts +0 -49
- package/src/utils/links.ts +0 -67
- package/src/utils/toast.ts +0 -35
- package/src/utils/types.ts +0 -20
- package/src/utils/util.ts +0 -32
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
File without changes
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
|
|
2
|
-
<path
|
|
3
|
-
d="M137.4 41.4c12.5-12.5 32.8-12.5 45.3 0l128 128c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8H32c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9l128-128zm0 429.3l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8H288c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128c-12.5 12.5-32.8 12.5-45.3 0z"
|
|
4
|
-
/>
|
|
5
|
-
</svg>
|
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
height="100%"
|
|
4
|
-
viewBox="0 -960 960 960"
|
|
5
|
-
width="100%"
|
|
6
|
-
>
|
|
7
|
-
<path
|
|
8
|
-
d="m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 320q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Z"
|
|
9
|
-
/>
|
|
10
|
-
</svg>
|
|
File without changes
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
viewBox="0 -960 960 960"
|
|
4
|
-
height="100%"
|
|
5
|
-
width="100%"
|
|
6
|
-
>
|
|
7
|
-
<path
|
|
8
|
-
d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"
|
|
9
|
-
/>
|
|
10
|
-
</svg>
|
|
File without changes
|
package/src/utils/constants.ts
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
export enum IconInput {
|
|
2
|
-
Password = 'Password',
|
|
3
|
-
Text = 'Text',
|
|
4
|
-
EmailPhone = 'EmailPhone',
|
|
5
|
-
Phone = 'Phone',
|
|
6
|
-
Editable = 'Editable',
|
|
7
|
-
Verified = 'Verified',
|
|
8
|
-
NotVerified = 'NotVerified',
|
|
9
|
-
OwnerName = 'OwnerName',
|
|
10
|
-
totalAmount = 'totalAmount',
|
|
11
|
-
totalRows = 'totalRows',
|
|
12
|
-
Date = 'Date',
|
|
13
|
-
}
|
|
14
|
-
export enum UserLanguage {
|
|
15
|
-
EN = 'en',
|
|
16
|
-
FA = 'fa',
|
|
17
|
-
}
|
|
18
|
-
export enum COLUMNS_TYPES {
|
|
19
|
-
TEXT = 'text',
|
|
20
|
-
NUMBER = 'number',
|
|
21
|
-
SELECTOR = 'selector',
|
|
22
|
-
ROW_SELECTOR = 'row-selector',
|
|
23
|
-
STATUS = 'status',
|
|
24
|
-
STATUS_ACTIVE = 'status-active',
|
|
25
|
-
ACTION = 'action',
|
|
26
|
-
ACTION_BUTTONS = 'action-buttons',
|
|
27
|
-
SHAMSI_DATE = 'shamsi-date',
|
|
28
|
-
MULTI_COLUMN = 'multiColumn',
|
|
29
|
-
PELAK = 'pelak',
|
|
30
|
-
DETAIL_VIEWER_FOR_REPORT = 'detail-viewer-for-report',
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export enum TOAST_MESSAGES {
|
|
34
|
-
SUCCESSFUL_CREATE = 'با موفقیت ثبت شد',
|
|
35
|
-
SUCCESSFUL_ADDED = 'با موفقیت اضافه شد',
|
|
36
|
-
SUCCESSFUL_EDIT = 'با موفقیت ویرایش شد',
|
|
37
|
-
SUCCESSFUL_DELETED = 'با موفقیت حذف شد ',
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export const travelTypes = [
|
|
41
|
-
{
|
|
42
|
-
title: 'داخلی',
|
|
43
|
-
value: 'Domestic',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
title: 'بین المللی',
|
|
47
|
-
value: 'International',
|
|
48
|
-
},
|
|
49
|
-
];
|
|
50
|
-
export enum DetailViewers {
|
|
51
|
-
BILL = 'bill',
|
|
52
|
-
DRIVER = 'driver',
|
|
53
|
-
MANIFEST = 'manifest',
|
|
54
|
-
SERVICE = 'service',
|
|
55
|
-
VEHICLE = 'vehicle',
|
|
56
|
-
}
|
|
57
|
-
export const countryCodes = [
|
|
58
|
-
{
|
|
59
|
-
countryId: 'IR',
|
|
60
|
-
countryNameFa: 'ايران',
|
|
61
|
-
countryNameEn: 'Iran',
|
|
62
|
-
},
|
|
63
|
-
];
|
|
64
|
-
export const priceTypes = [
|
|
65
|
-
{
|
|
66
|
-
currencyId: 'IRR',
|
|
67
|
-
currencyNameEn: 'Iranian Rial',
|
|
68
|
-
currencyNameFa: 'ریال ایران',
|
|
69
|
-
},
|
|
70
|
-
];
|
|
71
|
-
|
|
72
|
-
export const Letters = [
|
|
73
|
-
{
|
|
74
|
-
key: 2,
|
|
75
|
-
value: 'ب',
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
key: 3,
|
|
79
|
-
value: 'پ',
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
key: 4,
|
|
83
|
-
value: 'ت',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
key: 5,
|
|
87
|
-
value: 'ث',
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
key: 6,
|
|
91
|
-
value: 'ج',
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
key: 7,
|
|
95
|
-
value: 'د',
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
key: 8,
|
|
99
|
-
value: 'ز',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
key: 9,
|
|
103
|
-
value: 'س',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
key: 10,
|
|
107
|
-
value: 'ش',
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
key: 11,
|
|
111
|
-
value: 'ص',
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
key: 12,
|
|
115
|
-
value: 'ط',
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: 13,
|
|
119
|
-
value: 'ع',
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
key: 14,
|
|
123
|
-
value: 'ف',
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
key: 15,
|
|
127
|
-
value: 'ق',
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
key: 16,
|
|
131
|
-
value: 'ک',
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
key: 17,
|
|
135
|
-
value: 'گ',
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
key: 18,
|
|
139
|
-
value: 'ل',
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
key: 19,
|
|
143
|
-
value: 'م',
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
key: 20,
|
|
147
|
-
value: 'ن',
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
key: 21,
|
|
151
|
-
value: 'و',
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
key: 22,
|
|
155
|
-
value: 'ه',
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
key: 23,
|
|
159
|
-
value: 'ی',
|
|
160
|
-
},
|
|
161
|
-
];
|
|
162
|
-
|
|
163
|
-
export const YES_NO_OPTIONS = [
|
|
164
|
-
{
|
|
165
|
-
title: 'بله',
|
|
166
|
-
value: true,
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
title: 'خیر',
|
|
170
|
-
value: false,
|
|
171
|
-
},
|
|
172
|
-
];
|
|
173
|
-
export const ACTIVE_OPTIONS = [
|
|
174
|
-
{
|
|
175
|
-
title: 'فعال',
|
|
176
|
-
value: true,
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
title: 'غیر فعال',
|
|
180
|
-
value: false,
|
|
181
|
-
},
|
|
182
|
-
];
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ComponentFactoryResolver,
|
|
3
|
-
Directive,
|
|
4
|
-
ElementRef,
|
|
5
|
-
HostListener,
|
|
6
|
-
Input,
|
|
7
|
-
ViewContainerRef,
|
|
8
|
-
} from '@angular/core';
|
|
9
|
-
import { NiraModalService } from 'nira-modal';
|
|
10
|
-
|
|
11
|
-
import { CaretUpIconComponent } from '../../svg-icon/caret-up-icon/caret-up-icon.component';
|
|
12
|
-
import { DetailViewers } from '../../lib/falconTypes';
|
|
13
|
-
|
|
14
|
-
@Directive({
|
|
15
|
-
selector: '[detailViewerManager]',
|
|
16
|
-
})
|
|
17
|
-
export class DetailViewerManagerDirective {
|
|
18
|
-
@Input() detailViewerData: any;
|
|
19
|
-
@Input() detailViewerName: DetailViewers | undefined;
|
|
20
|
-
|
|
21
|
-
constructor(
|
|
22
|
-
private el: ElementRef,
|
|
23
|
-
private niraModalService: NiraModalService,
|
|
24
|
-
private viewContainerRef: ViewContainerRef,
|
|
25
|
-
private componentFactoryResolver: ComponentFactoryResolver
|
|
26
|
-
) {}
|
|
27
|
-
|
|
28
|
-
ngAfterViewInit() {
|
|
29
|
-
this.changeStyle();
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
changeStyle() {
|
|
33
|
-
this.el.nativeElement.style.backgroundColor = '#b4dcff';
|
|
34
|
-
this.el.nativeElement.style.cursor = 'pointer';
|
|
35
|
-
this.el.nativeElement.style.borderRadius = '18px';
|
|
36
|
-
this.el.nativeElement.style.padding = '2px 8px ';
|
|
37
|
-
this.el.nativeElement.classList.add('detailViewer');
|
|
38
|
-
const componentFactory =
|
|
39
|
-
this.componentFactoryResolver.resolveComponentFactory(
|
|
40
|
-
CaretUpIconComponent
|
|
41
|
-
);
|
|
42
|
-
const componentRef =
|
|
43
|
-
this.viewContainerRef.createComponent(componentFactory);
|
|
44
|
-
const host = this.el.nativeElement;
|
|
45
|
-
host.insertBefore(componentRef.location.nativeElement, host.firstChild);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@HostListener('click') onMouseUp() {
|
|
49
|
-
let component = undefined;
|
|
50
|
-
switch (
|
|
51
|
-
this.detailViewerName
|
|
52
|
-
// case DetailViewers.BILL: {
|
|
53
|
-
// component = BillDetailViewerComponent;
|
|
54
|
-
// break;
|
|
55
|
-
// }
|
|
56
|
-
// case DetailViewers.DRIVER: {
|
|
57
|
-
// component = DriverDetailViewerComponent;
|
|
58
|
-
// break;
|
|
59
|
-
// }
|
|
60
|
-
// case DetailViewers.MANIFEST: {
|
|
61
|
-
// component = ManifestDetailViewerComponent;
|
|
62
|
-
// break;
|
|
63
|
-
// }
|
|
64
|
-
// case DetailViewers.SERVICE: {
|
|
65
|
-
// component = ServiceDetailViewerComponent;
|
|
66
|
-
// break;
|
|
67
|
-
// }
|
|
68
|
-
// case DetailViewers.VEHICLE: {
|
|
69
|
-
// component = VehicleDetailViewerComponent;
|
|
70
|
-
// break;
|
|
71
|
-
// }
|
|
72
|
-
) {
|
|
73
|
-
}
|
|
74
|
-
this.niraModalService.open(component, {
|
|
75
|
-
data: this.detailViewerData,
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Directive,
|
|
3
|
-
ViewContainerRef,
|
|
4
|
-
HostListener,
|
|
5
|
-
ElementRef,
|
|
6
|
-
Input,
|
|
7
|
-
ComponentRef,
|
|
8
|
-
Output,
|
|
9
|
-
EventEmitter,
|
|
10
|
-
} from '@angular/core';
|
|
11
|
-
import { NiraModalService } from 'nira-modal';
|
|
12
|
-
import { CoreTableFilterDialogComponent } from '../../lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component';
|
|
13
|
-
|
|
14
|
-
@Directive({
|
|
15
|
-
selector: '[filterTable]',
|
|
16
|
-
})
|
|
17
|
-
export class FilterTableDirective {
|
|
18
|
-
constructor(
|
|
19
|
-
public viewContainerRef: ViewContainerRef,
|
|
20
|
-
private niraModalService: NiraModalService,
|
|
21
|
-
private el: ElementRef
|
|
22
|
-
) {}
|
|
23
|
-
|
|
24
|
-
@Input({ required: true }) columnsSchema: any;
|
|
25
|
-
@Input({ required: false }) key: string | undefined;
|
|
26
|
-
|
|
27
|
-
@HostListener('click', ['$event.target']) onClick() {
|
|
28
|
-
this.openFilterDialog();
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
openFilterDialog() {
|
|
32
|
-
this.niraModalService.open(CoreTableFilterDialogComponent, {
|
|
33
|
-
data: { columnsSchema: this.columnsSchema, key: this.key },
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ComponentFactoryResolver,
|
|
3
|
-
Directive,
|
|
4
|
-
ElementRef,
|
|
5
|
-
HostListener,
|
|
6
|
-
Input,
|
|
7
|
-
ViewContainerRef,
|
|
8
|
-
} from '@angular/core';
|
|
9
|
-
import { NiraModalService } from 'nira-modal';
|
|
10
|
-
|
|
11
|
-
import { CaretUpIconComponent } from '../../svg-icon/caret-up-icon/caret-up-icon.component';
|
|
12
|
-
@Directive({
|
|
13
|
-
selector: '[tableDetailViewerManager]',
|
|
14
|
-
})
|
|
15
|
-
export class TableDetailViewerManagerDirective {
|
|
16
|
-
@Input() detailViewerData: any;
|
|
17
|
-
|
|
18
|
-
constructor(
|
|
19
|
-
private el: ElementRef,
|
|
20
|
-
private niraModalService: NiraModalService,
|
|
21
|
-
private viewContainerRef: ViewContainerRef,
|
|
22
|
-
private componentFactoryResolver: ComponentFactoryResolver
|
|
23
|
-
) {}
|
|
24
|
-
|
|
25
|
-
ngAfterViewInit() {
|
|
26
|
-
if (this.detailViewerData?.detailViewer?.key) {
|
|
27
|
-
this.changeStyle();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
changeStyle() {
|
|
32
|
-
this.el.nativeElement.style.backgroundColor = '#b4dcff';
|
|
33
|
-
this.el.nativeElement.style.cursor = 'pointer';
|
|
34
|
-
this.el.nativeElement.style.borderRadius = '18px';
|
|
35
|
-
this.el.nativeElement.style.padding = '2px 8px ';
|
|
36
|
-
this.el.nativeElement.classList.add('detailViewer');
|
|
37
|
-
const componentFactory =
|
|
38
|
-
this.componentFactoryResolver.resolveComponentFactory(
|
|
39
|
-
CaretUpIconComponent
|
|
40
|
-
);
|
|
41
|
-
const componentRef =
|
|
42
|
-
this.viewContainerRef.createComponent(componentFactory);
|
|
43
|
-
const host = this.el.nativeElement;
|
|
44
|
-
host.insertBefore(componentRef.location.nativeElement, host.firstChild);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@HostListener('click') onMouseUp() {
|
|
48
|
-
if (this.detailViewerData?.detailViewer?.key) {
|
|
49
|
-
this.niraModalService.open(
|
|
50
|
-
this.detailViewerData?.detailViewer?.detailViewerComponent,
|
|
51
|
-
{
|
|
52
|
-
data: this.detailViewerData.data,
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
package/src/utils/interfaces.ts
DELETED
|
File without changes
|
package/src/utils/jsonparser.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { JsonConvert } from 'json2typescript';
|
|
2
|
-
|
|
3
|
-
export class JsonParser {
|
|
4
|
-
private static instance: JsonConvert;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* The Singleton's constructor should always be private to prevent direct
|
|
8
|
-
* construction calls with the `new` operator.
|
|
9
|
-
*/
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
private constructor() {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* The static method that controls the access to the singleton instance.
|
|
17
|
-
*
|
|
18
|
-
* This implementation let you subclass the Singleton class while keeping
|
|
19
|
-
* just one instance of each subclass around.
|
|
20
|
-
*/
|
|
21
|
-
private static getConverter(): JsonConvert {
|
|
22
|
-
if (!JsonParser.instance) {
|
|
23
|
-
JsonParser.instance = new JsonConvert();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return JsonParser.instance;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public static deserializeArray<T>(
|
|
30
|
-
jsonArray: any[],
|
|
31
|
-
classReferencing: { new (): T },
|
|
32
|
-
): T[] {
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
return this.getConverter().deserializeArray<T>(jsonArray, classReferencing);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
public static deserializeObject<T>(
|
|
38
|
-
jsonObject: any,
|
|
39
|
-
classReference: { new (): T },
|
|
40
|
-
): T {
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
return this.getConverter().deserializeObject<T>(jsonObject, classReference);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
public static serializeObject<T>(data: any) {
|
|
46
|
-
// @ts-ignore
|
|
47
|
-
return this.getConverter().serializeObject<T>(data);
|
|
48
|
-
}
|
|
49
|
-
}
|
package/src/utils/links.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
enum routeNames {
|
|
2
|
-
dashboard = 'dashboard',
|
|
3
|
-
home = 'home',
|
|
4
|
-
states = 'states',
|
|
5
|
-
cities = 'cities',
|
|
6
|
-
freightRules = 'freight-rules',
|
|
7
|
-
freightChargeTypes = 'freight-charge-types',
|
|
8
|
-
freightChargeRules = 'freight-charge-rules',
|
|
9
|
-
offices = 'offices',
|
|
10
|
-
routes = 'routes',
|
|
11
|
-
vehicleTypes = 'vehicle-types',
|
|
12
|
-
login = 'login',
|
|
13
|
-
users = 'users',
|
|
14
|
-
}
|
|
15
|
-
export enum routeLinks {
|
|
16
|
-
dashboard = '/' + routeNames.dashboard,
|
|
17
|
-
home = '/' + routeNames.dashboard + '/' + routeNames.home,
|
|
18
|
-
states = '/' + routeNames.dashboard + '/' + routeNames.states,
|
|
19
|
-
cities = '/' + routeNames.dashboard + '/' + routeNames.cities,
|
|
20
|
-
freightRules = '/' + routeNames.dashboard + '/' + routeNames.freightRules,
|
|
21
|
-
freightChargeTypes = '/' +
|
|
22
|
-
routeNames.dashboard +
|
|
23
|
-
'/' +
|
|
24
|
-
routeNames.freightChargeTypes,
|
|
25
|
-
freightChargeRules = '/' +
|
|
26
|
-
routeNames.dashboard +
|
|
27
|
-
'/' +
|
|
28
|
-
routeNames.freightChargeRules,
|
|
29
|
-
offices = '/' + routeNames.dashboard + '/' + routeNames.offices,
|
|
30
|
-
routes = '/' + routeNames.dashboard + '/' + routeNames.routes,
|
|
31
|
-
vehicleTypes = '/' + routeNames.dashboard + '/' + routeNames.vehicleTypes,
|
|
32
|
-
login = '/' + routeNames.login,
|
|
33
|
-
users = '/' + routeNames.dashboard + '/' + routeNames.users,
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export const Links = {
|
|
37
|
-
dashboard: { name: routeNames.dashboard, route: routeLinks.dashboard },
|
|
38
|
-
home: { name: routeNames.home, route: routeLinks.home },
|
|
39
|
-
states: { name: routeNames.states, route: routeLinks.states },
|
|
40
|
-
cities: { name: routeNames.cities, route: routeLinks.cities },
|
|
41
|
-
freightRules: {
|
|
42
|
-
name: routeNames.freightRules,
|
|
43
|
-
route: routeLinks.freightRules,
|
|
44
|
-
},
|
|
45
|
-
freightChargeTypes: {
|
|
46
|
-
name: routeNames.freightChargeTypes,
|
|
47
|
-
route: routeLinks.freightChargeTypes,
|
|
48
|
-
},
|
|
49
|
-
freightChargeRules: {
|
|
50
|
-
name: routeNames.freightChargeRules,
|
|
51
|
-
route: routeLinks.freightChargeRules,
|
|
52
|
-
},
|
|
53
|
-
offices: { name: routeNames.offices, route: routeLinks.offices },
|
|
54
|
-
routes: { name: routeNames.routes, route: routeLinks.routes },
|
|
55
|
-
vehicleTypes: {
|
|
56
|
-
name: routeNames.vehicleTypes,
|
|
57
|
-
route: routeLinks.vehicleTypes,
|
|
58
|
-
},
|
|
59
|
-
login: {
|
|
60
|
-
name: routeNames.login,
|
|
61
|
-
route: routeLinks.login,
|
|
62
|
-
},
|
|
63
|
-
users: {
|
|
64
|
-
name: routeNames.users,
|
|
65
|
-
route: routeLinks.users,
|
|
66
|
-
},
|
|
67
|
-
};
|
package/src/utils/toast.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { NiraSnackBarService, SnakBarConfig } from 'nira-snack-bar';
|
|
2
|
-
import { AppInjector } from '../app.module';
|
|
3
|
-
|
|
4
|
-
export function createToastNotification(
|
|
5
|
-
message: string,
|
|
6
|
-
options: SnakBarConfig = {
|
|
7
|
-
duration: 3000,
|
|
8
|
-
horizontalPosition: 'bottom',
|
|
9
|
-
verticalPosition: 'center',
|
|
10
|
-
statusClass: 'success',
|
|
11
|
-
}
|
|
12
|
-
) {
|
|
13
|
-
const snackBar = AppInjector.get(NiraSnackBarService);
|
|
14
|
-
snackBar.show(message, options);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function Toast<T>(
|
|
18
|
-
messageFormatter: (result: T) => string,
|
|
19
|
-
options?: Omit<SnakBarConfig, 'message'>
|
|
20
|
-
) {
|
|
21
|
-
return function (
|
|
22
|
-
target: object,
|
|
23
|
-
key: string | symbol,
|
|
24
|
-
descriptor: PropertyDescriptor
|
|
25
|
-
) {
|
|
26
|
-
const originalMethod = descriptor.value;
|
|
27
|
-
descriptor.value = async function (...args: unknown[]) {
|
|
28
|
-
const { showToast } = args[0] as { showToast: boolean | undefined };
|
|
29
|
-
const result = (await originalMethod.apply(this, args)) as T;
|
|
30
|
-
if (result && showToast !== false)
|
|
31
|
-
createToastNotification(messageFormatter(result), options);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
}
|
package/src/utils/types.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export type ThemePalette = 'square' | 'round';
|
|
2
|
-
export type ColorState =
|
|
3
|
-
| 'default'
|
|
4
|
-
| 'primary'
|
|
5
|
-
| 'success'
|
|
6
|
-
| 'warning'
|
|
7
|
-
| 'danger';
|
|
8
|
-
|
|
9
|
-
export type ButtonType = 'button';
|
|
10
|
-
|
|
11
|
-
export type LayoutRadioButtons = 'row' | 'column';
|
|
12
|
-
|
|
13
|
-
export type InputType = 'number' | 'password' | 'text';
|
|
14
|
-
|
|
15
|
-
export type MenuItem<T> = {
|
|
16
|
-
title: T;
|
|
17
|
-
value: T;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export type ButtonSize = 'small' | 'medium';
|
package/src/utils/util.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as moment from 'jalali-moment';
|
|
2
|
-
|
|
3
|
-
type DateFormat = 'HH:mm' | 'YYYY-MM-DD' | 'YYYY-MM-DD HH:mm';
|
|
4
|
-
export class Util {
|
|
5
|
-
public static getMoneyFormat(data: string) {
|
|
6
|
-
return ('' + data).replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,');
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
public static isRunningOnSmallScreen(): boolean {
|
|
10
|
-
return window.innerWidth < 772;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
public static isRunningOnMobile(): boolean {
|
|
14
|
-
return !this.isRunningOnWindows;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
public static isRunningOnWindows(): boolean {
|
|
18
|
-
return navigator.platform.startsWith('Win');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
public static getRunningPlatform(): string {
|
|
22
|
-
return navigator.platform;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public static getTotalFromArray(array: [], name: string): number {
|
|
26
|
-
return array.map((item) => +item[name]).reduce((prev, next) => prev + next);
|
|
27
|
-
}
|
|
28
|
-
public static shamsiToMiladi(value: string, format: DateFormat) {
|
|
29
|
-
const m = moment(value, 'jYYYY-jMM-jDD HH:mm');
|
|
30
|
-
return m.format(format);
|
|
31
|
-
}
|
|
32
|
-
}
|