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
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "nira-falcon",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^16.1.0",
|
|
6
|
-
"@angular/core": "^16.1.0",
|
|
7
|
-
"jalali-moment": "^3.3.11"
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"tslib": "^2.3.0"
|
|
11
|
-
},
|
|
12
|
-
"sideEffects": false
|
|
13
|
-
|
|
14
|
-
"typings": "index.d.ts",
|
|
15
|
-
"exports": {
|
|
16
|
-
"./package.json": {
|
|
17
|
-
"default": "./package.json"
|
|
18
|
-
},
|
|
19
|
-
".": {
|
|
20
|
-
"types": "./index.d.ts",
|
|
21
|
-
"esm2022": "./esm2022/nira-falcon.mjs",
|
|
22
|
-
"esm": "./esm2022/nira-falcon.mjs",
|
|
23
|
-
"default": "./fesm2022/nira-falcon.mjs"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "nira-falcon",
|
|
3
|
+
"version": "0.1.23",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^16.1.0",
|
|
6
|
+
"@angular/core": "^16.1.0",
|
|
7
|
+
"jalali-moment": "^3.3.11"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"tslib": "^2.3.0"
|
|
11
|
+
},
|
|
12
|
+
"sideEffects": false
|
|
13
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<div class="dropdown">
|
|
2
|
+
<div
|
|
3
|
+
class="select"
|
|
4
|
+
[ngClass]="{ 'select-clicked': isOpenMenu }"
|
|
5
|
+
(click)="openMenuClick()"
|
|
6
|
+
>
|
|
7
|
+
<input
|
|
8
|
+
class="selected"
|
|
9
|
+
[placeholder]="label"
|
|
10
|
+
[(ngModel)]="value"
|
|
11
|
+
(ngModelChange)="onChanged($event)"
|
|
12
|
+
(focusout)="focusOut()"
|
|
13
|
+
/>
|
|
14
|
+
<span
|
|
15
|
+
class="material-symbols-outlined caret"
|
|
16
|
+
[ngClass]="{ 'caret-rotate': isOpenMenu }"
|
|
17
|
+
>
|
|
18
|
+
expand_more
|
|
19
|
+
</span>
|
|
20
|
+
</div>
|
|
21
|
+
<ul class="menu" [ngClass]="{ 'menu-open': isOpenMenu }">
|
|
22
|
+
<li
|
|
23
|
+
*ngFor="let item of _items"
|
|
24
|
+
[ngClass]="{ active: item == selectedItem }"
|
|
25
|
+
(click)="onItemSelect(item)"
|
|
26
|
+
>
|
|
27
|
+
{{ item.title }}
|
|
28
|
+
</li>
|
|
29
|
+
</ul>
|
|
30
|
+
</div>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@mixin userSelect {
|
|
2
|
+
-webkit-user-select: none;
|
|
3
|
+
-moz-user-select: none;
|
|
4
|
+
-ms-user-select: none;
|
|
5
|
+
user-select: none;
|
|
6
|
+
}
|
|
7
|
+
.dropdown {
|
|
8
|
+
min-width: 15em;
|
|
9
|
+
position: relative;
|
|
10
|
+
width: 100%;
|
|
11
|
+
min-width: 120px;
|
|
12
|
+
.select {
|
|
13
|
+
background: #fff;
|
|
14
|
+
color: #304050;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: row-reverse;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
align-items: center;
|
|
19
|
+
border: 2px solid #ced4da;
|
|
20
|
+
border-radius: 4px;
|
|
21
|
+
padding: 8px;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
transition: background 0.3s;
|
|
24
|
+
font-size: 13px;
|
|
25
|
+
@include userSelect();
|
|
26
|
+
&:hover {
|
|
27
|
+
background: #fbfbfb;
|
|
28
|
+
.selected {
|
|
29
|
+
background: #fbfbfb;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
.selected {
|
|
33
|
+
width: 100%;
|
|
34
|
+
font-size: 13px;
|
|
35
|
+
outline: none;
|
|
36
|
+
border: none;
|
|
37
|
+
@include userSelect();
|
|
38
|
+
}
|
|
39
|
+
.caret {
|
|
40
|
+
color: #595c5f;
|
|
41
|
+
@include userSelect();
|
|
42
|
+
}
|
|
43
|
+
.caret-rotate {
|
|
44
|
+
transform: rotate(180deg);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.select-clicked {
|
|
48
|
+
border: 2px #4f6883 solid;
|
|
49
|
+
box-shadow: 0 0 0.8em #888;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.menu {
|
|
53
|
+
list-style: none;
|
|
54
|
+
padding-inline: 0px;
|
|
55
|
+
background: #fff;
|
|
56
|
+
border: 1px #e3e8f1 solid;
|
|
57
|
+
box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.2);
|
|
58
|
+
border-radius: 0.5em;
|
|
59
|
+
color: #595c5f;
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: 42px;
|
|
62
|
+
left: 50%;
|
|
63
|
+
width: 100%;
|
|
64
|
+
transform: translateX(-50%);
|
|
65
|
+
opacity: 0;
|
|
66
|
+
display: none;
|
|
67
|
+
transition: 0, 2s;
|
|
68
|
+
z-index: 3;
|
|
69
|
+
li {
|
|
70
|
+
padding: 0.7em 0.5em;
|
|
71
|
+
margin: 0.3em 0;
|
|
72
|
+
margin-inline: 4px;
|
|
73
|
+
border-radius: 0.5em;
|
|
74
|
+
font-size: 14px;
|
|
75
|
+
text-align: start;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
&:hover {
|
|
78
|
+
background: #f6f6f6;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.active {
|
|
82
|
+
background: #ced4da;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.menu-open {
|
|
86
|
+
display: block;
|
|
87
|
+
opacity: 1;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectorRef,
|
|
3
|
+
Component,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
Input,
|
|
6
|
+
OnInit,
|
|
7
|
+
Output,
|
|
8
|
+
} from '@angular/core';
|
|
9
|
+
import { MenuItem } from '../falconTypes';
|
|
10
|
+
|
|
11
|
+
@Component({
|
|
12
|
+
selector: 'core-auto-complete',
|
|
13
|
+
templateUrl: './core-auto-complete.component.html',
|
|
14
|
+
styleUrls: ['./core-auto-complete.component.scss'],
|
|
15
|
+
})
|
|
16
|
+
export class CoreAutoCompleteComponent<T> implements OnInit {
|
|
17
|
+
selectedItem: MenuItem<T> = {} as MenuItem<T>;
|
|
18
|
+
titleKeyObject!: keyof string | number;
|
|
19
|
+
valueKeyObject!: keyof string | number;
|
|
20
|
+
filterItems: MenuItem<T>[] = [];
|
|
21
|
+
newItems: MenuItem<T>[] = [];
|
|
22
|
+
value!: T;
|
|
23
|
+
isOpenMenu = false;
|
|
24
|
+
|
|
25
|
+
get _items() {
|
|
26
|
+
return this.filterItems;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@Input() label = 'ddd';
|
|
30
|
+
@Input() titleKey!: string;
|
|
31
|
+
@Input() valueKey!: string;
|
|
32
|
+
@Input() items: any[] = [];
|
|
33
|
+
@Input() set defaultValue(value: T) {
|
|
34
|
+
this.value = value;
|
|
35
|
+
}
|
|
36
|
+
@Output() onChange = new EventEmitter<string>();
|
|
37
|
+
|
|
38
|
+
constructor(private cdr: ChangeDetectorRef) {}
|
|
39
|
+
|
|
40
|
+
ngOnInit(): void {
|
|
41
|
+
type ObjectKey = (typeof this.items)[0];
|
|
42
|
+
this.titleKeyObject = this.titleKey as ObjectKey;
|
|
43
|
+
this.valueKeyObject = this.valueKey as ObjectKey;
|
|
44
|
+
this.newItems = this.changeItemsType(this.items);
|
|
45
|
+
|
|
46
|
+
this.filterItems = this.newItems.filter(
|
|
47
|
+
(item: any) => !item.title.indexOf(this.value)
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
ngAfterViewInit(): void {
|
|
51
|
+
this.cdr.detectChanges();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
changeItemsType(items: any[]): MenuItem<T>[] {
|
|
55
|
+
return items.map((item) => {
|
|
56
|
+
return {
|
|
57
|
+
title: item[this.titleKeyObject],
|
|
58
|
+
value: item[this.valueKeyObject],
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
openMenuClick() {
|
|
64
|
+
this.isOpenMenu = !this.isOpenMenu;
|
|
65
|
+
this.filterItems = this.newItems.filter(
|
|
66
|
+
(item: any) => !item.title.indexOf(this.value)
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
onItemSelect(item: MenuItem<T> | undefined): void {
|
|
71
|
+
this.isOpenMenu = false;
|
|
72
|
+
if (!item) return;
|
|
73
|
+
this.selectedItem = item;
|
|
74
|
+
this.value = item.title;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
focusOut() {
|
|
78
|
+
if (!this.items || this.items.length == 0 || !this.selectedItem) return;
|
|
79
|
+
setTimeout(() => {
|
|
80
|
+
this.isOpenMenu = false;
|
|
81
|
+
if (!this.newItems.some((item: any) => item.title == this.value)) {
|
|
82
|
+
this.value = this.selectedItem.title;
|
|
83
|
+
}
|
|
84
|
+
}, 100);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
onChanged(value: any) {
|
|
88
|
+
this.filterItems = this.items.filter(
|
|
89
|
+
(item: any) => !item.title.indexOf(value)
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<button
|
|
2
|
+
(click)="clicked()"
|
|
3
|
+
[ngClass]="[
|
|
4
|
+
'button',
|
|
5
|
+
disable ? 'disabled' : '',
|
|
6
|
+
theme,
|
|
7
|
+
colorState,
|
|
8
|
+
color,
|
|
9
|
+
size,
|
|
10
|
+
loading ? 'cursorLoading' : ''
|
|
11
|
+
]"
|
|
12
|
+
[type]="buttonType"
|
|
13
|
+
>
|
|
14
|
+
<ng-content *ngIf="!loading"></ng-content>
|
|
15
|
+
<core-spinner
|
|
16
|
+
*ngIf="loading"
|
|
17
|
+
class="loading"
|
|
18
|
+
[colorState]="colorState"
|
|
19
|
+
[size]="20"
|
|
20
|
+
></core-spinner>
|
|
21
|
+
</button>
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.button {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 30px;
|
|
8
|
+
outline: none;
|
|
9
|
+
border: none;
|
|
10
|
+
text-align: center;
|
|
11
|
+
color: var(--default);
|
|
12
|
+
background-color: transparent;
|
|
13
|
+
box-shadow: 0 0 0 1px rgba(43, 45, 80, 0.1),
|
|
14
|
+
0 2px 5px 0 rgba(43, 45, 80, 0.08), 0 1px 1.5px 0 rgba(0, 0, 0, 0.07),
|
|
15
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.08);
|
|
16
|
+
line-height: 1.5;
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
display: inline-block;
|
|
20
|
+
margin-inline-start: auto;
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
vertical-align: middle;
|
|
23
|
+
user-select: none;
|
|
24
|
+
transition: 0.3s;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
&:hover {
|
|
27
|
+
box-shadow: 0 0 0 1px rgba(43, 45, 80, 0.1),
|
|
28
|
+
0 2px 5px 0 rgba(43, 45, 80, 0.1), 0 3px 9px 0 rgba(43, 45, 80, 0.08),
|
|
29
|
+
0 1px 1.5px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.08);
|
|
30
|
+
}
|
|
31
|
+
&.small {
|
|
32
|
+
height: 30px;
|
|
33
|
+
border-radius: 8px !important;
|
|
34
|
+
}
|
|
35
|
+
&.medium {
|
|
36
|
+
height: 38px;
|
|
37
|
+
}
|
|
38
|
+
&.round {
|
|
39
|
+
border: 2px solid #7b1fa2;
|
|
40
|
+
height: 44px;
|
|
41
|
+
border-radius: 30px;
|
|
42
|
+
background-color: #7b1fa2;
|
|
43
|
+
&:hover {
|
|
44
|
+
color: #fff;
|
|
45
|
+
background-color: #7b1fa2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:active {
|
|
49
|
+
color: #fff;
|
|
50
|
+
background-color: #7b1fa2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.disabled {
|
|
54
|
+
cursor: not-allowed;
|
|
55
|
+
opacity: 0.4;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
&.Orange {
|
|
59
|
+
background-color: #fc6a15;
|
|
60
|
+
color: #fff !important;
|
|
61
|
+
}
|
|
62
|
+
&.White {
|
|
63
|
+
background-color: #fff;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.success {
|
|
67
|
+
color: var(--success-button-color);
|
|
68
|
+
&:active {
|
|
69
|
+
background-color: var(--success-button-background-color);
|
|
70
|
+
box-shadow: none;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.warning {
|
|
75
|
+
color: var(--warning-button-color);
|
|
76
|
+
&:active {
|
|
77
|
+
background-color: var(--warning-button-background-color);
|
|
78
|
+
box-shadow: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.default {
|
|
83
|
+
color: var(--default-button-color);
|
|
84
|
+
&:active {
|
|
85
|
+
background-color: var(--default-button-background-color);
|
|
86
|
+
box-shadow: none;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.primary {
|
|
91
|
+
color: var(--primary-button-color);
|
|
92
|
+
&:active {
|
|
93
|
+
background-color: var(--primary-button-background-color);
|
|
94
|
+
box-shadow: none;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.danger {
|
|
99
|
+
color: var(--danger-button-color);
|
|
100
|
+
&:active {
|
|
101
|
+
background-color: var(--danger-button-background-color);
|
|
102
|
+
box-shadow: none;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&.square {
|
|
107
|
+
padding-inline: 16px;
|
|
108
|
+
border-radius: 0.25rem;
|
|
109
|
+
|
|
110
|
+
&.disabled {
|
|
111
|
+
cursor: not-allowed;
|
|
112
|
+
opacity: 0.4;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
.loading {
|
|
117
|
+
display: inline-block;
|
|
118
|
+
float: inline-end;
|
|
119
|
+
margin-inline-end: 8px;
|
|
120
|
+
}
|
|
121
|
+
.cursorLoading {
|
|
122
|
+
cursor: wait;
|
|
123
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<button
|
|
2
|
+
(click)="clicked()"
|
|
3
|
+
[ngClass]="[
|
|
4
|
+
'button',
|
|
5
|
+
disable ? 'disabled' : '',
|
|
6
|
+
theme,
|
|
7
|
+
colorState,
|
|
8
|
+
size,
|
|
9
|
+
loading ? 'cursorLoading' : ''
|
|
10
|
+
]"
|
|
11
|
+
[type]="buttonType"
|
|
12
|
+
>
|
|
13
|
+
<ng-content *ngIf="!loading"></ng-content>
|
|
14
|
+
<core-spinner
|
|
15
|
+
*ngIf="loading"
|
|
16
|
+
class="loading"
|
|
17
|
+
[colorState]="colorState"
|
|
18
|
+
[size]="20"
|
|
19
|
+
></core-spinner>
|
|
20
|
+
</button>
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.button {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 30px;
|
|
8
|
+
outline: none;
|
|
9
|
+
border: none;
|
|
10
|
+
text-align: center;
|
|
11
|
+
color: var(--default);
|
|
12
|
+
background-color: transparent;
|
|
13
|
+
box-shadow: 0 0 0 1px rgba(43, 45, 80, 0.1),
|
|
14
|
+
0 2px 5px 0 rgba(43, 45, 80, 0.08), 0 1px 1.5px 0 rgba(0, 0, 0, 0.07),
|
|
15
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.08);
|
|
16
|
+
line-height: 1.5;
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
display: inline-block;
|
|
20
|
+
margin-inline-start: auto;
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
vertical-align: middle;
|
|
23
|
+
user-select: none;
|
|
24
|
+
transition: 0.3s;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
&:hover {
|
|
27
|
+
box-shadow: 0 0 0 1px rgba(43, 45, 80, 0.1),
|
|
28
|
+
0 2px 5px 0 rgba(43, 45, 80, 0.1), 0 3px 9px 0 rgba(43, 45, 80, 0.08),
|
|
29
|
+
0 1px 1.5px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.08);
|
|
30
|
+
}
|
|
31
|
+
&.small {
|
|
32
|
+
height: 30px;
|
|
33
|
+
}
|
|
34
|
+
&.medium {
|
|
35
|
+
height: 38px;
|
|
36
|
+
}
|
|
37
|
+
&.round {
|
|
38
|
+
border: 2px solid #7b1fa2;
|
|
39
|
+
height: 44px;
|
|
40
|
+
border-radius: 30px;
|
|
41
|
+
background-color: #7b1fa2;
|
|
42
|
+
&:hover {
|
|
43
|
+
color: #fff;
|
|
44
|
+
background-color: #7b1fa2;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:active {
|
|
48
|
+
color: #fff;
|
|
49
|
+
background-color: #7b1fa2;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.disabled {
|
|
53
|
+
cursor: not-allowed;
|
|
54
|
+
opacity: 0.4;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.success {
|
|
59
|
+
color: var(--success-button-color);
|
|
60
|
+
&:active {
|
|
61
|
+
background-color: var(--success-button-background-color);
|
|
62
|
+
box-shadow: none;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.warning {
|
|
67
|
+
color: var(--warning-button-color);
|
|
68
|
+
&:active {
|
|
69
|
+
background-color: var(--warning-button-background-color);
|
|
70
|
+
box-shadow: none;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.default {
|
|
75
|
+
color: var(--default-button-color);
|
|
76
|
+
&:active {
|
|
77
|
+
background-color: var(--default-button-background-color);
|
|
78
|
+
box-shadow: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.primary {
|
|
83
|
+
color: var(--primary-button-color);
|
|
84
|
+
&:active {
|
|
85
|
+
background-color: var(--primary-button-background-color);
|
|
86
|
+
box-shadow: none;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.danger {
|
|
91
|
+
color: var(--danger-button-color);
|
|
92
|
+
&:active {
|
|
93
|
+
background-color: var(--danger-button-background-color);
|
|
94
|
+
box-shadow: none;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.square {
|
|
99
|
+
padding-inline: 16px;
|
|
100
|
+
border-radius: 0.25rem;
|
|
101
|
+
|
|
102
|
+
&.disabled {
|
|
103
|
+
cursor: not-allowed;
|
|
104
|
+
opacity: 0.4;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
.loading {
|
|
109
|
+
display: inline-block;
|
|
110
|
+
float: inline-end;
|
|
111
|
+
margin-inline-end: 8px;
|
|
112
|
+
}
|
|
113
|
+
.cursorLoading {
|
|
114
|
+
cursor: wait;
|
|
115
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { NiraModalService } from 'nira-modal';
|
|
3
|
+
import {
|
|
4
|
+
ButtonSize,
|
|
5
|
+
ButtonType,
|
|
6
|
+
Color,
|
|
7
|
+
ColorState,
|
|
8
|
+
ConfirmDialog,
|
|
9
|
+
ThemePalette,
|
|
10
|
+
} from '../falconTypes';
|
|
11
|
+
import { CoreConfirmDialogComponent } from '../core-confirm-dialog/core-confirm-dialog.component';
|
|
12
|
+
import { FormGroup } from '@angular/forms';
|
|
13
|
+
import { environment } from '../../environments/environment';
|
|
14
|
+
|
|
15
|
+
@Component({
|
|
16
|
+
selector: 'core-btn',
|
|
17
|
+
templateUrl: './core-btn' + environment.tempName,
|
|
18
|
+
styleUrls: ['./core-btn' + environment.styleName],
|
|
19
|
+
})
|
|
20
|
+
export class CoreBtnComponent {
|
|
21
|
+
disable = false;
|
|
22
|
+
@Input() formGroup: FormGroup | undefined = undefined;
|
|
23
|
+
@Input() loading: boolean = false;
|
|
24
|
+
@Input() theme: ThemePalette = 'square';
|
|
25
|
+
@Input() buttonType: ButtonType = 'button';
|
|
26
|
+
@Input() size: ButtonSize = 'small';
|
|
27
|
+
@Input() color: Color = 'White';
|
|
28
|
+
@Input() set isDisabled(value: boolean) {
|
|
29
|
+
this.disable = value;
|
|
30
|
+
}
|
|
31
|
+
@Input() colorState: ColorState = 'default';
|
|
32
|
+
@Output() btnClicked: EventEmitter<any> = new EventEmitter();
|
|
33
|
+
@Input() confirmDialog: ConfirmDialog | undefined;
|
|
34
|
+
constructor(private niraModalService: NiraModalService) {}
|
|
35
|
+
clicked() {
|
|
36
|
+
if (!this.disable) {
|
|
37
|
+
if (this.confirmDialog != undefined) {
|
|
38
|
+
const modal = this.niraModalService.open(CoreConfirmDialogComponent, {
|
|
39
|
+
data: this.confirmDialog,
|
|
40
|
+
});
|
|
41
|
+
modal.afterClosed.subscribe((result) => {
|
|
42
|
+
if (result === 'true') {
|
|
43
|
+
this.btnClicked.emit();
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
} else {
|
|
47
|
+
this.btnClicked.emit();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (this.formGroup) {
|
|
51
|
+
this.formGroup.markAllAsTouched();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'core-card',
|
|
5
|
+
templateUrl: './core-card.component.html',
|
|
6
|
+
styleUrls: ['./core-card.component.scss'],
|
|
7
|
+
})
|
|
8
|
+
export class CoreCardComponent {
|
|
9
|
+
@Input() cardClass = 'bg-white';
|
|
10
|
+
}
|