ngx-edu-sharing-ui 0.7.0 → 9.0.1
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/assets/scss/mixins.scss +4 -1
- package/assets/scss/variables.scss +3 -0
- package/esm2022/lib/actionbar/actionbar.component.mjs +188 -0
- package/esm2022/lib/common/edu-sharing-ui-common.module.mjs +134 -0
- package/esm2022/lib/directives/border-box-observer.directive.mjs +71 -0
- package/esm2022/lib/directives/check-text-overflow.directive.mjs +65 -0
- package/esm2022/lib/directives/drag-nodes/drag-nodes.mjs +14 -0
- package/esm2022/lib/directives/drag-nodes/nodes-drag-source.directive.mjs +79 -0
- package/esm2022/lib/directives/drag-nodes/nodes-drag.directive.mjs +49 -0
- package/esm2022/lib/directives/drag-nodes/nodes-drop-target.directive.mjs +105 -0
- package/esm2022/lib/directives/focus-state.directive.mjs +44 -0
- package/esm2022/lib/directives/icon.directive.mjs +139 -0
- package/esm2022/lib/dropdown/dropdown.component.mjs +70 -0
- package/esm2022/lib/edu-sharing-ui-configuration.mjs +41 -0
- package/esm2022/lib/edu-sharing-ui.module.mjs +78 -0
- package/esm2022/lib/list-items/available-widgets.mjs +27 -0
- package/esm2022/lib/list-items/format-duration.pipe.mjs +20 -0
- package/esm2022/lib/list-items/list-base/list-base.component.mjs +46 -0
- package/esm2022/lib/list-items/list-collection-info/list-collection-info.component.mjs +29 -0
- package/esm2022/lib/list-items/list-counts/list-counts.component.mjs +54 -0
- package/esm2022/lib/list-items/list-items.module.mjs +50 -0
- package/esm2022/lib/list-items/list-node-license/list-node-license.component.mjs +41 -0
- package/esm2022/lib/list-items/list-node-replication-source/list-node-replication-source.component.mjs +47 -0
- package/esm2022/lib/list-items/list-node-workflow/list-node-workflow.component.mjs +24 -0
- package/esm2022/lib/list-items/list-text/list-text.component.mjs +106 -0
- package/esm2022/lib/list-items/list-widget.mjs +49 -0
- package/esm2022/lib/list-items/node-row/node-row.component.mjs +24 -0
- package/esm2022/lib/list-items/node-source.pipe.mjs +49 -0
- package/esm2022/lib/node-entries/combined-data-source.mjs +41 -0
- package/esm2022/lib/node-entries/custom-templates-data-source.mjs +7 -0
- package/esm2022/lib/node-entries/drag-preview/drag-preview.component.mjs +21 -0
- package/esm2022/lib/node-entries/entries-model.mjs +23 -0
- package/esm2022/lib/node-entries/items-cap.mjs +47 -0
- package/esm2022/lib/node-entries/list-item-label.pipe.mjs +34 -0
- package/esm2022/lib/node-entries/node-cache.mjs +65 -0
- package/esm2022/lib/node-entries/node-data-source-remote.mjs +4 -0
- package/esm2022/lib/node-entries/node-data-source.mjs +115 -0
- package/esm2022/lib/node-entries/node-entries-card/node-entries-card.component.mjs +131 -0
- package/esm2022/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.mjs +307 -0
- package/esm2022/lib/node-entries/node-entries-card-small/node-entries-card-small.component.mjs +45 -0
- package/esm2022/lib/node-entries/node-entries-global-options/node-entries-global-options.component.mjs +23 -0
- package/esm2022/lib/node-entries/node-entries-global.service.mjs +58 -0
- package/esm2022/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.mjs +42 -0
- package/esm2022/lib/node-entries/node-entries-table/node-entries-table.component.mjs +290 -0
- package/esm2022/lib/node-entries/node-entries-templates.service.mjs +11 -0
- package/esm2022/lib/node-entries/node-entries-wrapper.component.mjs +324 -0
- package/esm2022/lib/node-entries/node-entries.component.mjs +131 -0
- package/esm2022/lib/node-entries/node-entries.module.mjs +161 -0
- package/esm2022/lib/node-entries/node-rating/node-rating.component.mjs +102 -0
- package/esm2022/lib/node-entries/node-stats-badges/node-stats-badges.component.mjs +48 -0
- package/esm2022/lib/node-entries/node-type-badge/node-type-badge.component.mjs +36 -0
- package/esm2022/lib/node-entries/option-button/option-button.component.mjs +62 -0
- package/esm2022/lib/node-entries/preview-image/preview-image.component.mjs +53 -0
- package/esm2022/lib/node-entries/sort-select-panel/sort-select-panel.component.mjs +41 -0
- package/esm2022/lib/node-url/node-url.component.mjs +128 -0
- package/esm2022/lib/pipes/file-size.pipe.mjs +31 -0
- package/esm2022/lib/pipes/format-date.pipe.mjs +38 -0
- package/esm2022/lib/pipes/node-icon.pipe.mjs +18 -0
- package/esm2022/lib/pipes/node-image-size.pipe.mjs +24 -0
- package/esm2022/lib/pipes/node-image.pipe.mjs +55 -0
- package/esm2022/lib/pipes/node-person-name.pipe.mjs +50 -0
- package/esm2022/lib/pipes/node-title.pipe.mjs +19 -0
- package/esm2022/lib/pipes/option-tooltip.pipe.mjs +33 -0
- package/esm2022/lib/pipes/replace-chars.pipe.mjs +29 -0
- package/esm2022/lib/pipes/vcard-name.pipe.mjs +19 -0
- package/esm2022/lib/services/abstract/app.service.mjs +3 -0
- package/esm2022/lib/services/abstract/keyboard-shortcuts.service.mjs +10 -0
- package/esm2022/lib/services/abstract/options-helper.service.mjs +3 -0
- package/esm2022/lib/services/abstract/toast.service.mjs +3 -0
- package/esm2022/lib/services/accessibility.service.mjs +73 -0
- package/esm2022/lib/services/local-events.service.mjs +36 -0
- package/esm2022/lib/services/node-entries.service.mjs +137 -0
- package/esm2022/lib/services/node-helper.service.mjs +234 -0
- package/esm2022/lib/services/nodes-drag-drop.service.mjs +155 -0
- package/esm2022/lib/services/options-helper-data.service.mjs +134 -0
- package/esm2022/lib/services/repo-url.service.mjs +49 -0
- package/esm2022/lib/services/temporary-storage.service.mjs +48 -0
- package/esm2022/lib/services/ui.service.mjs +162 -0
- package/esm2022/lib/sort-dropdown/sort-dropdown.component.mjs +50 -0
- package/esm2022/lib/spinner/spinner.component.mjs +18 -0
- package/esm2022/lib/translations/fallback-translation-handler.mjs +6 -0
- package/esm2022/lib/translations/languages.mjs +5 -0
- package/esm2022/lib/translations/translation-loader.mjs +149 -0
- package/esm2022/lib/translations/translation-source.mjs +11 -0
- package/esm2022/lib/translations/translations.module.mjs +67 -0
- package/esm2022/lib/translations/translations.service.mjs +171 -0
- package/esm2022/lib/types/accessibillity.mjs +19 -0
- package/esm2022/lib/types/api-models.mjs +2 -0
- package/esm2022/lib/types/drag-drop.mjs +2 -0
- package/esm2022/lib/types/keyboard-shortcuts.mjs +11 -0
- package/esm2022/lib/types/list-item.mjs +41 -0
- package/esm2022/lib/types/option-item.mjs +174 -0
- package/esm2022/lib/types/workflow.mjs +25 -0
- package/esm2022/lib/util/DateHelper.mjs +200 -0
- package/esm2022/lib/util/VCard.mjs +278 -0
- package/esm2022/lib/util/color-helper.mjs +124 -0
- package/esm2022/lib/util/duration-helper.mjs +102 -0
- package/esm2022/lib/util/functions.mjs +13 -0
- package/esm2022/lib/util/helper.mjs +64 -0
- package/esm2022/lib/util/isNumeric.mjs +11 -0
- package/esm2022/lib/util/rest-helper.mjs +33 -0
- package/esm2022/lib/util/ui-animation.mjs +146 -0
- package/esm2022/lib/util/ui-constants.mjs +21 -0
- package/esm2022/module.mjs +76 -0
- package/esm2022/ngx-edu-sharing-ui.mjs +5 -0
- package/fesm2022/ngx-edu-sharing-ui.mjs +6509 -0
- package/fesm2022/ngx-edu-sharing-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/actionbar/actionbar.component.d.ts +74 -0
- package/lib/common/edu-sharing-ui-common.module.d.ts +32 -0
- package/lib/directives/border-box-observer.directive.d.ts +31 -0
- package/lib/directives/check-text-overflow.directive.d.ts +20 -0
- package/lib/directives/drag-nodes/drag-nodes.d.ts +16 -0
- package/lib/directives/drag-nodes/nodes-drag-source.directive.d.ts +37 -0
- package/lib/directives/drag-nodes/nodes-drag.directive.d.ts +17 -0
- package/lib/directives/drag-nodes/nodes-drop-target.directive.d.ts +22 -0
- package/lib/directives/focus-state.directive.d.ts +14 -0
- package/lib/directives/icon.directive.d.ts +46 -0
- package/lib/dropdown/dropdown.component.d.ts +40 -0
- package/lib/edu-sharing-ui-configuration.d.ts +11 -0
- package/lib/edu-sharing-ui.module.d.ts +19 -0
- package/lib/list-items/available-widgets.d.ts +13 -0
- package/lib/list-items/format-duration.pipe.d.ts +10 -0
- package/lib/list-items/list-base/list-base.component.d.ts +18 -0
- package/lib/list-items/list-collection-info/list-collection-info.component.d.ts +14 -0
- package/lib/list-items/list-counts/list-counts.component.d.ts +13 -0
- package/lib/list-items/list-items.module.d.ts +20 -0
- package/lib/list-items/list-node-license/list-node-license.component.d.ts +20 -0
- package/lib/list-items/list-node-replication-source/list-node-replication-source.component.d.ts +22 -0
- package/lib/list-items/list-node-workflow/list-node-workflow.component.d.ts +12 -0
- package/lib/list-items/list-text/list-text.component.d.ts +28 -0
- package/lib/list-items/list-widget.d.ts +32 -0
- package/lib/list-items/node-row/node-row.component.d.ts +12 -0
- package/lib/list-items/node-source.pipe.d.ts +16 -0
- package/lib/node-entries/combined-data-source.d.ts +19 -0
- package/{src/lib/node-entries/custom-templates-data-source.ts → lib/node-entries/custom-templates-data-source.d.ts} +2 -2
- package/lib/node-entries/drag-preview/drag-preview.component.d.ts +11 -0
- package/{src/lib/node-entries/entries-model.ts → lib/node-entries/entries-model.d.ts} +19 -47
- package/lib/node-entries/items-cap.d.ts +17 -0
- package/lib/node-entries/list-item-label.pipe.d.ts +14 -0
- package/lib/node-entries/node-cache.d.ts +17 -0
- package/{src/lib/node-entries/node-data-source-remote.ts → lib/node-entries/node-data-source-remote.d.ts} +2 -12
- package/lib/node-entries/node-data-source.d.ts +42 -0
- package/lib/node-entries/node-entries-card/node-entries-card.component.d.ts +45 -0
- package/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.d.ts +92 -0
- package/lib/node-entries/node-entries-card-small/node-entries-card-small.component.d.ts +23 -0
- package/lib/node-entries/node-entries-global-options/node-entries-global-options.component.d.ts +12 -0
- package/lib/node-entries/node-entries-global.service.d.ts +50 -0
- package/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.d.ts +17 -0
- package/lib/node-entries/node-entries-table/node-entries-table.component.d.ts +76 -0
- package/{src/lib/node-entries/node-entries-templates.service.ts → lib/node-entries/node-entries-templates.service.d.ts} +6 -9
- package/lib/node-entries/node-entries-wrapper.component.d.ts +129 -0
- package/lib/node-entries/node-entries.component.d.ts +32 -0
- package/lib/node-entries/node-entries.module.d.ts +43 -0
- package/lib/node-entries/node-rating/node-rating.component.d.ts +26 -0
- package/lib/node-entries/node-stats-badges/node-stats-badges.component.d.ts +17 -0
- package/lib/node-entries/node-type-badge/node-type-badge.component.d.ts +21 -0
- package/lib/node-entries/option-button/option-button.component.d.ts +11 -0
- package/lib/node-entries/preview-image/preview-image.component.d.ts +22 -0
- package/lib/node-entries/sort-select-panel/sort-select-panel.component.d.ts +16 -0
- package/lib/node-url/node-url.component.d.ts +51 -0
- package/lib/pipes/file-size.pipe.d.ts +10 -0
- package/lib/pipes/format-date.pipe.d.ts +21 -0
- package/lib/pipes/node-icon.pipe.d.ts +11 -0
- package/lib/pipes/node-image-size.pipe.d.ts +8 -0
- package/lib/pipes/node-image.pipe.d.ts +28 -0
- package/lib/pipes/node-person-name.pipe.d.ts +10 -0
- package/lib/pipes/node-title.pipe.d.ts +11 -0
- package/lib/pipes/option-tooltip.pipe.d.ts +12 -0
- package/lib/pipes/replace-chars.pipe.d.ts +10 -0
- package/lib/pipes/vcard-name.pipe.d.ts +10 -0
- package/{src/lib/services/abstract/app.service.ts → lib/services/abstract/app.service.d.ts} +1 -1
- package/lib/services/abstract/keyboard-shortcuts.service.d.ts +11 -0
- package/lib/services/abstract/options-helper.service.d.ts +10 -0
- package/{src/lib/services/abstract/toast.service.ts → lib/services/abstract/toast.service.d.ts} +1 -2
- package/lib/services/accessibility.service.d.ts +18 -0
- package/{src/lib/services/local-events.service.ts → lib/services/local-events.service.d.ts} +7 -10
- package/lib/services/node-entries.service.d.ts +69 -0
- package/lib/services/node-helper.service.d.ts +56 -0
- package/lib/services/nodes-drag-drop.service.d.ts +41 -0
- package/lib/services/options-helper-data.service.d.ts +75 -0
- package/lib/services/repo-url.service.d.ts +25 -0
- package/lib/services/temporary-storage.service.d.ts +35 -0
- package/lib/services/ui.service.d.ts +41 -0
- package/lib/sort-dropdown/sort-dropdown.component.d.ts +15 -0
- package/lib/spinner/spinner.component.d.ts +7 -0
- package/lib/translations/fallback-translation-handler.d.ts +4 -0
- package/lib/translations/languages.d.ts +4 -0
- package/lib/translations/translation-loader.d.ts +51 -0
- package/{src/lib/translations/translation-source.ts → lib/translations/translation-source.d.ts} +4 -4
- package/lib/translations/translations.module.d.ts +15 -0
- package/lib/translations/translations.service.d.ts +30 -0
- package/lib/types/accessibillity.d.ts +15 -0
- package/{src/lib/types/drag-drop.ts → lib/types/drag-drop.d.ts} +0 -3
- package/lib/types/keyboard-shortcuts.d.ts +10 -0
- package/lib/types/list-item.d.ts +55 -0
- package/lib/types/option-item.d.ts +236 -0
- package/lib/types/workflow.d.ts +14 -0
- package/lib/util/DateHelper.d.ts +44 -0
- package/lib/util/VCard.d.ts +66 -0
- package/lib/util/color-helper.d.ts +25 -0
- package/lib/util/duration-helper.d.ts +14 -0
- package/lib/util/functions.d.ts +4 -0
- package/lib/util/helper.d.ts +20 -0
- package/lib/util/isNumeric.d.ts +5 -0
- package/lib/util/rest-helper.d.ts +10 -0
- package/lib/util/ui-animation.d.ts +39 -0
- package/lib/util/ui-constants.d.ts +18 -0
- package/{src/module.ts → module.d.ts} +0 -4
- package/package.json +23 -9
- package/.browserslistrc +0 -16
- package/.eslintrc.json +0 -44
- package/karma.conf.js +0 -42
- package/ng-package.json +0 -10
- package/src/lib/actionbar/actionbar.component.html +0 -59
- package/src/lib/actionbar/actionbar.component.scss +0 -123
- package/src/lib/actionbar/actionbar.component.ts +0 -174
- package/src/lib/common/edu-sharing-ui-common.module.ts +0 -80
- package/src/lib/directives/border-box-observer.directive.ts +0 -75
- package/src/lib/directives/check-text-overflow.directive.ts +0 -61
- package/src/lib/directives/drag-nodes/drag-nodes.ts +0 -32
- package/src/lib/directives/drag-nodes/nodes-drag-source.directive.ts +0 -79
- package/src/lib/directives/drag-nodes/nodes-drag.directive.ts +0 -43
- package/src/lib/directives/drag-nodes/nodes-drop-target.directive.ts +0 -116
- package/src/lib/directives/focus-state.directive.ts +0 -34
- package/src/lib/directives/icon.directive.ts +0 -142
- package/src/lib/directives/nodes-drop-target-legacy.directive.ts +0 -155
- package/src/lib/dropdown/dropdown.component.html +0 -32
- package/src/lib/dropdown/dropdown.component.scss +0 -67
- package/src/lib/dropdown/dropdown.component.ts +0 -71
- package/src/lib/edu-sharing-ui-configuration.ts +0 -47
- package/src/lib/edu-sharing-ui.module.ts +0 -49
- package/src/lib/list-items/available-widgets.ts +0 -30
- package/src/lib/list-items/format-duration.pipe.ts +0 -17
- package/src/lib/list-items/list-base/list-base.component.html +0 -52
- package/src/lib/list-items/list-base/list-base.component.ts +0 -44
- package/src/lib/list-items/list-collection-info/list-collection-info.component.html +0 -48
- package/src/lib/list-items/list-collection-info/list-collection-info.component.scss +0 -8
- package/src/lib/list-items/list-collection-info/list-collection-info.component.ts +0 -24
- package/src/lib/list-items/list-counts/list-counts.component.html +0 -1
- package/src/lib/list-items/list-counts/list-counts.component.scss +0 -3
- package/src/lib/list-items/list-counts/list-counts.component.ts +0 -59
- package/src/lib/list-items/list-items.module.ts +0 -33
- package/src/lib/list-items/list-node-license/list-node-license.component.html +0 -8
- package/src/lib/list-items/list-node-license/list-node-license.component.ts +0 -47
- package/src/lib/list-items/list-node-replication-source/list-node-replication-source.component.html +0 -11
- package/src/lib/list-items/list-node-replication-source/list-node-replication-source.component.ts +0 -60
- package/src/lib/list-items/list-node-workflow/list-node-workflow.component.html +0 -3
- package/src/lib/list-items/list-node-workflow/list-node-workflow.component.ts +0 -21
- package/src/lib/list-items/list-text/list-text.component.html +0 -176
- package/src/lib/list-items/list-text/list-text.component.scss +0 -3
- package/src/lib/list-items/list-text/list-text.component.ts +0 -107
- package/src/lib/list-items/list-widget.ts +0 -52
- package/src/lib/list-items/node-row/node-row.component.html +0 -31
- package/src/lib/list-items/node-row/node-row.component.scss +0 -50
- package/src/lib/list-items/node-row/node-row.component.ts +0 -16
- package/src/lib/list-items/node-source.pipe.ts +0 -48
- package/src/lib/node-entries/combined-data-source.ts +0 -51
- package/src/lib/node-entries/drag-preview/drag-preview.component.html +0 -6
- package/src/lib/node-entries/drag-preview/drag-preview.component.scss +0 -35
- package/src/lib/node-entries/drag-preview/drag-preview.component.ts +0 -15
- package/src/lib/node-entries/items-cap.ts +0 -54
- package/src/lib/node-entries/list-item-label.pipe.ts +0 -28
- package/src/lib/node-entries/mixins.scss +0 -23
- package/src/lib/node-entries/node-cache.spec.ts +0 -199
- package/src/lib/node-entries/node-cache.ts +0 -81
- package/src/lib/node-entries/node-data-source.ts +0 -148
- package/src/lib/node-entries/node-entries-card/node-entries-card.component.html +0 -167
- package/src/lib/node-entries/node-entries-card/node-entries-card.component.scss +0 -28
- package/src/lib/node-entries/node-entries-card/node-entries-card.component.ts +0 -132
- package/src/lib/node-entries/node-entries-card/node-entries-card.main.scss +0 -261
- package/src/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.html +0 -205
- package/src/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.scss +0 -181
- package/src/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.ts +0 -361
- package/src/lib/node-entries/node-entries-card-small/node-entries-card-small.component.html +0 -100
- package/src/lib/node-entries/node-entries-card-small/node-entries-card-small.component.scss +0 -46
- package/src/lib/node-entries/node-entries-card-small/node-entries-card-small.component.ts +0 -40
- package/src/lib/node-entries/node-entries-global-options/node-entries-global-options.component.html +0 -23
- package/src/lib/node-entries/node-entries-global-options/node-entries-global-options.component.scss +0 -58
- package/src/lib/node-entries/node-entries-global-options/node-entries-global-options.component.ts +0 -16
- package/src/lib/node-entries/node-entries-global.service.ts +0 -79
- package/src/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.html +0 -25
- package/src/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.scss +0 -32
- package/src/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.ts +0 -31
- package/src/lib/node-entries/node-entries-table/node-entries-table.component.html +0 -270
- package/src/lib/node-entries/node-entries-table/node-entries-table.component.scss +0 -169
- package/src/lib/node-entries/node-entries-table/node-entries-table.component.ts +0 -333
- package/src/lib/node-entries/node-entries-wrapper.component.ts +0 -363
- package/src/lib/node-entries/node-entries.component.html +0 -33
- package/src/lib/node-entries/node-entries.component.scss +0 -13
- package/src/lib/node-entries/node-entries.component.ts +0 -151
- package/src/lib/node-entries/node-entries.module.ts +0 -93
- package/src/lib/node-entries/node-rating/node-rating.component.html +0 -53
- package/src/lib/node-entries/node-rating/node-rating.component.scss +0 -31
- package/src/lib/node-entries/node-rating/node-rating.component.ts +0 -105
- package/src/lib/node-entries/node-stats-badges/node-stats-badges.component.html +0 -39
- package/src/lib/node-entries/node-stats-badges/node-stats-badges.component.scss +0 -44
- package/src/lib/node-entries/node-stats-badges/node-stats-badges.component.ts +0 -43
- package/src/lib/node-entries/node-type-badge/node-type-badge.component.html +0 -31
- package/src/lib/node-entries/node-type-badge/node-type-badge.component.scss +0 -5
- package/src/lib/node-entries/node-type-badge/node-type-badge.component.ts +0 -36
- package/src/lib/node-entries/option-button/option-button.component.ts +0 -42
- package/src/lib/node-entries/preview-image/preview-image.component.html +0 -19
- package/src/lib/node-entries/preview-image/preview-image.component.scss +0 -31
- package/src/lib/node-entries/preview-image/preview-image.component.ts +0 -47
- package/src/lib/node-entries/sort-select-panel/sort-select-panel.component.html +0 -27
- package/src/lib/node-entries/sort-select-panel/sort-select-panel.component.scss +0 -9
- package/src/lib/node-entries/sort-select-panel/sort-select-panel.component.ts +0 -26
- package/src/lib/node-url/node-url.component.html +0 -66
- package/src/lib/node-url/node-url.component.scss +0 -32
- package/src/lib/node-url/node-url.component.ts +0 -136
- package/src/lib/pipes/file-size.pipe.ts +0 -24
- package/src/lib/pipes/format-date.pipe.ts +0 -39
- package/src/lib/pipes/node-icon.pipe.ts +0 -11
- package/src/lib/pipes/node-image-size.pipe.ts +0 -18
- package/src/lib/pipes/node-image.pipe.ts +0 -71
- package/src/lib/pipes/node-person-name.pipe.ts +0 -41
- package/src/lib/pipes/node-title.pipe.ts +0 -12
- package/src/lib/pipes/option-tooltip.pipe.ts +0 -32
- package/src/lib/pipes/replace-chars.pipe.ts +0 -21
- package/src/lib/pipes/vcard-name.pipe.ts +0 -11
- package/src/lib/services/abstract/keyboard-shortcuts.service.ts +0 -10
- package/src/lib/services/abstract/options-helper.service.ts +0 -29
- package/src/lib/services/accessibility.service.ts +0 -101
- package/src/lib/services/node-entries.service.ts +0 -172
- package/src/lib/services/node-helper.service.ts +0 -239
- package/src/lib/services/nodes-drag-drop.service.ts +0 -165
- package/src/lib/services/options-helper-data.service.ts +0 -186
- package/src/lib/services/repo-url.service.ts +0 -46
- package/src/lib/services/temporary-storage.service.ts +0 -58
- package/src/lib/services/ui.service.ts +0 -182
- package/src/lib/sort-dropdown/sort-dropdown.component.html +0 -22
- package/src/lib/sort-dropdown/sort-dropdown.component.scss +0 -47
- package/src/lib/sort-dropdown/sort-dropdown.component.ts +0 -42
- package/src/lib/spinner/spinner.component.html +0 -14
- package/src/lib/spinner/spinner.component.scss +0 -141
- package/src/lib/spinner/spinner.component.ts +0 -12
- package/src/lib/translations/README.md +0 -44
- package/src/lib/translations/fallback-translation-handler.ts +0 -7
- package/src/lib/translations/languages.ts +0 -6
- package/src/lib/translations/translation-loader.spec.ts +0 -352
- package/src/lib/translations/translation-loader.ts +0 -189
- package/src/lib/translations/translations.module.ts +0 -49
- package/src/lib/translations/translations.service.spec.ts +0 -152
- package/src/lib/translations/translations.service.ts +0 -188
- package/src/lib/types/accessibillity.ts +0 -15
- package/src/lib/types/keyboard-shortcuts.ts +0 -29
- package/src/lib/types/list-item.ts +0 -67
- package/src/lib/types/option-item.ts +0 -247
- package/src/lib/types/workflow.ts +0 -35
- package/src/lib/util/DateHelper.spec.ts +0 -112
- package/src/lib/util/DateHelper.ts +0 -197
- package/src/lib/util/VCard.ts +0 -277
- package/src/lib/util/color-helper.ts +0 -125
- package/src/lib/util/duration-helper.spec.ts +0 -35
- package/src/lib/util/duration-helper.ts +0 -98
- package/src/lib/util/functions.ts +0 -15
- package/src/lib/util/helper.ts +0 -60
- package/src/lib/util/isNumeric.ts +0 -13
- package/src/lib/util/rest-helper.ts +0 -28
- package/src/lib/util/ui-animation.ts +0 -154
- package/src/lib/util/ui-constants.ts +0 -20
- package/src/test.ts +0 -28
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- /package/{src/lib/types/api-models.ts → lib/types/api-models.d.ts} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { NetworkService } from 'ngx-edu-sharing-api';
|
|
3
|
+
import { NodeHelperService } from '../services/node-helper.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NodeSourcePipe implements PipeTransform {
|
|
6
|
+
private nodeHelper;
|
|
7
|
+
private networkApi;
|
|
8
|
+
private homeRepository;
|
|
9
|
+
constructor(nodeHelper: NodeHelperService, networkApi: NetworkService);
|
|
10
|
+
transform(replicationSource: string, args: {
|
|
11
|
+
mode: 'text' | 'url' | 'escaped';
|
|
12
|
+
}): string;
|
|
13
|
+
private escape;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeSourcePipe, never>;
|
|
15
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NodeSourcePipe, "appNodeSource", false>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { NodeDataSource } from './node-data-source';
|
|
3
|
+
import { Node, GenericAuthority } from 'ngx-edu-sharing-api';
|
|
4
|
+
/**
|
|
5
|
+
* data source which joins multiple underlying data sources
|
|
6
|
+
* used for the "all" search
|
|
7
|
+
*/
|
|
8
|
+
export declare class CombinedDataSource<T extends Node | GenericAuthority> extends NodeDataSource<T> {
|
|
9
|
+
private dataSources;
|
|
10
|
+
constructor(dataSources: NodeDataSource<T>[]);
|
|
11
|
+
connect(): Observable<T[]>;
|
|
12
|
+
disconnect(): void;
|
|
13
|
+
hasMore(): boolean;
|
|
14
|
+
getData(): any;
|
|
15
|
+
isEmpty(): boolean;
|
|
16
|
+
getTotal(): number;
|
|
17
|
+
isFullyLoaded(): boolean;
|
|
18
|
+
getDatasource(position: number): NodeDataSource<T>;
|
|
19
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodeDataSource } from './node-data-source';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* this is a special data source to provide custom card layouts into the node-entries components
|
|
5
4
|
*/
|
|
6
|
-
export class CustomTemplatesDataSource extends NodeDataSource<any> {
|
|
5
|
+
export declare class CustomTemplatesDataSource extends NodeDataSource<any> {
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ListItem } from '../../types/list-item';
|
|
2
|
+
import { Node } from 'ngx-edu-sharing-api';
|
|
3
|
+
import { NodeEntriesDataType } from '../entries-model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DragPreviewComponent<T extends NodeEntriesDataType> {
|
|
6
|
+
node: Node;
|
|
7
|
+
selected: T[];
|
|
8
|
+
item: ListItem;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragPreviewComponent<any>, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DragPreviewComponent<any>, "es-drag-preview", never, { "node": { "alias": "node"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "item": { "alias": "item"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -1,74 +1,55 @@
|
|
|
1
1
|
import { Sort } from '@angular/material/sort';
|
|
2
|
-
|
|
3
2
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
4
3
|
import { CustomOptions, OptionItem, Target } from '../types/option-item';
|
|
5
4
|
import { ListItem, ListItemSort } from '../types/list-item';
|
|
6
5
|
import { CanDrop, DragData, DropAction } from '../types/drag-drop';
|
|
7
6
|
import { Node, GenericAuthority } from 'ngx-edu-sharing-api';
|
|
8
7
|
import { ActionbarComponent } from '../actionbar/actionbar.component';
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
| 'TO_ME_SHARED_FILES'
|
|
15
|
-
| 'WORKFLOW_RECEIVE'
|
|
16
|
-
| 'RECYCLE'
|
|
17
|
-
| 'ALL_FILES';
|
|
18
|
-
|
|
19
|
-
export enum NodeEntriesDisplayType {
|
|
20
|
-
Table,
|
|
21
|
-
Grid,
|
|
22
|
-
SmallGrid,
|
|
8
|
+
export type NodeRoot = 'MY_FILES' | 'SHARED_FILES' | 'MY_SHARED_FILES' | 'TO_ME_SHARED_FILES' | 'WORKFLOW_RECEIVE' | 'RECYCLE' | 'ALL_FILES';
|
|
9
|
+
export declare enum NodeEntriesDisplayType {
|
|
10
|
+
Table = 0,
|
|
11
|
+
Grid = 1,
|
|
12
|
+
SmallGrid = 2
|
|
23
13
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
// emit an event
|
|
29
|
-
Emitter,
|
|
30
|
-
None,
|
|
14
|
+
export declare enum InteractionType {
|
|
15
|
+
DefaultActionLink = 0,
|
|
16
|
+
Emitter = 1,
|
|
17
|
+
None = 2
|
|
31
18
|
}
|
|
32
|
-
|
|
33
|
-
|
|
19
|
+
export type ListOptions = {
|
|
20
|
+
[key in Target]?: OptionItem[];
|
|
21
|
+
};
|
|
34
22
|
export type ListOptionsConfig = {
|
|
35
23
|
actionbar?: ActionbarComponent;
|
|
36
24
|
parent?: Node;
|
|
37
25
|
customOptions?: CustomOptions;
|
|
38
26
|
};
|
|
39
|
-
|
|
40
27
|
export interface ListSortConfig extends Sort {
|
|
41
28
|
columns: ListItemSort[];
|
|
42
29
|
allowed?: boolean;
|
|
43
30
|
customSortingInProgress?: boolean;
|
|
44
31
|
}
|
|
45
|
-
|
|
46
32
|
export type DropTarget = Node | NodeRoot;
|
|
47
|
-
|
|
48
33
|
export interface DropSource<T extends NodeEntriesDataType> {
|
|
49
34
|
element: T[];
|
|
50
|
-
// sourceList: ListEventInterface<T>;
|
|
51
35
|
mode: DropAction;
|
|
52
36
|
}
|
|
53
|
-
|
|
54
37
|
export interface ListDragGropConfig<T extends NodeEntriesDataType> {
|
|
55
38
|
dragAllowed: boolean;
|
|
56
39
|
dropAllowed?: (dragData: DragData<T>) => CanDrop;
|
|
57
40
|
dropped?: (target: Node, source: DropSource<NodeEntriesDataType>) => void;
|
|
58
41
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
Overlay,
|
|
42
|
+
export declare enum ClickSource {
|
|
43
|
+
Preview = 0,
|
|
44
|
+
Icon = 1,
|
|
45
|
+
Metadata = 2,
|
|
46
|
+
Comments = 3,
|
|
47
|
+
Overlay = 4
|
|
66
48
|
}
|
|
67
|
-
|
|
68
49
|
export type NodeClickEvent<T extends NodeEntriesDataType> = {
|
|
69
50
|
element: T;
|
|
70
51
|
source: ClickSource;
|
|
71
|
-
attribute?: ListItem;
|
|
52
|
+
attribute?: ListItem;
|
|
72
53
|
};
|
|
73
54
|
export type FetchEvent = {
|
|
74
55
|
offset: number;
|
|
@@ -92,27 +73,18 @@ export type GridConfig = {
|
|
|
92
73
|
*/
|
|
93
74
|
layout?: GridLayout;
|
|
94
75
|
};
|
|
95
|
-
|
|
96
76
|
export interface ListEventInterface<T extends NodeEntriesDataType> {
|
|
97
77
|
updateNodes(nodes: void | T[]): void;
|
|
98
|
-
|
|
99
78
|
getDisplayType(): NodeEntriesDisplayType;
|
|
100
|
-
|
|
101
79
|
setDisplayType(displayType: NodeEntriesDisplayType): void;
|
|
102
|
-
|
|
103
80
|
showReorderColumnsDialog(): void;
|
|
104
|
-
|
|
105
81
|
addVirtualNodes(virtual: T[]): void;
|
|
106
|
-
|
|
107
82
|
setOptions(options: ListOptions): void;
|
|
108
|
-
|
|
109
83
|
/**
|
|
110
84
|
* activate option (dropdown) generation
|
|
111
85
|
*/
|
|
112
86
|
initOptionsGenerator(config: ListOptionsConfig): void | Promise<void>;
|
|
113
|
-
|
|
114
87
|
getSelection(): SelectionModel<T>;
|
|
115
|
-
|
|
116
88
|
/**
|
|
117
89
|
* triggered when nodes/objects are deleted and should not be shown in the list anymore
|
|
118
90
|
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare class ItemsCap<T> {
|
|
3
|
+
/** The number of items to which the data should be capped. */
|
|
4
|
+
get cap(): number | null;
|
|
5
|
+
set cap(value: number | null);
|
|
6
|
+
private _cap;
|
|
7
|
+
/** Whether to temporarily disable capping. */
|
|
8
|
+
get disabled(): boolean;
|
|
9
|
+
set disabled(value: boolean);
|
|
10
|
+
private _disabled;
|
|
11
|
+
/** Whether there is more data available that is currently being capped. */
|
|
12
|
+
get isActivelyCapping(): boolean;
|
|
13
|
+
private _isActivelyCapping;
|
|
14
|
+
private _effectiveCap;
|
|
15
|
+
connect(dataStream: Observable<T[]>): Observable<T[]>;
|
|
16
|
+
private _needToCap;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ListItem } from '../types/list-item';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ListItemLabelPipe implements PipeTransform {
|
|
7
|
+
private translate;
|
|
8
|
+
constructor(translate: TranslateService);
|
|
9
|
+
transform(item: ListItem, args?: {
|
|
10
|
+
fallback: string;
|
|
11
|
+
}): Observable<string>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListItemLabelPipe, never>;
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ListItemLabelPipe, "esListItemLabel", false>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface NodeCacheRange {
|
|
2
|
+
startIndex: number;
|
|
3
|
+
endIndex: number;
|
|
4
|
+
}
|
|
5
|
+
export interface NodeCacheSlice<T> extends NodeCacheRange {
|
|
6
|
+
data: readonly T[];
|
|
7
|
+
}
|
|
8
|
+
export declare class NodeCache<T> {
|
|
9
|
+
private _slices;
|
|
10
|
+
add(slice: NodeCacheSlice<T>): void;
|
|
11
|
+
clear(): void;
|
|
12
|
+
get(range: NodeCacheRange): T[] | null;
|
|
13
|
+
getMissingRange(requestedRange: NodeCacheRange): NodeCacheRange | null;
|
|
14
|
+
private _normalizeSlices;
|
|
15
|
+
private _canMerge;
|
|
16
|
+
private _merge;
|
|
17
|
+
}
|
|
@@ -5,28 +5,18 @@ import { ActivatedRoute } from '@angular/router';
|
|
|
5
5
|
import { PaginationStrategy } from './node-entries-global.service';
|
|
6
6
|
import { Sort } from '@angular/material/sort';
|
|
7
7
|
import { SortPanel } from '../types/list-item';
|
|
8
|
-
|
|
9
8
|
export interface PaginationConfig {
|
|
10
9
|
defaultPageSize: number;
|
|
11
10
|
strategy: PaginationStrategy;
|
|
12
11
|
}
|
|
13
|
-
|
|
14
|
-
export abstract class NodeDataSourceRemote<
|
|
15
|
-
T extends Node | GenericAuthority = Node,
|
|
16
|
-
P extends MatTableDataSourcePaginator = MatTableDataSourcePaginator,
|
|
17
|
-
> extends NodeDataSource<T> {
|
|
12
|
+
export declare abstract class NodeDataSourceRemote<T extends Node | GenericAuthority = Node, P extends MatTableDataSourcePaginator = MatTableDataSourcePaginator> extends NodeDataSource<T> {
|
|
18
13
|
abstract get paginator(): P | null;
|
|
19
14
|
abstract set paginator(value: P | null);
|
|
20
15
|
abstract get sortPanel(): SortPanel;
|
|
21
16
|
abstract set sortPanel(value: SortPanel);
|
|
22
17
|
abstract loadMore(): boolean;
|
|
23
|
-
|
|
24
18
|
abstract registerQueryParameters(route: ActivatedRoute): void;
|
|
25
|
-
|
|
26
|
-
abstract init({
|
|
27
|
-
paginationConfig,
|
|
28
|
-
defaultSort,
|
|
29
|
-
}: {
|
|
19
|
+
abstract init({ paginationConfig, defaultSort, }: {
|
|
30
20
|
paginationConfig: PaginationConfig;
|
|
31
21
|
defaultSort: Sort;
|
|
32
22
|
}): void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DataSource } from '@angular/cdk/collections';
|
|
2
|
+
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
|
|
3
|
+
import { ItemsCap } from './items-cap';
|
|
4
|
+
import { Node, GenericAuthority, Pagination } from 'ngx-edu-sharing-api';
|
|
5
|
+
export type LoadingState = 'initial' | 'reset' | 'page' | false;
|
|
6
|
+
export declare class NodeDataSource<T extends Node | GenericAuthority> extends DataSource<T> {
|
|
7
|
+
protected dataStream: BehaviorSubject<T[]>;
|
|
8
|
+
private pagination$;
|
|
9
|
+
isLoadingSubject: BehaviorSubject<true | LoadingState>;
|
|
10
|
+
get isLoading(): LoadingState | boolean;
|
|
11
|
+
set isLoading(isLoading: LoadingState | boolean);
|
|
12
|
+
initialPageLoaded: boolean;
|
|
13
|
+
protected _itemsCap: ItemsCap<T> | null;
|
|
14
|
+
get itemsCap(): ItemsCap<T> | null;
|
|
15
|
+
set itemsCap(value: ItemsCap<T> | null);
|
|
16
|
+
protected renderData: BehaviorSubject<T[]>;
|
|
17
|
+
protected renderDataSubscription: Subscription | null;
|
|
18
|
+
constructor(initialData?: T[]);
|
|
19
|
+
connect(): Observable<T[]>;
|
|
20
|
+
private connectRenderData;
|
|
21
|
+
connectPagination(): Observable<Pagination>;
|
|
22
|
+
disconnect(): void;
|
|
23
|
+
setData(data: T[], pagination?: Pagination): void;
|
|
24
|
+
appendData(appendData: T[], location?: 'before' | 'after'): void;
|
|
25
|
+
/**
|
|
26
|
+
* Removes elements from the visible data.
|
|
27
|
+
*/
|
|
28
|
+
removeData(toRemove: T[]): void;
|
|
29
|
+
setPagination(pagination: Pagination): void;
|
|
30
|
+
reset(): void;
|
|
31
|
+
hasMore(): boolean;
|
|
32
|
+
getData(): T[];
|
|
33
|
+
isEmpty(): boolean;
|
|
34
|
+
getTotal(): number;
|
|
35
|
+
isFullyLoaded(): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* force a refresh of all elements in the current data stream
|
|
38
|
+
* trigger this to enforce a rebuild of the nodes in all sub-components
|
|
39
|
+
* i.e. if data from some nodes has changed
|
|
40
|
+
*/
|
|
41
|
+
refresh(): void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ApplicationRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
3
|
+
import { ClickSource, InteractionType } from '../entries-model';
|
|
4
|
+
import { NodeEntriesTemplatesService } from '../node-entries-templates.service';
|
|
5
|
+
import { CustomFieldSpecialType, NodeEntriesGlobalService } from '../node-entries-global.service';
|
|
6
|
+
import { Target } from '../../types/option-item';
|
|
7
|
+
import { NodeEntriesService } from '../../services/node-entries.service';
|
|
8
|
+
import { NodeHelperService } from '../../services/node-helper.service';
|
|
9
|
+
import { AuthenticationService, ConfigService, Node } from 'ngx-edu-sharing-api';
|
|
10
|
+
import { DropdownComponent } from '../../dropdown/dropdown.component';
|
|
11
|
+
import { Toast } from '../../services/abstract/toast.service';
|
|
12
|
+
import { BehaviorSubject } from 'rxjs';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class NodeEntriesCardComponent<T extends Node> implements OnChanges, OnInit {
|
|
15
|
+
entriesService: NodeEntriesService<T>;
|
|
16
|
+
nodeHelper: NodeHelperService;
|
|
17
|
+
applicationRef: ApplicationRef;
|
|
18
|
+
configService: ConfigService;
|
|
19
|
+
authenticationService: AuthenticationService;
|
|
20
|
+
templatesService: NodeEntriesTemplatesService;
|
|
21
|
+
private nodeEntriesGlobalService;
|
|
22
|
+
private toast;
|
|
23
|
+
readonly InteractionType: typeof InteractionType;
|
|
24
|
+
readonly Target: typeof Target;
|
|
25
|
+
readonly ClickSource: typeof ClickSource;
|
|
26
|
+
readonly CustomFieldSpecialType: typeof CustomFieldSpecialType;
|
|
27
|
+
dropdown: DropdownComponent;
|
|
28
|
+
menuTrigger: MatMenuTrigger;
|
|
29
|
+
node: T;
|
|
30
|
+
dropdownLeft: number;
|
|
31
|
+
dropdownTop: number;
|
|
32
|
+
showRatings: BehaviorSubject<boolean>;
|
|
33
|
+
isCollection: boolean;
|
|
34
|
+
constructor(entriesService: NodeEntriesService<T>, nodeHelper: NodeHelperService, applicationRef: ApplicationRef, configService: ConfigService, authenticationService: AuthenticationService, templatesService: NodeEntriesTemplatesService, nodeEntriesGlobalService: NodeEntriesGlobalService, toast: Toast);
|
|
35
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
36
|
+
getTextColor(): "#000" | "#fff";
|
|
37
|
+
optionsOnCard(): import("../../types/option-item").OptionItem[];
|
|
38
|
+
openContextmenu(event: MouseEvent | Event): void;
|
|
39
|
+
getVisibleColumns(): import("ngx-edu-sharing-ui").ListItem[];
|
|
40
|
+
openMenu(node: T): Promise<void>;
|
|
41
|
+
ngOnInit(): Promise<void>;
|
|
42
|
+
getTemplate(name: CustomFieldSpecialType): import("@angular/core").TemplateRef<unknown>;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesCardComponent<any>, [null, null, null, null, null, null, null, { optional: true; }]>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodeEntriesCardComponent<any>, "es-node-entries-card", never, { "dropdown": { "alias": "dropdown"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { CdkDragEnter, CdkDropList } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { ElementRef, NgZone, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
3
|
+
import { Sort } from '@angular/material/sort';
|
|
4
|
+
import { Node } from 'ngx-edu-sharing-api';
|
|
5
|
+
import * as rxjs from 'rxjs';
|
|
6
|
+
import { GridLayout, NodeEntriesDisplayType } from '../entries-model';
|
|
7
|
+
import { ItemsCap } from '../items-cap';
|
|
8
|
+
import { NodeEntriesGlobalService } from '../node-entries-global.service';
|
|
9
|
+
import { NodeEntriesTemplatesService } from '../node-entries-templates.service';
|
|
10
|
+
import { SortSelectPanelComponent } from '../sort-select-panel/sort-select-panel.component';
|
|
11
|
+
import { Target } from '../../types/option-item';
|
|
12
|
+
import { NodeEntriesService } from '../../services/node-entries.service';
|
|
13
|
+
import { UIService } from '../../services/ui.service';
|
|
14
|
+
import { ListItemSort } from '../../types/list-item';
|
|
15
|
+
import { DragData } from '../../types/drag-drop';
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export declare class NodeEntriesCardGridComponent<T extends Node> implements OnInit, OnDestroy {
|
|
18
|
+
entriesService: NodeEntriesService<T>;
|
|
19
|
+
entriesGlobalService: NodeEntriesGlobalService;
|
|
20
|
+
templatesService: NodeEntriesTemplatesService;
|
|
21
|
+
ui: UIService;
|
|
22
|
+
private ngZone;
|
|
23
|
+
readonly NodeEntriesDisplayType: typeof NodeEntriesDisplayType;
|
|
24
|
+
readonly Target: typeof Target;
|
|
25
|
+
/**
|
|
26
|
+
* relative scrolling when a scrolling arrow (left or right) is used
|
|
27
|
+
* a value of 1 would mean to scroll the full width of the entire content
|
|
28
|
+
*/
|
|
29
|
+
readonly ScrollingOffsetPercentage = 0.4;
|
|
30
|
+
set gridTop(value: TemplateRef<unknown>);
|
|
31
|
+
set sortPanel(value: SortSelectPanelComponent);
|
|
32
|
+
dropListsQuery: QueryList<CdkDropList>;
|
|
33
|
+
gridRef: ElementRef;
|
|
34
|
+
itemRefs: QueryList<ElementRef<HTMLElement>>;
|
|
35
|
+
displayType: NodeEntriesDisplayType;
|
|
36
|
+
isDragging: boolean;
|
|
37
|
+
dropLists: CdkDropList[];
|
|
38
|
+
/**
|
|
39
|
+
* Whether the number of shown items is limited by `gridConfig.maxRows`.
|
|
40
|
+
*
|
|
41
|
+
* A value of `true` does not mean, that there would be more items available.
|
|
42
|
+
*/
|
|
43
|
+
visibleItemsLimited: boolean;
|
|
44
|
+
layout: GridLayout;
|
|
45
|
+
/**
|
|
46
|
+
* updates via boxObserver
|
|
47
|
+
* and holds the information if scrolling in the direction is currently feasible
|
|
48
|
+
*/
|
|
49
|
+
scroll: {
|
|
50
|
+
left: boolean;
|
|
51
|
+
right: boolean;
|
|
52
|
+
};
|
|
53
|
+
readonly nodes$: rxjs.Observable<T[]>;
|
|
54
|
+
private readonly maxRows$;
|
|
55
|
+
private readonly layout$;
|
|
56
|
+
private readonly itemsPerRowSubject;
|
|
57
|
+
readonly itemsCap: ItemsCap<T>;
|
|
58
|
+
private globalCursorStyle;
|
|
59
|
+
private destroyed;
|
|
60
|
+
constructor(entriesService: NodeEntriesService<T>, entriesGlobalService: NodeEntriesGlobalService, templatesService: NodeEntriesTemplatesService, ui: UIService, ngZone: NgZone);
|
|
61
|
+
ngOnInit(): void;
|
|
62
|
+
ngOnDestroy(): void;
|
|
63
|
+
private registerGridTop;
|
|
64
|
+
private registerItemsCap;
|
|
65
|
+
private registerLayout;
|
|
66
|
+
onSortChange(sort: Sort): void;
|
|
67
|
+
loadData(source: 'scroll' | 'button'): void;
|
|
68
|
+
onCustomSortingInProgressChange(): void;
|
|
69
|
+
onRearrangeDragEntered($event: CdkDragEnter): void;
|
|
70
|
+
onRearrangeDragStarted(): void;
|
|
71
|
+
onRearrangeDragEnded(): void;
|
|
72
|
+
getDragStartDelay(): number;
|
|
73
|
+
private registerVisibleItemsLimited;
|
|
74
|
+
private refreshDropLists;
|
|
75
|
+
private focusFirstNewItemWhenLoaded;
|
|
76
|
+
private focusOnce;
|
|
77
|
+
onGridSizeChanges(): void;
|
|
78
|
+
private getItemsPerRow;
|
|
79
|
+
getSortColumns(): ListItemSort[];
|
|
80
|
+
canDropNodes: (dragData: DragData<T>) => import("../../types/drag-drop").CanDrop;
|
|
81
|
+
onNodesDropped(dragData: DragData<Node>): void;
|
|
82
|
+
getDragEnabled(): boolean;
|
|
83
|
+
getDragData(node: T): T[];
|
|
84
|
+
onDragStarted(node: T): void;
|
|
85
|
+
onDragEnded(): void;
|
|
86
|
+
private canScroll;
|
|
87
|
+
updateScrollState(): void;
|
|
88
|
+
doScroll(direction: 'left' | 'right'): void;
|
|
89
|
+
isCustomTemplate(): boolean;
|
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesCardGridComponent<any>, never>;
|
|
91
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodeEntriesCardGridComponent<any>, "es-node-entries-card-grid", never, { "displayType": { "alias": "displayType"; "required": false; }; }, {}, never, never, false, never>;
|
|
92
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Target } from '../../types/option-item';
|
|
3
|
+
import { ClickSource, InteractionType } from '../entries-model';
|
|
4
|
+
import { NodeEntriesTemplatesService } from '../node-entries-templates.service';
|
|
5
|
+
import { NodeEntriesService } from '../../services/node-entries.service';
|
|
6
|
+
import { NodeHelperService } from '../../services/node-helper.service';
|
|
7
|
+
import { Node } from 'ngx-edu-sharing-api';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class NodeEntriesCardSmallComponent<T extends Node> implements OnChanges {
|
|
10
|
+
entriesService: NodeEntriesService<T>;
|
|
11
|
+
nodeHelper: NodeHelperService;
|
|
12
|
+
templatesService: NodeEntriesTemplatesService;
|
|
13
|
+
readonly ClickSource: typeof ClickSource;
|
|
14
|
+
readonly InteractionType: typeof InteractionType;
|
|
15
|
+
readonly Target: typeof Target;
|
|
16
|
+
node: T;
|
|
17
|
+
constructor(entriesService: NodeEntriesService<T>, nodeHelper: NodeHelperService, templatesService: NodeEntriesTemplatesService);
|
|
18
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
+
optionsOnCard(): import("../../types/option-item").OptionItem[];
|
|
20
|
+
openContextmenu(event: MouseEvent | Event): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesCardSmallComponent<any>, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodeEntriesCardSmallComponent<any>, "es-node-entries-card-small", never, { "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
|
+
}
|
package/lib/node-entries/node-entries-global-options/node-entries-global-options.component.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Node } from 'ngx-edu-sharing-api';
|
|
2
|
+
import { NodeEntriesDisplayType } from '../entries-model';
|
|
3
|
+
import { NodeEntriesService } from '../../services/node-entries.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NodeEntriesGlobalOptionsComponent<T extends Node> {
|
|
6
|
+
entriesService: NodeEntriesService<T>;
|
|
7
|
+
readonly NodeEntriesDisplayType: typeof NodeEntriesDisplayType;
|
|
8
|
+
displayType: NodeEntriesDisplayType;
|
|
9
|
+
constructor(entriesService: NodeEntriesService<T>);
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesGlobalOptionsComponent<any>, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodeEntriesGlobalOptionsComponent<any>, "es-node-entries-global-options", never, { "displayType": { "alias": "displayType"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { Node } from 'ngx-edu-sharing-api';
|
|
3
|
+
import { ListItemType } from '../types/list-item';
|
|
4
|
+
import { Scope } from '../types/option-item';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export type CustomField = {
|
|
7
|
+
type: ListItemType;
|
|
8
|
+
name: string | CustomFieldSpecialType;
|
|
9
|
+
};
|
|
10
|
+
export declare enum CustomFieldSpecialType {
|
|
11
|
+
preview = 0,
|
|
12
|
+
type = 1
|
|
13
|
+
}
|
|
14
|
+
export type CustomFieldInfo = {
|
|
15
|
+
type: ListItemType;
|
|
16
|
+
/**
|
|
17
|
+
* Either the property name (i.e. "cm:name") or a special value.
|
|
18
|
+
*/
|
|
19
|
+
name: string | CustomFieldSpecialType;
|
|
20
|
+
/**
|
|
21
|
+
* Custom callback which should return true if the template should be used for the given item.
|
|
22
|
+
*/
|
|
23
|
+
useCallback?: (node: Node) => boolean;
|
|
24
|
+
templateRef: TemplateRef<unknown>;
|
|
25
|
+
};
|
|
26
|
+
export type PaginationStrategy = 'infinite-scroll' | 'paginator';
|
|
27
|
+
type PaginationScope = Scope | 'DEFAULT';
|
|
28
|
+
/**
|
|
29
|
+
* this service is intended to add custom behaviour to the global tables & grid views
|
|
30
|
+
*/
|
|
31
|
+
export declare class NodeEntriesGlobalService {
|
|
32
|
+
private customFields;
|
|
33
|
+
private paginationStrategy;
|
|
34
|
+
private paginatorSizeOptions;
|
|
35
|
+
constructor();
|
|
36
|
+
setPaginationStrategy(scope: PaginationScope, strategy: PaginationStrategy): void;
|
|
37
|
+
getPaginationStrategy(scope: Scope): PaginationStrategy;
|
|
38
|
+
setPaginatorSizeOptions(scope: PaginationScope, size: number[]): void;
|
|
39
|
+
getPaginatorSizeOptions(scope: Scope): number[];
|
|
40
|
+
getCustomFieldTemplate(item: CustomField, node: Node): TemplateRef<unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* Registers a custom (node) attribute you want to render via the given template.
|
|
43
|
+
*
|
|
44
|
+
* You may also override existing attributes if you want to provide a custom view.
|
|
45
|
+
*/
|
|
46
|
+
registerCustomFieldRendering(customFieldInfo: CustomFieldInfo): void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesGlobalService, never>;
|
|
48
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NodeEntriesGlobalService>;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
import { CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
4
|
+
import { ListItem } from '../../../types/list-item';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ColumnChooserComponent {
|
|
7
|
+
origin: CdkOverlayOrigin;
|
|
8
|
+
columnChooserVisible: boolean;
|
|
9
|
+
columnChooserVisibleChange: EventEmitter<boolean>;
|
|
10
|
+
columns: ListItem[];
|
|
11
|
+
columnsChange: EventEmitter<ListItem[]>;
|
|
12
|
+
constructor();
|
|
13
|
+
columnChooserDrop(event: CdkDragDrop<string[]>): void;
|
|
14
|
+
columnChooserToggle(columnIndex: number): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnChooserComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnChooserComponent, "es-column-chooser", never, { "origin": { "alias": "origin"; "required": false; }; "columnChooserVisible": { "alias": "columnChooserVisible"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; }, { "columnChooserVisibleChange": "columnChooserVisibleChange"; "columnsChange": "columnsChange"; }, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
2
|
+
import { AfterViewInit, ApplicationRef, ChangeDetectorRef, ElementRef, NgZone, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
4
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
5
|
+
import { MatSort } from '@angular/material/sort';
|
|
6
|
+
import * as rxjs from 'rxjs';
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
8
|
+
import { ClickSource, InteractionType, NodeEntriesDataType, NodeEntriesDisplayType } from '../entries-model';
|
|
9
|
+
import { NodeEntriesGlobalService } from '../node-entries-global.service';
|
|
10
|
+
import { NodeEntriesService } from '../../services/node-entries.service';
|
|
11
|
+
import { UIService } from '../../services/ui.service';
|
|
12
|
+
import { ListItem } from '../../types/list-item';
|
|
13
|
+
import { CanDrop, DragData } from '../../types/drag-drop';
|
|
14
|
+
import { Node } from 'ngx-edu-sharing-api';
|
|
15
|
+
import { Target } from '../../types/option-item';
|
|
16
|
+
import { Toast } from '../../services/abstract/toast.service';
|
|
17
|
+
import { DropdownComponent } from '../../dropdown/dropdown.component';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
19
|
+
export declare class NodeEntriesTableComponent<T extends NodeEntriesDataType> implements OnChanges, AfterViewInit, OnDestroy {
|
|
20
|
+
entriesService: NodeEntriesService<T>;
|
|
21
|
+
entriesGlobalService: NodeEntriesGlobalService;
|
|
22
|
+
private applicationRef;
|
|
23
|
+
private toast;
|
|
24
|
+
private changeDetectorRef;
|
|
25
|
+
ui: UIService;
|
|
26
|
+
private ngZone;
|
|
27
|
+
private elementRef;
|
|
28
|
+
readonly InteractionType: typeof InteractionType;
|
|
29
|
+
readonly ClickSource: typeof ClickSource;
|
|
30
|
+
readonly NodeEntriesDisplayType: typeof NodeEntriesDisplayType;
|
|
31
|
+
readonly Target: typeof Target;
|
|
32
|
+
sort: MatSort;
|
|
33
|
+
paginator: MatPaginator;
|
|
34
|
+
columnChooserTrigger: CdkOverlayOrigin;
|
|
35
|
+
dropdown: DropdownComponent;
|
|
36
|
+
menuTrigger: MatMenuTrigger;
|
|
37
|
+
dropdownLeft: number;
|
|
38
|
+
dropdownTop: number;
|
|
39
|
+
loading: Observable<boolean>;
|
|
40
|
+
isPageSelected: rxjs.BehaviorSubject<boolean>;
|
|
41
|
+
isAllSelected: rxjs.BehaviorSubject<boolean>;
|
|
42
|
+
columnChooserVisible: boolean;
|
|
43
|
+
columnChooserTriggerReady: boolean;
|
|
44
|
+
error: Observable<any>;
|
|
45
|
+
pageSizeOptions: number[];
|
|
46
|
+
isDragging: boolean;
|
|
47
|
+
private readonly maximumColumnsNumber$;
|
|
48
|
+
readonly visibleDataColumns$: rxjs.Observable<ListItem[]>;
|
|
49
|
+
readonly visibleColumnNames$: rxjs.Observable<string[]>;
|
|
50
|
+
private destroyed;
|
|
51
|
+
constructor(entriesService: NodeEntriesService<T>, entriesGlobalService: NodeEntriesGlobalService, applicationRef: ApplicationRef, toast: Toast, changeDetectorRef: ChangeDetectorRef, ui: UIService, ngZone: NgZone, elementRef: ElementRef<HTMLElement>);
|
|
52
|
+
ngAfterViewInit(): void;
|
|
53
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
54
|
+
ngOnDestroy(): void;
|
|
55
|
+
onRowContextMenu({ event, node }: {
|
|
56
|
+
event: MouseEvent | Event;
|
|
57
|
+
node: T;
|
|
58
|
+
}): void;
|
|
59
|
+
private updateSort;
|
|
60
|
+
private registerMaximumColumnsNumber;
|
|
61
|
+
private getMaximumColumnsNumber;
|
|
62
|
+
private getVisibleDataColumns;
|
|
63
|
+
private getVisibleColumnNames;
|
|
64
|
+
isSortable(column: ListItem): boolean;
|
|
65
|
+
toggleAll(checked: boolean): void;
|
|
66
|
+
private registerSortChanges;
|
|
67
|
+
canDrop: (dragData: DragData<T>) => CanDrop;
|
|
68
|
+
drop(dragData: DragData<Node>): void;
|
|
69
|
+
getDragData(node: T): T[];
|
|
70
|
+
onDragStarted(node: T): void;
|
|
71
|
+
onDragEnded(): void;
|
|
72
|
+
loadData(source: 'scroll' | 'button'): void;
|
|
73
|
+
openMenu(node: T): Promise<void>;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeEntriesTableComponent<any>, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodeEntriesTableComponent<any>, "es-node-entries-table", never, {}, {}, never, never, false, never>;
|
|
76
|
+
}
|