cmat 0.0.6 → 0.0.8
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/components/adapter/dayjs-datetime-adapter.d.ts +1 -1
- package/components/breadcrumb/breadcrumb.service.d.ts +1 -1
- package/components/breadcrumb/public-api.d.ts +2 -0
- package/components/card/card.component.d.ts +1 -1
- package/components/card/public-api.d.ts +1 -0
- package/components/cascade/cascade-list/cascade-list.component.d.ts +45 -21
- package/components/cascade/public-api.d.ts +1 -0
- package/components/chip-input/chip-input.component.d.ts +39 -12
- package/components/custom-formly/extension/addons.extension.d.ts +2 -0
- package/components/custom-formly/index.d.ts +5 -0
- package/components/custom-formly/public-api.d.ts +21 -0
- package/components/custom-formly/types/button/button.component.d.ts +18 -0
- package/components/custom-formly/types/checklist/checklist.component.d.ts +41 -0
- package/components/custom-formly/types/chips/chips.component.d.ts +27 -0
- package/components/custom-formly/types/multicheckbox/multicheckbox.component.d.ts +44 -0
- package/components/custom-formly/types/number/number.component.d.ts +20 -0
- package/components/custom-formly/types/radio/radio.component.d.ts +44 -0
- package/components/custom-formly/types/rating/rating.component.d.ts +24 -0
- package/components/custom-formly/types/repeat/repeat.component.d.ts +16 -0
- package/components/custom-formly/types/select/select.component.d.ts +54 -0
- package/components/custom-formly/types/select-tree/select-tree.component.d.ts +43 -0
- package/components/custom-formly/types/stepper/horizontal/stepper.component.d.ts +9 -0
- package/components/custom-formly/types/stepper/stepper.type.d.ts +6 -0
- package/components/custom-formly/types/stepper/vertical/stepper.component.d.ts +9 -0
- package/components/custom-formly/types/table/table.component.d.ts +43 -0
- package/components/custom-formly/types/tabs/tab.component.d.ts +8 -0
- package/components/custom-formly/types/tags/tags.component.d.ts +41 -0
- package/components/custom-formly/types/textarea/textarea.component.d.ts +13 -0
- package/components/custom-formly/wrappers/addons/addons.component.d.ts +10 -0
- package/components/custom-formly/wrappers/card/card.component.d.ts +6 -0
- package/components/custom-formly/wrappers/expansion/expansion.component.d.ts +6 -0
- package/components/custom-formly/wrappers/panel/panel.component.d.ts +6 -0
- package/components/date-range/date-range.component.d.ts +8 -6
- package/components/drawer/drawer.component.d.ts +2 -2
- package/components/fullscreen/fullscreen.component.d.ts +2 -9
- package/components/fullscreen/public-api.d.ts +0 -1
- package/components/material-color-picker/material-color-picker.component.d.ts +8 -4
- package/components/material-datetimepicker/calendar.d.ts +2 -2
- package/components/material-datetimepicker/clock.d.ts +1 -1
- package/components/material-datetimepicker/datetimepicker-input.d.ts +1 -1
- package/components/material-datetimepicker/datetimepicker-toggle.d.ts +1 -1
- package/components/material-datetimepicker/datetimepicker.d.ts +5 -10
- package/components/material-datetimepicker/month-view.d.ts +1 -2
- package/components/material-datetimepicker/multi-year-view.d.ts +1 -1
- package/components/material-datetimepicker/public-api.d.ts +1 -0
- package/components/material-datetimepicker/time.d.ts +2 -2
- package/components/material-datetimepicker/year-view.d.ts +1 -1
- package/components/navigation/horizontal/components/basic/basic.component.d.ts +1 -1
- package/components/navigation/horizontal/components/branch/branch.component.d.ts +1 -1
- package/components/navigation/horizontal/horizontal.component.d.ts +2 -2
- package/components/navigation/vertical/components/aside/aside.component.d.ts +1 -1
- package/components/navigation/vertical/components/basic/basic.component.d.ts +1 -7
- package/components/navigation/vertical/components/collapsable/collapsable.component.d.ts +1 -1
- package/components/navigation/vertical/components/group/group.component.d.ts +1 -1
- package/components/navigation/vertical/vertical.component.d.ts +5 -5
- package/components/pagination/public-api.d.ts +1 -0
- package/components/popover/popover-trigger.d.ts +121 -0
- package/components/popover/popover.component.d.ts +3 -3
- package/components/popover/popover.target.d.ts +8 -0
- package/components/popover/public-api.d.ts +3 -0
- package/components/rating/rating.component.d.ts +38 -9
- package/components/select-search/select-search.component.d.ts +4 -4
- package/components/select-tree/public-api.d.ts +2 -0
- package/components/select-tree/select-tree.component.d.ts +50 -21
- package/components/toast/public-api.d.ts +4 -0
- package/components/toast/toast.component.d.ts +4 -4
- package/components/transfer-picker/filter/filter.component.d.ts +1 -1
- package/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.d.ts +2 -2
- package/components/transfer-picker/transfer-picker.component.d.ts +1 -1
- package/components/upload/files.type.d.ts +22 -0
- package/components/upload/files.util.service.d.ts +20 -0
- package/components/upload/index.d.ts +5 -0
- package/components/upload/public-api.d.ts +4 -0
- package/components/upload/upload-queue/upload-queue.component.d.ts +39 -0
- package/components/upload/upload.component.d.ts +32 -0
- package/esm2022/animations/public-api.mjs +2 -2
- package/esm2022/components/adapter/dayjs-date-adapter.mjs +6 -6
- package/esm2022/components/adapter/dayjs-datetime-adapter.mjs +5 -5
- package/esm2022/components/adapter/native-datetime-adapter.mjs +3 -3
- package/esm2022/components/breadcrumb/breadcrumb-item.directive.mjs +3 -3
- package/esm2022/components/breadcrumb/breadcrumb.component.mjs +6 -6
- package/esm2022/components/breadcrumb/breadcrumb.service.mjs +5 -5
- package/esm2022/components/breadcrumb/public-api.mjs +3 -1
- package/esm2022/components/card/card.component.mjs +5 -5
- package/esm2022/components/card/public-api.mjs +2 -1
- package/esm2022/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.mjs +7 -7
- package/esm2022/components/cascade/cascade-list/cascade-list.component.mjs +207 -114
- package/esm2022/components/cascade/cascade-menu/cascade-menu.component.mjs +4 -4
- package/esm2022/components/cascade/public-api.mjs +2 -1
- package/esm2022/components/chip-input/chip-input.component.mjs +152 -49
- package/esm2022/components/custom-formly/cmat-components-custom-formly.mjs +5 -0
- package/esm2022/components/custom-formly/extension/addons.extension.mjs +13 -0
- package/esm2022/components/custom-formly/public-api.mjs +22 -0
- package/esm2022/components/custom-formly/types/button/button.component.mjs +39 -0
- package/esm2022/components/custom-formly/types/checklist/checklist.component.mjs +161 -0
- package/esm2022/components/custom-formly/types/chips/chips.component.mjs +55 -0
- package/esm2022/components/custom-formly/types/multicheckbox/multicheckbox.component.mjs +89 -0
- package/esm2022/components/custom-formly/types/number/number.component.mjs +27 -0
- package/esm2022/components/custom-formly/types/radio/radio.component.mjs +88 -0
- package/esm2022/components/custom-formly/types/rating/rating.component.mjs +27 -0
- package/esm2022/components/custom-formly/types/repeat/repeat.component.mjs +28 -0
- package/esm2022/components/custom-formly/types/select/select.component.mjs +169 -0
- package/esm2022/components/custom-formly/types/select-tree/select-tree.component.mjs +66 -0
- package/esm2022/components/custom-formly/types/stepper/horizontal/stepper.component.mjs +31 -0
- package/esm2022/components/custom-formly/types/stepper/stepper.type.mjs +2 -0
- package/esm2022/components/custom-formly/types/stepper/vertical/stepper.component.mjs +31 -0
- package/esm2022/components/custom-formly/types/table/table.component.mjs +116 -0
- package/esm2022/components/custom-formly/types/tabs/tab.component.mjs +19 -0
- package/esm2022/components/custom-formly/types/tags/tags.component.mjs +149 -0
- package/esm2022/components/custom-formly/types/textarea/textarea.component.mjs +25 -0
- package/esm2022/components/custom-formly/wrappers/addons/addons.component.mjs +92 -0
- package/esm2022/components/custom-formly/wrappers/card/card.component.mjs +14 -0
- package/esm2022/components/custom-formly/wrappers/expansion/expansion.component.mjs +14 -0
- package/esm2022/components/custom-formly/wrappers/panel/panel.component.mjs +12 -0
- package/esm2022/components/date-range/date-range.component.mjs +26 -17
- package/esm2022/components/drawer/drawer.component.mjs +5 -5
- package/esm2022/components/drawer/drawer.service.mjs +3 -3
- package/esm2022/components/fullscreen/fullscreen.component.mjs +16 -73
- package/esm2022/components/fullscreen/public-api.mjs +1 -2
- package/esm2022/components/highlight/highlight.component.mjs +5 -5
- package/esm2022/components/highlight/highlight.service.mjs +3 -3
- package/esm2022/components/json-editor/json-editor.component.mjs +3 -3
- package/esm2022/components/masonry/masonry.component.mjs +5 -5
- package/esm2022/components/material-color-picker/material-color-picker.component.mjs +22 -12
- package/esm2022/components/material-datetimepicker/calendar-body.mjs +3 -3
- package/esm2022/components/material-datetimepicker/calendar.mjs +11 -12
- package/esm2022/components/material-datetimepicker/clock.mjs +5 -5
- package/esm2022/components/material-datetimepicker/datetimepicker-input.mjs +4 -5
- package/esm2022/components/material-datetimepicker/datetimepicker-intl.mjs +3 -3
- package/esm2022/components/material-datetimepicker/datetimepicker-toggle.mjs +9 -9
- package/esm2022/components/material-datetimepicker/datetimepicker.mjs +17 -22
- package/esm2022/components/material-datetimepicker/month-view.mjs +5 -6
- package/esm2022/components/material-datetimepicker/multi-year-view.mjs +7 -8
- package/esm2022/components/material-datetimepicker/public-api.mjs +2 -1
- package/esm2022/components/material-datetimepicker/time.mjs +8 -8
- package/esm2022/components/material-datetimepicker/year-view.mjs +7 -8
- package/esm2022/components/navigation/horizontal/components/basic/basic.component.mjs +8 -8
- package/esm2022/components/navigation/horizontal/components/branch/branch.component.mjs +8 -8
- package/esm2022/components/navigation/horizontal/components/divider/divider.component.mjs +5 -5
- package/esm2022/components/navigation/horizontal/components/spacer/spacer.component.mjs +6 -6
- package/esm2022/components/navigation/horizontal/horizontal.component.mjs +6 -6
- package/esm2022/components/navigation/navigation.service.mjs +3 -3
- package/esm2022/components/navigation/vertical/components/aside/aside.component.mjs +11 -11
- package/esm2022/components/navigation/vertical/components/basic/basic.component.mjs +7 -24
- package/esm2022/components/navigation/vertical/components/collapsable/collapsable.component.mjs +10 -10
- package/esm2022/components/navigation/vertical/components/divider/divider.component.mjs +5 -5
- package/esm2022/components/navigation/vertical/components/group/group.component.mjs +9 -9
- package/esm2022/components/navigation/vertical/components/spacer/spacer.component.mjs +6 -6
- package/esm2022/components/navigation/vertical/vertical.component.mjs +11 -11
- package/esm2022/components/pagination/pagination.component.mjs +10 -10
- package/esm2022/components/pagination/pagination.directive.mjs +4 -4
- package/esm2022/components/pagination/pagination.pipe.mjs +4 -4
- package/esm2022/components/pagination/pagination.service.mjs +3 -3
- package/esm2022/components/pagination/public-api.mjs +2 -1
- package/esm2022/components/password-strength/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component.mjs +6 -6
- package/esm2022/components/password-strength/mat-password-strength/mat-password-strength.component.mjs +5 -5
- package/esm2022/components/password-strength/mat-password-strength-info/mat-password-strength-info.component.mjs +6 -6
- package/esm2022/components/popover/popover-trigger.mjs +444 -0
- package/esm2022/components/popover/popover.component.mjs +8 -9
- package/esm2022/components/popover/popover.target.mjs +18 -0
- package/esm2022/components/popover/public-api.mjs +4 -1
- package/esm2022/components/progress-bar/progress-bar.component.mjs +6 -6
- package/esm2022/components/rating/rating.component.mjs +122 -23
- package/esm2022/components/select-search/select-no-entries-found.directive.mjs +3 -3
- package/esm2022/components/select-search/select-search-clear.directive.mjs +3 -3
- package/esm2022/components/select-search/select-search.component.mjs +15 -15
- package/esm2022/components/select-tree/public-api.mjs +3 -1
- package/esm2022/components/select-tree/select-tree.component.mjs +281 -157
- package/esm2022/components/timeline/timeline-item/timeline-item.component.mjs +9 -9
- package/esm2022/components/timeline/timeline.component.mjs +5 -5
- package/esm2022/components/toast/public-api.mjs +5 -1
- package/esm2022/components/toast/toast-modal.component.mjs +5 -5
- package/esm2022/components/toast/toast.component.mjs +6 -6
- package/esm2022/components/toast/toast.service.mjs +3 -3
- package/esm2022/components/transfer-picker/filter/filter.component.mjs +9 -9
- package/esm2022/components/transfer-picker/search/search.component.mjs +6 -6
- package/esm2022/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.mjs +11 -11
- package/esm2022/components/transfer-picker/transfer-picker-target/transfer-picker-target.component.mjs +5 -5
- package/esm2022/components/transfer-picker/transfer-picker.component.mjs +7 -7
- package/esm2022/components/transfer-picker/transfer-picker.service.mjs +4 -4
- package/esm2022/components/upload/cmat-components-upload.mjs +5 -0
- package/esm2022/components/upload/files.type.mjs +2 -0
- package/esm2022/components/upload/files.util.service.mjs +100 -0
- package/esm2022/components/upload/public-api.mjs +5 -0
- package/esm2022/components/upload/upload-queue/upload-queue.component.mjs +154 -0
- package/esm2022/components/upload/upload.component.mjs +118 -0
- package/esm2022/directives/animate-on-scroll/animate-on-scroll.directive.mjs +3 -3
- package/esm2022/directives/animate-on-scroll/scroll.service.mjs +3 -3
- package/esm2022/directives/autofocus/autofocus.directive.mjs +3 -3
- package/esm2022/directives/debounce/abstract-debounce.directive.mjs +3 -3
- package/esm2022/directives/debounce/debounce-click.directive.mjs +3 -3
- package/esm2022/directives/debounce/debounce-keyup.directive.mjs +3 -3
- package/esm2022/directives/digit-only/digit-only.directive.mjs +3 -3
- package/esm2022/directives/digit-only/mask.directive.mjs +3 -3
- package/esm2022/directives/equal-validator/equal-validator.directive.mjs +3 -3
- package/esm2022/lib/mock-api/mock-api.interceptor.mjs +5 -5
- package/esm2022/lib/mock-api/mock-api.service.mjs +3 -3
- package/esm2022/pipes/bytes/bytes.pipe.mjs +3 -3
- package/esm2022/pipes/date-format/date-format.pipe.mjs +3 -3
- package/esm2022/pipes/find-by-key/find-by-key.pipe.mjs +3 -3
- package/esm2022/pipes/group-by/group-by.pipe.mjs +3 -3
- package/esm2022/pipes/keys/keys.pipe.mjs +3 -3
- package/esm2022/pipes/secure/secure-pipe.mjs +5 -5
- package/esm2022/pipes/uppercase/uppercase.pipe.mjs +3 -3
- package/esm2022/public-api.mjs +1 -1
- package/esm2022/services/alert/alert.service.mjs +7 -7
- package/esm2022/services/alert/enum.mjs +2 -2
- package/esm2022/services/config/config.service.mjs +5 -5
- package/esm2022/services/config/urlStateConfig.service.mjs +5 -5
- package/esm2022/services/confirmation/confirmation.service.mjs +5 -5
- package/esm2022/services/confirmation/dialog/dialog.component.mjs +7 -7
- package/esm2022/services/data/data.service.mjs +5 -5
- package/esm2022/services/loading/loading.interceptor.mjs +4 -4
- package/esm2022/services/loading/loading.service.mjs +3 -3
- package/esm2022/services/local-storage/local-storage.service.mjs +3 -3
- package/esm2022/services/media-watcher/media-watcher.service.mjs +5 -5
- package/esm2022/services/platform/platform.service.mjs +4 -4
- package/esm2022/services/splash-screen/splash-screen.service.mjs +6 -6
- package/esm2022/services/title/title.service.mjs +4 -4
- package/esm2022/services/translation/translation.service.mjs +3 -3
- package/esm2022/services/utils/utils.service.mjs +54 -9
- package/fesm2022/cmat-animations.mjs +15 -15
- package/fesm2022/cmat-animations.mjs.map +1 -1
- package/fesm2022/cmat-components-adapter.mjs +11 -11
- package/fesm2022/cmat-components-adapter.mjs.map +1 -1
- package/fesm2022/cmat-components-breadcrumb.mjs +11 -11
- package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/cmat-components-card.mjs +4 -4
- package/fesm2022/cmat-components-card.mjs.map +1 -1
- package/fesm2022/cmat-components-cascade.mjs +215 -123
- package/fesm2022/cmat-components-cascade.mjs.map +1 -1
- package/fesm2022/cmat-components-chip-input.mjs +153 -50
- package/fesm2022/cmat-components-chip-input.mjs.map +1 -1
- package/fesm2022/cmat-components-custom-formly.mjs +1141 -0
- package/fesm2022/cmat-components-custom-formly.mjs.map +1 -0
- package/fesm2022/cmat-components-date-range.mjs +27 -18
- package/fesm2022/cmat-components-date-range.mjs.map +1 -1
- package/fesm2022/cmat-components-drawer.mjs +8 -8
- package/fesm2022/cmat-components-drawer.mjs.map +1 -1
- package/fesm2022/cmat-components-fullscreen.mjs +16 -73
- package/fesm2022/cmat-components-fullscreen.mjs.map +1 -1
- package/fesm2022/cmat-components-highlight.mjs +7 -7
- package/fesm2022/cmat-components-highlight.mjs.map +1 -1
- package/fesm2022/cmat-components-json-editor.mjs +3 -3
- package/fesm2022/cmat-components-masonry.mjs +4 -4
- package/fesm2022/cmat-components-masonry.mjs.map +1 -1
- package/fesm2022/cmat-components-material-color-picker.mjs +21 -11
- package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-material-datetimepicker.mjs +189 -195
- package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -1
- package/fesm2022/cmat-components-navigation.mjs +166 -183
- package/fesm2022/cmat-components-navigation.mjs.map +1 -1
- package/fesm2022/cmat-components-pagination.mjs +20 -20
- package/fesm2022/cmat-components-pagination.mjs.map +1 -1
- package/fesm2022/cmat-components-password-strength.mjs +13 -13
- package/fesm2022/cmat-components-password-strength.mjs.map +1 -1
- package/fesm2022/cmat-components-popover.mjs +464 -10
- package/fesm2022/cmat-components-popover.mjs.map +1 -1
- package/fesm2022/cmat-components-progress-bar.mjs +6 -6
- package/fesm2022/cmat-components-progress-bar.mjs.map +1 -1
- package/fesm2022/cmat-components-rating.mjs +121 -22
- package/fesm2022/cmat-components-rating.mjs.map +1 -1
- package/fesm2022/cmat-components-select-search.mjs +41 -41
- package/fesm2022/cmat-components-select-search.mjs.map +1 -1
- package/fesm2022/cmat-components-select-tree.mjs +285 -158
- package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
- package/fesm2022/cmat-components-timeline.mjs +12 -12
- package/fesm2022/cmat-components-timeline.mjs.map +1 -1
- package/fesm2022/cmat-components-toast.mjs +12 -12
- package/fesm2022/cmat-components-toast.mjs.map +1 -1
- package/fesm2022/cmat-components-transfer-picker.mjs +33 -33
- package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-upload.mjs +366 -0
- package/fesm2022/cmat-components-upload.mjs.map +1 -0
- package/fesm2022/cmat-directives-animate-on-scroll.mjs +6 -6
- package/fesm2022/cmat-directives-autofocus.mjs +3 -3
- package/fesm2022/cmat-directives-debounce.mjs +9 -9
- package/fesm2022/cmat-directives-digit-only.mjs +6 -6
- package/fesm2022/cmat-directives-equal-validator.mjs +3 -3
- package/fesm2022/cmat-lib-mock-api.mjs +6 -6
- package/fesm2022/cmat-lib-mock-api.mjs.map +1 -1
- package/fesm2022/cmat-pipes-bytes.mjs +3 -3
- package/fesm2022/cmat-pipes-date-format.mjs +3 -3
- package/fesm2022/cmat-pipes-find-by-key.mjs +3 -3
- package/fesm2022/cmat-pipes-group-by.mjs +3 -3
- package/fesm2022/cmat-pipes-keys.mjs +3 -3
- package/fesm2022/cmat-pipes-secure.mjs +4 -4
- package/fesm2022/cmat-pipes-secure.mjs.map +1 -1
- package/fesm2022/cmat-pipes-uppercase.mjs +3 -3
- package/fesm2022/cmat-services-alert.mjs +6 -6
- package/fesm2022/cmat-services-alert.mjs.map +1 -1
- package/fesm2022/cmat-services-config.mjs +7 -7
- package/fesm2022/cmat-services-config.mjs.map +1 -1
- package/fesm2022/cmat-services-confirmation.mjs +11 -11
- package/fesm2022/cmat-services-confirmation.mjs.map +1 -1
- package/fesm2022/cmat-services-data.mjs +5 -5
- package/fesm2022/cmat-services-data.mjs.map +1 -1
- package/fesm2022/cmat-services-loading.mjs +6 -6
- package/fesm2022/cmat-services-loading.mjs.map +1 -1
- package/fesm2022/cmat-services-local-storage.mjs +3 -3
- package/fesm2022/cmat-services-media-watcher.mjs +4 -4
- package/fesm2022/cmat-services-media-watcher.mjs.map +1 -1
- package/fesm2022/cmat-services-platform.mjs +3 -3
- package/fesm2022/cmat-services-platform.mjs.map +1 -1
- package/fesm2022/cmat-services-splash-screen.mjs +5 -5
- package/fesm2022/cmat-services-splash-screen.mjs.map +1 -1
- package/fesm2022/cmat-services-title.mjs +3 -3
- package/fesm2022/cmat-services-title.mjs.map +1 -1
- package/fesm2022/cmat-services-translation.mjs +3 -3
- package/fesm2022/cmat-services-utils.mjs +53 -8
- package/fesm2022/cmat-services-utils.mjs.map +1 -1
- package/package.json +75 -63
- package/pipes/secure/secure-pipe.d.ts +1 -1
- package/services/alert/enum.d.ts +1 -1
- package/services/confirmation/confirmation.service.d.ts +1 -1
- package/services/data/data.service.d.ts +1 -1
- package/services/media-watcher/media-watcher.service.d.ts +1 -1
- package/services/title/title.service.d.ts +1 -1
- package/services/utils/utils.service.d.ts +1 -0
- package/styles/components/bundle.scss +18 -5
- package/styles/overrides/angular-material.scss +51 -52
- package/styles/tailwind.scss +2 -8
- package/styles/themes.scss +7 -7
- package/styles/user-themes.scss +1 -1
- package/tailwind/plugins/utilities.js +1 -1
- package/components/fullscreen/fullscreen.types.d.ts +0 -13
- package/esm2022/components/fullscreen/fullscreen.types.mjs +0 -2
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Direction, Directionality } from '@angular/cdk/bidi';
|
|
2
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
3
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, ViewContainerRef } from '@angular/core';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { CmatPopoverPanel, CmatTarget } from './popover.interfaces';
|
|
6
|
+
import { CmatPopoverTriggerEvent } from './popover.type';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* This directive is intended to be used in conjunction with an cmat-popover tag. It is
|
|
10
|
+
* responsible for toggling the display of the provided popover instance.
|
|
11
|
+
*/
|
|
12
|
+
export declare class CmatPopoverTriggerDirective implements AfterViewInit, OnDestroy {
|
|
13
|
+
private _overlay;
|
|
14
|
+
private _elementRef;
|
|
15
|
+
private _viewContainerRef;
|
|
16
|
+
private _dir;
|
|
17
|
+
private _changeDetectorRef;
|
|
18
|
+
ariaHaspopup: boolean;
|
|
19
|
+
/** References the popover instance that the trigger is associated with. */
|
|
20
|
+
popover: CmatPopoverPanel;
|
|
21
|
+
/** References the popover target instance that the trigger is associated with. */
|
|
22
|
+
targetElement: CmatTarget;
|
|
23
|
+
/** Popover trigger event */
|
|
24
|
+
triggerEvent: CmatPopoverTriggerEvent;
|
|
25
|
+
/** Event emitted when the associated popover is opened. */
|
|
26
|
+
popoverOpened: EventEmitter<void>;
|
|
27
|
+
/** Event emitted when the associated popover is closed. */
|
|
28
|
+
popoverClosed: EventEmitter<void>;
|
|
29
|
+
popoverOpened$: Subject<void>;
|
|
30
|
+
popoverClosed$: Subject<void>;
|
|
31
|
+
private _portal;
|
|
32
|
+
private _overlayRef;
|
|
33
|
+
private _popoverOpen;
|
|
34
|
+
private _halt;
|
|
35
|
+
private _backdropSubscription;
|
|
36
|
+
private _positionSubscription;
|
|
37
|
+
private _detachmentsSubscription;
|
|
38
|
+
private _mouseoverTimer;
|
|
39
|
+
private _openedByMouse;
|
|
40
|
+
private _onDestroy;
|
|
41
|
+
constructor(_overlay: Overlay, _elementRef: ElementRef, _viewContainerRef: ViewContainerRef, _dir: Directionality, _changeDetectorRef: ChangeDetectorRef);
|
|
42
|
+
/** Whether the popover is open. */
|
|
43
|
+
get popoverOpen(): boolean;
|
|
44
|
+
/** The text direction of the containing app. */
|
|
45
|
+
get dir(): Direction;
|
|
46
|
+
onClick(): void;
|
|
47
|
+
onMouseEnter(): void;
|
|
48
|
+
onMouseLeave(): void;
|
|
49
|
+
handleMousedown(event: MouseEvent): void;
|
|
50
|
+
ngAfterViewInit(): void;
|
|
51
|
+
ngOnDestroy(): void;
|
|
52
|
+
/** Toggles the popover between the open and closed states. */
|
|
53
|
+
togglePopover(): void;
|
|
54
|
+
/** Opens the popover. */
|
|
55
|
+
openPopover(): void;
|
|
56
|
+
/** Closes the popover. */
|
|
57
|
+
closePopover(): void;
|
|
58
|
+
/** Removes the popover from the DOM. */
|
|
59
|
+
destroyPopover(): void;
|
|
60
|
+
/** Focuses the popover trigger. */
|
|
61
|
+
focus(): void;
|
|
62
|
+
/**
|
|
63
|
+
* This method ensures that the popover closes when the overlay backdrop is clicked.
|
|
64
|
+
* We do not use first() here because doing so would not catch clicks from within
|
|
65
|
+
* the popover, and it would fail to unsubscribe properly. Instead, we unsubscribe
|
|
66
|
+
* explicitly when the popover is closed or destroyed.
|
|
67
|
+
*/
|
|
68
|
+
private _subscribeToBackdrop;
|
|
69
|
+
private _subscribeToDetachments;
|
|
70
|
+
/**
|
|
71
|
+
* This method sets the popover state to open and focuses the first item if
|
|
72
|
+
* the popover was opened via the keyboard.
|
|
73
|
+
*/
|
|
74
|
+
private _initPopover;
|
|
75
|
+
/**
|
|
76
|
+
* This method resets the popover when it's closed, most importantly restoring
|
|
77
|
+
* focus to the popover trigger if the popover was opened via the keyboard.
|
|
78
|
+
*/
|
|
79
|
+
private _resetPopover;
|
|
80
|
+
/** set state rather than toggle to support triggers sharing a popover */
|
|
81
|
+
private _setPopoverOpened;
|
|
82
|
+
/** set state rather than toggle to support triggers sharing a popover */
|
|
83
|
+
private _setPopoverClosed;
|
|
84
|
+
/**
|
|
85
|
+
* This method checks that a valid instance of MdPopover has been passed into
|
|
86
|
+
* mdPopoverTriggerFor. If not, an exception is thrown.
|
|
87
|
+
*/
|
|
88
|
+
private _checkPopover;
|
|
89
|
+
/**
|
|
90
|
+
* This method creates the overlay from the provided popover's template and saves its
|
|
91
|
+
* OverlayRef so that it can be attached to the DOM when openPopover is called.
|
|
92
|
+
*/
|
|
93
|
+
private _createOverlay;
|
|
94
|
+
/**
|
|
95
|
+
* This method builds the configuration object needed to create the overlay, the OverlayConfig.
|
|
96
|
+
*
|
|
97
|
+
* @returns OverlayConfig
|
|
98
|
+
*/
|
|
99
|
+
private _getOverlayConfig;
|
|
100
|
+
/**
|
|
101
|
+
* This method returns the scroll strategy used by the cdk/overlay.
|
|
102
|
+
*/
|
|
103
|
+
private _getOverlayScrollStrategy;
|
|
104
|
+
/**
|
|
105
|
+
* Listens to changes in the position of the overlay and sets the correct classes
|
|
106
|
+
* on the popover based on the new position. This ensures the animation origin is always
|
|
107
|
+
* correct, even if a fallback position is used for the overlay.
|
|
108
|
+
*/
|
|
109
|
+
private _subscribeToPositions;
|
|
110
|
+
/**
|
|
111
|
+
* This method builds the position strategy for the overlay, so the popover is properly connected
|
|
112
|
+
* to the trigger.
|
|
113
|
+
*
|
|
114
|
+
* @returns ConnectedPositionStrategy
|
|
115
|
+
*/
|
|
116
|
+
private _getPosition;
|
|
117
|
+
private _cleanUpSubscriptions;
|
|
118
|
+
private _setCurrentConfig;
|
|
119
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatPopoverTriggerDirective, [null, null, null, { optional: true; }, null]>;
|
|
120
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatPopoverTriggerDirective, "[cmatPopoverTriggerFor],[cmatPopoverTargetAt],[cmatPopoverTriggerOn]", ["cmatPopoverTrigger"], { "popover": { "alias": "cmatPopoverTriggerFor"; "required": false; }; "targetElement": { "alias": "cmatPopoverTargetAt"; "required": false; }; "triggerEvent": { "alias": "cmatPopoverTriggerOn"; "required": false; }; }, { "popoverOpened": "popoverOpened"; "popoverClosed": "popoverClosed"; }, never, never, true, never>;
|
|
121
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, NgZone, OnDestroy, TemplateRef } from '@angular/core';
|
|
2
1
|
import { AnimationEvent } from '@angular/animations';
|
|
3
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
2
|
import { Directionality } from '@angular/cdk/bidi';
|
|
5
|
-
import {
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { ElementRef, EventEmitter, NgZone, OnDestroy, TemplateRef } from '@angular/core';
|
|
6
5
|
import { CmatPopoverPanel } from './popover.interfaces';
|
|
6
|
+
import { CmatPopoverPosition, CmatPopoverScrollStrategy, CmatPopoverTriggerEvent } from './popover.type';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class CmatPopoverComponent implements CmatPopoverPanel, OnDestroy {
|
|
9
9
|
private _dir;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CmatPopoverTargetDirective {
|
|
4
|
+
elementRef: ElementRef;
|
|
5
|
+
constructor(elementRef: ElementRef);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatPopoverTargetDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatPopoverTargetDirective, "cmat-popover-target, [cmatPopoverTarget]", ["cmatPopoverTarget"], {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -1,29 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { EventEmitter, OnChanges, SimpleChanges, OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
|
+
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
3
6
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CmatRatingComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
7
|
+
export declare class CmatRatingComponent implements MatFormFieldControl<any>, ControlValueAccessor, OnInit, OnChanges, OnDestroy {
|
|
8
|
+
ngControl: NgControl;
|
|
9
|
+
private _changeDetectorRef;
|
|
10
|
+
id: string;
|
|
11
|
+
private _ratingElementRef;
|
|
5
12
|
stars: number;
|
|
6
13
|
readonly: boolean;
|
|
7
14
|
hover: boolean;
|
|
8
15
|
half: boolean;
|
|
9
|
-
color
|
|
10
|
-
|
|
11
|
-
showMode: 'horizontal' | 'vertical';
|
|
16
|
+
color?: string;
|
|
17
|
+
showMode?: 'horizontal' | 'vertical';
|
|
12
18
|
valueChange: EventEmitter<any>;
|
|
13
19
|
starArray: number[];
|
|
14
20
|
currentValue: number;
|
|
21
|
+
readonly stateChanges: Subject<void>;
|
|
22
|
+
focused: boolean;
|
|
23
|
+
touched: boolean;
|
|
24
|
+
controlType: string;
|
|
25
|
+
constructor(ngControl: NgControl, _changeDetectorRef: ChangeDetectorRef);
|
|
15
26
|
onModelChange: (value: any) => void;
|
|
16
27
|
onTouchedChange: () => any;
|
|
17
28
|
ngOnInit(): void;
|
|
18
29
|
ngOnChanges(changes: SimpleChanges): void;
|
|
30
|
+
ngOnDestroy(): void;
|
|
31
|
+
onFocus(): void;
|
|
32
|
+
get placeholder(): string;
|
|
33
|
+
set placeholder(value: string);
|
|
34
|
+
private _placeholder;
|
|
35
|
+
get value(): any;
|
|
36
|
+
set value(value: any);
|
|
37
|
+
protected _value: any;
|
|
38
|
+
get empty(): boolean;
|
|
39
|
+
get errorState(): boolean;
|
|
40
|
+
get shouldLabelFloat(): boolean;
|
|
41
|
+
get required(): boolean;
|
|
42
|
+
set required(value: any);
|
|
43
|
+
protected _required: boolean;
|
|
44
|
+
get disabled(): boolean;
|
|
45
|
+
set disabled(value: BooleanInput);
|
|
19
46
|
writeValue(value: number): void;
|
|
47
|
+
setDisabledState(isDisabled: boolean): void;
|
|
20
48
|
registerOnChange(fn: any): void;
|
|
21
49
|
registerOnTouched(fn: any): void;
|
|
50
|
+
setDescribedByIds(ids: string[]): void;
|
|
51
|
+
onContainerClick(): void;
|
|
22
52
|
isIn(value: number): boolean;
|
|
23
53
|
onClick(event: any, value: number, half?: boolean): void;
|
|
24
54
|
onMouseover(event: any, value: number, half?: boolean): void;
|
|
25
55
|
onMouseleave(): void;
|
|
26
|
-
|
|
27
|
-
static
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CmatRatingComponent, "cmat-rating", ["cmatRating"], { "stars": { "alias": "stars"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "hover": { "alias": "hover"; "required": false; }; "half": { "alias": "half"; "required": false; }; "color": { "alias": "color"; "required": false; }; "value": { "alias": "value"; "required": false; }; "showMode": { "alias": "showMode"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatRatingComponent, [{ optional: true; self: true; }, null]>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatRatingComponent, "cmat-rating", ["cmatRating"], { "id": { "alias": "id"; "required": false; }; "stars": { "alias": "stars"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "hover": { "alias": "hover"; "required": false; }; "half": { "alias": "half"; "required": false; }; "color": { "alias": "color"; "required": false; }; "showMode": { "alias": "showMode"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
29
58
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
1
2
|
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
3
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
-
import { MatSelect } from '@angular/material/select';
|
|
4
|
-
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
|
-
import { CmatSelectSearchClearDirective } from './select-search-clear.directive';
|
|
7
4
|
import { MatOption } from '@angular/material/core';
|
|
8
5
|
import { MatFormField } from '@angular/material/form-field';
|
|
6
|
+
import { MatSelect } from '@angular/material/select';
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
9
8
|
import { CmatSelectNoEntriesFoundDirective } from './select-no-entries-found.directive';
|
|
9
|
+
import { CmatSelectSearchClearDirective } from './select-search-clear.directive';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class CmatSelectSearchComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
12
12
|
protected matSelect: MatSelect;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
-
import { ReplaySubject } from 'rxjs';
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
2
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
5
3
|
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
4
|
+
import { AfterViewInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
5
|
+
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
6
|
+
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
7
|
+
import { MatSelect } from '@angular/material/select';
|
|
6
8
|
import { MatTreeFlatDataSource, MatTreeFlattener } from '@angular/material/tree';
|
|
9
|
+
import { ReplaySubject, Subject } from 'rxjs';
|
|
7
10
|
import { CmatSelectTreeFlatNode } from './select-tree.flatnode';
|
|
8
11
|
import { CmatSelectTreeNode } from './select-tree.node';
|
|
9
12
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class CmatSelectTreeComponent implements ControlValueAccessor,
|
|
11
|
-
|
|
13
|
+
export declare class CmatSelectTreeComponent implements MatFormFieldControl<any>, ControlValueAccessor, OnChanges, AfterViewInit, OnDestroy {
|
|
14
|
+
ngControl: NgControl;
|
|
15
|
+
private _changeDetectorRef;
|
|
16
|
+
id: string;
|
|
12
17
|
dataSource: CmatSelectTreeNode[];
|
|
13
|
-
showLabel: boolean;
|
|
14
18
|
noEntriesFoundLabel: string;
|
|
15
19
|
showNoFoundLabel: boolean;
|
|
16
|
-
placeholder: string;
|
|
17
|
-
prefixIcon: string;
|
|
18
20
|
multiple: boolean;
|
|
19
|
-
required: boolean;
|
|
20
21
|
overallSearchEnabled: boolean;
|
|
21
22
|
canNull: boolean;
|
|
22
23
|
customTriggerLabelFn: (value: CmatSelectTreeNode[]) => string;
|
|
23
24
|
customTriggerLabelTemplate: string;
|
|
24
25
|
expandable: boolean;
|
|
25
26
|
showToggleAllCheckbox: boolean;
|
|
26
|
-
private _matSelect;
|
|
27
27
|
flatNodeMap: Map<CmatSelectTreeFlatNode, CmatSelectTreeNode>;
|
|
28
28
|
nestedNodeMap: Map<CmatSelectTreeNode, CmatSelectTreeFlatNode>;
|
|
29
29
|
selectedParent: CmatSelectTreeFlatNode | null;
|
|
@@ -34,23 +34,49 @@ export declare class CmatSelectTreeComponent implements ControlValueAccessor, On
|
|
|
34
34
|
overallFilterControl: FormControl;
|
|
35
35
|
isIndeterminate: boolean;
|
|
36
36
|
isChecked: boolean;
|
|
37
|
-
|
|
37
|
+
checkCount: number;
|
|
38
38
|
selectControl: FormControl;
|
|
39
39
|
matSelectData: ReplaySubject<any[]>;
|
|
40
|
+
readonly stateChanges: Subject<void>;
|
|
41
|
+
focused: boolean;
|
|
42
|
+
touched: boolean;
|
|
43
|
+
controlType: string;
|
|
44
|
+
private _matSelect;
|
|
40
45
|
private _unsubscribeAll;
|
|
41
|
-
constructor(
|
|
46
|
+
constructor(ngControl: NgControl, _changeDetectorRef: ChangeDetectorRef);
|
|
47
|
+
set matSelect(m: MatSelect);
|
|
48
|
+
clickedOut(): void;
|
|
42
49
|
getLevel: (node: CmatSelectTreeFlatNode) => number;
|
|
43
50
|
isExpandable: (node: CmatSelectTreeFlatNode) => boolean;
|
|
44
51
|
getChildren: (node: CmatSelectTreeNode) => CmatSelectTreeNode[] | null;
|
|
45
52
|
hasChild: (_: number, _nodeData: CmatSelectTreeFlatNode) => boolean;
|
|
46
53
|
hasNoContent: (_: number, _nodeData: CmatSelectTreeFlatNode) => boolean;
|
|
47
54
|
transformer: (node: CmatSelectTreeNode, level: number) => CmatSelectTreeFlatNode;
|
|
48
|
-
|
|
55
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
49
56
|
ngAfterViewInit(): void;
|
|
50
57
|
ngOnDestroy(): void;
|
|
51
|
-
|
|
58
|
+
get placeholder(): string;
|
|
59
|
+
set placeholder(value: string);
|
|
60
|
+
private _placeholder;
|
|
61
|
+
get value(): any;
|
|
62
|
+
set value(value: any);
|
|
63
|
+
protected _value: any;
|
|
64
|
+
get empty(): boolean;
|
|
65
|
+
get errorState(): boolean;
|
|
66
|
+
get shouldLabelFloat(): boolean;
|
|
67
|
+
get required(): boolean;
|
|
68
|
+
set required(value: any);
|
|
69
|
+
protected _required: boolean;
|
|
70
|
+
get disabled(): boolean;
|
|
71
|
+
set disabled(value: BooleanInput);
|
|
72
|
+
protected _disabled: boolean;
|
|
73
|
+
registerOnChange(fn: any): void;
|
|
52
74
|
registerOnTouched(fn: any): void;
|
|
53
75
|
setDisabledState(isDisabled: boolean): void;
|
|
76
|
+
setDescribedByIds(ids: string[]): void;
|
|
77
|
+
onContainerClick(): void;
|
|
78
|
+
onFocusIn(): void;
|
|
79
|
+
onFocusOut(event: FocusEvent): void;
|
|
54
80
|
writeValue(value: any): void;
|
|
55
81
|
simpleTriggerLabelFn(value: CmatSelectTreeFlatNode[]): string;
|
|
56
82
|
/** Whether all the descendants of the node are selected. */
|
|
@@ -62,17 +88,20 @@ export declare class CmatSelectTreeComponent implements ControlValueAccessor, On
|
|
|
62
88
|
/** Toggle a leaf to-do item selection. Check all the parents to see if they changed */
|
|
63
89
|
todoLeafItemSelectionToggle(event: any, node: CmatSelectTreeFlatNode): void;
|
|
64
90
|
clearSelection(): void;
|
|
65
|
-
checkAllParentsSelection(node: CmatSelectTreeFlatNode): void;
|
|
66
|
-
/** Check root node checked state and change it accordingly */
|
|
67
|
-
checkRootNodeSelection(node: CmatSelectTreeFlatNode): void;
|
|
68
|
-
getParentNode(node: CmatSelectTreeFlatNode): CmatSelectTreeFlatNode | null;
|
|
69
91
|
toggleSelectAll(selectAllValue: boolean): void;
|
|
70
92
|
compareObjects(o1: any, o2: any): boolean;
|
|
71
93
|
trackByFn(index: number, item: any): any;
|
|
94
|
+
private _onModelChange;
|
|
95
|
+
private _onTouchedChange;
|
|
96
|
+
private _init;
|
|
97
|
+
private _checkAllParentsSelection;
|
|
98
|
+
/** Check root node checked state and change it accordingly */
|
|
99
|
+
private _checkRootNodeSelection;
|
|
100
|
+
private _getParentNode;
|
|
72
101
|
private _updateChecklistSelection;
|
|
73
102
|
private _updateSelect;
|
|
74
103
|
private _applyColumnLevelFilters;
|
|
75
|
-
private
|
|
76
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSelectTreeComponent,
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CmatSelectTreeComponent, "cmat-select-tree",
|
|
104
|
+
private _updateCheckState;
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSelectTreeComponent, [{ optional: true; self: true; }, null]>;
|
|
106
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatSelectTreeComponent, "cmat-select-tree", ["cmatSelectTree"], { "id": { "alias": "id"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "noEntriesFoundLabel": { "alias": "noEntriesFoundLabel"; "required": false; }; "showNoFoundLabel": { "alias": "showNoFoundLabel"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "overallSearchEnabled": { "alias": "overallSearchEnabled"; "required": false; }; "canNull": { "alias": "canNull"; "required": false; }; "customTriggerLabelFn": { "alias": "customTriggerLabelFn"; "required": false; }; "customTriggerLabelTemplate": { "alias": "customTriggerLabelTemplate"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "showToggleAllCheckbox": { "alias": "showToggleAllCheckbox"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
78
107
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { CmatToastService } from './toast.service';
|
|
4
3
|
import { CmatToastModel } from './models/toast.model';
|
|
4
|
+
import { CmatToastService } from './toast.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class CmatToastComponent implements OnInit {
|
|
7
7
|
private _cmatToastService;
|
|
8
8
|
toasts$: Observable<CmatToastModel[]>;
|
|
9
9
|
position$: Observable<string>;
|
|
@@ -12,6 +12,6 @@ export declare class CmaToastComponent implements OnInit {
|
|
|
12
12
|
listenForToastEvent(): void;
|
|
13
13
|
clearToast(toastId: any): void;
|
|
14
14
|
trackByFn(index: number, item: CmatToastModel): any;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatToastComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatToastComponent, "cmat-toast", ["cmatToast"], {}, {}, never, never, true, never>;
|
|
17
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { CdkOverlayOrigin, Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
3
2
|
import { CdkPortal } from '@angular/cdk/portal';
|
|
3
|
+
import { OnInit } from '@angular/core';
|
|
4
4
|
import { CmatTransferFilterData, CmatTransferFilterItem } from '../interface';
|
|
5
5
|
import { CmatTransferPickerService } from '../transfer-picker.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
package/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
1
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
3
2
|
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
3
|
+
import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
4
4
|
import { MatTreeFlatDataSource, MatTreeFlattener } from '@angular/material/tree';
|
|
5
|
-
import { CmatTransferPickerService } from '../transfer-picker.service';
|
|
6
5
|
import { CmatSourceOptions, CmatTransferItemFlatNode, CmatTransferItemNode } from '../interface';
|
|
6
|
+
import { CmatTransferPickerService } from '../transfer-picker.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class CmatTransferPickerSourceComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
9
9
|
private _service;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { CmatTransferFilterItem, CmatTransferItemFlatNode, CmatTransferItemNode } from './interface';
|
|
3
|
-
import { CmatTransferPickerService } from './transfer-picker.service';
|
|
4
3
|
import { CmatTransferPickerSourceComponent } from './transfer-picker-source/transfer-picker-source.component';
|
|
4
|
+
import { CmatTransferPickerService } from './transfer-picker.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CmatTransferPickerComponent implements OnInit, AfterViewInit {
|
|
7
7
|
private _service;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface FileModel {
|
|
2
|
+
id?: string | null;
|
|
3
|
+
fileName: string;
|
|
4
|
+
filePath: string;
|
|
5
|
+
fileStatus?: 'Uploaded' | 'Processed';
|
|
6
|
+
length: number;
|
|
7
|
+
uploadUserId?: string;
|
|
8
|
+
uploadUserName?: string;
|
|
9
|
+
uploadDate: Date;
|
|
10
|
+
fileType: 'csv' | 'gif' | 'word' | 'excel' | 'jpg' | 'outlook' | 'pdf' | 'png' | 'ppt' | 'file' | 'text' | 'video' | 'zip';
|
|
11
|
+
fileCategory: string;
|
|
12
|
+
data?: any;
|
|
13
|
+
}
|
|
14
|
+
export interface FileCategoryModel {
|
|
15
|
+
name: string;
|
|
16
|
+
value: number;
|
|
17
|
+
}
|
|
18
|
+
export interface FileListModel {
|
|
19
|
+
data: FileModel[];
|
|
20
|
+
dataCount: number;
|
|
21
|
+
category: FileCategoryModel[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { CmatUrlStateConfigService } from 'cmat/services/config';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CmatFilesUtilService implements OnDestroy {
|
|
7
|
+
private _http;
|
|
8
|
+
private _urlStateConfigService;
|
|
9
|
+
private _config;
|
|
10
|
+
private _unsubscribeAll;
|
|
11
|
+
constructor(_http: HttpClient, _urlStateConfigService: CmatUrlStateConfigService);
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
downloadFile(fileId: string): Observable<any>;
|
|
14
|
+
downloadFileZip(fileIds?: string[]): Observable<any>;
|
|
15
|
+
uploadFile(file: FormData): Observable<any>;
|
|
16
|
+
deleteFile(fileId: string): Observable<any>;
|
|
17
|
+
getFileList(ids?: [], fileName?: string, fileCategory?: string, searchDate?: Date, pageIndex?: number, pageSize?: number): Observable<any>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatFilesUtilService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatFilesUtilService>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { CmatMediaWatcherService } from 'cmat/services/media-watcher';
|
|
3
|
+
import { CmatUploadComponent } from '../upload.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CmatUploadQueueComponent implements OnDestroy, AfterViewInit {
|
|
6
|
+
private _changeDetectorRef;
|
|
7
|
+
private _cmatMediaWatcherService;
|
|
8
|
+
fileUploads: QueryList<CmatUploadComponent>;
|
|
9
|
+
fileAlias: string;
|
|
10
|
+
filePath: string;
|
|
11
|
+
fileCategory: string;
|
|
12
|
+
required: boolean;
|
|
13
|
+
autoUpload: boolean;
|
|
14
|
+
multiple: boolean;
|
|
15
|
+
accept: string;
|
|
16
|
+
title: string;
|
|
17
|
+
editMode: boolean;
|
|
18
|
+
filesData: Array<any>;
|
|
19
|
+
outputRemoveIdEvent: EventEmitter<string>;
|
|
20
|
+
outputUploadIdEvent: EventEmitter<string>;
|
|
21
|
+
outputFilesDataEvent: EventEmitter<any>;
|
|
22
|
+
id: string;
|
|
23
|
+
isHandSet: boolean;
|
|
24
|
+
private _unsubscribeAll;
|
|
25
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _cmatMediaWatcherService: CmatMediaWatcherService);
|
|
26
|
+
onDrop(event: any): void;
|
|
27
|
+
onDropOver(event: any): void;
|
|
28
|
+
ngAfterViewInit(): void;
|
|
29
|
+
ngOnDestroy(): void;
|
|
30
|
+
add(file: any): void;
|
|
31
|
+
upload(event: any): void;
|
|
32
|
+
remove(event: CmatUploadComponent): void;
|
|
33
|
+
uploadAll(): void;
|
|
34
|
+
removeAll(): void;
|
|
35
|
+
choose(): void;
|
|
36
|
+
getData(): any;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatUploadQueueComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatUploadQueueComponent, "cmat-upload-queue", ["cmatUploadQueue"], { "fileAlias": { "alias": "fileAlias"; "required": false; }; "filePath": { "alias": "filePath"; "required": false; }; "fileCategory": { "alias": "fileCategory"; "required": false; }; "required": { "alias": "required"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "title": { "alias": "title"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "filesData": { "alias": "filesData"; "required": false; }; }, { "outputRemoveIdEvent": "outputRemoveIdEvent"; "outputUploadIdEvent": "outputUploadIdEvent"; "outputFilesDataEvent": "outputFilesDataEvent"; }, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { CmatFilesUtilService } from './files.util.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CmatUploadComponent implements OnInit, OnDestroy {
|
|
5
|
+
private _fileService;
|
|
6
|
+
private _changeDetectorRef;
|
|
7
|
+
fileAlias: string;
|
|
8
|
+
filePath: string;
|
|
9
|
+
fileCategory: string;
|
|
10
|
+
editMode: boolean;
|
|
11
|
+
autoUpload: boolean;
|
|
12
|
+
id: string;
|
|
13
|
+
removeEvent: EventEmitter<CmatUploadComponent>;
|
|
14
|
+
uploadEvent: EventEmitter<any>;
|
|
15
|
+
progressPercentage: number;
|
|
16
|
+
loaded: number;
|
|
17
|
+
total: number;
|
|
18
|
+
isUploading: boolean;
|
|
19
|
+
private _file;
|
|
20
|
+
private _unsubscribeAll;
|
|
21
|
+
constructor(_fileService: CmatFilesUtilService, _changeDetectorRef: ChangeDetectorRef);
|
|
22
|
+
get file(): any;
|
|
23
|
+
set file(file: any);
|
|
24
|
+
get fileType(): 'csv' | 'gif' | 'word' | 'excel' | 'jpg' | 'outlook' | 'pdf' | 'png' | 'ppt' | 'file' | 'text' | 'video' | 'zip';
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
upload(): void;
|
|
28
|
+
download(): void;
|
|
29
|
+
remove(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatUploadComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatUploadComponent, "cmat-upload", ["cmatUpload"], { "fileAlias": { "alias": "fileAlias"; "required": false; }; "filePath": { "alias": "filePath"; "required": false; }; "fileCategory": { "alias": "fileCategory"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; "id": { "alias": "id"; "required": false; }; "file": { "alias": "file"; "required": false; }; }, { "removeEvent": "removeEvent"; "uploadEvent": "uploadEvent"; }, never, never, true, never>;
|
|
32
|
+
}
|
|
@@ -3,8 +3,8 @@ import { expandCollapse } from './expand-collapse';
|
|
|
3
3
|
import { fadeIn, fadeInBottom, fadeInLeft, fadeInRight, fadeInTop, fadeOut, fadeOutBottom, fadeOutLeft, fadeOutRight, fadeOutTop } from './fade';
|
|
4
4
|
import { shake } from './shake';
|
|
5
5
|
import { slideInBottom, slideInLeft, slideInRight, slideInTop, slideOutBottom, slideOutLeft, slideOutRight, slideOutTop } from './slide';
|
|
6
|
-
import { zoomIn, zoomOut } from './zoom';
|
|
7
6
|
import { transform } from './transform';
|
|
7
|
+
import { zoomIn, zoomOut } from './zoom';
|
|
8
8
|
export const cmatAnimations = [
|
|
9
9
|
expandCollapse,
|
|
10
10
|
fadeIn, fadeInTop, fadeInBottom, fadeInLeft, fadeInRight,
|
|
@@ -16,4 +16,4 @@ export const cmatAnimations = [
|
|
|
16
16
|
dropdown,
|
|
17
17
|
transform
|
|
18
18
|
];
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NtYXQvYW5pbWF0aW9ucy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDdEMsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ25ELE9BQU8sRUFDSCxNQUFNLEVBQ04sWUFBWSxFQUNaLFVBQVUsRUFDVixXQUFXLEVBQ1gsU0FBUyxFQUNULE9BQU8sRUFDUCxhQUFhLEVBQ2IsV0FBVyxFQUNYLFlBQVksRUFDWixVQUFVLEVBQ2IsTUFBTSxRQUFRLENBQUM7QUFDaEIsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUNoQyxPQUFPLEVBQ0gsYUFBYSxFQUNiLFdBQVcsRUFDWCxZQUFZLEVBQ1osVUFBVSxFQUNWLGNBQWMsRUFDZCxZQUFZLEVBQ1osYUFBYSxFQUNiLFdBQVcsRUFDZCxNQUFNLFNBQVMsQ0FBQztBQUNqQixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ3hDLE9BQU8sRUFBRSxNQUFNLEVBQUUsT0FBTyxFQUFFLE1BQU0sUUFBUSxDQUFDO0FBRXpDLE1BQU0sQ0FBQyxNQUFNLGNBQWMsR0FBRztJQUMxQixjQUFjO0lBQ2QsTUFBTSxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsVUFBVSxFQUFFLFdBQVc7SUFDeEQsT0FBTyxFQUFFLFVBQVUsRUFBRSxhQUFhLEVBQUUsV0FBVyxFQUFFLFlBQVk7SUFDN0QsS0FBSztJQUNMLFVBQVUsRUFBRSxhQUFhLEVBQUUsV0FBVyxFQUFFLFlBQVk7SUFDcEQsV0FBVyxFQUFFLGNBQWMsRUFBRSxZQUFZLEVBQUUsYUFBYTtJQUN4RCxNQUFNLEVBQUUsT0FBTztJQUNmLFFBQVE7SUFDUixTQUFTO0NBQ1osQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGRyb3Bkb3duIH0gZnJvbSAnLi9kcm9wZG93bic7XHJcbmltcG9ydCB7IGV4cGFuZENvbGxhcHNlIH0gZnJvbSAnLi9leHBhbmQtY29sbGFwc2UnO1xyXG5pbXBvcnQge1xyXG4gICAgZmFkZUluLFxyXG4gICAgZmFkZUluQm90dG9tLFxyXG4gICAgZmFkZUluTGVmdCxcclxuICAgIGZhZGVJblJpZ2h0LFxyXG4gICAgZmFkZUluVG9wLFxyXG4gICAgZmFkZU91dCxcclxuICAgIGZhZGVPdXRCb3R0b20sXHJcbiAgICBmYWRlT3V0TGVmdCxcclxuICAgIGZhZGVPdXRSaWdodCxcclxuICAgIGZhZGVPdXRUb3BcclxufSBmcm9tICcuL2ZhZGUnO1xyXG5pbXBvcnQgeyBzaGFrZSB9IGZyb20gJy4vc2hha2UnO1xyXG5pbXBvcnQge1xyXG4gICAgc2xpZGVJbkJvdHRvbSxcclxuICAgIHNsaWRlSW5MZWZ0LFxyXG4gICAgc2xpZGVJblJpZ2h0LFxyXG4gICAgc2xpZGVJblRvcCxcclxuICAgIHNsaWRlT3V0Qm90dG9tLFxyXG4gICAgc2xpZGVPdXRMZWZ0LFxyXG4gICAgc2xpZGVPdXRSaWdodCxcclxuICAgIHNsaWRlT3V0VG9wXHJcbn0gZnJvbSAnLi9zbGlkZSc7XHJcbmltcG9ydCB7IHRyYW5zZm9ybSB9IGZyb20gJy4vdHJhbnNmb3JtJztcclxuaW1wb3J0IHsgem9vbUluLCB6b29tT3V0IH0gZnJvbSAnLi96b29tJztcclxuXHJcbmV4cG9ydCBjb25zdCBjbWF0QW5pbWF0aW9ucyA9IFtcclxuICAgIGV4cGFuZENvbGxhcHNlLFxyXG4gICAgZmFkZUluLCBmYWRlSW5Ub3AsIGZhZGVJbkJvdHRvbSwgZmFkZUluTGVmdCwgZmFkZUluUmlnaHQsXHJcbiAgICBmYWRlT3V0LCBmYWRlT3V0VG9wLCBmYWRlT3V0Qm90dG9tLCBmYWRlT3V0TGVmdCwgZmFkZU91dFJpZ2h0LFxyXG4gICAgc2hha2UsXHJcbiAgICBzbGlkZUluVG9wLCBzbGlkZUluQm90dG9tLCBzbGlkZUluTGVmdCwgc2xpZGVJblJpZ2h0LFxyXG4gICAgc2xpZGVPdXRUb3AsIHNsaWRlT3V0Qm90dG9tLCBzbGlkZU91dExlZnQsIHNsaWRlT3V0UmlnaHQsXHJcbiAgICB6b29tSW4sIHpvb21PdXQsXHJcbiAgICBkcm9wZG93bixcclxuICAgIHRyYW5zZm9ybVxyXG5dO1xyXG4iXX0=
|