@skyux/list-builder 5.0.0 → 5.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/bundles/skyux-list-builder.umd.js +317 -336
- package/documentation.json +857 -639
- package/esm2015/index.js +78 -0
- package/esm2015/index.js.map +1 -0
- package/esm2015/lib/modules/list/list-data-request.model.js +18 -0
- package/esm2015/lib/modules/list/list-data-request.model.js.map +1 -0
- package/esm2015/lib/modules/list/list-data-response.model.js +9 -0
- package/esm2015/lib/modules/list/list-data-response.model.js.map +1 -0
- package/esm2015/lib/modules/list/list-data.provider.js +7 -0
- package/esm2015/lib/modules/list/list-data.provider.js.map +1 -0
- package/esm2015/lib/modules/list/list-paging.component.js +13 -0
- package/esm2015/lib/modules/list/list-paging.component.js.map +1 -0
- package/esm2015/lib/modules/list/list-view.component.js +28 -0
- package/esm2015/lib/modules/list/list-view.component.js.map +1 -0
- package/esm2015/lib/modules/list/list.component.js +305 -0
- package/esm2015/lib/modules/list/list.component.js.map +1 -0
- package/esm2015/lib/modules/list/list.module.js +18 -0
- package/esm2015/lib/modules/list/list.module.js.map +1 -0
- package/esm2015/lib/modules/list/state/filters/filters.orchestrator.js +16 -0
- package/esm2015/lib/modules/list/state/filters/filters.orchestrator.js.map +1 -0
- package/esm2015/lib/modules/list/state/filters/update.action.js +9 -0
- package/esm2015/lib/modules/list/state/filters/update.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/items/items.orchestrator.js +53 -0
- package/esm2015/lib/modules/list/state/items/items.orchestrator.js.map +1 -0
- package/esm2015/lib/modules/list/state/items/load.action.js +12 -0
- package/esm2015/lib/modules/list/state/items/load.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/items/set-items-selected.action.js +13 -0
- package/esm2015/lib/modules/list/state/items/set-items-selected.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/items/set-loading.action.js +9 -0
- package/esm2015/lib/modules/list/state/items/set-loading.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/list-state-action.type.js +2 -0
- package/esm2015/lib/modules/list/state/list-state-action.type.js.map +1 -0
- package/esm2015/lib/modules/list/state/list-state.model.js +24 -0
- package/esm2015/lib/modules/list/state/list-state.model.js.map +1 -0
- package/esm2015/lib/modules/list/state/list-state.rxstate.js +80 -0
- package/esm2015/lib/modules/list/state/list-state.rxstate.js.map +1 -0
- package/esm2015/lib/modules/list/state/list-state.state-node.js +37 -0
- package/esm2015/lib/modules/list/state/list-state.state-node.js.map +1 -0
- package/esm2015/lib/modules/list/state/paging/paging.model.js +14 -0
- package/esm2015/lib/modules/list/state/paging/paging.model.js.map +1 -0
- package/esm2015/lib/modules/list/state/paging/paging.orchestrator.js +27 -0
- package/esm2015/lib/modules/list/state/paging/paging.orchestrator.js.map +1 -0
- package/esm2015/lib/modules/list/state/paging/set-items-per-page.action.js +9 -0
- package/esm2015/lib/modules/list/state/paging/set-items-per-page.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/paging/set-max-pages.action.js +9 -0
- package/esm2015/lib/modules/list/state/paging/set-max-pages.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/paging/set-page-number.action.js +9 -0
- package/esm2015/lib/modules/list/state/paging/set-page-number.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/search/search.model.js +32 -0
- package/esm2015/lib/modules/list/state/search/search.model.js.map +1 -0
- package/esm2015/lib/modules/list/state/search/search.orchestrator.js +47 -0
- package/esm2015/lib/modules/list/state/search/search.orchestrator.js.map +1 -0
- package/esm2015/lib/modules/list/state/search/set-field-selectors.action.js +9 -0
- package/esm2015/lib/modules/list/state/search/set-field-selectors.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/search/set-functions.action.js +9 -0
- package/esm2015/lib/modules/list/state/search/set-functions.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/search/set-options.action.js +11 -0
- package/esm2015/lib/modules/list/state/search/set-options.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/search/set-search-text.action.js +9 -0
- package/esm2015/lib/modules/list/state/search/set-search-text.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/selected/load.action.js +9 -0
- package/esm2015/lib/modules/list/state/selected/load.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/selected/selected.model.js +9 -0
- package/esm2015/lib/modules/list/state/selected/selected.model.js.map +1 -0
- package/esm2015/lib/modules/list/state/selected/selected.orchestrator.js +56 -0
- package/esm2015/lib/modules/list/state/selected/selected.orchestrator.js.map +1 -0
- package/esm2015/lib/modules/list/state/selected/set-item-selected.action.js +10 -0
- package/esm2015/lib/modules/list/state/selected/set-item-selected.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/selected/set-items-selected.action.js +11 -0
- package/esm2015/lib/modules/list/state/selected/set-items-selected.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/selected/set-loading.action.js +9 -0
- package/esm2015/lib/modules/list/state/selected/set-loading.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/sort/label.model.js +25 -0
- package/esm2015/lib/modules/list/state/sort/label.model.js.map +1 -0
- package/esm2015/lib/modules/list/state/sort/set-available.action.js +9 -0
- package/esm2015/lib/modules/list/state/sort/set-available.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/sort/set-field-selectors.action.js +9 -0
- package/esm2015/lib/modules/list/state/sort/set-field-selectors.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/sort/set-global.action.js +9 -0
- package/esm2015/lib/modules/list/state/sort/set-global.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/sort/sort.model.js +27 -0
- package/esm2015/lib/modules/list/state/sort/sort.model.js.map +1 -0
- package/esm2015/lib/modules/list/state/sort/sort.orchestrator.js +30 -0
- package/esm2015/lib/modules/list/state/sort/sort.orchestrator.js.map +1 -0
- package/esm2015/lib/modules/list/state/toolbar/disable.action.js +9 -0
- package/esm2015/lib/modules/list/state/toolbar/disable.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/toolbar/load.action.js +10 -0
- package/esm2015/lib/modules/list/state/toolbar/load.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/toolbar/remove.action.js +9 -0
- package/esm2015/lib/modules/list/state/toolbar/remove.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/toolbar/set-exists.action.js +9 -0
- package/esm2015/lib/modules/list/state/toolbar/set-exists.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/toolbar/set-type.action.js +9 -0
- package/esm2015/lib/modules/list/state/toolbar/set-type.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/toolbar/show-multiselect-toolbar.action.js +9 -0
- package/esm2015/lib/modules/list/state/toolbar/show-multiselect-toolbar.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/toolbar/toolbar-item.model.js +16 -0
- package/esm2015/lib/modules/list/state/toolbar/toolbar-item.model.js.map +1 -0
- package/esm2015/lib/modules/list/state/toolbar/toolbar.model.js +17 -0
- package/esm2015/lib/modules/list/state/toolbar/toolbar.model.js.map +1 -0
- package/esm2015/lib/modules/list/state/toolbar/toolbar.orchestrator.js +80 -0
- package/esm2015/lib/modules/list/state/toolbar/toolbar.orchestrator.js.map +1 -0
- package/esm2015/lib/modules/list/state/views/load.action.js +9 -0
- package/esm2015/lib/modules/list/state/views/load.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/views/set-active.action.js +9 -0
- package/esm2015/lib/modules/list/state/views/set-active.action.js.map +1 -0
- package/esm2015/lib/modules/list/state/views/view.model.js +10 -0
- package/esm2015/lib/modules/list/state/views/view.model.js.map +1 -0
- package/esm2015/lib/modules/list/state/views/views.model.js +13 -0
- package/esm2015/lib/modules/list/state/views/views.model.js.map +1 -0
- package/esm2015/lib/modules/list/state/views/views.orchestrator.js +21 -0
- package/esm2015/lib/modules/list/state/views/views.orchestrator.js.map +1 -0
- package/esm2015/lib/modules/list-data-provider-in-memory/list-data-in-memory.provider.js +160 -0
- package/esm2015/lib/modules/list-data-provider-in-memory/list-data-in-memory.provider.js.map +1 -0
- package/esm2015/lib/modules/list-filters/filter.model.js +18 -0
- package/esm2015/lib/modules/list-filters/filter.model.js.map +1 -0
- package/esm2015/lib/modules/list-filters/list-filter-button.component.js +44 -0
- package/esm2015/lib/modules/list-filters/list-filter-button.component.js.map +1 -0
- package/esm2015/lib/modules/list-filters/list-filter-inline-item-renderer.component.js +34 -0
- package/esm2015/lib/modules/list-filters/list-filter-inline-item-renderer.component.js.map +1 -0
- package/esm2015/lib/modules/list-filters/list-filter-inline-item.component.js +45 -0
- package/esm2015/lib/modules/list-filters/list-filter-inline-item.component.js.map +1 -0
- package/esm2015/lib/modules/list-filters/list-filter-inline.component.js +74 -0
- package/esm2015/lib/modules/list-filters/list-filter-inline.component.js.map +1 -0
- package/esm2015/lib/modules/list-filters/list-filter-inline.model.js +21 -0
- package/esm2015/lib/modules/list-filters/list-filter-inline.model.js.map +1 -0
- package/esm2015/lib/modules/list-filters/list-filter-summary.component.js +60 -0
- package/esm2015/lib/modules/list-filters/list-filter-summary.component.js.map +1 -0
- package/esm2015/lib/modules/list-filters/list-filters.module.js +41 -0
- package/esm2015/lib/modules/list-filters/list-filters.module.js.map +1 -0
- package/esm2015/lib/modules/list-paging/list-paging.component.js +89 -0
- package/esm2015/lib/modules/list-paging/list-paging.component.js.map +1 -0
- package/esm2015/lib/modules/list-paging/list-paging.module.js +19 -0
- package/esm2015/lib/modules/list-paging/list-paging.module.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-multiselect-toolbar.component.js +153 -0
- package/esm2015/lib/modules/list-toolbar/list-multiselect-toolbar.component.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-action.component.js +33 -0
- package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-action.component.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-action.js +2 -0
- package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-action.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions-host.component.js +50 -0
- package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions-host.component.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions.component.js +45 -0
- package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions.component.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions.module.js +46 -0
- package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions.module.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions.service.js +36 -0
- package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions.service.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar-item-renderer.component.js +30 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar-item-renderer.component.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar-item.component.js +47 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar-item.component.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar-search-actions.component.js +19 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar-search-actions.component.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar-sort.component.js +25 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar-sort.component.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar-view-actions.component.js +21 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar-view-actions.component.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar.component.js +360 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar.component.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar.module.js +87 -0
- package/esm2015/lib/modules/list-toolbar/list-toolbar.module.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/state/config/config.model.js +14 -0
- package/esm2015/lib/modules/list-toolbar/state/config/config.model.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/state/config/config.orchestrator.js +21 -0
- package/esm2015/lib/modules/list-toolbar/state/config/config.orchestrator.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/state/config/set-search-enabled.action.js +9 -0
- package/esm2015/lib/modules/list-toolbar/state/config/set-search-enabled.action.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/state/config/set-sort-selector-enabled.action.js +10 -0
- package/esm2015/lib/modules/list-toolbar/state/config/set-sort-selector-enabled.action.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/state/toolbar-state-action.type.js +2 -0
- package/esm2015/lib/modules/list-toolbar/state/toolbar-state-action.type.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/state/toolbar-state.model.js +10 -0
- package/esm2015/lib/modules/list-toolbar/state/toolbar-state.model.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/state/toolbar-state.rxstate.js +19 -0
- package/esm2015/lib/modules/list-toolbar/state/toolbar-state.rxstate.js.map +1 -0
- package/esm2015/lib/modules/list-toolbar/state/toolbar-state.state-node.js +23 -0
- package/esm2015/lib/modules/list-toolbar/state/toolbar-state.state-node.js.map +1 -0
- package/esm2015/lib/modules/shared/sky-list-builder-resources.module.js +53 -0
- package/esm2015/lib/modules/shared/sky-list-builder-resources.module.js.map +1 -0
- package/esm2015/skyux-list-builder.js +2 -2
- package/esm2015/skyux-list-builder.js.map +1 -0
- package/fesm2015/skyux-list-builder.js +383 -399
- package/fesm2015/skyux-list-builder.js.map +1 -1
- package/index.d.ts +74 -0
- package/{modules → lib/modules}/list/list-data-request.model.d.ts +0 -0
- package/{modules → lib/modules}/list/list-data-response.model.d.ts +0 -0
- package/{modules → lib/modules}/list/list-data.provider.d.ts +0 -0
- package/{modules → lib/modules}/list/list-paging.component.d.ts +0 -0
- package/{modules → lib/modules}/list/list-view.component.d.ts +0 -0
- package/{modules → lib/modules}/list/list.component.d.ts +0 -0
- package/{modules → lib/modules}/list/list.module.d.ts +0 -0
- package/{modules → lib/modules}/list/state/filters/filters.orchestrator.d.ts +0 -0
- package/{modules → lib/modules}/list/state/filters/update.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/items/items.orchestrator.d.ts +0 -0
- package/{modules → lib/modules}/list/state/items/load.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/items/set-items-selected.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/items/set-loading.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/list-state-action.type.d.ts +0 -0
- package/{modules → lib/modules}/list/state/list-state.model.d.ts +0 -0
- package/{modules → lib/modules}/list/state/list-state.rxstate.d.ts +0 -0
- package/{modules → lib/modules}/list/state/list-state.state-node.d.ts +0 -0
- package/{modules → lib/modules}/list/state/paging/paging.model.d.ts +0 -0
- package/{modules → lib/modules}/list/state/paging/paging.orchestrator.d.ts +0 -0
- package/{modules → lib/modules}/list/state/paging/set-items-per-page.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/paging/set-max-pages.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/paging/set-page-number.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/search/search.model.d.ts +1 -0
- package/{modules → lib/modules}/list/state/search/search.orchestrator.d.ts +0 -0
- package/{modules → lib/modules}/list/state/search/set-field-selectors.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/search/set-functions.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/search/set-options.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/search/set-search-text.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/selected/load.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/selected/selected.model.d.ts +0 -0
- package/{modules → lib/modules}/list/state/selected/selected.orchestrator.d.ts +0 -0
- package/{modules → lib/modules}/list/state/selected/set-item-selected.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/selected/set-items-selected.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/selected/set-loading.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/sort/label.model.d.ts +0 -0
- package/{modules → lib/modules}/list/state/sort/set-available.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/sort/set-field-selectors.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/sort/set-global.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/sort/sort.model.d.ts +0 -0
- package/{modules → lib/modules}/list/state/sort/sort.orchestrator.d.ts +0 -0
- package/{modules → lib/modules}/list/state/toolbar/disable.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/toolbar/load.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/toolbar/remove.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/toolbar/set-exists.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/toolbar/set-type.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/toolbar/show-multiselect-toolbar.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/toolbar/toolbar-item.model.d.ts +0 -0
- package/{modules → lib/modules}/list/state/toolbar/toolbar.model.d.ts +0 -0
- package/{modules → lib/modules}/list/state/toolbar/toolbar.orchestrator.d.ts +0 -0
- package/{modules → lib/modules}/list/state/views/load.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/views/set-active.action.d.ts +0 -0
- package/{modules → lib/modules}/list/state/views/view.model.d.ts +0 -0
- package/{modules → lib/modules}/list/state/views/views.model.d.ts +0 -0
- package/{modules → lib/modules}/list/state/views/views.orchestrator.d.ts +0 -0
- package/{modules → lib/modules}/list-data-provider-in-memory/list-data-in-memory.provider.d.ts +0 -0
- package/{modules → lib/modules}/list-filters/filter.model.d.ts +0 -0
- package/{modules → lib/modules}/list-filters/list-filter-button.component.d.ts +0 -0
- package/{modules → lib/modules}/list-filters/list-filter-inline-item-renderer.component.d.ts +0 -0
- package/{modules → lib/modules}/list-filters/list-filter-inline-item.component.d.ts +0 -0
- package/{modules → lib/modules}/list-filters/list-filter-inline.component.d.ts +0 -0
- package/{modules → lib/modules}/list-filters/list-filter-inline.model.d.ts +0 -0
- package/{modules → lib/modules}/list-filters/list-filter-summary.component.d.ts +0 -0
- package/{modules → lib/modules}/list-filters/list-filters.module.d.ts +0 -0
- package/{modules → lib/modules}/list-paging/list-paging.component.d.ts +0 -0
- package/{modules → lib/modules}/list-paging/list-paging.module.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/list-multiselect-toolbar.component.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/list-secondary-actions/list-secondary-action.component.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/list-secondary-actions/list-secondary-action.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/list-secondary-actions/list-secondary-actions-host.component.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/list-secondary-actions/list-secondary-actions.component.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/list-secondary-actions/list-secondary-actions.module.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/list-secondary-actions/list-secondary-actions.service.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/list-toolbar-item-renderer.component.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/list-toolbar-item.component.d.ts +3 -3
- package/{modules → lib/modules}/list-toolbar/list-toolbar-search-actions.component.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/list-toolbar-sort.component.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/list-toolbar-view-actions.component.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/list-toolbar.component.d.ts +2 -2
- package/{modules → lib/modules}/list-toolbar/list-toolbar.module.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/state/config/config.model.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/state/config/config.orchestrator.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/state/config/set-search-enabled.action.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/state/config/set-sort-selector-enabled.action.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/state/toolbar-state-action.type.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/state/toolbar-state.model.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/state/toolbar-state.rxstate.d.ts +0 -0
- package/{modules → lib/modules}/list-toolbar/state/toolbar-state.state-node.d.ts +0 -0
- package/{modules → lib/modules}/shared/sky-list-builder-resources.module.d.ts +0 -0
- package/package.json +13 -13
- package/skyux-list-builder.d.ts +1 -1
- package/LICENSE +0 -21
- package/bundles/skyux-list-builder.umd.js.map +0 -1
- package/esm2015/modules/list/list-data-request.model.js +0 -18
- package/esm2015/modules/list/list-data-response.model.js +0 -9
- package/esm2015/modules/list/list-data.provider.js +0 -7
- package/esm2015/modules/list/list-paging.component.js +0 -13
- package/esm2015/modules/list/list-view.component.js +0 -28
- package/esm2015/modules/list/list.component.js +0 -301
- package/esm2015/modules/list/list.module.js +0 -26
- package/esm2015/modules/list/state/filters/filters.orchestrator.js +0 -17
- package/esm2015/modules/list/state/filters/update.action.js +0 -9
- package/esm2015/modules/list/state/items/items.orchestrator.js +0 -52
- package/esm2015/modules/list/state/items/load.action.js +0 -12
- package/esm2015/modules/list/state/items/set-items-selected.action.js +0 -13
- package/esm2015/modules/list/state/items/set-loading.action.js +0 -9
- package/esm2015/modules/list/state/list-state-action.type.js +0 -2
- package/esm2015/modules/list/state/list-state.model.js +0 -24
- package/esm2015/modules/list/state/list-state.rxstate.js +0 -80
- package/esm2015/modules/list/state/list-state.state-node.js +0 -37
- package/esm2015/modules/list/state/paging/paging.model.js +0 -14
- package/esm2015/modules/list/state/paging/paging.orchestrator.js +0 -28
- package/esm2015/modules/list/state/paging/set-items-per-page.action.js +0 -9
- package/esm2015/modules/list/state/paging/set-max-pages.action.js +0 -9
- package/esm2015/modules/list/state/paging/set-page-number.action.js +0 -9
- package/esm2015/modules/list/state/search/search.model.js +0 -31
- package/esm2015/modules/list/state/search/search.orchestrator.js +0 -46
- package/esm2015/modules/list/state/search/set-field-selectors.action.js +0 -9
- package/esm2015/modules/list/state/search/set-functions.action.js +0 -9
- package/esm2015/modules/list/state/search/set-options.action.js +0 -11
- package/esm2015/modules/list/state/search/set-search-text.action.js +0 -9
- package/esm2015/modules/list/state/selected/load.action.js +0 -9
- package/esm2015/modules/list/state/selected/selected.model.js +0 -9
- package/esm2015/modules/list/state/selected/selected.orchestrator.js +0 -57
- package/esm2015/modules/list/state/selected/set-item-selected.action.js +0 -10
- package/esm2015/modules/list/state/selected/set-items-selected.action.js +0 -11
- package/esm2015/modules/list/state/selected/set-loading.action.js +0 -9
- package/esm2015/modules/list/state/sort/label.model.js +0 -25
- package/esm2015/modules/list/state/sort/set-available.action.js +0 -9
- package/esm2015/modules/list/state/sort/set-field-selectors.action.js +0 -9
- package/esm2015/modules/list/state/sort/set-global.action.js +0 -9
- package/esm2015/modules/list/state/sort/sort.model.js +0 -27
- package/esm2015/modules/list/state/sort/sort.orchestrator.js +0 -31
- package/esm2015/modules/list/state/toolbar/disable.action.js +0 -9
- package/esm2015/modules/list/state/toolbar/load.action.js +0 -10
- package/esm2015/modules/list/state/toolbar/remove.action.js +0 -9
- package/esm2015/modules/list/state/toolbar/set-exists.action.js +0 -9
- package/esm2015/modules/list/state/toolbar/set-type.action.js +0 -9
- package/esm2015/modules/list/state/toolbar/show-multiselect-toolbar.action.js +0 -9
- package/esm2015/modules/list/state/toolbar/toolbar-item.model.js +0 -16
- package/esm2015/modules/list/state/toolbar/toolbar.model.js +0 -17
- package/esm2015/modules/list/state/toolbar/toolbar.orchestrator.js +0 -81
- package/esm2015/modules/list/state/views/load.action.js +0 -9
- package/esm2015/modules/list/state/views/set-active.action.js +0 -9
- package/esm2015/modules/list/state/views/view.model.js +0 -10
- package/esm2015/modules/list/state/views/views.model.js +0 -13
- package/esm2015/modules/list/state/views/views.orchestrator.js +0 -23
- package/esm2015/modules/list-data-provider-in-memory/list-data-in-memory.provider.js +0 -150
- package/esm2015/modules/list-filters/filter.model.js +0 -18
- package/esm2015/modules/list-filters/list-filter-button.component.js +0 -43
- package/esm2015/modules/list-filters/list-filter-inline-item-renderer.component.js +0 -34
- package/esm2015/modules/list-filters/list-filter-inline-item.component.js +0 -44
- package/esm2015/modules/list-filters/list-filter-inline.component.js +0 -71
- package/esm2015/modules/list-filters/list-filter-inline.model.js +0 -21
- package/esm2015/modules/list-filters/list-filter-summary.component.js +0 -58
- package/esm2015/modules/list-filters/list-filters.module.js +0 -48
- package/esm2015/modules/list-paging/list-paging.component.js +0 -88
- package/esm2015/modules/list-paging/list-paging.module.js +0 -30
- package/esm2015/modules/list-toolbar/list-multiselect-toolbar.component.js +0 -150
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-action.component.js +0 -32
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-action.js +0 -2
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-actions-host.component.js +0 -49
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-actions.component.js +0 -50
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-actions.module.js +0 -50
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-actions.service.js +0 -36
- package/esm2015/modules/list-toolbar/list-toolbar-item-renderer.component.js +0 -30
- package/esm2015/modules/list-toolbar/list-toolbar-item.component.js +0 -47
- package/esm2015/modules/list-toolbar/list-toolbar-search-actions.component.js +0 -19
- package/esm2015/modules/list-toolbar/list-toolbar-sort.component.js +0 -25
- package/esm2015/modules/list-toolbar/list-toolbar-view-actions.component.js +0 -21
- package/esm2015/modules/list-toolbar/list-toolbar.component.js +0 -356
- package/esm2015/modules/list-toolbar/list-toolbar.module.js +0 -87
- package/esm2015/modules/list-toolbar/state/config/config.model.js +0 -14
- package/esm2015/modules/list-toolbar/state/config/config.orchestrator.js +0 -23
- package/esm2015/modules/list-toolbar/state/config/set-search-enabled.action.js +0 -9
- package/esm2015/modules/list-toolbar/state/config/set-sort-selector-enabled.action.js +0 -10
- package/esm2015/modules/list-toolbar/state/toolbar-state-action.type.js +0 -2
- package/esm2015/modules/list-toolbar/state/toolbar-state.model.js +0 -10
- package/esm2015/modules/list-toolbar/state/toolbar-state.rxstate.js +0 -19
- package/esm2015/modules/list-toolbar/state/toolbar-state.state-node.js +0 -23
- package/esm2015/modules/shared/sky-list-builder-resources.module.js +0 -41
- package/esm2015/public-api.js +0 -78
- package/public-api.d.ts +0 -74
|
@@ -139,6 +139,7 @@ class ListSearchModel {
|
|
|
139
139
|
constructor(data) {
|
|
140
140
|
/**
|
|
141
141
|
* Specifies the text to search.
|
|
142
|
+
* @default ""
|
|
142
143
|
*/
|
|
143
144
|
this.searchText = '';
|
|
144
145
|
/**
|
|
@@ -167,8 +168,8 @@ class SkyListInMemoryDataProvider extends ListDataProvider {
|
|
|
167
168
|
this.items = new BehaviorSubject([]);
|
|
168
169
|
this.searchFunction = searchFunction;
|
|
169
170
|
if (data) {
|
|
170
|
-
data.subscribe(items => {
|
|
171
|
-
this.items.next(items.map(d => new ListItemModel(d.id || `sky-list-data-in-memory-provider-item-${++idIndex$3}`, d)));
|
|
171
|
+
data.subscribe((items) => {
|
|
172
|
+
this.items.next(items.map((d) => new ListItemModel(d.id || `sky-list-data-in-memory-provider-item-${++idIndex$3}`, d)));
|
|
172
173
|
});
|
|
173
174
|
}
|
|
174
175
|
}
|
|
@@ -182,20 +183,20 @@ class SkyListInMemoryDataProvider extends ListDataProvider {
|
|
|
182
183
|
let pagedResult = result.slice(itemStart, itemStart + request.pageSize);
|
|
183
184
|
return new ListDataResponseModel({
|
|
184
185
|
count: result.length,
|
|
185
|
-
items: pagedResult
|
|
186
|
+
items: pagedResult,
|
|
186
187
|
});
|
|
187
188
|
}
|
|
188
189
|
else {
|
|
189
190
|
return new ListDataResponseModel({
|
|
190
191
|
count: result.length,
|
|
191
|
-
items: result
|
|
192
|
+
items: result,
|
|
192
193
|
});
|
|
193
194
|
}
|
|
194
195
|
}));
|
|
195
196
|
}
|
|
196
197
|
filteredItems(request) {
|
|
197
198
|
const showSelectedId = ['show-selected'];
|
|
198
|
-
return this.items.pipe(map(items => {
|
|
199
|
+
return this.items.pipe(map((items) => {
|
|
199
200
|
let dataChanged = false;
|
|
200
201
|
let search = request.search;
|
|
201
202
|
let sort = request.sort;
|
|
@@ -209,7 +210,7 @@ class SkyListInMemoryDataProvider extends ListDataProvider {
|
|
|
209
210
|
if (request.isToolbarDisabled) {
|
|
210
211
|
searchChanged = true;
|
|
211
212
|
search = new ListSearchModel();
|
|
212
|
-
filters = filters.filter(f => showSelectedId.indexOf(f.name) >= 0);
|
|
213
|
+
filters = filters.filter((f) => showSelectedId.indexOf(f.name) >= 0);
|
|
213
214
|
filtersChanged = true;
|
|
214
215
|
}
|
|
215
216
|
else {
|
|
@@ -224,11 +225,13 @@ class SkyListInMemoryDataProvider extends ListDataProvider {
|
|
|
224
225
|
this.lastFilters = filters;
|
|
225
226
|
let result = items;
|
|
226
227
|
// Apply filters.
|
|
227
|
-
if (!dataChanged &&
|
|
228
|
+
if (!dataChanged &&
|
|
229
|
+
!filtersChanged &&
|
|
230
|
+
this.lastFilterResults !== undefined) {
|
|
228
231
|
result = this.lastFilterResults;
|
|
229
232
|
}
|
|
230
233
|
else if (filters && filters.length > 0) {
|
|
231
|
-
result = result.filter(item => {
|
|
234
|
+
result = result.filter((item) => {
|
|
232
235
|
for (let i = 0; i < filters.length; i++) {
|
|
233
236
|
let filter = filters[i];
|
|
234
237
|
if (filter.value === undefined ||
|
|
@@ -250,10 +253,15 @@ class SkyListInMemoryDataProvider extends ListDataProvider {
|
|
|
250
253
|
}
|
|
251
254
|
// Apply search.
|
|
252
255
|
/* istanbul ignore next */
|
|
253
|
-
if (!dataChanged &&
|
|
256
|
+
if (!dataChanged &&
|
|
257
|
+
!searchChanged &&
|
|
258
|
+
this.lastSearchResults !== undefined &&
|
|
259
|
+
!filtersChanged) {
|
|
254
260
|
result = this.lastSearchResults;
|
|
255
261
|
}
|
|
256
|
-
else if (search &&
|
|
262
|
+
else if (search &&
|
|
263
|
+
search.searchText !== undefined &&
|
|
264
|
+
search.searchText.length > 0) {
|
|
257
265
|
let searchText = search.searchText.toLowerCase();
|
|
258
266
|
let searchFunctions;
|
|
259
267
|
if (this.searchFunction !== undefined) {
|
|
@@ -262,12 +270,13 @@ class SkyListInMemoryDataProvider extends ListDataProvider {
|
|
|
262
270
|
else {
|
|
263
271
|
searchFunctions = search.functions;
|
|
264
272
|
}
|
|
265
|
-
result = result.filter(item => {
|
|
273
|
+
result = result.filter((item) => {
|
|
266
274
|
let isMatch = false;
|
|
267
275
|
for (let i = 0; i < searchFunctions.length; i++) {
|
|
268
276
|
let searchFunction = searchFunctions[i];
|
|
269
277
|
let searchResult = searchFunction(item.data, searchText);
|
|
270
|
-
if ((typeof searchResult === 'string' &&
|
|
278
|
+
if ((typeof searchResult === 'string' &&
|
|
279
|
+
searchResult.indexOf(searchText) !== -1) ||
|
|
271
280
|
searchResult === true) {
|
|
272
281
|
isMatch = true;
|
|
273
282
|
break;
|
|
@@ -282,7 +291,9 @@ class SkyListInMemoryDataProvider extends ListDataProvider {
|
|
|
282
291
|
}
|
|
283
292
|
// Apply sort.
|
|
284
293
|
if (sort && sort.fieldSelectors.length > 0) {
|
|
285
|
-
result = result
|
|
294
|
+
result = result
|
|
295
|
+
.slice()
|
|
296
|
+
.sort((item1, item2) => {
|
|
286
297
|
let compareResult = 0;
|
|
287
298
|
for (let i = 0; i < sort.fieldSelectors.length; i++) {
|
|
288
299
|
let selector = sort.fieldSelectors[i];
|
|
@@ -561,9 +572,9 @@ class ListStateDispatcher extends StateDispatcher {
|
|
|
561
572
|
this.next(new ListSelectedSetItemsSelectedAction(selectedIds, selected, refresh));
|
|
562
573
|
}
|
|
563
574
|
}
|
|
564
|
-
ListStateDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
565
|
-
ListStateDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
575
|
+
ListStateDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListStateDispatcher, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
576
|
+
ListStateDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListStateDispatcher });
|
|
577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListStateDispatcher, decorators: [{
|
|
567
578
|
type: Injectable
|
|
568
579
|
}] });
|
|
569
580
|
|
|
@@ -574,8 +585,7 @@ class ListFiltersOrchestrator extends ListStateOrchestrator {
|
|
|
574
585
|
/* istanbul ignore next */
|
|
575
586
|
constructor() {
|
|
576
587
|
super();
|
|
577
|
-
this
|
|
578
|
-
.register(ListFiltersUpdateAction, this.update);
|
|
588
|
+
this.register(ListFiltersUpdateAction, this.update);
|
|
579
589
|
}
|
|
580
590
|
update(state, action) {
|
|
581
591
|
return [...action.filters];
|
|
@@ -602,8 +612,7 @@ class ListItemsOrchestrator extends ListStateOrchestrator {
|
|
|
602
612
|
/* istanbul ignore next */
|
|
603
613
|
constructor() {
|
|
604
614
|
super();
|
|
605
|
-
this
|
|
606
|
-
.register(ListItemsSetLoadingAction, this.setLoading)
|
|
615
|
+
this.register(ListItemsSetLoadingAction, this.setLoading)
|
|
607
616
|
.register(ListItemsLoadAction, this.load)
|
|
608
617
|
.register(ListItemsSetSelectedAction, this.setItemsSelected);
|
|
609
618
|
}
|
|
@@ -611,8 +620,10 @@ class ListItemsOrchestrator extends ListStateOrchestrator {
|
|
|
611
620
|
return new AsyncList(state.items, state.lastUpdate, action.loading, state.count);
|
|
612
621
|
}
|
|
613
622
|
load(state, action) {
|
|
614
|
-
const newListItems = action.items.map(g => new ListItemModel(g.id, g.data, g.isSelected));
|
|
615
|
-
const resultItems =
|
|
623
|
+
const newListItems = action.items.map((g) => new ListItemModel(g.id, g.data, g.isSelected));
|
|
624
|
+
const resultItems = action.refresh
|
|
625
|
+
? [...newListItems]
|
|
626
|
+
: [...state.items, ...newListItems];
|
|
616
627
|
let count = action.count === undefined ? resultItems.length : action.count;
|
|
617
628
|
return new AsyncList(resultItems, action.dataChanged ? Date.now() : state.lastUpdate, false, count);
|
|
618
629
|
}
|
|
@@ -621,10 +632,10 @@ class ListItemsOrchestrator extends ListStateOrchestrator {
|
|
|
621
632
|
const newSelectedIds = action.items || [];
|
|
622
633
|
let newListItemModels = this.cloneListItemModelArray(state.items);
|
|
623
634
|
if (action.refresh) {
|
|
624
|
-
newListItemModels.forEach(item => item.isSelected = undefined);
|
|
635
|
+
newListItemModels.forEach((item) => (item.isSelected = undefined));
|
|
625
636
|
}
|
|
626
|
-
newSelectedIds.map(s => {
|
|
627
|
-
let newItem = newListItemModels.find(i => i.id === s);
|
|
637
|
+
newSelectedIds.map((s) => {
|
|
638
|
+
let newItem = newListItemModels.find((i) => i.id === s);
|
|
628
639
|
/* istanbul ignore next */
|
|
629
640
|
if (newItem) {
|
|
630
641
|
newItem.isSelected = action.selected;
|
|
@@ -634,7 +645,7 @@ class ListItemsOrchestrator extends ListStateOrchestrator {
|
|
|
634
645
|
}
|
|
635
646
|
cloneListItemModelArray(source) {
|
|
636
647
|
let newListItems = [];
|
|
637
|
-
source.forEach(item => {
|
|
648
|
+
source.forEach((item) => {
|
|
638
649
|
newListItems.push(new ListItemModel(item.id, Object.assign({}, item.data), item.isSelected));
|
|
639
650
|
});
|
|
640
651
|
return newListItems;
|
|
@@ -675,8 +686,7 @@ class ListPagingOrchestrator extends ListStateOrchestrator {
|
|
|
675
686
|
/* istanbul ignore next */
|
|
676
687
|
constructor() {
|
|
677
688
|
super();
|
|
678
|
-
this
|
|
679
|
-
.register(ListPagingSetMaxPagesAction, this.setMaxPages)
|
|
689
|
+
this.register(ListPagingSetMaxPagesAction, this.setMaxPages)
|
|
680
690
|
.register(ListPagingSetItemsPerPageAction, this.setItemsPerPage)
|
|
681
691
|
.register(ListPagingSetPageNumberAction, this.setPageNumber);
|
|
682
692
|
}
|
|
@@ -707,9 +717,7 @@ class ListViewsOrchestrator extends ListStateOrchestrator {
|
|
|
707
717
|
/* istanbul ignore next */
|
|
708
718
|
constructor() {
|
|
709
719
|
super();
|
|
710
|
-
this
|
|
711
|
-
.register(ListViewsSetActiveAction, this.setActive)
|
|
712
|
-
.register(ListViewsLoadAction, this.load);
|
|
720
|
+
this.register(ListViewsSetActiveAction, this.setActive).register(ListViewsLoadAction, this.load);
|
|
713
721
|
}
|
|
714
722
|
setActive(state, action) {
|
|
715
723
|
return new ListViewsModel(Object.assign({}, state, { active: action.view }));
|
|
@@ -751,8 +759,7 @@ class ListToolbarOrchestrator extends ListStateOrchestrator {
|
|
|
751
759
|
/* istanbul ignore next */
|
|
752
760
|
constructor() {
|
|
753
761
|
super();
|
|
754
|
-
this
|
|
755
|
-
.register(ListToolbarSetExistsAction, this.setExists)
|
|
762
|
+
this.register(ListToolbarSetExistsAction, this.setExists)
|
|
756
763
|
.register(ListToolbarItemsDisableAction, this.setDisabled)
|
|
757
764
|
.register(ListToolbarItemsLoadAction, this.load)
|
|
758
765
|
.register(ListToolbarSetTypeAction, this.setType)
|
|
@@ -776,7 +783,7 @@ class ListToolbarOrchestrator extends ListStateOrchestrator {
|
|
|
776
783
|
}
|
|
777
784
|
load(state, action) {
|
|
778
785
|
const newModel = new ListToolbarModel(state);
|
|
779
|
-
const newListItems = action.items.map(item => {
|
|
786
|
+
const newListItems = action.items.map((item) => {
|
|
780
787
|
/**
|
|
781
788
|
* NOTE: Originally this function went off the action index and item models did not include
|
|
782
789
|
* the index. We changed this but must leave functionality to convert the action index for
|
|
@@ -823,14 +830,15 @@ class ListSearchOrchestrator extends ListStateOrchestrator {
|
|
|
823
830
|
/* istanbul ignore next */
|
|
824
831
|
constructor() {
|
|
825
832
|
super();
|
|
826
|
-
this
|
|
827
|
-
.register(ListSearchSetSearchTextAction, this.setSearchText)
|
|
833
|
+
this.register(ListSearchSetSearchTextAction, this.setSearchText)
|
|
828
834
|
.register(ListSearchSetFunctionsAction, this.setFunctions)
|
|
829
835
|
.register(ListSearchSetFieldSelectorsAction, this.setFieldSelectors)
|
|
830
836
|
.register(ListSearchSetOptionsAction, this.setOptions);
|
|
831
837
|
}
|
|
832
838
|
setSearchText(state, action) {
|
|
833
|
-
return new ListSearchModel(Object.assign({}, state, {
|
|
839
|
+
return new ListSearchModel(Object.assign({}, state, {
|
|
840
|
+
searchText: action.searchText ? action.searchText : '',
|
|
841
|
+
}));
|
|
834
842
|
}
|
|
835
843
|
setFunctions(state, action) {
|
|
836
844
|
return new ListSearchModel(Object.assign({}, state, { functions: [...action.functions] }));
|
|
@@ -873,8 +881,7 @@ class ListSelectedOrchestrator extends ListStateOrchestrator {
|
|
|
873
881
|
/* istanbul ignore next */
|
|
874
882
|
constructor() {
|
|
875
883
|
super();
|
|
876
|
-
this
|
|
877
|
-
.register(ListSelectedSetLoadingAction, this.setLoading)
|
|
884
|
+
this.register(ListSelectedSetLoadingAction, this.setLoading)
|
|
878
885
|
.register(ListSelectedSetItemSelectedAction, this.setItemSelected)
|
|
879
886
|
.register(ListSelectedSetItemsSelectedAction, this.setItemsSelected)
|
|
880
887
|
.register(ListSelectedLoadAction, this.load);
|
|
@@ -884,7 +891,7 @@ class ListSelectedOrchestrator extends ListStateOrchestrator {
|
|
|
884
891
|
}
|
|
885
892
|
load(state, action) {
|
|
886
893
|
const newSelected = new ListSelectedModel();
|
|
887
|
-
action.items.map(s => newSelected.selectedIdMap.set(s, true));
|
|
894
|
+
action.items.map((s) => newSelected.selectedIdMap.set(s, true));
|
|
888
895
|
return new AsyncItem(Object.assign({}, state.item, newSelected), Date.now(), false);
|
|
889
896
|
}
|
|
890
897
|
setItemSelected(state, action) {
|
|
@@ -894,16 +901,16 @@ class ListSelectedOrchestrator extends ListStateOrchestrator {
|
|
|
894
901
|
}
|
|
895
902
|
setItemsSelected(state, action) {
|
|
896
903
|
const newSelectedIds = action.items || [];
|
|
897
|
-
const newListSelectedModel = action.refresh
|
|
904
|
+
const newListSelectedModel = action.refresh
|
|
905
|
+
? new ListSelectedModel()
|
|
906
|
+
: this.cloneListSelectedModel(state.item);
|
|
898
907
|
if (newSelectedIds instanceof Observable) {
|
|
899
|
-
newSelectedIds
|
|
900
|
-
.
|
|
901
|
-
.subscribe(selectedIds => {
|
|
902
|
-
selectedIds.map(s => newListSelectedModel.selectedIdMap.set(s, action.selected));
|
|
908
|
+
newSelectedIds.pipe(take(1)).subscribe((selectedIds) => {
|
|
909
|
+
selectedIds.map((s) => newListSelectedModel.selectedIdMap.set(s, action.selected));
|
|
903
910
|
});
|
|
904
911
|
}
|
|
905
912
|
else {
|
|
906
|
-
newSelectedIds.map(s => newListSelectedModel.selectedIdMap.set(s, action.selected));
|
|
913
|
+
newSelectedIds.map((s) => newListSelectedModel.selectedIdMap.set(s, action.selected));
|
|
907
914
|
}
|
|
908
915
|
return new AsyncItem(newListSelectedModel, state.lastUpdate, state.loading);
|
|
909
916
|
}
|
|
@@ -946,8 +953,7 @@ class ListSortOrchestrator extends ListStateOrchestrator {
|
|
|
946
953
|
/* istanbul ignore next */
|
|
947
954
|
constructor() {
|
|
948
955
|
super();
|
|
949
|
-
this
|
|
950
|
-
.register(ListSortSetFieldSelectorsAction, this.setFieldSelectors)
|
|
956
|
+
this.register(ListSortSetFieldSelectorsAction, this.setFieldSelectors)
|
|
951
957
|
.register(ListSortSetAvailableAction, this.setAvailable)
|
|
952
958
|
.register(ListSortSetGlobalAction, this.setGlobal);
|
|
953
959
|
}
|
|
@@ -955,11 +961,11 @@ class ListSortOrchestrator extends ListStateOrchestrator {
|
|
|
955
961
|
return new ListSortModel(Object.assign({}, state, { fieldSelectors: action.fieldSelectors }));
|
|
956
962
|
}
|
|
957
963
|
setAvailable(state, action) {
|
|
958
|
-
const newAvailable = action.available.map(available => new ListSortLabelModel(available));
|
|
964
|
+
const newAvailable = action.available.map((available) => new ListSortLabelModel(available));
|
|
959
965
|
return new ListSortModel(Object.assign({}, state, { available: newAvailable }));
|
|
960
966
|
}
|
|
961
967
|
setGlobal(state, action) {
|
|
962
|
-
const newGlobal = action.global.map(global => new ListSortLabelModel(global));
|
|
968
|
+
const newGlobal = action.global.map((global) => new ListSortLabelModel(global));
|
|
963
969
|
return new ListSortModel(Object.assign({}, state, { global: newGlobal }));
|
|
964
970
|
}
|
|
965
971
|
}
|
|
@@ -970,8 +976,7 @@ class ListSortOrchestrator extends ListStateOrchestrator {
|
|
|
970
976
|
class ListState extends StateNode {
|
|
971
977
|
constructor(dispatcher) {
|
|
972
978
|
super(new ListStateModel(), dispatcher);
|
|
973
|
-
this
|
|
974
|
-
.register('filters', ListFiltersOrchestrator)
|
|
979
|
+
this.register('filters', ListFiltersOrchestrator)
|
|
975
980
|
.register('items', ListItemsOrchestrator)
|
|
976
981
|
.register('paging', ListPagingOrchestrator)
|
|
977
982
|
.register('search', ListSearchOrchestrator)
|
|
@@ -982,9 +987,9 @@ class ListState extends StateNode {
|
|
|
982
987
|
.begin();
|
|
983
988
|
}
|
|
984
989
|
}
|
|
985
|
-
ListState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
986
|
-
ListState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
987
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
990
|
+
ListState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListState, deps: [{ token: ListStateDispatcher }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
991
|
+
ListState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListState });
|
|
992
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListState, decorators: [{
|
|
988
993
|
type: Injectable
|
|
989
994
|
}], ctorParameters: function () { return [{ type: ListStateDispatcher }]; } });
|
|
990
995
|
|
|
@@ -998,9 +1003,11 @@ class ListViewComponent {
|
|
|
998
1003
|
this.state = state;
|
|
999
1004
|
this.viewName = defaultName;
|
|
1000
1005
|
/* istanbul ignore next */
|
|
1001
|
-
this.hasToolbar = this.state.pipe(map(s => s.toolbar.exists));
|
|
1002
|
-
this.active = this.state.pipe(map(s => s.views.active === this.viewId));
|
|
1003
|
-
this.active
|
|
1006
|
+
this.hasToolbar = this.state.pipe(map((s) => s.toolbar.exists));
|
|
1007
|
+
this.active = this.state.pipe(map((s) => s.views.active === this.viewId));
|
|
1008
|
+
this.active
|
|
1009
|
+
.pipe(distinctUntilChanged())
|
|
1010
|
+
.subscribe((isActive) => isActive ? this.onViewActive() : this.onViewInactive());
|
|
1004
1011
|
}
|
|
1005
1012
|
get id() {
|
|
1006
1013
|
return this.viewId;
|
|
@@ -1009,10 +1016,8 @@ class ListViewComponent {
|
|
|
1009
1016
|
return this.viewName;
|
|
1010
1017
|
}
|
|
1011
1018
|
/* istanbul ignore next */
|
|
1012
|
-
onViewActive() {
|
|
1013
|
-
}
|
|
1014
|
-
onViewInactive() {
|
|
1015
|
-
}
|
|
1019
|
+
onViewActive() { }
|
|
1020
|
+
onViewInactive() { }
|
|
1016
1021
|
}
|
|
1017
1022
|
|
|
1018
1023
|
/**
|
|
@@ -1055,7 +1060,6 @@ class SkyListComponent {
|
|
|
1055
1060
|
* Emits the filters applied to the list.
|
|
1056
1061
|
*/
|
|
1057
1062
|
this.appliedFiltersChange = new EventEmitter();
|
|
1058
|
-
/* tslint:enable */
|
|
1059
1063
|
this.dataFirstLoad = false;
|
|
1060
1064
|
this.lastSelectedIds = [];
|
|
1061
1065
|
this.lastFilters = [];
|
|
@@ -1066,8 +1070,10 @@ class SkyListComponent {
|
|
|
1066
1070
|
this.dataFirstLoad = true;
|
|
1067
1071
|
}
|
|
1068
1072
|
if (this.listViews.length > 0) {
|
|
1069
|
-
let defaultView =
|
|
1070
|
-
|
|
1073
|
+
let defaultView = this.defaultView === undefined
|
|
1074
|
+
? this.listViews.first
|
|
1075
|
+
: this.defaultView;
|
|
1076
|
+
this.dispatcher.next(new ListViewsLoadAction(this.listViews.map((v) => new ListViewModel(v.id, v.label))));
|
|
1071
1077
|
// activate the default view
|
|
1072
1078
|
this.dispatcher.next(new ListViewsSetActiveAction(defaultView.id));
|
|
1073
1079
|
}
|
|
@@ -1085,14 +1091,14 @@ class SkyListComponent {
|
|
|
1085
1091
|
}
|
|
1086
1092
|
this.dispatcher.next(new ListSortSetFieldSelectorsAction(sortArray || []));
|
|
1087
1093
|
});
|
|
1088
|
-
this.displayedItems.subscribe(result => {
|
|
1094
|
+
this.displayedItems.subscribe((result) => {
|
|
1089
1095
|
this.dispatcher.next(new ListItemsSetLoadingAction());
|
|
1090
1096
|
this.dispatcher.next(new ListItemsLoadAction(result.items, true, true, result.count));
|
|
1091
1097
|
});
|
|
1092
1098
|
// Watch for selection changes.
|
|
1093
1099
|
this.state
|
|
1094
|
-
.pipe(map(current => current.selected), takeUntil(this.ngUnsubscribe), distinctUntilChanged())
|
|
1095
|
-
.subscribe(selected => {
|
|
1100
|
+
.pipe(map((current) => current.selected), takeUntil(this.ngUnsubscribe), distinctUntilChanged())
|
|
1101
|
+
.subscribe((selected) => {
|
|
1096
1102
|
// Update lastSelectedIds to help us retain user selections.
|
|
1097
1103
|
let selectedIdsList = [];
|
|
1098
1104
|
selected.item.selectedIdMap.forEach((value, key) => {
|
|
@@ -1109,7 +1115,7 @@ class SkyListComponent {
|
|
|
1109
1115
|
});
|
|
1110
1116
|
if (this.appliedFiltersChange.observers.length > 0) {
|
|
1111
1117
|
this.state
|
|
1112
|
-
.pipe(map(current => current.filters), takeUntil(this.ngUnsubscribe), skip(1))
|
|
1118
|
+
.pipe(map((current) => current.filters), takeUntil(this.ngUnsubscribe), skip(1))
|
|
1113
1119
|
.subscribe((filters) => {
|
|
1114
1120
|
/**
|
|
1115
1121
|
* We are doing this instead of a distinctUntilChange due to memory allocation issues
|
|
@@ -1125,9 +1131,11 @@ class SkyListComponent {
|
|
|
1125
1131
|
}
|
|
1126
1132
|
ngOnChanges(changes) {
|
|
1127
1133
|
if (changes['appliedFilters'] &&
|
|
1128
|
-
changes['appliedFilters'].currentValue !==
|
|
1134
|
+
changes['appliedFilters'].currentValue !==
|
|
1135
|
+
changes['appliedFilters'].previousValue) {
|
|
1129
1136
|
this.state.pipe(take(1)).subscribe((currentState) => {
|
|
1130
|
-
if (currentState.paging.pageNumber &&
|
|
1137
|
+
if (currentState.paging.pageNumber &&
|
|
1138
|
+
currentState.paging.pageNumber !== 1) {
|
|
1131
1139
|
this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
1132
1140
|
}
|
|
1133
1141
|
this.dispatcher.filtersUpdate(this.appliedFilters);
|
|
@@ -1172,17 +1180,17 @@ class SkyListComponent {
|
|
|
1172
1180
|
// with adding a debounce time to the Observable which watches for state changes.
|
|
1173
1181
|
let cancelLastRequest = new Subject();
|
|
1174
1182
|
return combineLatest([
|
|
1175
|
-
this.state.pipe(map(s => s.filters), distinctUntilChanged()),
|
|
1176
|
-
this.state.pipe(map(s => s.search), distinctUntilChanged()),
|
|
1177
|
-
this.state.pipe(map(s => s.sort.fieldSelectors), distinctUntilChanged()),
|
|
1178
|
-
this.state.pipe(map(s => s.paging.itemsPerPage), distinctUntilChanged()),
|
|
1179
|
-
this.state.pipe(map(s => s.paging.pageNumber), distinctUntilChanged()),
|
|
1180
|
-
this.state.pipe(map(s => s.toolbar.disabled), distinctUntilChanged()),
|
|
1181
|
-
selectedIds.pipe(distinctUntilChanged(), map(selected => {
|
|
1183
|
+
this.state.pipe(map((s) => s.filters), distinctUntilChanged()),
|
|
1184
|
+
this.state.pipe(map((s) => s.search), distinctUntilChanged()),
|
|
1185
|
+
this.state.pipe(map((s) => s.sort.fieldSelectors), distinctUntilChanged()),
|
|
1186
|
+
this.state.pipe(map((s) => s.paging.itemsPerPage), distinctUntilChanged()),
|
|
1187
|
+
this.state.pipe(map((s) => s.paging.pageNumber), distinctUntilChanged()),
|
|
1188
|
+
this.state.pipe(map((s) => s.toolbar.disabled), distinctUntilChanged()),
|
|
1189
|
+
selectedIds.pipe(distinctUntilChanged(), map((selected) => {
|
|
1182
1190
|
selectedChanged = true;
|
|
1183
1191
|
return selected;
|
|
1184
1192
|
})),
|
|
1185
|
-
data.pipe(distinctUntilChanged())
|
|
1193
|
+
data.pipe(distinctUntilChanged()),
|
|
1186
1194
|
], (filters, search, sortFieldSelectors, itemsPerPage, pageNumber, isToolbarDisabled, selected, itemsData) => {
|
|
1187
1195
|
cancelLastRequest.next();
|
|
1188
1196
|
cancelLastRequest.complete();
|
|
@@ -1195,44 +1203,44 @@ class SkyListComponent {
|
|
|
1195
1203
|
let response;
|
|
1196
1204
|
if (this.dataFirstLoad) {
|
|
1197
1205
|
this.dataFirstLoad = false;
|
|
1198
|
-
let initialItems = itemsData.map(d => new ListItemModel(d.id || `sky-list-item-model-${++idIndex$1}`, d));
|
|
1206
|
+
let initialItems = itemsData.map((d) => new ListItemModel(d.id || `sky-list-item-model-${++idIndex$1}`, d));
|
|
1199
1207
|
response = of(new ListDataResponseModel({
|
|
1200
1208
|
count: this.initialTotal,
|
|
1201
|
-
items: initialItems
|
|
1209
|
+
items: initialItems,
|
|
1202
1210
|
})).pipe(takeUntil(cancelLastRequest));
|
|
1203
1211
|
}
|
|
1204
1212
|
else {
|
|
1205
|
-
response = this.dataProvider
|
|
1213
|
+
response = this.dataProvider
|
|
1214
|
+
.get(new ListDataRequestModel({
|
|
1206
1215
|
filters: filters,
|
|
1207
1216
|
pageSize: itemsPerPage,
|
|
1208
1217
|
pageNumber: pageNumber,
|
|
1209
1218
|
search: search,
|
|
1210
1219
|
sort: new ListSortModel({ fieldSelectors: sortFieldSelectors }),
|
|
1211
|
-
isToolbarDisabled: isToolbarDisabled
|
|
1212
|
-
}))
|
|
1220
|
+
isToolbarDisabled: isToolbarDisabled,
|
|
1221
|
+
}))
|
|
1222
|
+
.pipe(takeUntil(cancelLastRequest));
|
|
1213
1223
|
}
|
|
1214
1224
|
return response;
|
|
1215
|
-
})
|
|
1216
|
-
.pipe(takeUntil(this.ngUnsubscribe),
|
|
1225
|
+
}).pipe(takeUntil(this.ngUnsubscribe),
|
|
1217
1226
|
// Retain user selections from previous state.
|
|
1218
1227
|
// This is only necessary for grids component (based on item.isSelected).
|
|
1219
|
-
map(response => {
|
|
1220
|
-
return response.pipe(map(listDataResponseModel => {
|
|
1228
|
+
map((response) => {
|
|
1229
|
+
return response.pipe(map((listDataResponseModel) => {
|
|
1221
1230
|
return new ListDataResponseModel({
|
|
1222
1231
|
count: listDataResponseModel.count,
|
|
1223
|
-
items: this.getItemsAndRetainSelections(listDataResponseModel.items, this.lastSelectedIds)
|
|
1232
|
+
items: this.getItemsAndRetainSelections(listDataResponseModel.items, this.lastSelectedIds),
|
|
1224
1233
|
});
|
|
1225
1234
|
}));
|
|
1226
|
-
}), flatMap(value => value));
|
|
1235
|
+
}), flatMap((value) => value));
|
|
1227
1236
|
}
|
|
1228
1237
|
get selectedItems() {
|
|
1229
|
-
return combineLatest(this.state.pipe(map(current => current.items.items), distinctUntilChanged()), this.state.pipe(map(current => current.selected), distinctUntilChanged()), (items, selected) => {
|
|
1230
|
-
return items.filter(i => selected.item.selectedIdMap.get(i.id));
|
|
1238
|
+
return combineLatest(this.state.pipe(map((current) => current.items.items), distinctUntilChanged()), this.state.pipe(map((current) => current.selected), distinctUntilChanged()), (items, selected) => {
|
|
1239
|
+
return items.filter((i) => selected.item.selectedIdMap.get(i.id));
|
|
1231
1240
|
}).pipe(takeUntil(this.ngUnsubscribe));
|
|
1232
1241
|
}
|
|
1233
1242
|
get lastUpdate() {
|
|
1234
|
-
return this.state
|
|
1235
|
-
.pipe(takeUntil(this.ngUnsubscribe), map(s => s.items.lastUpdate ? new Date(s.items.lastUpdate) : undefined));
|
|
1243
|
+
return this.state.pipe(takeUntil(this.ngUnsubscribe), map((s) => s.items.lastUpdate ? new Date(s.items.lastUpdate) : undefined));
|
|
1236
1244
|
}
|
|
1237
1245
|
get views() {
|
|
1238
1246
|
return this.listViews.toArray();
|
|
@@ -1242,7 +1250,7 @@ class SkyListComponent {
|
|
|
1242
1250
|
}
|
|
1243
1251
|
getItemsAndRetainSelections(newList, selectedIds) {
|
|
1244
1252
|
let updatedListModel = newList.slice();
|
|
1245
|
-
updatedListModel.forEach(item => {
|
|
1253
|
+
updatedListModel.forEach((item) => {
|
|
1246
1254
|
item.isSelected = selectedIds.indexOf(item.id) > -1 ? true : false;
|
|
1247
1255
|
});
|
|
1248
1256
|
return updatedListModel;
|
|
@@ -1266,15 +1274,15 @@ class SkyListComponent {
|
|
|
1266
1274
|
return true;
|
|
1267
1275
|
}
|
|
1268
1276
|
}
|
|
1269
|
-
SkyListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1270
|
-
SkyListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1277
|
+
SkyListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0.ɵɵFactoryTarget.Component });
|
|
1278
|
+
SkyListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListComponent, selector: "sky-list", inputs: { data: "data", dataProvider: "dataProvider", defaultView: "defaultView", initialTotal: "initialTotal", selectedIds: "selectedIds", sortFields: "sortFields", appliedFilters: "appliedFilters", searchFunction: ["search", "searchFunction"] }, outputs: { selectedIdsChange: "selectedIdsChange", appliedFiltersChange: "appliedFiltersChange" }, providers: [ListState, ListStateDispatcher], queries: [{ propertyName: "listViews", predicate: ListViewComponent }], usesOnChanges: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListComponent, decorators: [{
|
|
1272
1280
|
type: Component,
|
|
1273
1281
|
args: [{
|
|
1274
1282
|
selector: 'sky-list',
|
|
1275
1283
|
template: '<ng-content></ng-content>',
|
|
1276
1284
|
providers: [ListState, ListStateDispatcher],
|
|
1277
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1285
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1278
1286
|
}]
|
|
1279
1287
|
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { data: [{
|
|
1280
1288
|
type: Input
|
|
@@ -1304,23 +1312,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
1304
1312
|
|
|
1305
1313
|
class SkyListModule {
|
|
1306
1314
|
}
|
|
1307
|
-
SkyListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1308
|
-
SkyListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1309
|
-
SkyListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
1310
|
-
|
|
1311
|
-
]] });
|
|
1312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: SkyListModule, decorators: [{
|
|
1315
|
+
SkyListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1316
|
+
SkyListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListModule, declarations: [SkyListComponent], imports: [CommonModule], exports: [SkyListComponent] });
|
|
1317
|
+
SkyListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListModule, imports: [[CommonModule]] });
|
|
1318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListModule, decorators: [{
|
|
1313
1319
|
type: NgModule,
|
|
1314
1320
|
args: [{
|
|
1315
|
-
declarations: [
|
|
1316
|
-
|
|
1317
|
-
],
|
|
1318
|
-
imports: [
|
|
1319
|
-
CommonModule
|
|
1320
|
-
],
|
|
1321
|
-
exports: [
|
|
1322
|
-
SkyListComponent
|
|
1323
|
-
]
|
|
1321
|
+
declarations: [SkyListComponent],
|
|
1322
|
+
imports: [CommonModule],
|
|
1323
|
+
exports: [SkyListComponent],
|
|
1324
1324
|
}]
|
|
1325
1325
|
}] });
|
|
1326
1326
|
|
|
@@ -1380,24 +1380,24 @@ class SkyListFilterButtonComponent {
|
|
|
1380
1380
|
new ListToolbarItemModel({
|
|
1381
1381
|
template: this.filterButtonTemplate,
|
|
1382
1382
|
location: 'left',
|
|
1383
|
-
index: this.filterButtonItemToolbarIndex
|
|
1384
|
-
})
|
|
1383
|
+
index: this.filterButtonItemToolbarIndex,
|
|
1384
|
+
}),
|
|
1385
1385
|
]);
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
|
-
SkyListFilterButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1389
|
-
SkyListFilterButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1388
|
+
SkyListFilterButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFilterButtonComponent, deps: [{ token: ListStateDispatcher }], target: i0.ɵɵFactoryTarget.Component });
|
|
1389
|
+
SkyListFilterButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListFilterButtonComponent, selector: "sky-list-filter-button", viewQueries: [{ propertyName: "filterButtonTemplate", first: true, predicate: ["filterButton"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<ng-template #filterButton>\n <ng-content></ng-content>\n</ng-template>\n" });
|
|
1390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFilterButtonComponent, decorators: [{
|
|
1391
1391
|
type: Component,
|
|
1392
1392
|
args: [{
|
|
1393
1393
|
selector: 'sky-list-filter-button',
|
|
1394
|
-
templateUrl: './list-filter-button.component.html'
|
|
1394
|
+
templateUrl: './list-filter-button.component.html',
|
|
1395
1395
|
}]
|
|
1396
1396
|
}], ctorParameters: function () { return [{ type: ListStateDispatcher }]; }, propDecorators: { filterButtonTemplate: [{
|
|
1397
1397
|
type: ViewChild,
|
|
1398
1398
|
args: ['filterButton', {
|
|
1399
1399
|
read: TemplateRef,
|
|
1400
|
-
static: true
|
|
1400
|
+
static: true,
|
|
1401
1401
|
}]
|
|
1402
1402
|
}] } });
|
|
1403
1403
|
|
|
@@ -1422,10 +1422,10 @@ class SkyListFilterSummaryComponent {
|
|
|
1422
1422
|
setTimeout(() => {
|
|
1423
1423
|
this.appliedFilters = this.state.pipe(map((state) => {
|
|
1424
1424
|
return state.filters.filter((filter) => {
|
|
1425
|
-
return filter.value !== '' &&
|
|
1425
|
+
return (filter.value !== '' &&
|
|
1426
1426
|
filter.value !== undefined &&
|
|
1427
1427
|
filter.value !== false &&
|
|
1428
|
-
filter.value !== filter.defaultValue;
|
|
1428
|
+
filter.value !== filter.defaultValue);
|
|
1429
1429
|
});
|
|
1430
1430
|
}));
|
|
1431
1431
|
});
|
|
@@ -1440,13 +1440,13 @@ class SkyListFilterSummaryComponent {
|
|
|
1440
1440
|
this.summaryItemClick.emit(item);
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
1443
|
-
SkyListFilterSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1444
|
-
SkyListFilterSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1443
|
+
SkyListFilterSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFilterSummaryComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0.ɵɵFactoryTarget.Component });
|
|
1444
|
+
SkyListFilterSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListFilterSummaryComponent, selector: "sky-list-filter-summary", outputs: { summaryItemClick: "summaryItemClick" }, ngImport: i0, template: "<sky-filter-summary>\n <sky-filter-summary-item\n *ngFor=\"let item of appliedFilters | async; let i = index\"\n (dismiss)=\"filterSummaryItemDismiss(i)\"\n (itemClick)=\"filterSummaryItemClick(item)\"\n [dismissible]=\"item.dismissible\"\n >\n {{ item.label || item.value }}\n </sky-filter-summary-item>\n</sky-filter-summary>\n", components: [{ type: i3.λ5, selector: "sky-filter-summary" }, { type: i3.λ4, selector: "sky-filter-summary-item", inputs: ["dismissible"], outputs: ["dismiss", "itemClick"] }], directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i4.AsyncPipe } });
|
|
1445
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFilterSummaryComponent, decorators: [{
|
|
1446
1446
|
type: Component,
|
|
1447
1447
|
args: [{
|
|
1448
1448
|
selector: 'sky-list-filter-summary',
|
|
1449
|
-
templateUrl: './list-filter-summary.component.html'
|
|
1449
|
+
templateUrl: './list-filter-summary.component.html',
|
|
1450
1450
|
}]
|
|
1451
1451
|
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { summaryItemClick: [{
|
|
1452
1452
|
type: Output
|
|
@@ -1457,7 +1457,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
1457
1457
|
*/
|
|
1458
1458
|
class SkyListFilterInlineItemComponent {
|
|
1459
1459
|
constructor() {
|
|
1460
|
-
/* tslint:enable:no-input-rename */
|
|
1461
1460
|
this.onChange = new EventEmitter();
|
|
1462
1461
|
}
|
|
1463
1462
|
ngOnInit() {
|
|
@@ -1466,16 +1465,18 @@ class SkyListFilterInlineItemComponent {
|
|
|
1466
1465
|
}
|
|
1467
1466
|
}
|
|
1468
1467
|
get template() {
|
|
1469
|
-
return this.templates.length > 0
|
|
1468
|
+
return this.templates.length > 0
|
|
1469
|
+
? this.templates.first
|
|
1470
|
+
: this.templateInput;
|
|
1470
1471
|
}
|
|
1471
1472
|
}
|
|
1472
|
-
SkyListFilterInlineItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1473
|
-
SkyListFilterInlineItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1474
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1473
|
+
SkyListFilterInlineItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFilterInlineItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1474
|
+
SkyListFilterInlineItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListFilterInlineItemComponent, selector: "sky-list-filter-inline-item", inputs: { name: "name", value: "value", defaultValue: "defaultValue", filterFunction: ["filter", "filterFunction"], templateInput: ["template", "templateInput"] }, queries: [{ propertyName: "templates", predicate: TemplateRef }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
1475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFilterInlineItemComponent, decorators: [{
|
|
1475
1476
|
type: Component,
|
|
1476
1477
|
args: [{
|
|
1477
1478
|
selector: 'sky-list-filter-inline-item',
|
|
1478
|
-
template: '<ng-content></ng-content>'
|
|
1479
|
+
template: '<ng-content></ng-content>',
|
|
1479
1480
|
}]
|
|
1480
1481
|
}], propDecorators: { name: [{
|
|
1481
1482
|
type: Input
|
|
@@ -1506,13 +1507,13 @@ class SkyListFilterInlineItemRendererComponent {
|
|
|
1506
1507
|
}
|
|
1507
1508
|
}
|
|
1508
1509
|
}
|
|
1509
|
-
SkyListFilterInlineItemRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1510
|
-
SkyListFilterInlineItemRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1510
|
+
SkyListFilterInlineItemRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFilterInlineItemRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1511
|
+
SkyListFilterInlineItemRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListFilterInlineItemRendererComponent, selector: "sky-list-filter-inline-item-renderer", inputs: { template: "template", filter: "filter" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: '<ng-template #container></ng-template>', isInline: true });
|
|
1512
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFilterInlineItemRendererComponent, decorators: [{
|
|
1512
1513
|
type: Component,
|
|
1513
1514
|
args: [{
|
|
1514
1515
|
selector: 'sky-list-filter-inline-item-renderer',
|
|
1515
|
-
template: '<ng-template #container></ng-template>'
|
|
1516
|
+
template: '<ng-template #container></ng-template>',
|
|
1516
1517
|
}]
|
|
1517
1518
|
}], propDecorators: { template: [{
|
|
1518
1519
|
type: Input
|
|
@@ -1522,7 +1523,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
1522
1523
|
type: ViewChild,
|
|
1523
1524
|
args: ['container', {
|
|
1524
1525
|
read: ViewContainerRef,
|
|
1525
|
-
static: true
|
|
1526
|
+
static: true,
|
|
1526
1527
|
}]
|
|
1527
1528
|
}] } });
|
|
1528
1529
|
|
|
@@ -1537,16 +1538,16 @@ class SkyListFilterInlineComponent {
|
|
|
1537
1538
|
this.inlineFilters = [];
|
|
1538
1539
|
}
|
|
1539
1540
|
ngAfterContentInit() {
|
|
1540
|
-
this.inlineFilters = this.filters.map(filter => {
|
|
1541
|
+
this.inlineFilters = this.filters.map((filter) => {
|
|
1541
1542
|
return new SkyListFilterInlineModel({
|
|
1542
1543
|
name: filter.name,
|
|
1543
1544
|
filterFunction: filter.filterFunction,
|
|
1544
1545
|
template: filter.template,
|
|
1545
1546
|
value: filter.value,
|
|
1546
|
-
defaultValue: filter.defaultValue
|
|
1547
|
+
defaultValue: filter.defaultValue,
|
|
1547
1548
|
});
|
|
1548
1549
|
});
|
|
1549
|
-
this.inlineFilters.forEach(filter => {
|
|
1550
|
+
this.inlineFilters.forEach((filter) => {
|
|
1550
1551
|
filter.onChange.subscribe((value) => {
|
|
1551
1552
|
this.applyFilters();
|
|
1552
1553
|
});
|
|
@@ -1555,7 +1556,8 @@ class SkyListFilterInlineComponent {
|
|
|
1555
1556
|
}
|
|
1556
1557
|
applyFilters() {
|
|
1557
1558
|
this.state.pipe(take(1)).subscribe((currentState) => {
|
|
1558
|
-
if (currentState.paging.pageNumber &&
|
|
1559
|
+
if (currentState.paging.pageNumber &&
|
|
1560
|
+
currentState.paging.pageNumber !== 1) {
|
|
1559
1561
|
this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
1560
1562
|
}
|
|
1561
1563
|
this.dispatcher.filtersUpdate(this.getFilterModelFromInline(this.inlineFilters));
|
|
@@ -1567,18 +1569,18 @@ class SkyListFilterInlineComponent {
|
|
|
1567
1569
|
name: filter.name,
|
|
1568
1570
|
value: filter.value,
|
|
1569
1571
|
filterFunction: filter.filterFunction,
|
|
1570
|
-
defaultValue: filter.defaultValue
|
|
1572
|
+
defaultValue: filter.defaultValue,
|
|
1571
1573
|
});
|
|
1572
1574
|
});
|
|
1573
1575
|
}
|
|
1574
1576
|
}
|
|
1575
|
-
SkyListFilterInlineComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1576
|
-
SkyListFilterInlineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1577
|
+
SkyListFilterInlineComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFilterInlineComponent, deps: [{ token: ListStateDispatcher }, { token: ListState }], target: i0.ɵɵFactoryTarget.Component });
|
|
1578
|
+
SkyListFilterInlineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListFilterInlineComponent, selector: "sky-list-filter-inline", queries: [{ propertyName: "filters", predicate: SkyListFilterInlineItemComponent }], ngImport: i0, template: "<ng-content></ng-content>\n\n<sky-filter-inline>\n <sky-filter-inline-item *ngFor=\"let filter of inlineFilters\">\n <sky-list-filter-inline-item-renderer\n [template]=\"filter.template\"\n [filter]=\"filter\"\n >\n </sky-list-filter-inline-item-renderer>\n </sky-filter-inline-item>\n</sky-filter-inline>\n", components: [{ type: i3.λ2, selector: "sky-filter-inline" }, { type: i3.λ3, selector: "sky-filter-inline-item" }, { type: SkyListFilterInlineItemRendererComponent, selector: "sky-list-filter-inline-item-renderer", inputs: ["template", "filter"] }], directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFilterInlineComponent, decorators: [{
|
|
1578
1580
|
type: Component,
|
|
1579
1581
|
args: [{
|
|
1580
1582
|
selector: 'sky-list-filter-inline',
|
|
1581
|
-
templateUrl: './list-filter-inline.component.html'
|
|
1583
|
+
templateUrl: './list-filter-inline.component.html',
|
|
1582
1584
|
}]
|
|
1583
1585
|
}], ctorParameters: function () { return [{ type: ListStateDispatcher }, { type: ListState }]; }, propDecorators: { filters: [{
|
|
1584
1586
|
type: ContentChildren,
|
|
@@ -1587,21 +1589,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
1587
1589
|
|
|
1588
1590
|
class SkyListFiltersModule {
|
|
1589
1591
|
}
|
|
1590
|
-
SkyListFiltersModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1591
|
-
SkyListFiltersModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1592
|
+
SkyListFiltersModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFiltersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1593
|
+
SkyListFiltersModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFiltersModule, declarations: [SkyListFilterButtonComponent,
|
|
1592
1594
|
SkyListFilterSummaryComponent,
|
|
1593
1595
|
SkyListFilterInlineItemComponent,
|
|
1594
1596
|
SkyListFilterInlineComponent,
|
|
1595
|
-
SkyListFilterInlineItemRendererComponent], imports: [CommonModule,
|
|
1596
|
-
SkyFilterModule], exports: [SkyListFilterButtonComponent,
|
|
1597
|
+
SkyListFilterInlineItemRendererComponent], imports: [CommonModule, SkyFilterModule], exports: [SkyListFilterButtonComponent,
|
|
1597
1598
|
SkyListFilterSummaryComponent,
|
|
1598
1599
|
SkyListFilterInlineItemComponent,
|
|
1599
1600
|
SkyListFilterInlineComponent] });
|
|
1600
|
-
SkyListFiltersModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
1601
|
-
|
|
1602
|
-
SkyFilterModule
|
|
1603
|
-
]] });
|
|
1604
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: SkyListFiltersModule, decorators: [{
|
|
1601
|
+
SkyListFiltersModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFiltersModule, imports: [[CommonModule, SkyFilterModule]] });
|
|
1602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListFiltersModule, decorators: [{
|
|
1605
1603
|
type: NgModule,
|
|
1606
1604
|
args: [{
|
|
1607
1605
|
declarations: [
|
|
@@ -1609,18 +1607,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
1609
1607
|
SkyListFilterSummaryComponent,
|
|
1610
1608
|
SkyListFilterInlineItemComponent,
|
|
1611
1609
|
SkyListFilterInlineComponent,
|
|
1612
|
-
SkyListFilterInlineItemRendererComponent
|
|
1613
|
-
],
|
|
1614
|
-
imports: [
|
|
1615
|
-
CommonModule,
|
|
1616
|
-
SkyFilterModule
|
|
1610
|
+
SkyListFilterInlineItemRendererComponent,
|
|
1617
1611
|
],
|
|
1612
|
+
imports: [CommonModule, SkyFilterModule],
|
|
1618
1613
|
exports: [
|
|
1619
1614
|
SkyListFilterButtonComponent,
|
|
1620
1615
|
SkyListFilterSummaryComponent,
|
|
1621
1616
|
SkyListFilterInlineItemComponent,
|
|
1622
|
-
SkyListFilterInlineComponent
|
|
1623
|
-
]
|
|
1617
|
+
SkyListFilterInlineComponent,
|
|
1618
|
+
],
|
|
1624
1619
|
}]
|
|
1625
1620
|
}] });
|
|
1626
1621
|
|
|
@@ -1661,11 +1656,10 @@ class SkyListPagingComponent extends ListPagingComponent {
|
|
|
1661
1656
|
this.pageNumber = 1;
|
|
1662
1657
|
}
|
|
1663
1658
|
ngOnInit() {
|
|
1664
|
-
this.currentPageNumber = this.state.pipe(map(s => s.paging.pageNumber));
|
|
1665
|
-
this.maxDisplayedPages = this.state.pipe(map(s => s.paging.maxDisplayedPages));
|
|
1666
|
-
this.itemsPerPage = this.state.pipe(map(s => s.paging.itemsPerPage));
|
|
1667
|
-
this.itemCount = this.state
|
|
1668
|
-
.pipe(map((s) => {
|
|
1659
|
+
this.currentPageNumber = this.state.pipe(map((s) => s.paging.pageNumber));
|
|
1660
|
+
this.maxDisplayedPages = this.state.pipe(map((s) => s.paging.maxDisplayedPages));
|
|
1661
|
+
this.itemsPerPage = this.state.pipe(map((s) => s.paging.itemsPerPage));
|
|
1662
|
+
this.itemCount = this.state.pipe(map((s) => {
|
|
1669
1663
|
return s.items;
|
|
1670
1664
|
}), scan((previousValue, newValue) => {
|
|
1671
1665
|
if (previousValue.lastUpdate > newValue.lastUpdate) {
|
|
@@ -1690,19 +1684,19 @@ class SkyListPagingComponent extends ListPagingComponent {
|
|
|
1690
1684
|
});
|
|
1691
1685
|
}
|
|
1692
1686
|
}
|
|
1693
|
-
SkyListPagingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1694
|
-
SkyListPagingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1695
|
-
{ provide: ListPagingComponent, useExisting: listPagingComponentRef }
|
|
1696
|
-
], usesInheritance: true, ngImport: i0, template: "<sky-paging\n [pageSize]=\"itemsPerPage | async\"\n [maxPages]=\"maxDisplayedPages | async\"\n [currentPage]=\"currentPageNumber | async\"\n [itemCount]=\"itemCount | async\"\n (currentPageChange)=\"pageChange($event)\"\n
|
|
1697
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1687
|
+
SkyListPagingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListPagingComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0.ɵɵFactoryTarget.Component });
|
|
1688
|
+
SkyListPagingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListPagingComponent, selector: "sky-list-paging", inputs: { pageSize: "pageSize", maxPages: "maxPages", pageNumber: "pageNumber" }, providers: [
|
|
1689
|
+
{ provide: ListPagingComponent, useExisting: listPagingComponentRef },
|
|
1690
|
+
], usesInheritance: true, ngImport: i0, template: "<sky-paging\n [pageSize]=\"itemsPerPage | async\"\n [maxPages]=\"maxDisplayedPages | async\"\n [currentPage]=\"currentPageNumber | async\"\n [itemCount]=\"itemCount | async\"\n (currentPageChange)=\"pageChange($event)\"\n>\n</sky-paging>\n", components: [{ type: i3.λ7, selector: "sky-paging", inputs: ["currentPage", "itemCount", "maxPages", "pageSize", "pagingLabel"], outputs: ["currentPageChange"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListPagingComponent, decorators: [{
|
|
1698
1692
|
type: Component,
|
|
1699
1693
|
args: [{
|
|
1700
1694
|
selector: 'sky-list-paging',
|
|
1701
1695
|
templateUrl: './list-paging.component.html',
|
|
1702
1696
|
providers: [
|
|
1703
|
-
{ provide: ListPagingComponent, useExisting: listPagingComponentRef }
|
|
1697
|
+
{ provide: ListPagingComponent, useExisting: listPagingComponentRef },
|
|
1704
1698
|
],
|
|
1705
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1699
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1706
1700
|
}]
|
|
1707
1701
|
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { pageSize: [{
|
|
1708
1702
|
type: Input
|
|
@@ -1714,26 +1708,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
1714
1708
|
|
|
1715
1709
|
class SkyListPagingModule {
|
|
1716
1710
|
}
|
|
1717
|
-
SkyListPagingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1718
|
-
SkyListPagingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
CommonModule,
|
|
1722
|
-
SkyPagingModule
|
|
1723
|
-
]] });
|
|
1724
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: SkyListPagingModule, decorators: [{
|
|
1711
|
+
SkyListPagingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListPagingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1712
|
+
SkyListPagingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListPagingModule, declarations: [SkyListPagingComponent], imports: [CommonModule, SkyPagingModule], exports: [SkyListPagingComponent] });
|
|
1713
|
+
SkyListPagingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListPagingModule, imports: [[CommonModule, SkyPagingModule]] });
|
|
1714
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListPagingModule, decorators: [{
|
|
1725
1715
|
type: NgModule,
|
|
1726
1716
|
args: [{
|
|
1727
|
-
declarations: [
|
|
1728
|
-
|
|
1729
|
-
],
|
|
1730
|
-
imports: [
|
|
1731
|
-
CommonModule,
|
|
1732
|
-
SkyPagingModule
|
|
1733
|
-
],
|
|
1734
|
-
exports: [
|
|
1735
|
-
SkyListPagingComponent
|
|
1736
|
-
]
|
|
1717
|
+
declarations: [SkyListPagingComponent],
|
|
1718
|
+
imports: [CommonModule, SkyPagingModule],
|
|
1719
|
+
exports: [SkyListPagingComponent],
|
|
1737
1720
|
}]
|
|
1738
1721
|
}] });
|
|
1739
1722
|
|
|
@@ -1744,7 +1727,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
1744
1727
|
* To update this file, simply rerun the command.
|
|
1745
1728
|
*/
|
|
1746
1729
|
const RESOURCES = {
|
|
1747
|
-
'EN-US': {
|
|
1730
|
+
'EN-US': {
|
|
1731
|
+
skyux_list_show_secondary_actions_button: { message: 'More' },
|
|
1732
|
+
skyux_list_multiselect_clear_all: { message: 'Clear all' },
|
|
1733
|
+
skyux_list_mutliselect_select_all: { message: 'Select all' },
|
|
1734
|
+
skyux_list_mutliselect_show_selected: {
|
|
1735
|
+
message: 'Only show selected items',
|
|
1736
|
+
},
|
|
1737
|
+
skyux_list_view_switcher_dropdown_title: { message: 'Select view' },
|
|
1738
|
+
},
|
|
1748
1739
|
};
|
|
1749
1740
|
class SkyListBuilderResourcesProvider {
|
|
1750
1741
|
getString(localeInfo, name) {
|
|
@@ -1756,22 +1747,26 @@ class SkyListBuilderResourcesProvider {
|
|
|
1756
1747
|
*/
|
|
1757
1748
|
class SkyListBuilderResourcesModule {
|
|
1758
1749
|
}
|
|
1759
|
-
SkyListBuilderResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1760
|
-
SkyListBuilderResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1761
|
-
SkyListBuilderResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
1750
|
+
SkyListBuilderResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListBuilderResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1751
|
+
SkyListBuilderResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListBuilderResourcesModule, exports: [SkyI18nModule] });
|
|
1752
|
+
SkyListBuilderResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListBuilderResourcesModule, providers: [
|
|
1753
|
+
{
|
|
1762
1754
|
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
1763
1755
|
useClass: SkyListBuilderResourcesProvider,
|
|
1764
|
-
multi: true
|
|
1765
|
-
}
|
|
1766
|
-
|
|
1756
|
+
multi: true,
|
|
1757
|
+
},
|
|
1758
|
+
], imports: [SkyI18nModule] });
|
|
1759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListBuilderResourcesModule, decorators: [{
|
|
1767
1760
|
type: NgModule,
|
|
1768
1761
|
args: [{
|
|
1769
1762
|
exports: [SkyI18nModule],
|
|
1770
|
-
providers: [
|
|
1763
|
+
providers: [
|
|
1764
|
+
{
|
|
1771
1765
|
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
1772
1766
|
useClass: SkyListBuilderResourcesProvider,
|
|
1773
|
-
multi: true
|
|
1774
|
-
}
|
|
1767
|
+
multi: true,
|
|
1768
|
+
},
|
|
1769
|
+
],
|
|
1775
1770
|
}]
|
|
1776
1771
|
}] });
|
|
1777
1772
|
|
|
@@ -1794,7 +1789,7 @@ class SkyListSecondaryActionsService {
|
|
|
1794
1789
|
removeSecondaryAction(action) {
|
|
1795
1790
|
this.secondaryActionsCount--;
|
|
1796
1791
|
this.secondaryActionsSubject.next(this.secondaryActionsCount);
|
|
1797
|
-
this.actions = this.actions.filter(existingItem => existingItem !== action);
|
|
1792
|
+
this.actions = this.actions.filter((existingItem) => existingItem !== action);
|
|
1798
1793
|
this.actionsStream.next(this.actions);
|
|
1799
1794
|
}
|
|
1800
1795
|
ngOnDestroy() {
|
|
@@ -1802,9 +1797,9 @@ class SkyListSecondaryActionsService {
|
|
|
1802
1797
|
this.actionsStream.complete();
|
|
1803
1798
|
}
|
|
1804
1799
|
}
|
|
1805
|
-
SkyListSecondaryActionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1806
|
-
SkyListSecondaryActionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1800
|
+
SkyListSecondaryActionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListSecondaryActionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1801
|
+
SkyListSecondaryActionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListSecondaryActionsService });
|
|
1802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListSecondaryActionsService, decorators: [{
|
|
1808
1803
|
type: Injectable
|
|
1809
1804
|
}] });
|
|
1810
1805
|
|
|
@@ -1825,7 +1820,7 @@ class SkyListSecondaryActionsHostComponent {
|
|
|
1825
1820
|
this.actionService.actionsStream
|
|
1826
1821
|
.pipe(takeUntil(this.ngUnsubscribe), distinctUntilChanged())
|
|
1827
1822
|
.subscribe((actions) => {
|
|
1828
|
-
const hasSecondaryActions =
|
|
1823
|
+
const hasSecondaryActions = actions.length > 0;
|
|
1829
1824
|
this.dropdownHidden = !hasSecondaryActions;
|
|
1830
1825
|
this.actions = actions;
|
|
1831
1826
|
this.changeDetector.detectChanges();
|
|
@@ -1836,15 +1831,15 @@ class SkyListSecondaryActionsHostComponent {
|
|
|
1836
1831
|
this.ngUnsubscribe.complete();
|
|
1837
1832
|
}
|
|
1838
1833
|
}
|
|
1839
|
-
SkyListSecondaryActionsHostComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1840
|
-
SkyListSecondaryActionsHostComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1834
|
+
SkyListSecondaryActionsHostComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListSecondaryActionsHostComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: SkyListSecondaryActionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1835
|
+
SkyListSecondaryActionsHostComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListSecondaryActionsHostComponent, selector: "sky-list-secondary-actions-host", ngImport: i0, template: "<div\n class=\"sky-list-secondary-actions\"\n [ngClass]=\"{ 'sky-list-secondary-actions-hidden': dropdownHidden }\"\n>\n <sky-dropdown\n [attr.title]=\"'skyux_list_show_secondary_actions_button' | skyLibResources\"\n [label]=\"'skyux_list_show_secondary_actions_button' | skyLibResources\"\n >\n <sky-dropdown-button>\n <sky-icon icon=\"ellipsis-h\"> </sky-icon>\n <span class=\"sky-list-secondary-actions-btn-text\">\n {{ 'skyux_list_show_secondary_actions_button' | skyLibResources }}\n </span>\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let action of actions\">\n <ng-container *ngTemplateOutlet=\"action.template\"> </ng-container>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n</div>\n<ng-content> </ng-content>\n", styles: [".sky-list-secondary-actions ::ng-deep .sky-dropdown-button-type-select{padding:6px 12px}.sky-list-secondary-actions ::ng-deep .sky-dropdown-button-type-select sky-icon[icon=ellipsis-h]{font-size:1.33333em;line-height:.75em;vertical-align:-15%}.sky-list-secondary-actions-hidden{display:none}:host .sky-list-secondary-actions-btn-text{display:none}:host .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret{display:none}:host-context(.sky-responsive-container-xs) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-sm) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-md) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-lg) .sky-list-secondary-actions-btn-text{display:none}:host-context(.sky-responsive-container-xs) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-sm) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-md) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-lg) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret{display:none}@media (min-width: 768px){:host .sky-list-secondary-actions-btn-text{display:inline}:host .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret{display:inline-block}}:host-context(.sky-responsive-container-sm) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-md) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-lg) .sky-list-secondary-actions-btn-text{display:inline}:host-context(.sky-responsive-container-sm) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-md) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-lg) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret{display:inline-block}\n"], components: [{ type: i2.λ3, selector: "sky-dropdown", inputs: ["buttonStyle", "buttonType", "disabled", "dismissOnBlur", "label", "horizontalAlignment", "messageStream", "title", "trigger"] }, { type: i2.λ2, selector: "sky-dropdown-button" }, { type: i3$1.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }, { type: i2.λ4, selector: "sky-dropdown-menu", inputs: ["ariaLabelledBy", "ariaRole", "useNativeFocus"], outputs: ["menuChanges"] }, { type: i2.λ1, selector: "sky-dropdown-item", inputs: ["ariaRole"] }], directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyLibResources": i5.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1836
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListSecondaryActionsHostComponent, decorators: [{
|
|
1842
1837
|
type: Component,
|
|
1843
1838
|
args: [{
|
|
1844
1839
|
selector: 'sky-list-secondary-actions-host',
|
|
1845
1840
|
templateUrl: './list-secondary-actions-host.component.html',
|
|
1846
1841
|
styleUrls: ['./list-secondary-actions-host.component.scss'],
|
|
1847
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1842
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1848
1843
|
}]
|
|
1849
1844
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: SkyListSecondaryActionsService }]; } });
|
|
1850
1845
|
|
|
@@ -1863,32 +1858,26 @@ class SkyListSecondaryActionsComponent {
|
|
|
1863
1858
|
id: 'secondary-actions',
|
|
1864
1859
|
template: this.secondaryActionsTemplate,
|
|
1865
1860
|
location: 'center',
|
|
1866
|
-
index: this.secondaryActionsItemToolbarIndex
|
|
1861
|
+
index: this.secondaryActionsItemToolbarIndex,
|
|
1867
1862
|
});
|
|
1868
|
-
this.dispatcher.toolbarAddItems([
|
|
1869
|
-
secondaryActionItem
|
|
1870
|
-
]);
|
|
1863
|
+
this.dispatcher.toolbarAddItems([secondaryActionItem]);
|
|
1871
1864
|
}
|
|
1872
1865
|
}
|
|
1873
|
-
SkyListSecondaryActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1874
|
-
SkyListSecondaryActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1875
|
-
|
|
1876
|
-
], viewQueries: [{ propertyName: "secondaryActionsTemplate", first: true, predicate: ["secondaryActions"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<ng-template #secondaryActions>\n <sky-list-secondary-actions-host>\n <ng-content></ng-content>\n </sky-list-secondary-actions-host>\n</ng-template>\n", components: [{ type: SkyListSecondaryActionsHostComponent, selector: "sky-list-secondary-actions-host" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1877
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: SkyListSecondaryActionsComponent, decorators: [{
|
|
1866
|
+
SkyListSecondaryActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListSecondaryActionsComponent, deps: [{ token: ListStateDispatcher }], target: i0.ɵɵFactoryTarget.Component });
|
|
1867
|
+
SkyListSecondaryActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListSecondaryActionsComponent, selector: "sky-list-secondary-actions", providers: [SkyListSecondaryActionsService], viewQueries: [{ propertyName: "secondaryActionsTemplate", first: true, predicate: ["secondaryActions"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<ng-template #secondaryActions>\n <sky-list-secondary-actions-host>\n <ng-content></ng-content>\n </sky-list-secondary-actions-host>\n</ng-template>\n", components: [{ type: SkyListSecondaryActionsHostComponent, selector: "sky-list-secondary-actions-host" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListSecondaryActionsComponent, decorators: [{
|
|
1878
1869
|
type: Component,
|
|
1879
1870
|
args: [{
|
|
1880
1871
|
selector: 'sky-list-secondary-actions',
|
|
1881
1872
|
templateUrl: './list-secondary-actions.component.html',
|
|
1882
|
-
providers: [
|
|
1883
|
-
|
|
1884
|
-
],
|
|
1885
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1873
|
+
providers: [SkyListSecondaryActionsService],
|
|
1874
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1886
1875
|
}]
|
|
1887
1876
|
}], ctorParameters: function () { return [{ type: ListStateDispatcher }]; }, propDecorators: { secondaryActionsTemplate: [{
|
|
1888
1877
|
type: ViewChild,
|
|
1889
1878
|
args: ['secondaryActions', {
|
|
1890
1879
|
read: TemplateRef,
|
|
1891
|
-
static: true
|
|
1880
|
+
static: true,
|
|
1892
1881
|
}]
|
|
1893
1882
|
}] } });
|
|
1894
1883
|
|
|
@@ -1901,63 +1890,59 @@ class SkyListSecondaryActionComponent {
|
|
|
1901
1890
|
}
|
|
1902
1891
|
ngAfterContentInit() {
|
|
1903
1892
|
this.actionService.addSecondaryAction({
|
|
1904
|
-
template: this.templateRef
|
|
1893
|
+
template: this.templateRef,
|
|
1905
1894
|
});
|
|
1906
1895
|
}
|
|
1907
1896
|
}
|
|
1908
|
-
SkyListSecondaryActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1909
|
-
SkyListSecondaryActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1910
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1897
|
+
SkyListSecondaryActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListSecondaryActionComponent, deps: [{ token: SkyListSecondaryActionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1898
|
+
SkyListSecondaryActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListSecondaryActionComponent, selector: "sky-list-secondary-action", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["listSecondaryAction"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<ng-template #listSecondaryAction>\n <ng-content></ng-content>\n</ng-template>\n" });
|
|
1899
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListSecondaryActionComponent, decorators: [{
|
|
1911
1900
|
type: Component,
|
|
1912
1901
|
args: [{
|
|
1913
1902
|
selector: 'sky-list-secondary-action',
|
|
1914
|
-
templateUrl: './list-secondary-action.component.html'
|
|
1903
|
+
templateUrl: './list-secondary-action.component.html',
|
|
1915
1904
|
}]
|
|
1916
1905
|
}], ctorParameters: function () { return [{ type: SkyListSecondaryActionsService }]; }, propDecorators: { templateRef: [{
|
|
1917
1906
|
type: ViewChild,
|
|
1918
1907
|
args: ['listSecondaryAction', {
|
|
1919
1908
|
read: TemplateRef,
|
|
1920
|
-
static: true
|
|
1909
|
+
static: true,
|
|
1921
1910
|
}]
|
|
1922
1911
|
}] } });
|
|
1923
1912
|
|
|
1924
1913
|
class SkyListSecondaryActionsModule {
|
|
1925
1914
|
}
|
|
1926
|
-
SkyListSecondaryActionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1927
|
-
SkyListSecondaryActionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1915
|
+
SkyListSecondaryActionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListSecondaryActionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1916
|
+
SkyListSecondaryActionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListSecondaryActionsModule, declarations: [SkyListSecondaryActionsComponent,
|
|
1928
1917
|
SkyListSecondaryActionsHostComponent,
|
|
1929
1918
|
SkyListSecondaryActionComponent], imports: [CommonModule,
|
|
1930
1919
|
SkyDropdownModule,
|
|
1931
1920
|
SkyI18nModule,
|
|
1932
1921
|
SkyIconModule,
|
|
1933
|
-
SkyListBuilderResourcesModule], exports: [SkyListSecondaryActionsComponent,
|
|
1934
|
-
|
|
1935
|
-
SkyListSecondaryActionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: SkyListSecondaryActionsModule, imports: [[
|
|
1922
|
+
SkyListBuilderResourcesModule], exports: [SkyListSecondaryActionsComponent, SkyListSecondaryActionComponent] });
|
|
1923
|
+
SkyListSecondaryActionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListSecondaryActionsModule, imports: [[
|
|
1936
1924
|
CommonModule,
|
|
1937
1925
|
SkyDropdownModule,
|
|
1938
1926
|
SkyI18nModule,
|
|
1939
1927
|
SkyIconModule,
|
|
1940
|
-
SkyListBuilderResourcesModule
|
|
1928
|
+
SkyListBuilderResourcesModule,
|
|
1941
1929
|
]] });
|
|
1942
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1930
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListSecondaryActionsModule, decorators: [{
|
|
1943
1931
|
type: NgModule,
|
|
1944
1932
|
args: [{
|
|
1945
1933
|
declarations: [
|
|
1946
1934
|
SkyListSecondaryActionsComponent,
|
|
1947
1935
|
SkyListSecondaryActionsHostComponent,
|
|
1948
|
-
SkyListSecondaryActionComponent
|
|
1936
|
+
SkyListSecondaryActionComponent,
|
|
1949
1937
|
],
|
|
1950
1938
|
imports: [
|
|
1951
1939
|
CommonModule,
|
|
1952
1940
|
SkyDropdownModule,
|
|
1953
1941
|
SkyI18nModule,
|
|
1954
1942
|
SkyIconModule,
|
|
1955
|
-
SkyListBuilderResourcesModule
|
|
1943
|
+
SkyListBuilderResourcesModule,
|
|
1956
1944
|
],
|
|
1957
|
-
exports: [
|
|
1958
|
-
SkyListSecondaryActionsComponent,
|
|
1959
|
-
SkyListSecondaryActionComponent
|
|
1960
|
-
]
|
|
1945
|
+
exports: [SkyListSecondaryActionsComponent, SkyListSecondaryActionComponent],
|
|
1961
1946
|
}]
|
|
1962
1947
|
}] });
|
|
1963
1948
|
|
|
@@ -1977,9 +1962,9 @@ class SkyListToolbarItemComponent {
|
|
|
1977
1962
|
*/
|
|
1978
1963
|
this.index = -1;
|
|
1979
1964
|
/**
|
|
1980
|
-
* Specifies the toolbar location of the item. The valid options are `left`,
|
|
1981
|
-
* `center`, and `right`.
|
|
1982
|
-
* @default
|
|
1965
|
+
* Specifies the toolbar location of the item. The valid options are `"left"`,
|
|
1966
|
+
* `"center"`, and `"right"`.
|
|
1967
|
+
* @default "left"
|
|
1983
1968
|
*/
|
|
1984
1969
|
this.location = 'left';
|
|
1985
1970
|
}
|
|
@@ -1987,13 +1972,13 @@ class SkyListToolbarItemComponent {
|
|
|
1987
1972
|
return this.templates.length > 0 ? this.templates.first : undefined;
|
|
1988
1973
|
}
|
|
1989
1974
|
}
|
|
1990
|
-
SkyListToolbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1991
|
-
SkyListToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1975
|
+
SkyListToolbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1976
|
+
SkyListToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListToolbarItemComponent, selector: "sky-list-toolbar-item", inputs: { id: "id", index: "index", location: "location" }, queries: [{ propertyName: "templates", predicate: TemplateRef }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
1977
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarItemComponent, decorators: [{
|
|
1993
1978
|
type: Component,
|
|
1994
1979
|
args: [{
|
|
1995
1980
|
selector: 'sky-list-toolbar-item',
|
|
1996
|
-
template: '<ng-content></ng-content>'
|
|
1981
|
+
template: '<ng-content></ng-content>',
|
|
1997
1982
|
}]
|
|
1998
1983
|
}], propDecorators: { id: [{
|
|
1999
1984
|
type: Input
|
|
@@ -2011,13 +1996,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
2011
1996
|
*/
|
|
2012
1997
|
class SkyListToolbarSortComponent {
|
|
2013
1998
|
}
|
|
2014
|
-
SkyListToolbarSortComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2015
|
-
SkyListToolbarSortComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2016
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1999
|
+
SkyListToolbarSortComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarSortComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2000
|
+
SkyListToolbarSortComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListToolbarSortComponent, selector: "sky-list-toolbar-sort", inputs: { label: "label", field: "field", type: "type", descending: "descending" }, ngImport: i0, template: '', isInline: true });
|
|
2001
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarSortComponent, decorators: [{
|
|
2017
2002
|
type: Component,
|
|
2018
2003
|
args: [{
|
|
2019
2004
|
selector: 'sky-list-toolbar-sort',
|
|
2020
|
-
template: ''
|
|
2005
|
+
template: '',
|
|
2021
2006
|
}]
|
|
2022
2007
|
}], propDecorators: { label: [{
|
|
2023
2008
|
type: Input
|
|
@@ -2037,14 +2022,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
2037
2022
|
*/
|
|
2038
2023
|
class SkyListToolbarViewActionsComponent {
|
|
2039
2024
|
}
|
|
2040
|
-
SkyListToolbarViewActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2041
|
-
SkyListToolbarViewActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2042
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2025
|
+
SkyListToolbarViewActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarViewActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2026
|
+
SkyListToolbarViewActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListToolbarViewActionsComponent, selector: "sky-list-toolbar-view-actions", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:flex;align-items:center}:host::ng-deep>:not(:last-child){margin-right:5px}.sky-list-toolbar-view-actions ::ng-deep>:not(:last-child){margin-right:5px}\n"] });
|
|
2027
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarViewActionsComponent, decorators: [{
|
|
2043
2028
|
type: Component,
|
|
2044
2029
|
args: [{
|
|
2045
2030
|
selector: 'sky-list-toolbar-view-actions',
|
|
2046
2031
|
templateUrl: './list-toolbar-view-actions.component.html',
|
|
2047
|
-
styleUrls: ['./list-toolbar-view-actions.component.scss']
|
|
2032
|
+
styleUrls: ['./list-toolbar-view-actions.component.scss'],
|
|
2048
2033
|
}]
|
|
2049
2034
|
}] });
|
|
2050
2035
|
|
|
@@ -2067,22 +2052,6 @@ class ListToolbarConfigSetSortSelectorEnabledAction {
|
|
|
2067
2052
|
}
|
|
2068
2053
|
}
|
|
2069
2054
|
|
|
2070
|
-
/**
|
|
2071
|
-
* @internal
|
|
2072
|
-
*/
|
|
2073
|
-
class ListToolbarStateDispatcher extends StateDispatcher {
|
|
2074
|
-
}
|
|
2075
|
-
ListToolbarStateDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: ListToolbarStateDispatcher, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
2076
|
-
ListToolbarStateDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: ListToolbarStateDispatcher });
|
|
2077
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: ListToolbarStateDispatcher, decorators: [{
|
|
2078
|
-
type: Injectable
|
|
2079
|
-
}] });
|
|
2080
|
-
/**
|
|
2081
|
-
* @internal
|
|
2082
|
-
*/
|
|
2083
|
-
class ListToolbarStateOrchestrator extends StateOrchestrator {
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2086
2055
|
/**
|
|
2087
2056
|
* @internal
|
|
2088
2057
|
*/
|
|
@@ -2097,6 +2066,31 @@ class ListToolbarConfigModel {
|
|
|
2097
2066
|
}
|
|
2098
2067
|
}
|
|
2099
2068
|
|
|
2069
|
+
/**
|
|
2070
|
+
* @internal
|
|
2071
|
+
*/
|
|
2072
|
+
class ListToolbarStateModel {
|
|
2073
|
+
constructor() {
|
|
2074
|
+
this.config = new ListToolbarConfigModel();
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
/**
|
|
2079
|
+
* @internal
|
|
2080
|
+
*/
|
|
2081
|
+
class ListToolbarStateDispatcher extends StateDispatcher {
|
|
2082
|
+
}
|
|
2083
|
+
ListToolbarStateDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListToolbarStateDispatcher, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
2084
|
+
ListToolbarStateDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListToolbarStateDispatcher });
|
|
2085
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListToolbarStateDispatcher, decorators: [{
|
|
2086
|
+
type: Injectable
|
|
2087
|
+
}] });
|
|
2088
|
+
/**
|
|
2089
|
+
* @internal
|
|
2090
|
+
*/
|
|
2091
|
+
class ListToolbarStateOrchestrator extends StateOrchestrator {
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2100
2094
|
/**
|
|
2101
2095
|
* @internal
|
|
2102
2096
|
*/
|
|
@@ -2104,9 +2098,7 @@ class ListToolbarConfigOrchestrator extends ListToolbarStateOrchestrator {
|
|
|
2104
2098
|
/* istanbul ignore next */
|
|
2105
2099
|
constructor() {
|
|
2106
2100
|
super();
|
|
2107
|
-
this
|
|
2108
|
-
.register(ListToolbarConfigSetSearchEnabledAction, this.setSearchEnabled)
|
|
2109
|
-
.register(ListToolbarConfigSetSortSelectorEnabledAction, this.setSortSelectorEnabled);
|
|
2101
|
+
this.register(ListToolbarConfigSetSearchEnabledAction, this.setSearchEnabled).register(ListToolbarConfigSetSortSelectorEnabledAction, this.setSortSelectorEnabled);
|
|
2110
2102
|
}
|
|
2111
2103
|
setSearchEnabled(state, action) {
|
|
2112
2104
|
return new ListToolbarConfigModel(Object.assign({}, state, { searchEnabled: action.enabled }));
|
|
@@ -2116,29 +2108,18 @@ class ListToolbarConfigOrchestrator extends ListToolbarStateOrchestrator {
|
|
|
2116
2108
|
}
|
|
2117
2109
|
}
|
|
2118
2110
|
|
|
2119
|
-
/**
|
|
2120
|
-
* @internal
|
|
2121
|
-
*/
|
|
2122
|
-
class ListToolbarStateModel {
|
|
2123
|
-
constructor() {
|
|
2124
|
-
this.config = new ListToolbarConfigModel();
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
|
|
2128
2111
|
/**
|
|
2129
2112
|
* @internal
|
|
2130
2113
|
*/
|
|
2131
2114
|
class ListToolbarState extends StateNode {
|
|
2132
2115
|
constructor(initialState, dispatcher) {
|
|
2133
2116
|
super(initialState, dispatcher);
|
|
2134
|
-
this
|
|
2135
|
-
.register('config', ListToolbarConfigOrchestrator)
|
|
2136
|
-
.begin();
|
|
2117
|
+
this.register('config', ListToolbarConfigOrchestrator).begin();
|
|
2137
2118
|
}
|
|
2138
2119
|
}
|
|
2139
|
-
ListToolbarState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2140
|
-
ListToolbarState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2120
|
+
ListToolbarState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListToolbarState, deps: [{ token: ListToolbarStateModel }, { token: ListToolbarStateDispatcher }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2121
|
+
ListToolbarState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListToolbarState });
|
|
2122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListToolbarState, decorators: [{
|
|
2142
2123
|
type: Injectable
|
|
2143
2124
|
}], ctorParameters: function () { return [{ type: ListToolbarStateModel }, { type: ListToolbarStateDispatcher }]; } });
|
|
2144
2125
|
|
|
@@ -2152,13 +2133,13 @@ class SkyListToolbarItemRendererComponent {
|
|
|
2152
2133
|
}
|
|
2153
2134
|
}
|
|
2154
2135
|
}
|
|
2155
|
-
SkyListToolbarItemRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2156
|
-
SkyListToolbarItemRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2136
|
+
SkyListToolbarItemRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarItemRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2137
|
+
SkyListToolbarItemRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListToolbarItemRendererComponent, selector: "sky-list-toolbar-item-renderer", inputs: { template: "template" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: '<ng-template #container></ng-template>', isInline: true });
|
|
2138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarItemRendererComponent, decorators: [{
|
|
2158
2139
|
type: Component,
|
|
2159
2140
|
args: [{
|
|
2160
2141
|
selector: 'sky-list-toolbar-item-renderer',
|
|
2161
|
-
template: '<ng-template #container></ng-template>'
|
|
2142
|
+
template: '<ng-template #container></ng-template>',
|
|
2162
2143
|
}]
|
|
2163
2144
|
}], propDecorators: { template: [{
|
|
2164
2145
|
type: Input
|
|
@@ -2166,7 +2147,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
2166
2147
|
type: ViewChild,
|
|
2167
2148
|
args: ['container', {
|
|
2168
2149
|
read: ViewContainerRef,
|
|
2169
|
-
static: true
|
|
2150
|
+
static: true,
|
|
2170
2151
|
}]
|
|
2171
2152
|
}] } });
|
|
2172
2153
|
|
|
@@ -2185,7 +2166,7 @@ class SkyListMultiselectToolbarComponent {
|
|
|
2185
2166
|
}
|
|
2186
2167
|
ngOnInit() {
|
|
2187
2168
|
this.state
|
|
2188
|
-
.pipe(map(t => t.selected.item), takeUntil(this.ngUnsubscribe), distinctUntilChanged(this.selectedMapEqual))
|
|
2169
|
+
.pipe(map((t) => t.selected.item), takeUntil(this.ngUnsubscribe), distinctUntilChanged(this.selectedMapEqual))
|
|
2189
2170
|
.subscribe((model) => {
|
|
2190
2171
|
this.selectedIdMap = model.selectedIdMap;
|
|
2191
2172
|
if (this.showOnlySelected) {
|
|
@@ -2195,11 +2176,11 @@ class SkyListMultiselectToolbarComponent {
|
|
|
2195
2176
|
// If 'show-selected' filter is programatically set from a child component (e.g. checkilst),
|
|
2196
2177
|
// make sure the checked state of the 'show-selected' checkbox stays in sync.
|
|
2197
2178
|
this.state
|
|
2198
|
-
.pipe(map(t => t.filters), takeUntil(this.ngUnsubscribe), distinctUntilChanged(this.showSelectedValuesEqual))
|
|
2179
|
+
.pipe(map((t) => t.filters), takeUntil(this.ngUnsubscribe), distinctUntilChanged(this.showSelectedValuesEqual))
|
|
2199
2180
|
.subscribe((filters) => {
|
|
2200
|
-
const showSelectedFilter = filters.find(filter => filter.name === 'show-selected');
|
|
2181
|
+
const showSelectedFilter = filters.find((filter) => filter.name === 'show-selected');
|
|
2201
2182
|
if (showSelectedFilter) {
|
|
2202
|
-
this.showOnlySelected =
|
|
2183
|
+
this.showOnlySelected = showSelectedFilter.value === 'true';
|
|
2203
2184
|
}
|
|
2204
2185
|
});
|
|
2205
2186
|
}
|
|
@@ -2209,9 +2190,9 @@ class SkyListMultiselectToolbarComponent {
|
|
|
2209
2190
|
}
|
|
2210
2191
|
selectAll() {
|
|
2211
2192
|
this.state
|
|
2212
|
-
.pipe(map(state => state.items.items), take(1))
|
|
2213
|
-
.subscribe(items => {
|
|
2214
|
-
this.dispatcher.setSelected(items.map(item => item.id), true);
|
|
2193
|
+
.pipe(map((state) => state.items.items), take(1))
|
|
2194
|
+
.subscribe((items) => {
|
|
2195
|
+
this.dispatcher.setSelected(items.map((item) => item.id), true);
|
|
2215
2196
|
if (this.showOnlySelected) {
|
|
2216
2197
|
this.reapplyFilter(this.showOnlySelected);
|
|
2217
2198
|
}
|
|
@@ -2219,9 +2200,9 @@ class SkyListMultiselectToolbarComponent {
|
|
|
2219
2200
|
}
|
|
2220
2201
|
clearSelections() {
|
|
2221
2202
|
this.state
|
|
2222
|
-
.pipe(map(state => state.items.items), take(1))
|
|
2223
|
-
.subscribe(items => {
|
|
2224
|
-
this.dispatcher.setSelected(items.map(item => item.id), false);
|
|
2203
|
+
.pipe(map((state) => state.items.items), take(1))
|
|
2204
|
+
.subscribe((items) => {
|
|
2205
|
+
this.dispatcher.setSelected(items.map((item) => item.id), false);
|
|
2225
2206
|
if (this.showOnlySelected) {
|
|
2226
2207
|
this.reapplyFilter(this.showOnlySelected);
|
|
2227
2208
|
}
|
|
@@ -2234,18 +2215,18 @@ class SkyListMultiselectToolbarComponent {
|
|
|
2234
2215
|
reapplyFilter(isSelected) {
|
|
2235
2216
|
let self = this;
|
|
2236
2217
|
this.state
|
|
2237
|
-
.pipe(map(state => state.filters), take(1))
|
|
2218
|
+
.pipe(map((state) => state.filters), take(1))
|
|
2238
2219
|
.subscribe((filters) => {
|
|
2239
|
-
filters = filters.filter(filter => filter.name !== 'show-selected');
|
|
2220
|
+
filters = filters.filter((filter) => filter.name !== 'show-selected');
|
|
2240
2221
|
filters.push(self.getShowSelectedFilter(isSelected));
|
|
2241
2222
|
this.dispatcher.filtersUpdate(filters);
|
|
2242
2223
|
});
|
|
2243
2224
|
// If "show selected" is checked and paging is enabled, go to page one.
|
|
2244
2225
|
/* istanbul ignore else */
|
|
2245
2226
|
if (isSelected) {
|
|
2246
|
-
this.state.pipe(take(1))
|
|
2247
|
-
|
|
2248
|
-
|
|
2227
|
+
this.state.pipe(take(1)).subscribe((currentState) => {
|
|
2228
|
+
if (currentState.paging.pageNumber &&
|
|
2229
|
+
currentState.paging.pageNumber !== 1) {
|
|
2249
2230
|
this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
2250
2231
|
}
|
|
2251
2232
|
});
|
|
@@ -2262,18 +2243,19 @@ class SkyListMultiselectToolbarComponent {
|
|
|
2262
2243
|
return this.selectedIdMap.get(model.id);
|
|
2263
2244
|
}
|
|
2264
2245
|
},
|
|
2265
|
-
defaultValue: false.toString()
|
|
2246
|
+
defaultValue: false.toString(),
|
|
2266
2247
|
});
|
|
2267
2248
|
}
|
|
2268
2249
|
showSelectedValuesEqual(prev, next) {
|
|
2269
|
-
const prevShowSelectedFilter = prev.find(filter => filter.name === 'show-selected');
|
|
2270
|
-
const nextShowSelectedFilter = next.find(filter => filter.name === 'show-selected');
|
|
2250
|
+
const prevShowSelectedFilter = prev.find((filter) => filter.name === 'show-selected');
|
|
2251
|
+
const nextShowSelectedFilter = next.find((filter) => filter.name === 'show-selected');
|
|
2271
2252
|
// Both undefined.
|
|
2272
2253
|
if (!prevShowSelectedFilter && !nextShowSelectedFilter) {
|
|
2273
2254
|
return true;
|
|
2274
2255
|
}
|
|
2275
2256
|
// Only one undefined.
|
|
2276
|
-
if ((prevShowSelectedFilter && !nextShowSelectedFilter) ||
|
|
2257
|
+
if ((prevShowSelectedFilter && !nextShowSelectedFilter) ||
|
|
2258
|
+
(!prevShowSelectedFilter && nextShowSelectedFilter)) {
|
|
2277
2259
|
return false;
|
|
2278
2260
|
}
|
|
2279
2261
|
// Defined, but with different "value".
|
|
@@ -2294,14 +2276,14 @@ class SkyListMultiselectToolbarComponent {
|
|
|
2294
2276
|
return true;
|
|
2295
2277
|
}
|
|
2296
2278
|
}
|
|
2297
|
-
SkyListMultiselectToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2298
|
-
SkyListMultiselectToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2279
|
+
SkyListMultiselectToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListMultiselectToolbarComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0.ɵɵFactoryTarget.Component });
|
|
2280
|
+
SkyListMultiselectToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListMultiselectToolbarComponent, selector: "sky-list-multiselect-toolbar", inputs: { showOnlySelected: "showOnlySelected" }, ngImport: i0, template: "<sky-toolbar class=\"sky-list-multiselect-toolbar\">\n <sky-toolbar-section>\n <sky-toolbar-item>\n <sky-list-toolbar-item-renderer [template]=\"selectAllTemplate\">\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item>\n <sky-list-toolbar-item-renderer [template]=\"clearSelectionsTemplate\">\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-view-actions>\n <ng-container *ngTemplateOutlet=\"showSelectedTemplate\"></ng-container>\n </sky-toolbar-view-actions>\n </sky-toolbar-section>\n</sky-toolbar>\n\n<ng-template #selectAllTemplate>\n <button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n [attr.id]=\"multiselectToolbarId + '-select-all'\"\n (click)=\"selectAll(); $event.preventDefault()\"\n >\n {{ 'skyux_list_mutliselect_select_all' | skyLibResources }}\n </button>\n</ng-template>\n\n<ng-template #clearSelectionsTemplate>\n <button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n [attr.id]=\"multiselectToolbarId + '-clear-all'\"\n (click)=\"clearSelections(); $event.preventDefault()\"\n >\n {{ 'skyux_list_multiselect_clear_all' | skyLibResources }}\n </button>\n</ng-template>\n\n<ng-template #showSelectedTemplate>\n <sky-checkbox\n [attr.id]=\"multiselectToolbarId + '-show-selected'\"\n [checked]=\"showOnlySelected\"\n (change)=\"changeVisibleItems($event)\"\n >\n <sky-checkbox-label>\n {{ 'skyux_list_mutliselect_show_selected' | skyLibResources }}\n </sky-checkbox-label>\n </sky-checkbox>\n</ng-template>\n", styles: [":host-context(sky-toolbar +) .sky-list-multiselect-toolbar ::ng-deep .sky-toolbar-container,:host-context(.sky-list-toolbar-search +) .sky-list-multiselect-toolbar ::ng-deep .sky-toolbar-container{border-top:none}\n"], components: [{ type: i3$2.λ37, selector: "sky-toolbar" }, { type: i3$2.λ38, selector: "sky-toolbar-section" }, { type: i3$2.λ39, selector: "sky-toolbar-item" }, { type: SkyListToolbarItemRendererComponent, selector: "sky-list-toolbar-item-renderer", inputs: ["template"] }, { type: i3$2.λ40, selector: "sky-toolbar-view-actions" }, { type: i5$1.λ3, selector: "sky-checkbox", inputs: ["label", "labelledBy", "id", "disabled", "tabindex", "name", "icon", "checkboxType", "checked", "required"], outputs: ["change", "checkedChange", "disabledChange"] }, { type: i5$1.λ4, selector: "sky-checkbox-label" }], directives: [{ type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyLibResources": i5.SkyLibResourcesPipe } });
|
|
2281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListMultiselectToolbarComponent, decorators: [{
|
|
2300
2282
|
type: Component,
|
|
2301
2283
|
args: [{
|
|
2302
2284
|
selector: 'sky-list-multiselect-toolbar',
|
|
2303
2285
|
templateUrl: './list-multiselect-toolbar.component.html',
|
|
2304
|
-
styleUrls: ['./list-multiselect-toolbar.component.scss']
|
|
2286
|
+
styleUrls: ['./list-multiselect-toolbar.component.scss'],
|
|
2305
2287
|
}]
|
|
2306
2288
|
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { showOnlySelected: [{
|
|
2307
2289
|
type: Input
|
|
@@ -2322,7 +2304,7 @@ class SkyListToolbarComponent {
|
|
|
2322
2304
|
* Display the search bar in the standard position or in a separate section.
|
|
2323
2305
|
* To highlight the search bar in a section above all other toolbar items,
|
|
2324
2306
|
* set this property to `search`.
|
|
2325
|
-
* @default
|
|
2307
|
+
* @default "standard"
|
|
2326
2308
|
*/
|
|
2327
2309
|
this.toolbarType = 'standard';
|
|
2328
2310
|
this.isToolbarDisabled = false;
|
|
@@ -2359,7 +2341,9 @@ class SkyListToolbarComponent {
|
|
|
2359
2341
|
return this._inMemorySearchEnabled;
|
|
2360
2342
|
}
|
|
2361
2343
|
get isFilterBarDisplayed() {
|
|
2362
|
-
return !this.isToolbarDisabled &&
|
|
2344
|
+
return (!this.isToolbarDisabled &&
|
|
2345
|
+
this.hasInlineFilters &&
|
|
2346
|
+
this.inlineFilterBarExpanded);
|
|
2363
2347
|
}
|
|
2364
2348
|
get filterButtonAriaControls() {
|
|
2365
2349
|
return this.isFilterBarDisplayed ? this.listFilterInlineId : undefined;
|
|
@@ -2390,23 +2374,20 @@ class SkyListToolbarComponent {
|
|
|
2390
2374
|
id: 'sort-selector',
|
|
2391
2375
|
template: this.sortSelectorTemplate,
|
|
2392
2376
|
location: 'left',
|
|
2393
|
-
index: this.sortSelectorItemToolbarIndex
|
|
2394
|
-
})
|
|
2377
|
+
index: this.sortSelectorItemToolbarIndex,
|
|
2378
|
+
}),
|
|
2395
2379
|
]);
|
|
2396
2380
|
}
|
|
2397
2381
|
else if (currentSort.length < 1 && this.hasSortSelectors) {
|
|
2398
2382
|
this.hasSortSelectors = false;
|
|
2399
|
-
this.dispatcher.toolbarRemoveItems([
|
|
2400
|
-
'sort-selector'
|
|
2401
|
-
]);
|
|
2383
|
+
this.dispatcher.toolbarRemoveItems(['sort-selector']);
|
|
2402
2384
|
}
|
|
2403
2385
|
});
|
|
2404
|
-
this.searchTextInput = this.state.pipe(takeUntil(this.ngUnsubscribe), map(s => s.search.searchText), distinctUntilChanged());
|
|
2405
|
-
this.view = this.state.pipe(takeUntil(this.ngUnsubscribe), map(s => s.views.active), distinctUntilChanged());
|
|
2386
|
+
this.searchTextInput = this.state.pipe(takeUntil(this.ngUnsubscribe), map((s) => s.search.searchText), distinctUntilChanged());
|
|
2387
|
+
this.view = this.state.pipe(takeUntil(this.ngUnsubscribe), map((s) => s.views.active), distinctUntilChanged());
|
|
2406
2388
|
this.watchTemplates();
|
|
2407
2389
|
this.type = this.state.pipe(takeUntil(this.ngUnsubscribe), map((state) => state.toolbar.type), distinctUntilChanged());
|
|
2408
|
-
this.type.pipe(takeUntil(this.ngUnsubscribe))
|
|
2409
|
-
.subscribe((toolbarType) => {
|
|
2390
|
+
this.type.pipe(takeUntil(this.ngUnsubscribe)).subscribe((toolbarType) => {
|
|
2410
2391
|
if (toolbarType === 'search') {
|
|
2411
2392
|
this.dispatcher.toolbarRemoveItems(['search']);
|
|
2412
2393
|
}
|
|
@@ -2415,80 +2396,77 @@ class SkyListToolbarComponent {
|
|
|
2415
2396
|
new ListToolbarItemModel({
|
|
2416
2397
|
id: 'search',
|
|
2417
2398
|
template: this.searchTemplate,
|
|
2418
|
-
location: 'right'
|
|
2419
|
-
})
|
|
2399
|
+
location: 'right',
|
|
2400
|
+
}),
|
|
2420
2401
|
]);
|
|
2421
2402
|
}
|
|
2422
2403
|
});
|
|
2423
|
-
this.isSearchEnabled = this.toolbarState.pipe(takeUntil(this.ngUnsubscribe), map(s => s.config), distinctUntilChanged(), map(c => c.searchEnabled));
|
|
2424
|
-
this.state
|
|
2425
|
-
.
|
|
2426
|
-
|
|
2427
|
-
this.
|
|
2428
|
-
this.
|
|
2404
|
+
this.isSearchEnabled = this.toolbarState.pipe(takeUntil(this.ngUnsubscribe), map((s) => s.config), distinctUntilChanged(), map((c) => c.searchEnabled));
|
|
2405
|
+
this.state
|
|
2406
|
+
.pipe(map((s) => s.toolbar), takeUntil(this.ngUnsubscribe), distinctUntilChanged(), map((c) => c.disabled))
|
|
2407
|
+
.subscribe((isDisabled) => (this.isToolbarDisabled = isDisabled));
|
|
2408
|
+
this.isSortSelectorEnabled = this.toolbarState.pipe(takeUntil(this.ngUnsubscribe), map((s) => s.config), distinctUntilChanged(), map((c) => c.sortSelectorEnabled));
|
|
2409
|
+
this.isMultiselectEnabled = this.state.pipe(takeUntil(this.ngUnsubscribe), map((s) => s.toolbar), distinctUntilChanged(), map((t) => t.showMultiselectToolbar));
|
|
2410
|
+
this.hasAppliedFilters = this.state.pipe(takeUntil(this.ngUnsubscribe), map((s) => s.filters), distinctUntilChanged(), map((filters) => {
|
|
2429
2411
|
let activeFilters = filters.filter((f) => {
|
|
2430
|
-
return f.value !== '' &&
|
|
2412
|
+
return (f.value !== '' &&
|
|
2431
2413
|
f.value !== undefined &&
|
|
2432
2414
|
f.value !== false &&
|
|
2433
|
-
f.value !== f.defaultValue;
|
|
2415
|
+
f.value !== f.defaultValue);
|
|
2434
2416
|
});
|
|
2435
2417
|
return activeFilters.length > 0;
|
|
2436
2418
|
}));
|
|
2437
|
-
this.state.pipe(takeUntil(this.ngUnsubscribe))
|
|
2438
|
-
.
|
|
2439
|
-
this.hasAdditionalToolbarSection = (current.toolbar.items.length > 0);
|
|
2419
|
+
this.state.pipe(takeUntil(this.ngUnsubscribe)).subscribe((current) => {
|
|
2420
|
+
this.hasAdditionalToolbarSection = current.toolbar.items.length > 0;
|
|
2440
2421
|
this.changeDetector.detectChanges();
|
|
2441
2422
|
});
|
|
2442
2423
|
}
|
|
2443
2424
|
ngAfterContentInit() {
|
|
2444
2425
|
// Inject custom toolbar items.
|
|
2445
2426
|
this.toolbarItems.forEach((toolbarItem) => {
|
|
2446
|
-
this.dispatcher.toolbarAddItems([
|
|
2447
|
-
new ListToolbarItemModel(toolbarItem)
|
|
2448
|
-
]);
|
|
2427
|
+
this.dispatcher.toolbarAddItems([new ListToolbarItemModel(toolbarItem)]);
|
|
2449
2428
|
this.customItemIds.push(toolbarItem.id);
|
|
2450
2429
|
});
|
|
2451
|
-
this.toolbarItems.changes
|
|
2430
|
+
this.toolbarItems.changes
|
|
2431
|
+
.pipe(takeUntil(this.ngUnsubscribe))
|
|
2452
2432
|
.subscribe((newItems) => {
|
|
2453
|
-
newItems.forEach(item => {
|
|
2433
|
+
newItems.forEach((item) => {
|
|
2454
2434
|
if (this.customItemIds.indexOf(item.id) < 0) {
|
|
2455
|
-
this.dispatcher.toolbarAddItems([
|
|
2456
|
-
new ListToolbarItemModel(item)
|
|
2457
|
-
]);
|
|
2435
|
+
this.dispatcher.toolbarAddItems([new ListToolbarItemModel(item)]);
|
|
2458
2436
|
this.customItemIds.push(item.id);
|
|
2459
2437
|
}
|
|
2460
2438
|
});
|
|
2461
2439
|
const itemsToRemove = [];
|
|
2462
2440
|
this.customItemIds.forEach((itemId, index) => {
|
|
2463
|
-
if (!newItems.find(item => item.id === itemId)) {
|
|
2441
|
+
if (!newItems.find((item) => item.id === itemId)) {
|
|
2464
2442
|
itemsToRemove.push(itemId);
|
|
2465
2443
|
this.customItemIds.splice(index, 1);
|
|
2466
2444
|
}
|
|
2467
2445
|
});
|
|
2468
2446
|
this.dispatcher.toolbarRemoveItems(itemsToRemove);
|
|
2469
2447
|
});
|
|
2470
|
-
const sortModels = this.toolbarSorts.map(sort => new ListSortLabelModel({
|
|
2448
|
+
const sortModels = this.toolbarSorts.map((sort) => new ListSortLabelModel({
|
|
2471
2449
|
text: sort.label,
|
|
2472
2450
|
fieldSelector: sort.field,
|
|
2473
2451
|
fieldType: sort.type,
|
|
2474
2452
|
global: true,
|
|
2475
|
-
descending: sort.descending
|
|
2453
|
+
descending: sort.descending,
|
|
2476
2454
|
}));
|
|
2477
2455
|
this.dispatcher.sortSetGlobal(sortModels);
|
|
2478
2456
|
// Add inline filters.
|
|
2479
|
-
this.showFilterSummary =
|
|
2480
|
-
this.hasInlineFilters =
|
|
2457
|
+
this.showFilterSummary = this.filterSummary.length > 0;
|
|
2458
|
+
this.hasInlineFilters = this.inlineFilter.length > 0;
|
|
2481
2459
|
if (this.hasInlineFilters) {
|
|
2482
2460
|
this.dispatcher.toolbarAddItems([
|
|
2483
2461
|
new ListToolbarItemModel({
|
|
2484
2462
|
template: this.inlineFilterButtonTemplate,
|
|
2485
2463
|
location: 'left',
|
|
2486
|
-
index: this.inlineFiltersItemToolbarIndex
|
|
2487
|
-
})
|
|
2464
|
+
index: this.inlineFiltersItemToolbarIndex,
|
|
2465
|
+
}),
|
|
2488
2466
|
]);
|
|
2489
2467
|
}
|
|
2490
2468
|
// Check for view actions
|
|
2491
|
-
this.hasViewActions =
|
|
2469
|
+
this.hasViewActions = this.viewActions.length > 0;
|
|
2492
2470
|
}
|
|
2493
2471
|
ngOnDestroy() {
|
|
2494
2472
|
this.searchApplied.complete();
|
|
@@ -2497,10 +2475,13 @@ class SkyListToolbarComponent {
|
|
|
2497
2475
|
}
|
|
2498
2476
|
setSort(sort) {
|
|
2499
2477
|
this.state.pipe(take(1)).subscribe((currentState) => {
|
|
2500
|
-
if (currentState.paging.pageNumber &&
|
|
2478
|
+
if (currentState.paging.pageNumber &&
|
|
2479
|
+
currentState.paging.pageNumber !== 1) {
|
|
2501
2480
|
this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
2502
2481
|
}
|
|
2503
|
-
this.dispatcher.sortSetFieldSelectors([
|
|
2482
|
+
this.dispatcher.sortSetFieldSelectors([
|
|
2483
|
+
{ fieldSelector: sort.fieldSelector, descending: sort.descending },
|
|
2484
|
+
]);
|
|
2504
2485
|
});
|
|
2505
2486
|
}
|
|
2506
2487
|
inlineFilterButtonClick() {
|
|
@@ -2510,7 +2491,8 @@ class SkyListToolbarComponent {
|
|
|
2510
2491
|
this.searchApplied.next(searchText);
|
|
2511
2492
|
if (this.inMemorySearchEnabled) {
|
|
2512
2493
|
this.state.pipe(take(1)).subscribe((currentState) => {
|
|
2513
|
-
if (currentState.paging.pageNumber &&
|
|
2494
|
+
if (currentState.paging.pageNumber &&
|
|
2495
|
+
currentState.paging.pageNumber !== 1) {
|
|
2514
2496
|
this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
2515
2497
|
}
|
|
2516
2498
|
this.dispatcher.searchSetText(searchText);
|
|
@@ -2518,16 +2500,17 @@ class SkyListToolbarComponent {
|
|
|
2518
2500
|
}
|
|
2519
2501
|
}
|
|
2520
2502
|
itemIsInView(itemView, activeView) {
|
|
2521
|
-
return
|
|
2503
|
+
return itemView === undefined || itemView === activeView;
|
|
2522
2504
|
}
|
|
2523
2505
|
getSortSelectors() {
|
|
2524
|
-
return combineLatest(this.state.pipe(map(s => s.sort.available), distinctUntilChanged()), this.state.pipe(map(s => s.sort.global), distinctUntilChanged()), this.state.pipe(map(s => s.sort.fieldSelectors), distinctUntilChanged()), (available, global, fieldSelectors) => {
|
|
2506
|
+
return combineLatest(this.state.pipe(map((s) => s.sort.available), distinctUntilChanged()), this.state.pipe(map((s) => s.sort.global), distinctUntilChanged()), this.state.pipe(map((s) => s.sort.fieldSelectors), distinctUntilChanged()), (available, global, fieldSelectors) => {
|
|
2525
2507
|
// Get sorts that are in the global that are not in the available
|
|
2526
|
-
let sorts = global.filter(g => available.filter(a => a.fieldSelector === g.fieldSelector)
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2508
|
+
let sorts = global.filter((g) => available.filter((a) => a.fieldSelector === g.fieldSelector)
|
|
2509
|
+
.length === 0);
|
|
2510
|
+
let resultSortSelectors = [...sorts, ...available].map((sortLabels) => {
|
|
2511
|
+
let fs = fieldSelectors.filter((f) => {
|
|
2512
|
+
return (f.fieldSelector === sortLabels.fieldSelector &&
|
|
2513
|
+
f.descending === sortLabels.descending);
|
|
2531
2514
|
});
|
|
2532
2515
|
let selected = false;
|
|
2533
2516
|
if (fs.length > 0) {
|
|
@@ -2535,14 +2518,14 @@ class SkyListToolbarComponent {
|
|
|
2535
2518
|
}
|
|
2536
2519
|
return {
|
|
2537
2520
|
sort: sortLabels,
|
|
2538
|
-
selected: selected
|
|
2521
|
+
selected: selected,
|
|
2539
2522
|
};
|
|
2540
2523
|
});
|
|
2541
2524
|
return resultSortSelectors;
|
|
2542
2525
|
}).pipe(takeUntil(this.ngUnsubscribe));
|
|
2543
2526
|
}
|
|
2544
2527
|
watchTemplates() {
|
|
2545
|
-
combineLatest(this.state.pipe(map(s => s.toolbar), distinctUntilChanged()), this.view.pipe(distinctUntilChanged()), (toolbar, view) => {
|
|
2528
|
+
combineLatest(this.state.pipe(map((s) => s.toolbar), distinctUntilChanged()), this.view.pipe(distinctUntilChanged()), (toolbar, view) => {
|
|
2546
2529
|
const items = toolbar.items.filter((i) => {
|
|
2547
2530
|
return this.itemIsInView(i.view, view);
|
|
2548
2531
|
});
|
|
@@ -2552,7 +2535,8 @@ class SkyListToolbarComponent {
|
|
|
2552
2535
|
templates[item.location].push(item);
|
|
2553
2536
|
});
|
|
2554
2537
|
return templates;
|
|
2555
|
-
})
|
|
2538
|
+
})
|
|
2539
|
+
.pipe(takeUntil(this.ngUnsubscribe))
|
|
2556
2540
|
.subscribe((value) => {
|
|
2557
2541
|
this.leftTemplates = value.left;
|
|
2558
2542
|
this.centerTemplates = value.center;
|
|
@@ -2561,13 +2545,13 @@ class SkyListToolbarComponent {
|
|
|
2561
2545
|
});
|
|
2562
2546
|
}
|
|
2563
2547
|
}
|
|
2564
|
-
SkyListToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2565
|
-
SkyListToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2548
|
+
SkyListToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: ListState }, { token: ListStateDispatcher }, { token: ListToolbarState }, { token: ListToolbarStateDispatcher }], target: i0.ɵɵFactoryTarget.Component });
|
|
2549
|
+
SkyListToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListToolbarComponent, selector: "sky-list-toolbar", inputs: { inMemorySearchEnabled: "inMemorySearchEnabled", placeholder: "placeholder", searchEnabled: "searchEnabled", sortSelectorEnabled: "sortSelectorEnabled", toolbarType: "toolbarType", searchText: "searchText" }, providers: [
|
|
2566
2550
|
ListToolbarState,
|
|
2567
2551
|
ListToolbarStateDispatcher,
|
|
2568
|
-
ListToolbarStateModel
|
|
2569
|
-
], queries: [{ propertyName: "toolbarItems", predicate: SkyListToolbarItemComponent }, { propertyName: "toolbarSorts", predicate: SkyListToolbarSortComponent }, { propertyName: "filterSummary", predicate: SkyListFilterSummaryComponent }, { propertyName: "inlineFilter", predicate: SkyListFilterInlineComponent }, { propertyName: "viewActions", predicate: SkyListToolbarViewActionsComponent }], viewQueries: [{ propertyName: "searchComponent", first: true, predicate: SkySearchComponent, descendants: true, read: SkySearchComponent }, { propertyName: "searchTemplate", first: true, predicate: ["search"], descendants: true, read: TemplateRef, static: true }, { propertyName: "sortSelectorTemplate", first: true, predicate: ["sortSelector"], descendants: true, read: TemplateRef, static: true }, { propertyName: "inlineFilterButtonTemplate", first: true, predicate: ["inlineFilterButton"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<div class=\"sky-list-toolbar-container\">\n <sky-toolbar *ngIf=\"(type | async) !== 'search'\">\n
|
|
2570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2552
|
+
ListToolbarStateModel,
|
|
2553
|
+
], queries: [{ propertyName: "toolbarItems", predicate: SkyListToolbarItemComponent }, { propertyName: "toolbarSorts", predicate: SkyListToolbarSortComponent }, { propertyName: "filterSummary", predicate: SkyListFilterSummaryComponent }, { propertyName: "inlineFilter", predicate: SkyListFilterInlineComponent }, { propertyName: "viewActions", predicate: SkyListToolbarViewActionsComponent }], viewQueries: [{ propertyName: "searchComponent", first: true, predicate: SkySearchComponent, descendants: true, read: SkySearchComponent }, { propertyName: "searchTemplate", first: true, predicate: ["search"], descendants: true, read: TemplateRef, static: true }, { propertyName: "sortSelectorTemplate", first: true, predicate: ["sortSelector"], descendants: true, read: TemplateRef, static: true }, { propertyName: "inlineFilterButtonTemplate", first: true, predicate: ["inlineFilterButton"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<div class=\"sky-list-toolbar-container\">\n <sky-toolbar *ngIf=\"(type | async) !== 'search'\">\n <sky-toolbar-section>\n <sky-toolbar-item *ngFor=\"let item of leftTemplates\">\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item *ngFor=\"let item of centerTemplates\">\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item\n *ngFor=\"let item of rightTemplates\"\n [attr.sky-toolbar-id]=\"item.id\"\n >\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n\n <ng-content></ng-content>\n\n <sky-toolbar-view-actions *ngIf=\"hasViewActions\">\n <ng-content select=\"sky-list-toolbar-view-actions\"> </ng-content>\n </sky-toolbar-view-actions>\n </sky-toolbar-section>\n\n <sky-toolbar-section\n *ngIf=\"showFilterSummary && (hasAppliedFilters | async)\"\n >\n <ng-content select=\"sky-list-filter-summary\"> </ng-content>\n </sky-toolbar-section>\n </sky-toolbar>\n\n <div\n *ngIf=\"\n (type | async) === 'search' &&\n ((isSearchEnabled | async) || hasAdditionalToolbarSection)\n \"\n class=\"sky-list-toolbar-search\"\n >\n <sky-toolbar>\n <sky-toolbar-section *ngIf=\"isSearchEnabled | async\">\n <sky-toolbar-item>\n <sky-list-toolbar-item-renderer\n sky-cmp-id=\"search\"\n [template]=\"search\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n </sky-toolbar-section>\n <sky-toolbar-section [hidden]=\"!hasAdditionalToolbarSection\">\n <sky-toolbar-item *ngFor=\"let item of leftTemplates\">\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item *ngFor=\"let item of centerTemplates\">\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item\n *ngFor=\"let item of rightTemplates\"\n [attr.sky-toolbar-id]=\"item.id\"\n >\n <sky-list-toolbar-item-renderer\n *ngIf=\"item.id !== 'search'\"\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <ng-content></ng-content>\n\n <sky-toolbar-view-actions *ngIf=\"hasViewActions\">\n <ng-content select=\"sky-list-toolbar-view-actions\"> </ng-content>\n </sky-toolbar-view-actions>\n </sky-toolbar-section>\n </sky-toolbar>\n </div>\n <div\n *ngIf=\"isFilterBarDisplayed\"\n [attr.aria-labelledby]=\"filterButtonId\"\n [id]=\"listFilterInlineId\"\n >\n <ng-content select=\"sky-list-filter-inline\"> </ng-content>\n </div>\n <sky-list-multiselect-toolbar *ngIf=\"isMultiselectEnabled | async\">\n </sky-list-multiselect-toolbar>\n</div>\n\n<ng-template #search>\n <div *ngIf=\"isSearchEnabled | async\" class=\"sky-list-toolbar-search-wrapper\">\n <sky-search\n [disabled]=\"isToolbarDisabled\"\n [expandMode]=\"(type | async) === 'search' ? 'fit' : 'responsive'\"\n [placeholderText]=\"placeholder\"\n [searchText]=\"searchTextInput | async\"\n (searchApply)=\"updateSearchText($event)\"\n >\n </sky-search>\n <ng-content select=\"sky-list-toolbar-search-actions\"></ng-content>\n </div>\n</ng-template>\n\n<ng-template #sortSelector>\n <div\n *ngIf=\"\n (isSortSelectorEnabled | async) && (sortSelectors | async).length > 0\n \"\n class=\"sky-toolbar-item-sort-container\"\n >\n <sky-sort [showButtonText]=\"true\">\n <sky-sort-item\n *ngFor=\"let item of sortSelectors | async\"\n [active]=\"item.selected\"\n (itemSelect)=\"setSort(item.sort)\"\n >\n {{ item.sort.text }}\n </sky-sort-item>\n </sky-sort>\n </div>\n</ng-template>\n\n<ng-template #inlineFilterButton>\n <sky-filter-button\n [active]=\"hasAppliedFilters | async\"\n [ariaControls]=\"filterButtonAriaControls\"\n [ariaExpanded]=\"inlineFilterBarExpanded\"\n [disabled]=\"isToolbarDisabled\"\n [filterButtonId]=\"filterButtonId\"\n [showButtonText]=\"true\"\n (filterButtonClick)=\"inlineFilterButtonClick()\"\n >\n </sky-filter-button>\n</ng-template>\n", styles: [".sky-list-toolbar-search-wrapper{display:flex}.sky-list-toolbar-search-wrapper ::ng-deep .sky-search-dismiss-absolute{padding:0;position:static}.sky-list-toolbar-search-wrapper ::ng-deep .sky-search-container{position:relative;height:100%}.sky-list-toolbar-search-wrapper ::ng-deep sky-search{flex:1 1 auto}.sky-list-toolbar-search-wrapper ::ng-deep sky-list-toolbar-search-actions{flex:0 0 auto;z-index:1}.sky-list-toolbar-container ::ng-deep .sky-toolbar-section-items sky-toolbar-item{flex:0 1 auto;align-self:flex-start}.sky-list-toolbar-search ::ng-deep .sky-toolbar-section{padding-top:0}.sky-list-toolbar-search ::ng-deep .sky-toolbar-section-items{display:block;width:100%}.sky-list-toolbar-search ::ng-deep .sky-toolbar-item{margin:0}.sky-list-toolbar-search ::ng-deep .sky-toolbar-container,.sky-list-toolbar-search ::ng-deep .sky-search-dismiss-absolute{background-color:#eeeeef}.sky-list-toolbar-search ::ng-deep input[type=text]:disabled,.sky-list-toolbar-search ::ng-deep .sky-search-btn:disabled{background-color:#cdcfd2;opacity:1}.sky-list-toolbar-container ::ng-deep sky-toolbar-item[sky-toolbar-id=sort-selector] .sky-toolbar-item{margin-right:0}.sky-list-toolbar-container ::ng-deep sky-checkbox{position:relative;top:-2px}\n"], components: [{ type: i3$2.λ37, selector: "sky-toolbar" }, { type: i3$2.λ38, selector: "sky-toolbar-section" }, { type: i3$2.λ39, selector: "sky-toolbar-item" }, { type: SkyListToolbarItemRendererComponent, selector: "sky-list-toolbar-item-renderer", inputs: ["template"] }, { type: i3$2.λ40, selector: "sky-toolbar-view-actions" }, { type: SkyListMultiselectToolbarComponent, selector: "sky-list-multiselect-toolbar", inputs: ["showOnlySelected"] }, { type: i8.SkySearchComponent, selector: "sky-search", inputs: ["searchText", "expandMode", "debounceTime", "disabled", "placeholderText"], outputs: ["searchApply", "searchChange", "searchClear"] }, { type: i3.λ14, selector: "sky-sort", inputs: ["showButtonText"] }, { type: i3.λ13, selector: "sky-sort-item", inputs: ["active"], outputs: ["itemSelect"] }, { type: i3.λ1, selector: "sky-filter-button", inputs: ["filterButtonId", "ariaControls", "ariaExpanded", "active", "disabled", "showButtonText"], outputs: ["filterButtonClick"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarComponent, decorators: [{
|
|
2571
2555
|
type: Component,
|
|
2572
2556
|
args: [{
|
|
2573
2557
|
selector: 'sky-list-toolbar',
|
|
@@ -2576,9 +2560,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
2576
2560
|
providers: [
|
|
2577
2561
|
ListToolbarState,
|
|
2578
2562
|
ListToolbarStateDispatcher,
|
|
2579
|
-
ListToolbarStateModel
|
|
2563
|
+
ListToolbarStateModel,
|
|
2580
2564
|
],
|
|
2581
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2565
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2582
2566
|
}]
|
|
2583
2567
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: ListState }, { type: ListStateDispatcher }, { type: ListToolbarState }, { type: ListToolbarStateDispatcher }]; }, propDecorators: { inMemorySearchEnabled: [{
|
|
2584
2568
|
type: Input
|
|
@@ -2590,7 +2574,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
2590
2574
|
type: ViewChild,
|
|
2591
2575
|
args: [SkySearchComponent, {
|
|
2592
2576
|
read: SkySearchComponent,
|
|
2593
|
-
static: false
|
|
2577
|
+
static: false,
|
|
2594
2578
|
}]
|
|
2595
2579
|
}], sortSelectorEnabled: [{
|
|
2596
2580
|
type: Input
|
|
@@ -2617,19 +2601,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
2617
2601
|
type: ViewChild,
|
|
2618
2602
|
args: ['search', {
|
|
2619
2603
|
read: TemplateRef,
|
|
2620
|
-
static: true
|
|
2604
|
+
static: true,
|
|
2621
2605
|
}]
|
|
2622
2606
|
}], sortSelectorTemplate: [{
|
|
2623
2607
|
type: ViewChild,
|
|
2624
2608
|
args: ['sortSelector', {
|
|
2625
2609
|
read: TemplateRef,
|
|
2626
|
-
static: true
|
|
2610
|
+
static: true,
|
|
2627
2611
|
}]
|
|
2628
2612
|
}], inlineFilterButtonTemplate: [{
|
|
2629
2613
|
type: ViewChild,
|
|
2630
2614
|
args: ['inlineFilterButton', {
|
|
2631
2615
|
read: TemplateRef,
|
|
2632
|
-
static: true
|
|
2616
|
+
static: true,
|
|
2633
2617
|
}]
|
|
2634
2618
|
}] } });
|
|
2635
2619
|
|
|
@@ -2638,22 +2622,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
2638
2622
|
*/
|
|
2639
2623
|
class SkyListToolbarSearchActionsComponent {
|
|
2640
2624
|
}
|
|
2641
|
-
SkyListToolbarSearchActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2642
|
-
SkyListToolbarSearchActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2643
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2625
|
+
SkyListToolbarSearchActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarSearchActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2626
|
+
SkyListToolbarSearchActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListToolbarSearchActionsComponent, selector: "sky-list-toolbar-search-actions", ngImport: i0, template: "<div class=\"sky-list-toolbar-search-actions\">\n <ng-content></ng-content>\n</div>\n", styles: [".sky-list-toolbar-search-actions{margin-left:10px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarSearchActionsComponent, decorators: [{
|
|
2644
2628
|
type: Component,
|
|
2645
2629
|
args: [{
|
|
2646
2630
|
selector: 'sky-list-toolbar-search-actions',
|
|
2647
2631
|
templateUrl: './list-toolbar-search-actions.component.html',
|
|
2648
2632
|
styleUrls: ['./list-toolbar-search-actions.component.scss'],
|
|
2649
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2633
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2650
2634
|
}]
|
|
2651
2635
|
}] });
|
|
2652
2636
|
|
|
2653
2637
|
class SkyListToolbarModule {
|
|
2654
2638
|
}
|
|
2655
|
-
SkyListToolbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2656
|
-
SkyListToolbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2639
|
+
SkyListToolbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2640
|
+
SkyListToolbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarModule, declarations: [SkyListToolbarComponent,
|
|
2657
2641
|
SkyListToolbarItemComponent,
|
|
2658
2642
|
SkyListToolbarItemRendererComponent,
|
|
2659
2643
|
SkyListMultiselectToolbarComponent,
|
|
@@ -2673,7 +2657,7 @@ SkyListToolbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
|
|
|
2673
2657
|
SkyListToolbarSearchActionsComponent,
|
|
2674
2658
|
SkyListToolbarSortComponent,
|
|
2675
2659
|
SkyListToolbarViewActionsComponent] });
|
|
2676
|
-
SkyListToolbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
2660
|
+
SkyListToolbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarModule, imports: [[
|
|
2677
2661
|
CommonModule,
|
|
2678
2662
|
SkyCheckboxModule,
|
|
2679
2663
|
SkyI18nModule,
|
|
@@ -2683,9 +2667,9 @@ SkyListToolbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2683
2667
|
SkyFilterModule,
|
|
2684
2668
|
SkyListFiltersModule,
|
|
2685
2669
|
SkyIconModule,
|
|
2686
|
-
SkyListBuilderResourcesModule
|
|
2670
|
+
SkyListBuilderResourcesModule,
|
|
2687
2671
|
]] });
|
|
2688
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2672
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyListToolbarModule, decorators: [{
|
|
2689
2673
|
type: NgModule,
|
|
2690
2674
|
args: [{
|
|
2691
2675
|
declarations: [
|
|
@@ -2695,7 +2679,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
2695
2679
|
SkyListMultiselectToolbarComponent,
|
|
2696
2680
|
SkyListToolbarSearchActionsComponent,
|
|
2697
2681
|
SkyListToolbarSortComponent,
|
|
2698
|
-
SkyListToolbarViewActionsComponent
|
|
2682
|
+
SkyListToolbarViewActionsComponent,
|
|
2699
2683
|
],
|
|
2700
2684
|
imports: [
|
|
2701
2685
|
CommonModule,
|
|
@@ -2707,15 +2691,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
|
|
|
2707
2691
|
SkyFilterModule,
|
|
2708
2692
|
SkyListFiltersModule,
|
|
2709
2693
|
SkyIconModule,
|
|
2710
|
-
SkyListBuilderResourcesModule
|
|
2694
|
+
SkyListBuilderResourcesModule,
|
|
2711
2695
|
],
|
|
2712
2696
|
exports: [
|
|
2713
2697
|
SkyListToolbarComponent,
|
|
2714
2698
|
SkyListToolbarItemComponent,
|
|
2715
2699
|
SkyListToolbarSearchActionsComponent,
|
|
2716
2700
|
SkyListToolbarSortComponent,
|
|
2717
|
-
SkyListToolbarViewActionsComponent
|
|
2718
|
-
]
|
|
2701
|
+
SkyListToolbarViewActionsComponent,
|
|
2702
|
+
],
|
|
2719
2703
|
}]
|
|
2720
2704
|
}] });
|
|
2721
2705
|
|