nira-falcon 0.1.21 → 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/README.md +24 -24
- 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/styles.css +1 -1
- 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-multi-select/core-multi-select-row/core-multi-select-row.component.mjs +0 -28
- package/esm2022/lib/core-multi-select/core-multi-select.component.mjs +0 -145
- 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 -92
- 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 -43
- package/esm2022/lib/core-table/core-column-selector/core-column-selector.component.mjs +0 -100
- 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 -28
- 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 -252
- 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/arrow-down-icon/arrow-down-icon.component.mjs +0 -11
- package/esm2022/svg-icon/calendar-icon/calendar-icon.component.mjs +0 -11
- 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 -2863
- 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-multi-select/core-multi-select-row/core-multi-select-row.component.d.ts +0 -11
- package/lib/core-multi-select/core-multi-select.component.d.ts +0 -43
- 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 -16
- 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 -11
- 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 -66
- 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/arrow-down-icon/arrow-down-icon.component.d.ts +0 -5
- package/svg-icon/calendar-icon/calendar-icon.component.d.ts +0 -5
- 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,32 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" fill="none">
|
|
2
|
+
<path
|
|
3
|
+
fill="#004A96"
|
|
4
|
+
d="M0 12C0 5.37258 5.37258 0 12 0h17v48H12C5.37258 48 0 42.6274 0 36V12Z"
|
|
5
|
+
></path>
|
|
6
|
+
<path
|
|
7
|
+
fill="#fff"
|
|
8
|
+
d="M6.69405 28.0899h-.53303V24h.53303v4.0899Zm1.10627-.1011c-.06848-.0712-.10272-.1564-.10272-.2557 0-.1011.03424-.1863.10272-.2556.07033-.0693.15546-.1048.25541-.1067.09994.0019.18415.0374.25263.1067.07033.0693.1055.1545.1055.2556 0 .0993-.03517.1845-.1055.2557-.06848.0693-.15176.1039-.24986.1039-.10179 0-.18785-.0346-.25818-.1039Zm3.05518-1.5534h-.94948v1.6545h-.53581V24h1.33809c.4553 0 .8051.1049 1.0494.3146.2462.2097.3693.515.3693.9157 0 .2547-.0685.4766-.2055.6658-.1351.1891-.3238.3305-.5663.4241l.9495 1.736v.0337h-.5719l-.8773-1.6545Zm-.94948-.441h.81898c.1444 0 .2702-.0197.3776-.059.1092-.0412.1999-.0955.272-.1629.0722-.0693.1259-.1498.1611-.2416.037-.0936.0555-.1938.0555-.3006 0-.1179-.0176-.2247-.0528-.3202-.0333-.0974-.086-.1807-.1582-.25-.0722-.0693-.1638-.1226-.2749-.1601-.111-.0375-.2433-.0562-.397-.0562h-.80228v1.5506Zm3.09958 1.9944c-.0685-.0712-.1027-.1564-.1027-.2557 0-.1011.0342-.1863.1027-.2556.0703-.0693.1555-.1048.2554-.1067.1.0019.1842.0374.2526.1067.0704.0693.1055.1545.1055.2556 0 .0993-.0351.1845-.1055.2557-.0684.0693-.1517.1039-.2498.1039-.1018 0-.1879-.0346-.2582-.1039ZM6.53303 36H6v-4.0899h.53303V36Zm2.51658-1.6545h-.94946V36h-.53581v-4.0899h1.33813c.4553 0 .8051.1049 1.04941.3146.24612.2098.36922.515.36922.9157 0 .2547-.0685.4766-.2054.6658-.13513.1891-.32392.3305-.56637.4241l.94947 1.736V36h-.57191l-.87728-1.6545Zm-.94946-.441h.81898c.14436 0 .27022-.0197.37756-.059.1092-.0412.19989-.0955.27207-.1629.07218-.0693.12586-.1498.16102-.2416.03702-.0936.05553-.1938.05553-.3006 0-.1179-.01759-.2247-.05275-.3202-.03332-.0974-.08606-.1807-.15824-.25-.07219-.0693-.1638-.1226-.27485-.1601-.11105-.0374-.24338-.0562-.397-.0562h-.80232v1.5506Zm5.25945 1.0281h-1.6935L11.2858 36h-.5497l1.5436-4.0899h.4664L14.2924 36h-.5469l-.3859-1.0674Zm-1.5324-.4438h1.3742l-.6885-1.913-.6857 1.913ZM18 36h-.5358l-2.035-3.1517V36h-.5358v-4.0899h.5358l2.0405 3.1657v-3.1657H18V36Z"
|
|
9
|
+
></path>
|
|
10
|
+
<path
|
|
11
|
+
fill="#00A03C"
|
|
12
|
+
d="M6 11.334c0-.8284.67157-1.50002 1.5-1.50002H21V12.334H6v-1Z"
|
|
13
|
+
></path>
|
|
14
|
+
<path fill="#fff" d="M6 12.334h15v4.16667H6z"></path>
|
|
15
|
+
<path
|
|
16
|
+
fill="#FC000B"
|
|
17
|
+
d="M6 16.501h15v2.5H7.5c-.82843 0-1.5-.6716-1.5-1.5v-1Z"
|
|
18
|
+
></path>
|
|
19
|
+
<g clip-path="url(#a)">
|
|
20
|
+
<path
|
|
21
|
+
fill="#FC000B"
|
|
22
|
+
fill-rule="evenodd"
|
|
23
|
+
d="M12.9795 13.539c-.2964.2013-.4926.5118-.5073.8656-.0192.4651.2808.8754.7279 1.0692-.1751.0475-.3606.0605-.5424.038-.0102-.0012-.0203-.0026-.0303-.0041.1708.061.3551.0896.5402.0837.0478-.0015.0955-.0053.1428-.0113l.1398.1875.1398-.1875c.0474.006.095.0098.1428.0113.1852.0059.3697-.0226.5405-.0837-.01.0015-.0201.0029-.0303.0041-.1818.0225-.3673.0095-.5424-.038.4472-.1938.7471-.6039.7279-1.0692-.0149-.3538-.2111-.6644-.5075-.8656.2098.2509.3094.5814.2477.9263-.0616.3449-.2726.6368-.5609.8259l.0373-1.6937c-.0831-.0194-.1462-.0686-.1949-.1205-.0484.0519-.1117.1011-.1948.1205l.0373 1.6938c-.2885-.1892-.4993-.4811-.561-.826-.0617-.345.0381-.6754.2478-.9263Zm.836-.3212c.0045.018.0067.0364.0067.0549 0 .1217-.0964.2204-.2154.2204-.0621 0-.1183-.027-.1574-.0701-.0393.0431-.0953.0701-.1574.0701-.1189 0-.2151-.0987-.2151-.2204-.0001-.0185.0022-.0369.0067-.0549.0111.089.0939.1581.1944.1581.074 0 .1384-.0374.1717-.0928.0331.0554.0976.0928.1714.0928.1004 0 .1832-.0691.1944-.1581Zm-1.2709 2.1219c-.1776-.0872-.3252-.2127-.4276-.3639-.1025-.1512-.1563-.3226-.1561-.4971 0-.4695.3819-.8629.8939-.9657-.3687.1685-.6276.5634-.6276 1.0237 0 .3156.1219.6007.3173.803h.0001Zm1.8113 0c.1777-.0872.3252-.2127.4276-.3639.1025-.1512.1563-.3226.1561-.4971 0-.4695-.3816-.8629-.8938-.9657.3686.1685.6275.5634.6275 1.0237 0 .3156-.1219.6007-.3173.803h-.0001Z"
|
|
24
|
+
clip-rule="evenodd"
|
|
25
|
+
></path>
|
|
26
|
+
</g>
|
|
27
|
+
<defs>
|
|
28
|
+
<clipPath id="a">
|
|
29
|
+
<path fill="#fff" d="M11.834 13.167h3.33333v2.5H11.834z"></path>
|
|
30
|
+
</clipPath>
|
|
31
|
+
</defs>
|
|
32
|
+
</svg>
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
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="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"
|
|
9
|
+
/>
|
|
10
|
+
</svg>
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { SearchSvgComponent } from './search-svg.component';
|
|
4
|
+
|
|
5
|
+
describe('SearchSvgComponent', () => {
|
|
6
|
+
let component: SearchSvgComponent;
|
|
7
|
+
let fixture: ComponentFixture<SearchSvgComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [SearchSvgComponent]
|
|
12
|
+
});
|
|
13
|
+
fixture = TestBed.createComponent(SearchSvgComponent);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1,182 @@
|
|
|
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
|
+
];
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
};
|