nira-falcon 0.1.22 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ng-package.json +7 -0
- package/package copy.json +13 -0
- package/package.json +13 -26
- package/src/assets/images/hub-dashboard-title-bg.png +0 -0
- package/src/assets/images/iran.png +0 -0
- package/src/environments/environment.ts +7 -0
- package/src/lib/core-auto-complete/core-auto-complete.component.html +30 -0
- package/src/lib/core-auto-complete/core-auto-complete.component.scss +89 -0
- package/src/lib/core-auto-complete/core-auto-complete.component.ts +92 -0
- package/src/lib/core-btn/core-btn-bluebird.component.html +21 -0
- package/src/lib/core-btn/core-btn-bluebird.component.scss +123 -0
- package/src/lib/core-btn/core-btn-falcon.component.html +20 -0
- package/src/lib/core-btn/core-btn-falcon.component.scss +115 -0
- package/src/lib/core-btn/core-btn.component.ts +54 -0
- package/src/lib/core-card/core-card.component.html +3 -0
- package/src/lib/core-card/core-card.component.scss +0 -0
- package/src/lib/core-card/core-card.component.ts +10 -0
- package/src/lib/core-checkbox/core-checkbox.component.html +9 -0
- package/src/lib/core-checkbox/core-checkbox.component.scss +60 -0
- package/src/lib/core-checkbox/core-checkbox.component.ts +19 -0
- package/src/lib/core-confirm-dialog/core-confirm-dialog.component.html +28 -0
- package/src/lib/core-confirm-dialog/core-confirm-dialog.component.scss +131 -0
- package/src/lib/core-confirm-dialog/core-confirm-dialog.component.ts +29 -0
- package/src/lib/core-date-picker/core-date-picker-bluebird.component.html +15 -0
- package/src/lib/core-date-picker/core-date-picker-bluebird.component.scss +0 -0
- package/src/lib/core-date-picker/core-date-picker-falcon.component.html +14 -0
- package/src/lib/core-date-picker/core-date-picker-falcon.component.scss +0 -0
- package/src/lib/core-date-picker/core-date-picker.component.ts +44 -0
- package/src/lib/core-input/core-input-bluebird.component.html +95 -0
- package/src/lib/core-input/core-input-bluebird.component.scss +152 -0
- package/src/lib/core-input/core-input-falcon.component.html +90 -0
- package/src/lib/core-input/core-input-falcon.component.scss +141 -0
- package/src/lib/core-input/core-input.component.ts +112 -0
- package/src/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.html +3 -0
- package/src/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.scss +15 -0
- package/src/lib/core-multi-select/core-multi-select-row/core-multi-select-row.component.ts +19 -0
- package/src/lib/core-multi-select/core-multi-select.component.html +41 -0
- package/src/lib/core-multi-select/core-multi-select.component.scss +119 -0
- package/src/lib/core-multi-select/core-multi-select.component.ts +139 -0
- package/src/lib/core-number/core-number.component.html +3 -0
- package/src/lib/core-number/core-number.component.scss +1 -0
- package/src/lib/core-number/core-number.component.ts +45 -0
- package/src/lib/core-page-title/core-page-title.component.html +14 -0
- package/src/lib/core-page-title/core-page-title.component.scss +16 -0
- package/src/lib/core-page-title/core-page-title.component.ts +11 -0
- package/src/lib/core-radio-buttons/core-radio-buttons.component.html +17 -0
- package/src/lib/core-radio-buttons/core-radio-buttons.component.scss +46 -0
- package/src/lib/core-radio-buttons/core-radio-buttons.component.spec.ts +21 -0
- package/src/lib/core-radio-buttons/core-radio-buttons.component.ts +64 -0
- package/src/lib/core-search-box/core-search-box.component.html +14 -0
- package/src/lib/core-search-box/core-search-box.component.scss +37 -0
- package/src/lib/core-search-box/core-search-box.component.ts +15 -0
- package/src/lib/core-select/core-select-bluebird.component.html +57 -0
- package/src/lib/core-select/core-select-bluebird.component.scss +129 -0
- package/src/lib/core-select/core-select-falcon.component.html +56 -0
- package/src/lib/core-select/core-select-falcon.component.scss +123 -0
- package/src/lib/core-select/core-select.component.spec.ts +21 -0
- package/src/lib/core-select/core-select.component.ts +93 -0
- package/src/lib/core-spinner/core-spinner.component.html +14 -0
- package/src/lib/core-spinner/core-spinner.component.scss +162 -0
- package/src/lib/core-spinner/core-spinner.component.ts +13 -0
- package/src/lib/core-switch/core-switch.component.html +13 -0
- package/src/lib/core-switch/core-switch.component.scss +58 -0
- package/src/lib/core-switch/core-switch.component.spec.ts +21 -0
- package/src/lib/core-switch/core-switch.component.ts +28 -0
- package/src/lib/core-table/core-column-date-picker/core-column-date-picker.component.html +21 -0
- package/src/lib/core-table/core-column-date-picker/core-column-date-picker.component.scss +3 -0
- package/src/lib/core-table/core-column-date-picker/core-column-date-picker.component.ts +55 -0
- package/src/lib/core-table/core-column-input/core-column-input.component.html +17 -0
- package/src/lib/core-table/core-column-input/core-column-input.component.scss +21 -0
- package/src/lib/core-table/core-column-input/core-column-input.component.ts +23 -0
- package/src/lib/core-table/core-column-selector/core-column-selector.component.html +47 -0
- package/src/lib/core-table/core-column-selector/core-column-selector.component.scss +113 -0
- package/src/lib/core-table/core-column-selector/core-column-selector.component.ts +94 -0
- package/src/lib/core-table/core-row-pelak/core-row-pelak.component.html +12 -0
- package/src/lib/core-table/core-row-pelak/core-row-pelak.component.scss +21 -0
- package/src/lib/core-table/core-row-pelak/core-row-pelak.component.ts +12 -0
- package/src/lib/core-table/core-table/core-table.component.html +168 -0
- package/src/lib/core-table/core-table/core-table.component.scss +65 -0
- package/src/lib/core-table/core-table/core-table.component.ts +179 -0
- package/src/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.html +10 -0
- package/src/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.scss +3 -0
- package/src/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.ts +24 -0
- package/src/lib/core-table/core-table-action-column/core-table-action-column.component.html +6 -0
- package/src/lib/core-table/core-table-action-column/core-table-action-column.component.scss +3 -0
- package/src/lib/core-table/core-table-action-column/core-table-action-column.component.ts +19 -0
- package/src/lib/core-table/core-table-card-manager/core-table-card-manager.component.html +94 -0
- package/src/lib/core-table/core-table-card-manager/core-table-card-manager.component.scss +0 -0
- package/src/lib/core-table/core-table-card-manager/core-table-card-manager.component.ts +58 -0
- package/src/lib/core-table/core-table-column-manager/core-table-column-manager.component.html +99 -0
- package/src/lib/core-table/core-table-column-manager/core-table-column-manager.component.scss +0 -0
- package/src/lib/core-table/core-table-column-manager/core-table-column-manager.component.ts +59 -0
- package/src/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.html +5 -0
- package/src/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.scss +8 -0
- package/src/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.ts +28 -0
- package/src/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.html +24 -0
- package/src/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.scss +10 -0
- package/src/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.ts +76 -0
- package/src/lib/core-table/core-table-no-content/core-table-no-content.component.html +6 -0
- package/src/lib/core-table/core-table-no-content/core-table-no-content.component.scss +7 -0
- package/src/lib/core-table/core-table-no-content/core-table-no-content.component.ts +14 -0
- package/src/lib/core-table/core-table-no-content/core-table-no-content.label.ts +14 -0
- package/src/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.html +5 -0
- package/src/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.scss +0 -0
- package/src/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.ts +60 -0
- package/src/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.html +3 -0
- package/src/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.scss +0 -0
- package/src/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.ts +24 -0
- package/src/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.html +3 -0
- package/src/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.scss +14 -0
- package/src/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.ts +14 -0
- package/src/lib/core-table/core-table-status-column/core-table-status-column.component.html +3 -0
- package/src/lib/core-table/core-table-status-column/core-table-status-column.component.scss +14 -0
- package/src/lib/core-table/core-table-status-column/core-table-status-column.component.ts +11 -0
- package/src/lib/core-textarea/core-textarea.component.html +18 -0
- package/src/lib/core-textarea/core-textarea.component.scss +62 -0
- package/src/lib/core-textarea/core-textarea.component.ts +31 -0
- package/src/lib/core-time-picker/core-time-picker.component.html +51 -0
- package/src/lib/core-time-picker/core-time-picker.component.scss +144 -0
- package/src/lib/core-time-picker/core-time-picker.component.ts +102 -0
- package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.html +50 -0
- package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.scss +424 -0
- package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.spec.ts +21 -0
- package/src/lib/core-time-picker/time-picker-modal/time-picker-modal.component.ts +172 -0
- package/src/lib/falcon-lib.module.ts +157 -0
- package/src/lib/falconTypes.ts +35 -0
- package/src/lib/pipes/digit-group.pipe.ts +10 -0
- package/src/lib/pipes/form-control.pipe.ts +11 -0
- package/src/lib/pipes/persian-digits.pipe.ts +33 -0
- package/src/lib/pipes/price-format.pipe.ts +20 -0
- package/src/lib/pipes/shamsi-date.pipe.ts +24 -0
- package/src/lib/pipes/time-format.pipe.ts +21 -0
- package/src/lib/pipes/weight.pipe.ts +10 -0
- package/src/lib/wordify.ts +116 -0
- package/{public-api.d.ts → src/public-api.ts} +31 -27
- package/src/svg-icon/arrow-down-icon/arrow-down-icon.component.html +8 -0
- package/src/svg-icon/arrow-down-icon/arrow-down-icon.component.scss +0 -0
- package/src/svg-icon/arrow-down-icon/arrow-down-icon.component.ts +8 -0
- package/src/svg-icon/calendar-icon/calendar-icon.component.html +10 -0
- package/src/svg-icon/calendar-icon/calendar-icon.component.scss +0 -0
- package/src/svg-icon/calendar-icon/calendar-icon.component.ts +8 -0
- package/src/svg-icon/caret-up-icon/caret-up-icon.component.html +16 -0
- package/src/svg-icon/caret-up-icon/caret-up-icon.component.scss +0 -0
- package/src/svg-icon/caret-up-icon/caret-up-icon.component.ts +10 -0
- package/src/svg-icon/close-icon/close-icon.component.html +10 -0
- package/src/svg-icon/close-icon/close-icon.component.scss +0 -0
- package/src/svg-icon/close-icon/close-icon.component.ts +8 -0
- package/src/svg-icon/edit-square-icon/edit-square-icon.component.html +10 -0
- package/src/svg-icon/edit-square-icon/edit-square-icon.component.scss +0 -0
- package/src/svg-icon/edit-square-icon/edit-square-icon.component.ts +8 -0
- package/src/svg-icon/pelak-icon/pelak-icon.component.html +32 -0
- package/src/svg-icon/pelak-icon/pelak-icon.component.scss +0 -0
- package/src/svg-icon/pelak-icon/pelak-icon.component.ts +8 -0
- package/src/svg-icon/search-icon/search-icon.component.html +10 -0
- package/src/svg-icon/search-icon/search-icon.component.scss +0 -0
- package/src/svg-icon/search-icon/search-icon.component.spec.ts +21 -0
- package/src/svg-icon/search-icon/search-icon.component.ts +8 -0
- package/src/svg-icon/sort-down-icon/sort-down-icon.component.html +5 -0
- package/src/svg-icon/sort-down-icon/sort-down-icon.component.scss +0 -0
- package/src/svg-icon/sort-down-icon/sort-down-icon.component.ts +10 -0
- package/src/svg-icon/sort-solid-icon/sort-solid-icon.component.html +5 -0
- package/src/svg-icon/sort-solid-icon/sort-solid-icon.component.scss +0 -0
- package/src/svg-icon/sort-solid-icon/sort-solid-icon.component.ts +8 -0
- package/src/svg-icon/sort-up-icon/sort-up-icon.component.html +5 -0
- package/src/svg-icon/sort-up-icon/sort-up-icon.component.scss +0 -0
- package/src/svg-icon/sort-up-icon/sort-up-icon.component.ts +8 -0
- package/src/svg-icon/time-icon/time-icon.component.html +10 -0
- package/src/svg-icon/time-icon/time-icon.component.scss +0 -0
- package/src/svg-icon/time-icon/time-icon.component.ts +8 -0
- package/src/svg-icon/warning-icon/warning-icon.component.html +10 -0
- package/src/svg-icon/warning-icon/warning-icon.component.scss +0 -0
- package/src/svg-icon/warning-icon/warning-icon.component.ts +10 -0
- package/src/utils/constants.ts +182 -0
- package/src/utils/directives/detail-viewer-manager.directive.ts +78 -0
- package/src/utils/directives/filterTableDirective.ts +36 -0
- package/src/utils/directives/table-detail-viewer-manager.directive.ts +57 -0
- package/src/utils/interfaces.ts +0 -0
- package/src/utils/jsonparser.ts +49 -0
- package/src/utils/links.ts +67 -0
- package/src/utils/toast.ts +35 -0
- package/src/utils/types.ts +20 -0
- package/src/utils/util.ts +32 -0
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/environments/environment.d.ts +0 -4
- package/esm2022/environments/environment.mjs +0 -7
- package/esm2022/lib/core-auto-complete/core-auto-complete.component.mjs +0 -82
- package/esm2022/lib/core-btn/core-btn.component.mjs +0 -68
- package/esm2022/lib/core-card/core-card.component.mjs +0 -16
- package/esm2022/lib/core-checkbox/core-checkbox.component.mjs +0 -33
- package/esm2022/lib/core-confirm-dialog/core-confirm-dialog.component.mjs +0 -31
- package/esm2022/lib/core-date-picker/core-date-picker.component.mjs +0 -46
- package/esm2022/lib/core-input/core-input.component.mjs +0 -132
- package/esm2022/lib/core-mulite-select/core-mulite-select-row/core-mulite-select-row.component.mjs +0 -29
- package/esm2022/lib/core-mulite-select/core-mulite-select.component.mjs +0 -130
- package/esm2022/lib/core-number/core-number.component.mjs +0 -64
- package/esm2022/lib/core-page-title/core-page-title.component.mjs +0 -19
- package/esm2022/lib/core-radio-buttons/core-radio-buttons.component.mjs +0 -75
- package/esm2022/lib/core-search-box/core-search-box.component.mjs +0 -25
- package/esm2022/lib/core-select/core-select.component.mjs +0 -91
- package/esm2022/lib/core-spinner/core-spinner.component.mjs +0 -23
- package/esm2022/lib/core-switch/core-switch.component.mjs +0 -33
- package/esm2022/lib/core-table/core-column-date-picker/core-column-date-picker.component.mjs +0 -62
- package/esm2022/lib/core-table/core-column-input/core-column-input.component.mjs +0 -37
- package/esm2022/lib/core-table/core-column-selector/core-column-selector.component.mjs +0 -99
- package/esm2022/lib/core-table/core-row-pelak/core-row-pelak.component.mjs +0 -21
- package/esm2022/lib/core-table/core-table/core-table.component.mjs +0 -182
- package/esm2022/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.mjs +0 -34
- package/esm2022/lib/core-table/core-table-action-column/core-table-action-column.component.mjs +0 -27
- package/esm2022/lib/core-table/core-table-card-manager/core-table-card-manager.component.mjs +0 -83
- package/esm2022/lib/core-table/core-table-column-manager/core-table-column-manager.component.mjs +0 -85
- package/esm2022/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.mjs +0 -29
- package/esm2022/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.mjs +0 -82
- package/esm2022/lib/core-table/core-table-no-content/core-table-no-content.component.mjs +0 -23
- package/esm2022/lib/core-table/core-table-no-content/core-table-no-content.label.mjs +0 -9
- package/esm2022/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.mjs +0 -68
- package/esm2022/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.mjs +0 -34
- package/esm2022/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.mjs +0 -20
- package/esm2022/lib/core-table/core-table-status-column/core-table-status-column.component.mjs +0 -18
- package/esm2022/lib/core-textarea/core-textarea.component.mjs +0 -47
- package/esm2022/lib/core-time-picker/core-time-picker.component.mjs +0 -118
- package/esm2022/lib/core-time-picker/time-picker-modal/time-picker-modal.component.mjs +0 -147
- package/esm2022/lib/falcon-lib.module.mjs +0 -246
- package/esm2022/lib/falconTypes.mjs +0 -9
- package/esm2022/lib/pipes/digit-group.pipe.mjs +0 -16
- package/esm2022/lib/pipes/form-control.pipe.mjs +0 -16
- package/esm2022/lib/pipes/persian-digits.pipe.mjs +0 -40
- package/esm2022/lib/pipes/price-format.pipe.mjs +0 -23
- package/esm2022/lib/pipes/shamsi-date.pipe.mjs +0 -24
- package/esm2022/lib/pipes/time-format.pipe.mjs +0 -28
- package/esm2022/lib/pipes/weight.pipe.mjs +0 -16
- package/esm2022/lib/wordify.mjs +0 -109
- package/esm2022/nira-falcon.mjs +0 -5
- package/esm2022/public-api.mjs +0 -31
- package/esm2022/svg-icon/caret-up-icon/caret-up-icon.component.mjs +0 -11
- package/esm2022/svg-icon/close-icon/close-icon.component.mjs +0 -11
- package/esm2022/svg-icon/edit-square-icon/edit-square-icon.component.mjs +0 -11
- package/esm2022/svg-icon/pelak-icon/pelak-icon.component.mjs +0 -11
- package/esm2022/svg-icon/search-icon/search-icon.component.mjs +0 -11
- package/esm2022/svg-icon/sort-down-icon/sort-down-icon.component.mjs +0 -11
- package/esm2022/svg-icon/sort-solid-icon/sort-solid-icon.component.mjs +0 -11
- package/esm2022/svg-icon/sort-up-icon/sort-up-icon.component.mjs +0 -11
- package/esm2022/svg-icon/time-icon/time-icon.component.mjs +0 -11
- package/esm2022/svg-icon/warning-icon/warning-icon.component.mjs +0 -11
- package/esm2022/utils/constants.mjs +0 -184
- package/esm2022/utils/directives/detail-viewer-manager.directive.mjs +0 -71
- package/esm2022/utils/directives/table-detail-viewer-manager.directive.mjs +0 -49
- package/esm2022/utils/util.mjs +0 -26
- package/fesm2022/nira-falcon.mjs +0 -2831
- package/fesm2022/nira-falcon.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/core-auto-complete/core-auto-complete.component.d.ts +0 -30
- package/lib/core-btn/core-btn.component.d.ts +0 -22
- package/lib/core-card/core-card.component.d.ts +0 -6
- package/lib/core-checkbox/core-checkbox.component.d.ts +0 -13
- package/lib/core-confirm-dialog/core-confirm-dialog.component.d.ts +0 -14
- package/lib/core-date-picker/core-date-picker.component.d.ts +0 -20
- package/lib/core-input/core-input.component.d.ts +0 -28
- package/lib/core-mulite-select/core-mulite-select-row/core-mulite-select-row.component.d.ts +0 -11
- package/lib/core-mulite-select/core-mulite-select.component.d.ts +0 -42
- package/lib/core-number/core-number.component.d.ts +0 -12
- package/lib/core-page-title/core-page-title.component.d.ts +0 -7
- package/lib/core-radio-buttons/core-radio-buttons.component.d.ts +0 -29
- package/lib/core-search-box/core-search-box.component.d.ts +0 -10
- package/lib/core-select/core-select.component.d.ts +0 -36
- package/lib/core-spinner/core-spinner.component.d.ts +0 -9
- package/lib/core-switch/core-switch.component.d.ts +0 -17
- package/lib/core-table/core-column-date-picker/core-column-date-picker.component.d.ts +0 -21
- package/lib/core-table/core-column-input/core-column-input.component.d.ts +0 -15
- package/lib/core-table/core-column-selector/core-column-selector.component.d.ts +0 -35
- package/lib/core-table/core-row-pelak/core-row-pelak.component.d.ts +0 -8
- package/lib/core-table/core-table/core-table.component.d.ts +0 -42
- package/lib/core-table/core-table-action-buttons-column/core-table-action-buttons-column.component.d.ts +0 -11
- package/lib/core-table/core-table-action-column/core-table-action-column.component.d.ts +0 -11
- package/lib/core-table/core-table-card-manager/core-table-card-manager.component.d.ts +0 -24
- package/lib/core-table/core-table-column-manager/core-table-column-manager.component.d.ts +0 -24
- package/lib/core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component.d.ts +0 -11
- package/lib/core-table/core-table-filter-dialog/core-table-filter-dialog/core-table-filter-dialog.component.d.ts +0 -22
- package/lib/core-table/core-table-no-content/core-table-no-content.component.d.ts +0 -9
- package/lib/core-table/core-table-no-content/core-table-no-content.label.d.ts +0 -5
- package/lib/core-table/core-table-row-selector-column/core-table-row-selector-column.component.d.ts +0 -14
- package/lib/core-table/core-table-shamsi-date/core-table-shamsi-date.component.d.ts +0 -13
- package/lib/core-table/core-table-status-active-column/core-table-status-active-column.component.d.ts +0 -8
- package/lib/core-table/core-table-status-column/core-table-status-column.component.d.ts +0 -7
- package/lib/core-textarea/core-textarea.component.d.ts +0 -13
- package/lib/core-time-picker/core-time-picker.component.d.ts +0 -26
- package/lib/core-time-picker/time-picker-modal/time-picker-modal.component.d.ts +0 -35
- package/lib/falcon-lib.module.d.ts +0 -64
- package/lib/falconTypes.d.ts +0 -23
- package/lib/pipes/digit-group.pipe.d.ts +0 -7
- package/lib/pipes/form-control.pipe.d.ts +0 -8
- package/lib/pipes/persian-digits.pipe.d.ts +0 -7
- package/lib/pipes/price-format.pipe.d.ts +0 -7
- package/lib/pipes/shamsi-date.pipe.d.ts +0 -9
- package/lib/pipes/time-format.pipe.d.ts +0 -7
- package/lib/pipes/weight.pipe.d.ts +0 -7
- package/lib/wordify.d.ts +0 -2
- package/svg-icon/caret-up-icon/caret-up-icon.component.d.ts +0 -5
- package/svg-icon/close-icon/close-icon.component.d.ts +0 -5
- package/svg-icon/edit-square-icon/edit-square-icon.component.d.ts +0 -5
- package/svg-icon/pelak-icon/pelak-icon.component.d.ts +0 -5
- package/svg-icon/search-icon/search-icon.component.d.ts +0 -5
- package/svg-icon/sort-down-icon/sort-down-icon.component.d.ts +0 -5
- package/svg-icon/sort-solid-icon/sort-solid-icon.component.d.ts +0 -5
- package/svg-icon/sort-up-icon/sort-up-icon.component.d.ts +0 -5
- package/svg-icon/time-icon/time-icon.component.d.ts +0 -5
- package/svg-icon/warning-icon/warning-icon.component.d.ts +0 -5
- package/utils/constants.d.ts +0 -70
- package/utils/directives/detail-viewer-manager.directive.d.ts +0 -18
- package/utils/directives/table-detail-viewer-manager.directive.d.ts +0 -16
- package/utils/util.d.ts +0 -11
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<div *ngIf="type === 'circle'" class="spinner" [ngClass]="[colorState]">
|
|
2
|
+
<svg
|
|
3
|
+
viewBox="25 25 50 50"
|
|
4
|
+
[ngStyle]="{ width: size + 'px', height: size + 'px' }"
|
|
5
|
+
>
|
|
6
|
+
<circle cx="50" cy="50" r="20" fill="none" class="path"></circle>
|
|
7
|
+
</svg>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<div
|
|
11
|
+
*ngIf="type === 'line'"
|
|
12
|
+
class="line-progress-bar"
|
|
13
|
+
[ngClass]="[colorState]"
|
|
14
|
+
></div>
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
*,
|
|
2
|
+
:after,
|
|
3
|
+
:before {
|
|
4
|
+
-webkit-box-sizing: border-box;
|
|
5
|
+
-moz-box-sizing: border-box;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.spinner {
|
|
10
|
+
&.success {
|
|
11
|
+
stroke: var(--success-button-color);
|
|
12
|
+
}
|
|
13
|
+
&.warning {
|
|
14
|
+
stroke: var(--warning-button-color);
|
|
15
|
+
}
|
|
16
|
+
&.default {
|
|
17
|
+
stroke: var(--default-button-color);
|
|
18
|
+
}
|
|
19
|
+
&.primary {
|
|
20
|
+
stroke: var(--primary-button-color);
|
|
21
|
+
}
|
|
22
|
+
&.danger {
|
|
23
|
+
stroke: var(--danger-button-color);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.spinner svg {
|
|
27
|
+
-webkit-animation: loading-rotate 2s linear infinite;
|
|
28
|
+
-moz-animation: loading-rotate 2s linear infinite;
|
|
29
|
+
-o-animation: loading-rotate 2s linear infinite;
|
|
30
|
+
animation: loading-rotate 2s linear infinite;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.spinner .path {
|
|
34
|
+
stroke-dasharray: 90, 150;
|
|
35
|
+
stroke-dashoffset: 0;
|
|
36
|
+
stroke-width: 4;
|
|
37
|
+
stroke-linecap: round;
|
|
38
|
+
-webkit-animation: loading-dash 1.5s ease-in-out infinite;
|
|
39
|
+
-moz-animation: loading-dash 1.5s ease-in-out infinite;
|
|
40
|
+
-o-animation: loading-dash 1.5s ease-in-out infinite;
|
|
41
|
+
animation: loading-dash 1.5s ease-in-out infinite;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@-webkit-keyframes loading-rotate {
|
|
45
|
+
to {
|
|
46
|
+
-webkit-transform: rotate(1turn);
|
|
47
|
+
transform: rotate(1turn);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@-moz-keyframes loading-rotate {
|
|
52
|
+
to {
|
|
53
|
+
-moz-transform: rotate(1turn);
|
|
54
|
+
transform: rotate(1turn);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@-o-keyframes loading-rotate {
|
|
59
|
+
to {
|
|
60
|
+
-o-transform: rotate(1turn);
|
|
61
|
+
transform: rotate(1turn);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@keyframes loading-rotate {
|
|
66
|
+
to {
|
|
67
|
+
-webkit-transform: rotate(1turn);
|
|
68
|
+
-moz-transform: rotate(1turn);
|
|
69
|
+
-o-transform: rotate(1turn);
|
|
70
|
+
transform: rotate(1turn);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@-webkit-keyframes loading-dash {
|
|
75
|
+
0% {
|
|
76
|
+
stroke-dasharray: 1, 200;
|
|
77
|
+
stroke-dashoffset: 0;
|
|
78
|
+
}
|
|
79
|
+
50% {
|
|
80
|
+
stroke-dasharray: 90, 150;
|
|
81
|
+
stroke-dashoffset: -40px;
|
|
82
|
+
}
|
|
83
|
+
to {
|
|
84
|
+
stroke-dasharray: 90, 150;
|
|
85
|
+
stroke-dashoffset: -120px;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@-moz-keyframes loading-dash {
|
|
90
|
+
0% {
|
|
91
|
+
stroke-dasharray: 1, 200;
|
|
92
|
+
stroke-dashoffset: 0;
|
|
93
|
+
}
|
|
94
|
+
50% {
|
|
95
|
+
stroke-dasharray: 90, 150;
|
|
96
|
+
stroke-dashoffset: -40px;
|
|
97
|
+
}
|
|
98
|
+
to {
|
|
99
|
+
stroke-dasharray: 90, 150;
|
|
100
|
+
stroke-dashoffset: -120px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@-o-keyframes loading-dash {
|
|
105
|
+
0% {
|
|
106
|
+
stroke-dasharray: 1, 200;
|
|
107
|
+
stroke-dashoffset: 0;
|
|
108
|
+
}
|
|
109
|
+
50% {
|
|
110
|
+
stroke-dasharray: 90, 150;
|
|
111
|
+
stroke-dashoffset: -40px;
|
|
112
|
+
}
|
|
113
|
+
to {
|
|
114
|
+
stroke-dasharray: 90, 150;
|
|
115
|
+
stroke-dashoffset: -120px;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@keyframes loading-dash {
|
|
120
|
+
0% {
|
|
121
|
+
stroke-dasharray: 1, 200;
|
|
122
|
+
stroke-dashoffset: 0;
|
|
123
|
+
}
|
|
124
|
+
50% {
|
|
125
|
+
stroke-dasharray: 90, 150;
|
|
126
|
+
stroke-dashoffset: -40px;
|
|
127
|
+
}
|
|
128
|
+
to {
|
|
129
|
+
stroke-dasharray: 90, 150;
|
|
130
|
+
stroke-dashoffset: -120px;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.line-progress-bar {
|
|
135
|
+
height: 3px;
|
|
136
|
+
background: rgba(0, 0, 0, 0.1);
|
|
137
|
+
border-radius: 20px;
|
|
138
|
+
position: relative;
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
}
|
|
141
|
+
.line-progress-bar::after {
|
|
142
|
+
content: "";
|
|
143
|
+
display: block;
|
|
144
|
+
position: absolute;
|
|
145
|
+
top: 0;
|
|
146
|
+
left: 0;
|
|
147
|
+
width: 0%;
|
|
148
|
+
height: 100%;
|
|
149
|
+
animation: grow 1.5s ease-in-out infinite;
|
|
150
|
+
background: var(--primary-button-color);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@keyframes grow {
|
|
154
|
+
50% {
|
|
155
|
+
width: 100%;
|
|
156
|
+
}
|
|
157
|
+
100% {
|
|
158
|
+
width: 0;
|
|
159
|
+
right: 0;
|
|
160
|
+
left: unset;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { ColorState } from '../falconTypes';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'core-spinner',
|
|
6
|
+
templateUrl: './core-spinner.component.html',
|
|
7
|
+
styleUrls: ['./core-spinner.component.scss'],
|
|
8
|
+
})
|
|
9
|
+
export class CoreSpinnerComponent {
|
|
10
|
+
@Input() size: number = 24;
|
|
11
|
+
@Input() colorState: ColorState = 'default';
|
|
12
|
+
@Input() type: 'circle' | 'line' = 'circle';
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<div class="switch-container" (click)="change()">
|
|
2
|
+
<input
|
|
3
|
+
type="checkbox"
|
|
4
|
+
class="switch"
|
|
5
|
+
[checked]="toggle === icon.iconActive"
|
|
6
|
+
/>
|
|
7
|
+
<div class="switch-color">
|
|
8
|
+
<span>{{ label }} </span>
|
|
9
|
+
</div>
|
|
10
|
+
<label for="switch" class="label"
|
|
11
|
+
><span class="material-symbols-outlined">{{ toggle }} </span>
|
|
12
|
+
</label>
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@mixin userSelect {
|
|
2
|
+
-webkit-user-select: none;
|
|
3
|
+
-moz-user-select: none;
|
|
4
|
+
-ms-user-select: none;
|
|
5
|
+
user-select: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.switch-container {
|
|
9
|
+
min-width: 55px;
|
|
10
|
+
max-width: 118px;
|
|
11
|
+
height: 30px;
|
|
12
|
+
border-radius: 10em;
|
|
13
|
+
border: 1px solid var(--default-switch-border-color);
|
|
14
|
+
position: relative;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
text-align: end;
|
|
17
|
+
.switch {
|
|
18
|
+
display: none;
|
|
19
|
+
&:checked {
|
|
20
|
+
& ~ .label {
|
|
21
|
+
transform: translatex(87px) rotatez(360deg);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
~ .label {
|
|
25
|
+
transition: all 1s cubic-bezier(0.34, 1.36, 0.2, 1);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.switch-color {
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 30px;
|
|
32
|
+
background: var(--default-switch-background-color);
|
|
33
|
+
border-radius: 10em;
|
|
34
|
+
z-index: 0;
|
|
35
|
+
position: absolute;
|
|
36
|
+
transition: all 500ms cubic-bezier(0.34, 1.36, 0.2, 1);
|
|
37
|
+
}
|
|
38
|
+
.label {
|
|
39
|
+
width: 25px;
|
|
40
|
+
height: 25px;
|
|
41
|
+
text-align: center;
|
|
42
|
+
border-radius: 10em;
|
|
43
|
+
background: var(--default-switch-background-label-color);
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 2px;
|
|
46
|
+
left: 3px;
|
|
47
|
+
box-shadow: 2px 2px 10px 2px var(--default-switch-box-shadow-color);
|
|
48
|
+
z-index: 2;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
@include userSelect();
|
|
51
|
+
span {
|
|
52
|
+
font-size: 20px;
|
|
53
|
+
padding-block-start: 3px;
|
|
54
|
+
padding-inline-start: 1px;
|
|
55
|
+
color: var(--default-switch-text-color);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { CoreSwitchComponent } from './core-switch.component';
|
|
4
|
+
|
|
5
|
+
describe('CoreSwitchComponent', () => {
|
|
6
|
+
let component: CoreSwitchComponent;
|
|
7
|
+
let fixture: ComponentFixture<CoreSwitchComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [CoreSwitchComponent]
|
|
12
|
+
});
|
|
13
|
+
fixture = TestBed.createComponent(CoreSwitchComponent);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
interface ISwitch {
|
|
3
|
+
iconActive: string;
|
|
4
|
+
iconInactive: string;
|
|
5
|
+
}
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'core-switch',
|
|
8
|
+
templateUrl: './core-switch.component.html',
|
|
9
|
+
styleUrls: ['./core-switch.component.scss'],
|
|
10
|
+
})
|
|
11
|
+
export class CoreSwitchComponent {
|
|
12
|
+
toggle!: string;
|
|
13
|
+
|
|
14
|
+
@Output() value = new EventEmitter<string>();
|
|
15
|
+
@Input() icon!: ISwitch;
|
|
16
|
+
@Input() label = '';
|
|
17
|
+
@Input() set defaultValue(value: string) {
|
|
18
|
+
this.toggle = value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
change() {
|
|
22
|
+
if (this.toggle === this.icon.iconActive)
|
|
23
|
+
this.toggle = this.icon.iconInactive;
|
|
24
|
+
else this.toggle = this.icon.iconActive;
|
|
25
|
+
|
|
26
|
+
this.value.emit(this.toggle);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<div class="relative">
|
|
2
|
+
<core-column-input
|
|
3
|
+
(click)="isOpenCalendar = true"
|
|
4
|
+
[value]="date"
|
|
5
|
+
[isDatePicker]="true"
|
|
6
|
+
[showRemoveIcon]="false"
|
|
7
|
+
>
|
|
8
|
+
</core-column-input>
|
|
9
|
+
<close-icon
|
|
10
|
+
*ngIf="date"
|
|
11
|
+
(click)="clearedText()"
|
|
12
|
+
class="absolute w-4 top-2 left-11 close-icon"
|
|
13
|
+
></close-icon>
|
|
14
|
+
</div>
|
|
15
|
+
<lib-nira-date-picker
|
|
16
|
+
[(isOpenCalendar)]="isOpenCalendar"
|
|
17
|
+
[defaultDate]="date ? date : defaultDate"
|
|
18
|
+
(datePickerResult)="onDatePickerResult($event)"
|
|
19
|
+
[selectToday]="canSelectToday"
|
|
20
|
+
>
|
|
21
|
+
</lib-nira-date-picker>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectorRef,
|
|
3
|
+
Component,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
Input,
|
|
6
|
+
Output,
|
|
7
|
+
} from '@angular/core';
|
|
8
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'core-column-date-picker',
|
|
12
|
+
templateUrl: './core-column-date-picker.component.html',
|
|
13
|
+
styleUrls: ['./core-column-date-picker.component.scss'],
|
|
14
|
+
})
|
|
15
|
+
export class CoreColumnDatePickerComponent {
|
|
16
|
+
@Input() canSelectToday: boolean = false;
|
|
17
|
+
@Input() defaultDate: string = '';
|
|
18
|
+
@Input() inputFormControl: FormControl = new FormControl('', []);
|
|
19
|
+
|
|
20
|
+
@Output() onChange: EventEmitter<any> = new EventEmitter();
|
|
21
|
+
niraDatePickerForm: FormGroup = {} as FormGroup;
|
|
22
|
+
isOpenCalendar: boolean = false;
|
|
23
|
+
date: string = '';
|
|
24
|
+
constructor(private changeDetectorRef: ChangeDetectorRef) {}
|
|
25
|
+
ngOnInit(): void {
|
|
26
|
+
this.niraDatePickerForm = new FormGroup({
|
|
27
|
+
niraDatePickerFormCtrl: this.inputFormControl,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
ngAfterViewInit(): void {
|
|
32
|
+
this.changeDetectorRef.detectChanges();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
clearedText() {
|
|
36
|
+
this.niraDatePickerForm.setValue({
|
|
37
|
+
niraDatePickerFormCtrl: '',
|
|
38
|
+
});
|
|
39
|
+
this.date = '';
|
|
40
|
+
this.onChange.emit(undefined);
|
|
41
|
+
}
|
|
42
|
+
onDatePickerResult(result: string) {
|
|
43
|
+
this.niraDatePickerForm.setValue({
|
|
44
|
+
niraDatePickerFormCtrl: result,
|
|
45
|
+
});
|
|
46
|
+
this.date = result;
|
|
47
|
+
this.onChange.emit(result);
|
|
48
|
+
}
|
|
49
|
+
onTodayDate(todayDate: string) {
|
|
50
|
+
this.date = todayDate;
|
|
51
|
+
this.niraDatePickerForm.setValue({
|
|
52
|
+
niraDatePickerFormCtrl: todayDate,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<div class="search-box flex focus:bg-slate-600">
|
|
2
|
+
<input
|
|
3
|
+
[type]="showRemoveIcon ? 'search' : 'text'"
|
|
4
|
+
placeholder="{{ placeholder }}"
|
|
5
|
+
[(ngModel)]="value"
|
|
6
|
+
(ngModelChange)="change($event)"
|
|
7
|
+
class="box-border"
|
|
8
|
+
/>
|
|
9
|
+
<search-icon
|
|
10
|
+
*ngIf="!isDatePicker"
|
|
11
|
+
class="absolute top-1 w-5 right-1 fill-gray-500"
|
|
12
|
+
></search-icon>
|
|
13
|
+
<calendar-icon
|
|
14
|
+
*ngIf="isDatePicker"
|
|
15
|
+
class="absolute top-1 w-5 right-1 fill-gray-500"
|
|
16
|
+
></calendar-icon>
|
|
17
|
+
</div>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.search-box {
|
|
2
|
+
width: 100%;
|
|
3
|
+
position: relative;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
background: transparent;
|
|
6
|
+
|
|
7
|
+
input {
|
|
8
|
+
width: 100%;
|
|
9
|
+
color: var(--default-table-column-input-text-color);
|
|
10
|
+
outline: 0;
|
|
11
|
+
background: transparent;
|
|
12
|
+
border-bottom: 1px solid var(--default-table-column-input-border-color);
|
|
13
|
+
font-size: 0.875rem;
|
|
14
|
+
padding-block: 5px;
|
|
15
|
+
padding-right: 30px;
|
|
16
|
+
padding-left: 6px;
|
|
17
|
+
&:focus {
|
|
18
|
+
border-bottom: 1px solid #96bdf2;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { InputType } from '../../falconTypes';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'core-column-input',
|
|
6
|
+
templateUrl: './core-column-input.component.html',
|
|
7
|
+
styleUrls: ['./core-column-input.component.scss'],
|
|
8
|
+
})
|
|
9
|
+
export class CoreColumnInputComponent {
|
|
10
|
+
inputType!: InputType;
|
|
11
|
+
@Input() showRemoveIcon: boolean = true;
|
|
12
|
+
@Input() placeholder = '';
|
|
13
|
+
@Output() onChange: EventEmitter<string> = new EventEmitter();
|
|
14
|
+
@Input() value: string = '';
|
|
15
|
+
@Input() set type(value: InputType) {
|
|
16
|
+
this.inputType = value;
|
|
17
|
+
}
|
|
18
|
+
@Input() isDatePicker: boolean = false;
|
|
19
|
+
@Input() maxLength = 2000;
|
|
20
|
+
change(event: any) {
|
|
21
|
+
this.onChange.emit(event);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<div tabindex="-1" class="dropdown" (focusout)="focusOut()">
|
|
2
|
+
<close-icon
|
|
3
|
+
*ngIf="selectedItem.title"
|
|
4
|
+
(click)="removedText()"
|
|
5
|
+
class="absolute w-4 top-2 right-2 fill-gray-600"
|
|
6
|
+
></close-icon>
|
|
7
|
+
<div
|
|
8
|
+
class="select"
|
|
9
|
+
[ngClass]="{
|
|
10
|
+
'select-clicked': isOpenMenu,
|
|
11
|
+
selectError: inputFormControl.touched && inputFormControl.errors
|
|
12
|
+
}"
|
|
13
|
+
(click)="openMenuClick()"
|
|
14
|
+
>
|
|
15
|
+
<span
|
|
16
|
+
class="placeholder-top"
|
|
17
|
+
*ngIf="(selectedItem | json) != ({} | json)"
|
|
18
|
+
>{{ label }}</span
|
|
19
|
+
>
|
|
20
|
+
<arrow-down-icon
|
|
21
|
+
class="caret fill-secondary-text-color h-6"
|
|
22
|
+
[ngClass]="{ 'caret-rotate': isOpenMenu }"
|
|
23
|
+
></arrow-down-icon>
|
|
24
|
+
|
|
25
|
+
<span
|
|
26
|
+
[ngClass]="[
|
|
27
|
+
label.length > 0 && (selectedItem | json) == ({} | json)
|
|
28
|
+
? 'placeholder'
|
|
29
|
+
: 'selected'
|
|
30
|
+
]"
|
|
31
|
+
>{{
|
|
32
|
+
label.length > 0 && (selectedItem | json) == ({} | json)
|
|
33
|
+
? label
|
|
34
|
+
: selectedItem.title
|
|
35
|
+
}}</span
|
|
36
|
+
>
|
|
37
|
+
</div>
|
|
38
|
+
<ul class="menu" [ngClass]="{ 'menu-open': isOpenMenu }">
|
|
39
|
+
<li
|
|
40
|
+
*ngFor="let item of newItems"
|
|
41
|
+
[ngClass]="{ active: item == selectedItem }"
|
|
42
|
+
(click)="onItemSelect(item, true)"
|
|
43
|
+
>
|
|
44
|
+
{{ item.title }}
|
|
45
|
+
</li>
|
|
46
|
+
</ul>
|
|
47
|
+
</div>
|
|
@@ -0,0 +1,113 @@
|
|
|
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: calc(100% - 34px);
|
|
11
|
+
min-width: 120px;
|
|
12
|
+
.select {
|
|
13
|
+
color: var(--default-selector-text-color);
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
flex-direction: row-reverse;
|
|
17
|
+
align-items: center;
|
|
18
|
+
border-bottom: 1px solid var(--default-table-column-input-border-color);
|
|
19
|
+
padding-block: 3px;
|
|
20
|
+
padding-inline-start: 12px;
|
|
21
|
+
outline: 0;
|
|
22
|
+
padding-inline-end: 2px;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
transition: background 0.3s;
|
|
25
|
+
font-size: 12px;
|
|
26
|
+
@include userSelect();
|
|
27
|
+
&:focus {
|
|
28
|
+
border-bottom: 1px solid #96bdf2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.selected {
|
|
32
|
+
padding-inline: 12px;
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
color: rgba(0, 0, 0, 0.7);
|
|
35
|
+
@include userSelect();
|
|
36
|
+
}
|
|
37
|
+
.placeholder-top {
|
|
38
|
+
position: absolute;
|
|
39
|
+
right: 13px;
|
|
40
|
+
background: var(--default-selector-label-background-color);
|
|
41
|
+
top: -8px;
|
|
42
|
+
padding-inline: 6px;
|
|
43
|
+
font-size: 11px;
|
|
44
|
+
color: var(--default-selector-label-text--color);
|
|
45
|
+
}
|
|
46
|
+
.caret {
|
|
47
|
+
fill: var(--default-selector-icon-color);
|
|
48
|
+
color: #595c5f;
|
|
49
|
+
@include userSelect();
|
|
50
|
+
}
|
|
51
|
+
.caret-rotate {
|
|
52
|
+
transform: rotate(180deg);
|
|
53
|
+
}
|
|
54
|
+
.placeholder {
|
|
55
|
+
color: var(--default-selector-placeholder-text-color);
|
|
56
|
+
padding-inline: 16px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.select-clicked {
|
|
60
|
+
border-bottom: 1px solid #96bdf2;
|
|
61
|
+
}
|
|
62
|
+
.menu {
|
|
63
|
+
list-style: none;
|
|
64
|
+
padding-inline: 0px;
|
|
65
|
+
background: var(--default-selector-menu-background-color);
|
|
66
|
+
border: 1px solid var(--default-selector-menu-border-color);
|
|
67
|
+
box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.2);
|
|
68
|
+
border-radius: 0.5em;
|
|
69
|
+
color: var(--default-selector-menu-text-color);
|
|
70
|
+
position: absolute;
|
|
71
|
+
top: 40px;
|
|
72
|
+
left: 50%;
|
|
73
|
+
width: 100%;
|
|
74
|
+
transform: translateX(-50%);
|
|
75
|
+
opacity: 0;
|
|
76
|
+
display: none;
|
|
77
|
+
transition: 0, 2s;
|
|
78
|
+
z-index: 10;
|
|
79
|
+
max-height: 200px;
|
|
80
|
+
overflow: auto;
|
|
81
|
+
li {
|
|
82
|
+
padding: 0.7em 0.5em;
|
|
83
|
+
margin: 0.3em 0;
|
|
84
|
+
margin-inline: 4px;
|
|
85
|
+
border-radius: 0.5em;
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
text-align: start;
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
&:hover {
|
|
90
|
+
background: var(--default-selector-menu-item-hover-color);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
.active {
|
|
94
|
+
background: var(--default-selector-menu-item-active-color);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
.menu-open {
|
|
98
|
+
display: block;
|
|
99
|
+
opacity: 1;
|
|
100
|
+
}
|
|
101
|
+
.label-error {
|
|
102
|
+
color: var(--default-selector-validation-text-color);
|
|
103
|
+
font-size: 13px;
|
|
104
|
+
margin-block-start: 4px;
|
|
105
|
+
min-height: 21px;
|
|
106
|
+
width: 100%;
|
|
107
|
+
display: inline-block !important;
|
|
108
|
+
text-align: start;
|
|
109
|
+
}
|
|
110
|
+
.selectError {
|
|
111
|
+
border: 1px solid var(--default-selector-validation-border-color) !important;
|
|
112
|
+
}
|
|
113
|
+
}
|