@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs'), require('rxjs/operators'), require('@skyux/list-builder-common'), require('@skyux/lists'), require('@skyux/i18n'), require('@skyux/indicators'), require('@skyux/popovers'), require('@skyux/layout'), require('@skyux/lookup'), require('@skyux/forms')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@skyux/list-builder', ['exports', '@angular/core', '@angular/common', 'rxjs', 'rxjs/operators', '@skyux/list-builder-common', '@skyux/lists', '@skyux/i18n', '@skyux/indicators', '@skyux/popovers', '@skyux/layout', '@skyux/lookup', '@skyux/forms'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux[
|
|
5
|
-
}(this, (function (exports, i0, i4, rxjs, operators, listBuilderCommon, i3, i5, i3$1, i2, i3$2, i8, i5$1) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux["list-builder"] = {}), global.ng.core, global.ng.common, global.rxjs, global.rxjs.operators, global.listBuilderCommon, global.i3, global.i5, global.i3$1, global.i2, global.i3$2, global.i8, global.i5$1));
|
|
5
|
+
})(this, (function (exports, i0, i4, rxjs, operators, listBuilderCommon, i3, i5, i3$1, i2, i3$2, i8, i5$1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -13,14 +13,12 @@
|
|
|
13
13
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
14
|
Object.defineProperty(n, k, d.get ? d : {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
16
|
+
get: function () { return e[k]; }
|
|
19
17
|
});
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
|
-
n[
|
|
21
|
+
n["default"] = e;
|
|
24
22
|
return Object.freeze(n);
|
|
25
23
|
}
|
|
26
24
|
|
|
@@ -485,6 +483,7 @@
|
|
|
485
483
|
function ListSearchModel(data) {
|
|
486
484
|
/**
|
|
487
485
|
* Specifies the text to search.
|
|
486
|
+
* @default ""
|
|
488
487
|
*/
|
|
489
488
|
this.searchText = '';
|
|
490
489
|
/**
|
|
@@ -531,13 +530,13 @@
|
|
|
531
530
|
var pagedResult = result.slice(itemStart, itemStart + request.pageSize);
|
|
532
531
|
return new ListDataResponseModel({
|
|
533
532
|
count: result.length,
|
|
534
|
-
items: pagedResult
|
|
533
|
+
items: pagedResult,
|
|
535
534
|
});
|
|
536
535
|
}
|
|
537
536
|
else {
|
|
538
537
|
return new ListDataResponseModel({
|
|
539
538
|
count: result.length,
|
|
540
|
-
items: result
|
|
539
|
+
items: result,
|
|
541
540
|
});
|
|
542
541
|
}
|
|
543
542
|
}));
|
|
@@ -574,7 +573,9 @@
|
|
|
574
573
|
_this.lastFilters = filters;
|
|
575
574
|
var result = items;
|
|
576
575
|
// Apply filters.
|
|
577
|
-
if (!dataChanged &&
|
|
576
|
+
if (!dataChanged &&
|
|
577
|
+
!filtersChanged &&
|
|
578
|
+
_this.lastFilterResults !== undefined) {
|
|
578
579
|
result = _this.lastFilterResults;
|
|
579
580
|
}
|
|
580
581
|
else if (filters && filters.length > 0) {
|
|
@@ -600,10 +601,15 @@
|
|
|
600
601
|
}
|
|
601
602
|
// Apply search.
|
|
602
603
|
/* istanbul ignore next */
|
|
603
|
-
if (!dataChanged &&
|
|
604
|
+
if (!dataChanged &&
|
|
605
|
+
!searchChanged &&
|
|
606
|
+
_this.lastSearchResults !== undefined &&
|
|
607
|
+
!filtersChanged) {
|
|
604
608
|
result = _this.lastSearchResults;
|
|
605
609
|
}
|
|
606
|
-
else if (search &&
|
|
610
|
+
else if (search &&
|
|
611
|
+
search.searchText !== undefined &&
|
|
612
|
+
search.searchText.length > 0) {
|
|
607
613
|
var searchText_1 = search.searchText.toLowerCase();
|
|
608
614
|
var searchFunctions_1;
|
|
609
615
|
if (_this.searchFunction !== undefined) {
|
|
@@ -617,7 +623,8 @@
|
|
|
617
623
|
for (var i = 0; i < searchFunctions_1.length; i++) {
|
|
618
624
|
var searchFunction = searchFunctions_1[i];
|
|
619
625
|
var searchResult = searchFunction(item.data, searchText_1);
|
|
620
|
-
if ((typeof searchResult === 'string' &&
|
|
626
|
+
if ((typeof searchResult === 'string' &&
|
|
627
|
+
searchResult.indexOf(searchText_1) !== -1) ||
|
|
621
628
|
searchResult === true) {
|
|
622
629
|
isMatch = true;
|
|
623
630
|
break;
|
|
@@ -632,7 +639,9 @@
|
|
|
632
639
|
}
|
|
633
640
|
// Apply sort.
|
|
634
641
|
if (sort && sort.fieldSelectors.length > 0) {
|
|
635
|
-
result = result
|
|
642
|
+
result = result
|
|
643
|
+
.slice()
|
|
644
|
+
.sort(function (item1, item2) {
|
|
636
645
|
var compareResult = 0;
|
|
637
646
|
for (var i = 0; i < sort.fieldSelectors.length; i++) {
|
|
638
647
|
var selector = sort.fieldSelectors[i];
|
|
@@ -948,9 +957,9 @@
|
|
|
948
957
|
};
|
|
949
958
|
return ListStateDispatcher;
|
|
950
959
|
}(listBuilderCommon.StateDispatcher));
|
|
951
|
-
ListStateDispatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
952
|
-
ListStateDispatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
953
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
960
|
+
ListStateDispatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListStateDispatcher, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
961
|
+
ListStateDispatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListStateDispatcher });
|
|
962
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListStateDispatcher, decorators: [{
|
|
954
963
|
type: i0.Injectable
|
|
955
964
|
}] });
|
|
956
965
|
|
|
@@ -962,8 +971,7 @@
|
|
|
962
971
|
/* istanbul ignore next */
|
|
963
972
|
function ListFiltersOrchestrator() {
|
|
964
973
|
var _this = _super.call(this) || this;
|
|
965
|
-
_this
|
|
966
|
-
.register(ListFiltersUpdateAction, _this.update);
|
|
974
|
+
_this.register(ListFiltersUpdateAction, _this.update);
|
|
967
975
|
return _this;
|
|
968
976
|
}
|
|
969
977
|
ListFiltersOrchestrator.prototype.update = function (state, action) {
|
|
@@ -996,8 +1004,7 @@
|
|
|
996
1004
|
/* istanbul ignore next */
|
|
997
1005
|
function ListItemsOrchestrator() {
|
|
998
1006
|
var _this = _super.call(this) || this;
|
|
999
|
-
_this
|
|
1000
|
-
.register(ListItemsSetLoadingAction, _this.setLoading)
|
|
1007
|
+
_this.register(ListItemsSetLoadingAction, _this.setLoading)
|
|
1001
1008
|
.register(ListItemsLoadAction, _this.load)
|
|
1002
1009
|
.register(ListItemsSetSelectedAction, _this.setItemsSelected);
|
|
1003
1010
|
return _this;
|
|
@@ -1007,7 +1014,8 @@
|
|
|
1007
1014
|
};
|
|
1008
1015
|
ListItemsOrchestrator.prototype.load = function (state, action) {
|
|
1009
1016
|
var newListItems = action.items.map(function (g) { return new listBuilderCommon.ListItemModel(g.id, g.data, g.isSelected); });
|
|
1010
|
-
var resultItems =
|
|
1017
|
+
var resultItems = action.refresh
|
|
1018
|
+
? __spreadArray([], __read(newListItems)) : __spreadArray(__spreadArray([], __read(state.items)), __read(newListItems));
|
|
1011
1019
|
var count = action.count === undefined ? resultItems.length : action.count;
|
|
1012
1020
|
return new listBuilderCommon.AsyncList(resultItems, action.dataChanged ? Date.now() : state.lastUpdate, false, count);
|
|
1013
1021
|
};
|
|
@@ -1016,7 +1024,7 @@
|
|
|
1016
1024
|
var newSelectedIds = action.items || [];
|
|
1017
1025
|
var newListItemModels = this.cloneListItemModelArray(state.items);
|
|
1018
1026
|
if (action.refresh) {
|
|
1019
|
-
newListItemModels.forEach(function (item) { return item.isSelected = undefined; });
|
|
1027
|
+
newListItemModels.forEach(function (item) { return (item.isSelected = undefined); });
|
|
1020
1028
|
}
|
|
1021
1029
|
newSelectedIds.map(function (s) {
|
|
1022
1030
|
var newItem = newListItemModels.find(function (i) { return i.id === s; });
|
|
@@ -1075,8 +1083,7 @@
|
|
|
1075
1083
|
/* istanbul ignore next */
|
|
1076
1084
|
function ListPagingOrchestrator() {
|
|
1077
1085
|
var _this = _super.call(this) || this;
|
|
1078
|
-
_this
|
|
1079
|
-
.register(ListPagingSetMaxPagesAction, _this.setMaxPages)
|
|
1086
|
+
_this.register(ListPagingSetMaxPagesAction, _this.setMaxPages)
|
|
1080
1087
|
.register(ListPagingSetItemsPerPageAction, _this.setItemsPerPage)
|
|
1081
1088
|
.register(ListPagingSetPageNumberAction, _this.setPageNumber);
|
|
1082
1089
|
return _this;
|
|
@@ -1111,9 +1118,7 @@
|
|
|
1111
1118
|
/* istanbul ignore next */
|
|
1112
1119
|
function ListViewsOrchestrator() {
|
|
1113
1120
|
var _this = _super.call(this) || this;
|
|
1114
|
-
_this
|
|
1115
|
-
.register(ListViewsSetActiveAction, _this.setActive)
|
|
1116
|
-
.register(ListViewsLoadAction, _this.load);
|
|
1121
|
+
_this.register(ListViewsSetActiveAction, _this.setActive).register(ListViewsLoadAction, _this.load);
|
|
1117
1122
|
return _this;
|
|
1118
1123
|
}
|
|
1119
1124
|
ListViewsOrchestrator.prototype.setActive = function (state, action) {
|
|
@@ -1160,8 +1165,7 @@
|
|
|
1160
1165
|
/* istanbul ignore next */
|
|
1161
1166
|
function ListToolbarOrchestrator() {
|
|
1162
1167
|
var _this = _super.call(this) || this;
|
|
1163
|
-
_this
|
|
1164
|
-
.register(ListToolbarSetExistsAction, _this.setExists)
|
|
1168
|
+
_this.register(ListToolbarSetExistsAction, _this.setExists)
|
|
1165
1169
|
.register(ListToolbarItemsDisableAction, _this.setDisabled)
|
|
1166
1170
|
.register(ListToolbarItemsLoadAction, _this.load)
|
|
1167
1171
|
.register(ListToolbarSetTypeAction, _this.setType)
|
|
@@ -1235,15 +1239,16 @@
|
|
|
1235
1239
|
/* istanbul ignore next */
|
|
1236
1240
|
function ListSearchOrchestrator() {
|
|
1237
1241
|
var _this = _super.call(this) || this;
|
|
1238
|
-
_this
|
|
1239
|
-
.register(ListSearchSetSearchTextAction, _this.setSearchText)
|
|
1242
|
+
_this.register(ListSearchSetSearchTextAction, _this.setSearchText)
|
|
1240
1243
|
.register(ListSearchSetFunctionsAction, _this.setFunctions)
|
|
1241
1244
|
.register(ListSearchSetFieldSelectorsAction, _this.setFieldSelectors)
|
|
1242
1245
|
.register(ListSearchSetOptionsAction, _this.setOptions);
|
|
1243
1246
|
return _this;
|
|
1244
1247
|
}
|
|
1245
1248
|
ListSearchOrchestrator.prototype.setSearchText = function (state, action) {
|
|
1246
|
-
return new ListSearchModel(Object.assign({}, state, {
|
|
1249
|
+
return new ListSearchModel(Object.assign({}, state, {
|
|
1250
|
+
searchText: action.searchText ? action.searchText : '',
|
|
1251
|
+
}));
|
|
1247
1252
|
};
|
|
1248
1253
|
ListSearchOrchestrator.prototype.setFunctions = function (state, action) {
|
|
1249
1254
|
return new ListSearchModel(Object.assign({}, state, { functions: __spreadArray([], __read(action.functions)) }));
|
|
@@ -1289,8 +1294,7 @@
|
|
|
1289
1294
|
/* istanbul ignore next */
|
|
1290
1295
|
function ListSelectedOrchestrator() {
|
|
1291
1296
|
var _this = _super.call(this) || this;
|
|
1292
|
-
_this
|
|
1293
|
-
.register(ListSelectedSetLoadingAction, _this.setLoading)
|
|
1297
|
+
_this.register(ListSelectedSetLoadingAction, _this.setLoading)
|
|
1294
1298
|
.register(ListSelectedSetItemSelectedAction, _this.setItemSelected)
|
|
1295
1299
|
.register(ListSelectedSetItemsSelectedAction, _this.setItemsSelected)
|
|
1296
1300
|
.register(ListSelectedLoadAction, _this.load);
|
|
@@ -1311,11 +1315,11 @@
|
|
|
1311
1315
|
};
|
|
1312
1316
|
ListSelectedOrchestrator.prototype.setItemsSelected = function (state, action) {
|
|
1313
1317
|
var newSelectedIds = action.items || [];
|
|
1314
|
-
var newListSelectedModel = action.refresh
|
|
1318
|
+
var newListSelectedModel = action.refresh
|
|
1319
|
+
? new ListSelectedModel()
|
|
1320
|
+
: this.cloneListSelectedModel(state.item);
|
|
1315
1321
|
if (newSelectedIds instanceof rxjs.Observable) {
|
|
1316
|
-
newSelectedIds
|
|
1317
|
-
.pipe(operators.take(1))
|
|
1318
|
-
.subscribe(function (selectedIds) {
|
|
1322
|
+
newSelectedIds.pipe(operators.take(1)).subscribe(function (selectedIds) {
|
|
1319
1323
|
selectedIds.map(function (s) { return newListSelectedModel.selectedIdMap.set(s, action.selected); });
|
|
1320
1324
|
});
|
|
1321
1325
|
}
|
|
@@ -1366,8 +1370,7 @@
|
|
|
1366
1370
|
/* istanbul ignore next */
|
|
1367
1371
|
function ListSortOrchestrator() {
|
|
1368
1372
|
var _this = _super.call(this) || this;
|
|
1369
|
-
_this
|
|
1370
|
-
.register(ListSortSetFieldSelectorsAction, _this.setFieldSelectors)
|
|
1373
|
+
_this.register(ListSortSetFieldSelectorsAction, _this.setFieldSelectors)
|
|
1371
1374
|
.register(ListSortSetAvailableAction, _this.setAvailable)
|
|
1372
1375
|
.register(ListSortSetGlobalAction, _this.setGlobal);
|
|
1373
1376
|
return _this;
|
|
@@ -1393,8 +1396,7 @@
|
|
|
1393
1396
|
__extends(ListState, _super);
|
|
1394
1397
|
function ListState(dispatcher) {
|
|
1395
1398
|
var _this = _super.call(this, new ListStateModel(), dispatcher) || this;
|
|
1396
|
-
_this
|
|
1397
|
-
.register('filters', ListFiltersOrchestrator)
|
|
1399
|
+
_this.register('filters', ListFiltersOrchestrator)
|
|
1398
1400
|
.register('items', ListItemsOrchestrator)
|
|
1399
1401
|
.register('paging', ListPagingOrchestrator)
|
|
1400
1402
|
.register('search', ListSearchOrchestrator)
|
|
@@ -1407,9 +1409,9 @@
|
|
|
1407
1409
|
}
|
|
1408
1410
|
return ListState;
|
|
1409
1411
|
}(listBuilderCommon.StateNode));
|
|
1410
|
-
ListState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1411
|
-
ListState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1412
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1412
|
+
ListState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListState, deps: [{ token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1413
|
+
ListState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListState });
|
|
1414
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListState, decorators: [{
|
|
1413
1415
|
type: i0.Injectable
|
|
1414
1416
|
}], ctorParameters: function () { return [{ type: ListStateDispatcher }]; } });
|
|
1415
1417
|
|
|
@@ -1426,7 +1428,9 @@
|
|
|
1426
1428
|
/* istanbul ignore next */
|
|
1427
1429
|
this.hasToolbar = this.state.pipe(operators.map(function (s) { return s.toolbar.exists; }));
|
|
1428
1430
|
this.active = this.state.pipe(operators.map(function (s) { return s.views.active === _this.viewId; }));
|
|
1429
|
-
this.active
|
|
1431
|
+
this.active
|
|
1432
|
+
.pipe(operators.distinctUntilChanged())
|
|
1433
|
+
.subscribe(function (isActive) { return isActive ? _this.onViewActive() : _this.onViewInactive(); });
|
|
1430
1434
|
}
|
|
1431
1435
|
Object.defineProperty(ListViewComponent.prototype, "id", {
|
|
1432
1436
|
get: function () {
|
|
@@ -1443,10 +1447,8 @@
|
|
|
1443
1447
|
configurable: true
|
|
1444
1448
|
});
|
|
1445
1449
|
/* istanbul ignore next */
|
|
1446
|
-
ListViewComponent.prototype.onViewActive = function () {
|
|
1447
|
-
};
|
|
1448
|
-
ListViewComponent.prototype.onViewInactive = function () {
|
|
1449
|
-
};
|
|
1450
|
+
ListViewComponent.prototype.onViewActive = function () { };
|
|
1451
|
+
ListViewComponent.prototype.onViewInactive = function () { };
|
|
1450
1452
|
return ListViewComponent;
|
|
1451
1453
|
}());
|
|
1452
1454
|
|
|
@@ -1491,7 +1493,6 @@
|
|
|
1491
1493
|
* Emits the filters applied to the list.
|
|
1492
1494
|
*/
|
|
1493
1495
|
this.appliedFiltersChange = new i0.EventEmitter();
|
|
1494
|
-
/* tslint:enable */
|
|
1495
1496
|
this.dataFirstLoad = false;
|
|
1496
1497
|
this.lastSelectedIds = [];
|
|
1497
1498
|
this.lastFilters = [];
|
|
@@ -1503,7 +1504,9 @@
|
|
|
1503
1504
|
this.dataFirstLoad = true;
|
|
1504
1505
|
}
|
|
1505
1506
|
if (this.listViews.length > 0) {
|
|
1506
|
-
var defaultView =
|
|
1507
|
+
var defaultView = this.defaultView === undefined
|
|
1508
|
+
? this.listViews.first
|
|
1509
|
+
: this.defaultView;
|
|
1507
1510
|
this.dispatcher.next(new ListViewsLoadAction(this.listViews.map(function (v) { return new ListViewModel(v.id, v.label); })));
|
|
1508
1511
|
// activate the default view
|
|
1509
1512
|
this.dispatcher.next(new ListViewsSetActiveAction(defaultView.id));
|
|
@@ -1563,9 +1566,11 @@
|
|
|
1563
1566
|
SkyListComponent.prototype.ngOnChanges = function (changes) {
|
|
1564
1567
|
var _this = this;
|
|
1565
1568
|
if (changes['appliedFilters'] &&
|
|
1566
|
-
changes['appliedFilters'].currentValue !==
|
|
1569
|
+
changes['appliedFilters'].currentValue !==
|
|
1570
|
+
changes['appliedFilters'].previousValue) {
|
|
1567
1571
|
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
1568
|
-
if (currentState.paging.pageNumber &&
|
|
1572
|
+
if (currentState.paging.pageNumber &&
|
|
1573
|
+
currentState.paging.pageNumber !== 1) {
|
|
1569
1574
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
1570
1575
|
}
|
|
1571
1576
|
_this.dispatcher.filtersUpdate(_this.appliedFilters);
|
|
@@ -1623,7 +1628,7 @@
|
|
|
1623
1628
|
selectedChanged = true;
|
|
1624
1629
|
return selected;
|
|
1625
1630
|
})),
|
|
1626
|
-
data.pipe(operators.distinctUntilChanged())
|
|
1631
|
+
data.pipe(operators.distinctUntilChanged()),
|
|
1627
1632
|
], function (filters, search, sortFieldSelectors, itemsPerPage, pageNumber, isToolbarDisabled, selected, itemsData) {
|
|
1628
1633
|
cancelLastRequest.next();
|
|
1629
1634
|
cancelLastRequest.complete();
|
|
@@ -1639,29 +1644,30 @@
|
|
|
1639
1644
|
var initialItems = itemsData.map(function (d) { return new listBuilderCommon.ListItemModel(d.id || "sky-list-item-model-" + ++idIndex$1, d); });
|
|
1640
1645
|
response = rxjs.of(new ListDataResponseModel({
|
|
1641
1646
|
count: _this.initialTotal,
|
|
1642
|
-
items: initialItems
|
|
1647
|
+
items: initialItems,
|
|
1643
1648
|
})).pipe(operators.takeUntil(cancelLastRequest));
|
|
1644
1649
|
}
|
|
1645
1650
|
else {
|
|
1646
|
-
response = _this.dataProvider
|
|
1651
|
+
response = _this.dataProvider
|
|
1652
|
+
.get(new ListDataRequestModel({
|
|
1647
1653
|
filters: filters,
|
|
1648
1654
|
pageSize: itemsPerPage,
|
|
1649
1655
|
pageNumber: pageNumber,
|
|
1650
1656
|
search: search,
|
|
1651
1657
|
sort: new ListSortModel({ fieldSelectors: sortFieldSelectors }),
|
|
1652
|
-
isToolbarDisabled: isToolbarDisabled
|
|
1653
|
-
}))
|
|
1658
|
+
isToolbarDisabled: isToolbarDisabled,
|
|
1659
|
+
}))
|
|
1660
|
+
.pipe(operators.takeUntil(cancelLastRequest));
|
|
1654
1661
|
}
|
|
1655
1662
|
return response;
|
|
1656
|
-
})
|
|
1657
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe),
|
|
1663
|
+
}).pipe(operators.takeUntil(this.ngUnsubscribe),
|
|
1658
1664
|
// Retain user selections from previous state.
|
|
1659
1665
|
// This is only necessary for grids component (based on item.isSelected).
|
|
1660
1666
|
operators.map(function (response) {
|
|
1661
1667
|
return response.pipe(operators.map(function (listDataResponseModel) {
|
|
1662
1668
|
return new ListDataResponseModel({
|
|
1663
1669
|
count: listDataResponseModel.count,
|
|
1664
|
-
items: _this.getItemsAndRetainSelections(listDataResponseModel.items, _this.lastSelectedIds)
|
|
1670
|
+
items: _this.getItemsAndRetainSelections(listDataResponseModel.items, _this.lastSelectedIds),
|
|
1665
1671
|
});
|
|
1666
1672
|
}));
|
|
1667
1673
|
}), operators.flatMap(function (value) { return value; }));
|
|
@@ -1680,8 +1686,7 @@
|
|
|
1680
1686
|
});
|
|
1681
1687
|
Object.defineProperty(SkyListComponent.prototype, "lastUpdate", {
|
|
1682
1688
|
get: function () {
|
|
1683
|
-
return this.state
|
|
1684
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.items.lastUpdate ? new Date(s.items.lastUpdate) : undefined; }));
|
|
1689
|
+
return this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.items.lastUpdate ? new Date(s.items.lastUpdate) : undefined; }));
|
|
1685
1690
|
},
|
|
1686
1691
|
enumerable: false,
|
|
1687
1692
|
configurable: true
|
|
@@ -1727,15 +1732,15 @@
|
|
|
1727
1732
|
};
|
|
1728
1733
|
return SkyListComponent;
|
|
1729
1734
|
}());
|
|
1730
|
-
SkyListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1731
|
-
SkyListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1732
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1735
|
+
SkyListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1736
|
+
SkyListComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1737
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListComponent, decorators: [{
|
|
1733
1738
|
type: i0.Component,
|
|
1734
1739
|
args: [{
|
|
1735
1740
|
selector: 'sky-list',
|
|
1736
1741
|
template: '<ng-content></ng-content>',
|
|
1737
1742
|
providers: [ListState, ListStateDispatcher],
|
|
1738
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1743
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1739
1744
|
}]
|
|
1740
1745
|
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { data: [{
|
|
1741
1746
|
type: i0.Input
|
|
@@ -1768,23 +1773,15 @@
|
|
|
1768
1773
|
}
|
|
1769
1774
|
return SkyListModule;
|
|
1770
1775
|
}());
|
|
1771
|
-
SkyListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1772
|
-
SkyListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1773
|
-
SkyListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
1774
|
-
|
|
1775
|
-
]] });
|
|
1776
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0__namespace, type: SkyListModule, decorators: [{
|
|
1776
|
+
SkyListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1777
|
+
SkyListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListModule, declarations: [SkyListComponent], imports: [i4.CommonModule], exports: [SkyListComponent] });
|
|
1778
|
+
SkyListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListModule, imports: [[i4.CommonModule]] });
|
|
1779
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListModule, decorators: [{
|
|
1777
1780
|
type: i0.NgModule,
|
|
1778
1781
|
args: [{
|
|
1779
|
-
declarations: [
|
|
1780
|
-
|
|
1781
|
-
],
|
|
1782
|
-
imports: [
|
|
1783
|
-
i4.CommonModule
|
|
1784
|
-
],
|
|
1785
|
-
exports: [
|
|
1786
|
-
SkyListComponent
|
|
1787
|
-
]
|
|
1782
|
+
declarations: [SkyListComponent],
|
|
1783
|
+
imports: [i4.CommonModule],
|
|
1784
|
+
exports: [SkyListComponent],
|
|
1788
1785
|
}]
|
|
1789
1786
|
}] });
|
|
1790
1787
|
|
|
@@ -1846,25 +1843,25 @@
|
|
|
1846
1843
|
new ListToolbarItemModel({
|
|
1847
1844
|
template: this.filterButtonTemplate,
|
|
1848
1845
|
location: 'left',
|
|
1849
|
-
index: this.filterButtonItemToolbarIndex
|
|
1850
|
-
})
|
|
1846
|
+
index: this.filterButtonItemToolbarIndex,
|
|
1847
|
+
}),
|
|
1851
1848
|
]);
|
|
1852
1849
|
};
|
|
1853
1850
|
return SkyListFilterButtonComponent;
|
|
1854
1851
|
}());
|
|
1855
|
-
SkyListFilterButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1856
|
-
SkyListFilterButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1857
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1852
|
+
SkyListFilterButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterButtonComponent, deps: [{ token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1853
|
+
SkyListFilterButtonComponent.ɵcmp = i0__namespace.ɵɵ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: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<ng-template #filterButton>\n <ng-content></ng-content>\n</ng-template>\n" });
|
|
1854
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterButtonComponent, decorators: [{
|
|
1858
1855
|
type: i0.Component,
|
|
1859
1856
|
args: [{
|
|
1860
1857
|
selector: 'sky-list-filter-button',
|
|
1861
|
-
|
|
1858
|
+
template: "<ng-template #filterButton>\n <ng-content></ng-content>\n</ng-template>\n",
|
|
1862
1859
|
}]
|
|
1863
1860
|
}], ctorParameters: function () { return [{ type: ListStateDispatcher }]; }, propDecorators: { filterButtonTemplate: [{
|
|
1864
1861
|
type: i0.ViewChild,
|
|
1865
1862
|
args: ['filterButton', {
|
|
1866
1863
|
read: i0.TemplateRef,
|
|
1867
|
-
static: true
|
|
1864
|
+
static: true,
|
|
1868
1865
|
}]
|
|
1869
1866
|
}] } });
|
|
1870
1867
|
|
|
@@ -1890,10 +1887,10 @@
|
|
|
1890
1887
|
setTimeout(function () {
|
|
1891
1888
|
_this.appliedFilters = _this.state.pipe(operators.map(function (state) {
|
|
1892
1889
|
return state.filters.filter(function (filter) {
|
|
1893
|
-
return filter.value !== '' &&
|
|
1890
|
+
return (filter.value !== '' &&
|
|
1894
1891
|
filter.value !== undefined &&
|
|
1895
1892
|
filter.value !== false &&
|
|
1896
|
-
filter.value !== filter.defaultValue;
|
|
1893
|
+
filter.value !== filter.defaultValue);
|
|
1897
1894
|
});
|
|
1898
1895
|
}));
|
|
1899
1896
|
});
|
|
@@ -1910,13 +1907,13 @@
|
|
|
1910
1907
|
};
|
|
1911
1908
|
return SkyListFilterSummaryComponent;
|
|
1912
1909
|
}());
|
|
1913
|
-
SkyListFilterSummaryComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1914
|
-
SkyListFilterSummaryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1915
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1910
|
+
SkyListFilterSummaryComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterSummaryComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1911
|
+
SkyListFilterSummaryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListFilterSummaryComponent, selector: "sky-list-filter-summary", outputs: { summaryItemClick: "summaryItemClick" }, ngImport: i0__namespace, 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__namespace.λ5, selector: "sky-filter-summary" }, { type: i3__namespace.λ4, selector: "sky-filter-summary-item", inputs: ["dismissible"], outputs: ["dismiss", "itemClick"] }], directives: [{ type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i4__namespace.AsyncPipe } });
|
|
1912
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterSummaryComponent, decorators: [{
|
|
1916
1913
|
type: i0.Component,
|
|
1917
1914
|
args: [{
|
|
1918
1915
|
selector: 'sky-list-filter-summary',
|
|
1919
|
-
|
|
1916
|
+
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",
|
|
1920
1917
|
}]
|
|
1921
1918
|
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { summaryItemClick: [{
|
|
1922
1919
|
type: i0.Output
|
|
@@ -1927,7 +1924,6 @@
|
|
|
1927
1924
|
*/
|
|
1928
1925
|
var SkyListFilterInlineItemComponent = /** @class */ (function () {
|
|
1929
1926
|
function SkyListFilterInlineItemComponent() {
|
|
1930
|
-
/* tslint:enable:no-input-rename */
|
|
1931
1927
|
this.onChange = new i0.EventEmitter();
|
|
1932
1928
|
}
|
|
1933
1929
|
SkyListFilterInlineItemComponent.prototype.ngOnInit = function () {
|
|
@@ -1937,20 +1933,22 @@
|
|
|
1937
1933
|
};
|
|
1938
1934
|
Object.defineProperty(SkyListFilterInlineItemComponent.prototype, "template", {
|
|
1939
1935
|
get: function () {
|
|
1940
|
-
return this.templates.length > 0
|
|
1936
|
+
return this.templates.length > 0
|
|
1937
|
+
? this.templates.first
|
|
1938
|
+
: this.templateInput;
|
|
1941
1939
|
},
|
|
1942
1940
|
enumerable: false,
|
|
1943
1941
|
configurable: true
|
|
1944
1942
|
});
|
|
1945
1943
|
return SkyListFilterInlineItemComponent;
|
|
1946
1944
|
}());
|
|
1947
|
-
SkyListFilterInlineItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1948
|
-
SkyListFilterInlineItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1949
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1945
|
+
SkyListFilterInlineItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterInlineItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1946
|
+
SkyListFilterInlineItemComponent.ɵcmp = i0__namespace.ɵɵ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: i0.TemplateRef }], ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true });
|
|
1947
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterInlineItemComponent, decorators: [{
|
|
1950
1948
|
type: i0.Component,
|
|
1951
1949
|
args: [{
|
|
1952
1950
|
selector: 'sky-list-filter-inline-item',
|
|
1953
|
-
template: '<ng-content></ng-content>'
|
|
1951
|
+
template: '<ng-content></ng-content>',
|
|
1954
1952
|
}]
|
|
1955
1953
|
}], propDecorators: { name: [{
|
|
1956
1954
|
type: i0.Input
|
|
@@ -1984,13 +1982,13 @@
|
|
|
1984
1982
|
};
|
|
1985
1983
|
return SkyListFilterInlineItemRendererComponent;
|
|
1986
1984
|
}());
|
|
1987
|
-
SkyListFilterInlineItemRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1988
|
-
SkyListFilterInlineItemRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1989
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1985
|
+
SkyListFilterInlineItemRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterInlineItemRendererComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1986
|
+
SkyListFilterInlineItemRendererComponent.ɵcmp = i0__namespace.ɵɵ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: i0.ViewContainerRef, static: true }], ngImport: i0__namespace, template: '<ng-template #container></ng-template>', isInline: true });
|
|
1987
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterInlineItemRendererComponent, decorators: [{
|
|
1990
1988
|
type: i0.Component,
|
|
1991
1989
|
args: [{
|
|
1992
1990
|
selector: 'sky-list-filter-inline-item-renderer',
|
|
1993
|
-
template: '<ng-template #container></ng-template>'
|
|
1991
|
+
template: '<ng-template #container></ng-template>',
|
|
1994
1992
|
}]
|
|
1995
1993
|
}], propDecorators: { template: [{
|
|
1996
1994
|
type: i0.Input
|
|
@@ -2000,7 +1998,7 @@
|
|
|
2000
1998
|
type: i0.ViewChild,
|
|
2001
1999
|
args: ['container', {
|
|
2002
2000
|
read: i0.ViewContainerRef,
|
|
2003
|
-
static: true
|
|
2001
|
+
static: true,
|
|
2004
2002
|
}]
|
|
2005
2003
|
}] } });
|
|
2006
2004
|
|
|
@@ -2022,7 +2020,7 @@
|
|
|
2022
2020
|
filterFunction: filter.filterFunction,
|
|
2023
2021
|
template: filter.template,
|
|
2024
2022
|
value: filter.value,
|
|
2025
|
-
defaultValue: filter.defaultValue
|
|
2023
|
+
defaultValue: filter.defaultValue,
|
|
2026
2024
|
});
|
|
2027
2025
|
});
|
|
2028
2026
|
this.inlineFilters.forEach(function (filter) {
|
|
@@ -2035,7 +2033,8 @@
|
|
|
2035
2033
|
SkyListFilterInlineComponent.prototype.applyFilters = function () {
|
|
2036
2034
|
var _this = this;
|
|
2037
2035
|
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
2038
|
-
if (currentState.paging.pageNumber &&
|
|
2036
|
+
if (currentState.paging.pageNumber &&
|
|
2037
|
+
currentState.paging.pageNumber !== 1) {
|
|
2039
2038
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
2040
2039
|
}
|
|
2041
2040
|
_this.dispatcher.filtersUpdate(_this.getFilterModelFromInline(_this.inlineFilters));
|
|
@@ -2047,19 +2046,19 @@
|
|
|
2047
2046
|
name: filter.name,
|
|
2048
2047
|
value: filter.value,
|
|
2049
2048
|
filterFunction: filter.filterFunction,
|
|
2050
|
-
defaultValue: filter.defaultValue
|
|
2049
|
+
defaultValue: filter.defaultValue,
|
|
2051
2050
|
});
|
|
2052
2051
|
});
|
|
2053
2052
|
};
|
|
2054
2053
|
return SkyListFilterInlineComponent;
|
|
2055
2054
|
}());
|
|
2056
|
-
SkyListFilterInlineComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2057
|
-
SkyListFilterInlineComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2058
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2055
|
+
SkyListFilterInlineComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterInlineComponent, deps: [{ token: ListStateDispatcher }, { token: ListState }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2056
|
+
SkyListFilterInlineComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListFilterInlineComponent, selector: "sky-list-filter-inline", queries: [{ propertyName: "filters", predicate: SkyListFilterInlineItemComponent }], ngImport: i0__namespace, 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__namespace.λ2, selector: "sky-filter-inline" }, { type: i3__namespace.λ3, selector: "sky-filter-inline-item" }, { type: SkyListFilterInlineItemRendererComponent, selector: "sky-list-filter-inline-item-renderer", inputs: ["template", "filter"] }], directives: [{ type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2057
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterInlineComponent, decorators: [{
|
|
2059
2058
|
type: i0.Component,
|
|
2060
2059
|
args: [{
|
|
2061
2060
|
selector: 'sky-list-filter-inline',
|
|
2062
|
-
|
|
2061
|
+
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",
|
|
2063
2062
|
}]
|
|
2064
2063
|
}], ctorParameters: function () { return [{ type: ListStateDispatcher }, { type: ListState }]; }, propDecorators: { filters: [{
|
|
2065
2064
|
type: i0.ContentChildren,
|
|
@@ -2071,21 +2070,17 @@
|
|
|
2071
2070
|
}
|
|
2072
2071
|
return SkyListFiltersModule;
|
|
2073
2072
|
}());
|
|
2074
|
-
SkyListFiltersModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2075
|
-
SkyListFiltersModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2073
|
+
SkyListFiltersModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFiltersModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2074
|
+
SkyListFiltersModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFiltersModule, declarations: [SkyListFilterButtonComponent,
|
|
2076
2075
|
SkyListFilterSummaryComponent,
|
|
2077
2076
|
SkyListFilterInlineItemComponent,
|
|
2078
2077
|
SkyListFilterInlineComponent,
|
|
2079
|
-
SkyListFilterInlineItemRendererComponent], imports: [i4.CommonModule,
|
|
2080
|
-
i3.SkyFilterModule], exports: [SkyListFilterButtonComponent,
|
|
2078
|
+
SkyListFilterInlineItemRendererComponent], imports: [i4.CommonModule, i3.SkyFilterModule], exports: [SkyListFilterButtonComponent,
|
|
2081
2079
|
SkyListFilterSummaryComponent,
|
|
2082
2080
|
SkyListFilterInlineItemComponent,
|
|
2083
2081
|
SkyListFilterInlineComponent] });
|
|
2084
|
-
SkyListFiltersModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
2085
|
-
|
|
2086
|
-
i3.SkyFilterModule
|
|
2087
|
-
]] });
|
|
2088
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0__namespace, type: SkyListFiltersModule, decorators: [{
|
|
2082
|
+
SkyListFiltersModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFiltersModule, imports: [[i4.CommonModule, i3.SkyFilterModule]] });
|
|
2083
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFiltersModule, decorators: [{
|
|
2089
2084
|
type: i0.NgModule,
|
|
2090
2085
|
args: [{
|
|
2091
2086
|
declarations: [
|
|
@@ -2093,18 +2088,15 @@
|
|
|
2093
2088
|
SkyListFilterSummaryComponent,
|
|
2094
2089
|
SkyListFilterInlineItemComponent,
|
|
2095
2090
|
SkyListFilterInlineComponent,
|
|
2096
|
-
SkyListFilterInlineItemRendererComponent
|
|
2097
|
-
],
|
|
2098
|
-
imports: [
|
|
2099
|
-
i4.CommonModule,
|
|
2100
|
-
i3.SkyFilterModule
|
|
2091
|
+
SkyListFilterInlineItemRendererComponent,
|
|
2101
2092
|
],
|
|
2093
|
+
imports: [i4.CommonModule, i3.SkyFilterModule],
|
|
2102
2094
|
exports: [
|
|
2103
2095
|
SkyListFilterButtonComponent,
|
|
2104
2096
|
SkyListFilterSummaryComponent,
|
|
2105
2097
|
SkyListFilterInlineItemComponent,
|
|
2106
|
-
SkyListFilterInlineComponent
|
|
2107
|
-
]
|
|
2098
|
+
SkyListFilterInlineComponent,
|
|
2099
|
+
],
|
|
2108
2100
|
}]
|
|
2109
2101
|
}] });
|
|
2110
2102
|
|
|
@@ -2152,8 +2144,7 @@
|
|
|
2152
2144
|
this.currentPageNumber = this.state.pipe(operators.map(function (s) { return s.paging.pageNumber; }));
|
|
2153
2145
|
this.maxDisplayedPages = this.state.pipe(operators.map(function (s) { return s.paging.maxDisplayedPages; }));
|
|
2154
2146
|
this.itemsPerPage = this.state.pipe(operators.map(function (s) { return s.paging.itemsPerPage; }));
|
|
2155
|
-
this.itemCount = this.state
|
|
2156
|
-
.pipe(operators.map(function (s) {
|
|
2147
|
+
this.itemCount = this.state.pipe(operators.map(function (s) {
|
|
2157
2148
|
return s.items;
|
|
2158
2149
|
}), operators.scan(function (previousValue, newValue) {
|
|
2159
2150
|
if (previousValue.lastUpdate > newValue.lastUpdate) {
|
|
@@ -2180,19 +2171,19 @@
|
|
|
2180
2171
|
};
|
|
2181
2172
|
return SkyListPagingComponent;
|
|
2182
2173
|
}(ListPagingComponent));
|
|
2183
|
-
SkyListPagingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2184
|
-
SkyListPagingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2185
|
-
{ provide: ListPagingComponent, useExisting: listPagingComponentRef }
|
|
2186
|
-
], usesInheritance: true, ngImport: i0__namespace, template: "<sky-paging\n [pageSize]=\"itemsPerPage | async\"\n [maxPages]=\"maxDisplayedPages | async\"\n [currentPage]=\"currentPageNumber | async\"\n [itemCount]=\"itemCount | async\"\n (currentPageChange)=\"pageChange($event)\"\n
|
|
2187
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2174
|
+
SkyListPagingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListPagingComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2175
|
+
SkyListPagingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListPagingComponent, selector: "sky-list-paging", inputs: { pageSize: "pageSize", maxPages: "maxPages", pageNumber: "pageNumber" }, providers: [
|
|
2176
|
+
{ provide: ListPagingComponent, useExisting: listPagingComponentRef },
|
|
2177
|
+
], usesInheritance: true, ngImport: i0__namespace, 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__namespace.λ7, selector: "sky-paging", inputs: ["currentPage", "itemCount", "maxPages", "pageSize", "pagingLabel"], outputs: ["currentPageChange"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
2178
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListPagingComponent, decorators: [{
|
|
2188
2179
|
type: i0.Component,
|
|
2189
2180
|
args: [{
|
|
2190
2181
|
selector: 'sky-list-paging',
|
|
2191
|
-
|
|
2182
|
+
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",
|
|
2192
2183
|
providers: [
|
|
2193
|
-
{ provide: ListPagingComponent, useExisting: listPagingComponentRef }
|
|
2184
|
+
{ provide: ListPagingComponent, useExisting: listPagingComponentRef },
|
|
2194
2185
|
],
|
|
2195
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2186
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2196
2187
|
}]
|
|
2197
2188
|
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { pageSize: [{
|
|
2198
2189
|
type: i0.Input
|
|
@@ -2207,26 +2198,15 @@
|
|
|
2207
2198
|
}
|
|
2208
2199
|
return SkyListPagingModule;
|
|
2209
2200
|
}());
|
|
2210
|
-
SkyListPagingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2211
|
-
SkyListPagingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
i4.CommonModule,
|
|
2215
|
-
i3.SkyPagingModule
|
|
2216
|
-
]] });
|
|
2217
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0__namespace, type: SkyListPagingModule, decorators: [{
|
|
2201
|
+
SkyListPagingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListPagingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2202
|
+
SkyListPagingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListPagingModule, declarations: [SkyListPagingComponent], imports: [i4.CommonModule, i3.SkyPagingModule], exports: [SkyListPagingComponent] });
|
|
2203
|
+
SkyListPagingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListPagingModule, imports: [[i4.CommonModule, i3.SkyPagingModule]] });
|
|
2204
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListPagingModule, decorators: [{
|
|
2218
2205
|
type: i0.NgModule,
|
|
2219
2206
|
args: [{
|
|
2220
|
-
declarations: [
|
|
2221
|
-
|
|
2222
|
-
],
|
|
2223
|
-
imports: [
|
|
2224
|
-
i4.CommonModule,
|
|
2225
|
-
i3.SkyPagingModule
|
|
2226
|
-
],
|
|
2227
|
-
exports: [
|
|
2228
|
-
SkyListPagingComponent
|
|
2229
|
-
]
|
|
2207
|
+
declarations: [SkyListPagingComponent],
|
|
2208
|
+
imports: [i4.CommonModule, i3.SkyPagingModule],
|
|
2209
|
+
exports: [SkyListPagingComponent],
|
|
2230
2210
|
}]
|
|
2231
2211
|
}] });
|
|
2232
2212
|
|
|
@@ -2237,7 +2217,15 @@
|
|
|
2237
2217
|
* To update this file, simply rerun the command.
|
|
2238
2218
|
*/
|
|
2239
2219
|
var RESOURCES = {
|
|
2240
|
-
'EN-US': {
|
|
2220
|
+
'EN-US': {
|
|
2221
|
+
skyux_list_show_secondary_actions_button: { message: 'More' },
|
|
2222
|
+
skyux_list_multiselect_clear_all: { message: 'Clear all' },
|
|
2223
|
+
skyux_list_mutliselect_select_all: { message: 'Select all' },
|
|
2224
|
+
skyux_list_mutliselect_show_selected: {
|
|
2225
|
+
message: 'Only show selected items',
|
|
2226
|
+
},
|
|
2227
|
+
skyux_list_view_switcher_dropdown_title: { message: 'Select view' },
|
|
2228
|
+
},
|
|
2241
2229
|
};
|
|
2242
2230
|
var SkyListBuilderResourcesProvider = /** @class */ (function () {
|
|
2243
2231
|
function SkyListBuilderResourcesProvider() {
|
|
@@ -2255,22 +2243,26 @@
|
|
|
2255
2243
|
}
|
|
2256
2244
|
return SkyListBuilderResourcesModule;
|
|
2257
2245
|
}());
|
|
2258
|
-
SkyListBuilderResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2259
|
-
SkyListBuilderResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2260
|
-
SkyListBuilderResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
2246
|
+
SkyListBuilderResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListBuilderResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2247
|
+
SkyListBuilderResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListBuilderResourcesModule, exports: [i5.SkyI18nModule] });
|
|
2248
|
+
SkyListBuilderResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListBuilderResourcesModule, providers: [
|
|
2249
|
+
{
|
|
2261
2250
|
provide: i5.SKY_LIB_RESOURCES_PROVIDERS,
|
|
2262
2251
|
useClass: SkyListBuilderResourcesProvider,
|
|
2263
|
-
multi: true
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2252
|
+
multi: true,
|
|
2253
|
+
},
|
|
2254
|
+
], imports: [i5.SkyI18nModule] });
|
|
2255
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListBuilderResourcesModule, decorators: [{
|
|
2266
2256
|
type: i0.NgModule,
|
|
2267
2257
|
args: [{
|
|
2268
2258
|
exports: [i5.SkyI18nModule],
|
|
2269
|
-
providers: [
|
|
2259
|
+
providers: [
|
|
2260
|
+
{
|
|
2270
2261
|
provide: i5.SKY_LIB_RESOURCES_PROVIDERS,
|
|
2271
2262
|
useClass: SkyListBuilderResourcesProvider,
|
|
2272
|
-
multi: true
|
|
2273
|
-
}
|
|
2263
|
+
multi: true,
|
|
2264
|
+
},
|
|
2265
|
+
],
|
|
2274
2266
|
}]
|
|
2275
2267
|
}] });
|
|
2276
2268
|
|
|
@@ -2302,9 +2294,9 @@
|
|
|
2302
2294
|
};
|
|
2303
2295
|
return SkyListSecondaryActionsService;
|
|
2304
2296
|
}());
|
|
2305
|
-
SkyListSecondaryActionsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2306
|
-
SkyListSecondaryActionsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2307
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2297
|
+
SkyListSecondaryActionsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionsService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2298
|
+
SkyListSecondaryActionsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionsService });
|
|
2299
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionsService, decorators: [{
|
|
2308
2300
|
type: i0.Injectable
|
|
2309
2301
|
}] });
|
|
2310
2302
|
|
|
@@ -2326,7 +2318,7 @@
|
|
|
2326
2318
|
this.actionService.actionsStream
|
|
2327
2319
|
.pipe(operators.takeUntil(this.ngUnsubscribe), operators.distinctUntilChanged())
|
|
2328
2320
|
.subscribe(function (actions) {
|
|
2329
|
-
var hasSecondaryActions =
|
|
2321
|
+
var hasSecondaryActions = actions.length > 0;
|
|
2330
2322
|
_this.dropdownHidden = !hasSecondaryActions;
|
|
2331
2323
|
_this.actions = actions;
|
|
2332
2324
|
_this.changeDetector.detectChanges();
|
|
@@ -2338,15 +2330,15 @@
|
|
|
2338
2330
|
};
|
|
2339
2331
|
return SkyListSecondaryActionsHostComponent;
|
|
2340
2332
|
}());
|
|
2341
|
-
SkyListSecondaryActionsHostComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2342
|
-
SkyListSecondaryActionsHostComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2343
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2333
|
+
SkyListSecondaryActionsHostComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionsHostComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: SkyListSecondaryActionsService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2334
|
+
SkyListSecondaryActionsHostComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListSecondaryActionsHostComponent, selector: "sky-list-secondary-actions-host", ngImport: i0__namespace, 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__namespace.λ3, selector: "sky-dropdown", inputs: ["buttonStyle", "buttonType", "disabled", "dismissOnBlur", "label", "horizontalAlignment", "messageStream", "title", "trigger"] }, { type: i2__namespace.λ2, selector: "sky-dropdown-button" }, { type: i3__namespace$1.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }, { type: i2__namespace.λ4, selector: "sky-dropdown-menu", inputs: ["ariaLabelledBy", "ariaRole", "useNativeFocus"], outputs: ["menuChanges"] }, { type: i2__namespace.λ1, selector: "sky-dropdown-item", inputs: ["ariaRole"] }], directives: [{ type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyLibResources": i5__namespace.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
2335
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionsHostComponent, decorators: [{
|
|
2344
2336
|
type: i0.Component,
|
|
2345
2337
|
args: [{
|
|
2346
2338
|
selector: 'sky-list-secondary-actions-host',
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2339
|
+
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",
|
|
2340
|
+
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"],
|
|
2341
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2350
2342
|
}]
|
|
2351
2343
|
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: SkyListSecondaryActionsService }]; } });
|
|
2352
2344
|
|
|
@@ -2365,33 +2357,27 @@
|
|
|
2365
2357
|
id: 'secondary-actions',
|
|
2366
2358
|
template: this.secondaryActionsTemplate,
|
|
2367
2359
|
location: 'center',
|
|
2368
|
-
index: this.secondaryActionsItemToolbarIndex
|
|
2360
|
+
index: this.secondaryActionsItemToolbarIndex,
|
|
2369
2361
|
});
|
|
2370
|
-
this.dispatcher.toolbarAddItems([
|
|
2371
|
-
secondaryActionItem
|
|
2372
|
-
]);
|
|
2362
|
+
this.dispatcher.toolbarAddItems([secondaryActionItem]);
|
|
2373
2363
|
};
|
|
2374
2364
|
return SkyListSecondaryActionsComponent;
|
|
2375
2365
|
}());
|
|
2376
|
-
SkyListSecondaryActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2377
|
-
SkyListSecondaryActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2378
|
-
|
|
2379
|
-
], viewQueries: [{ propertyName: "secondaryActionsTemplate", first: true, predicate: ["secondaryActions"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, 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__namespace.ChangeDetectionStrategy.OnPush });
|
|
2380
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0__namespace, type: SkyListSecondaryActionsComponent, decorators: [{
|
|
2366
|
+
SkyListSecondaryActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionsComponent, deps: [{ token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2367
|
+
SkyListSecondaryActionsComponent.ɵcmp = i0__namespace.ɵɵ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: i0.TemplateRef, static: true }], ngImport: i0__namespace, 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__namespace.ChangeDetectionStrategy.OnPush });
|
|
2368
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionsComponent, decorators: [{
|
|
2381
2369
|
type: i0.Component,
|
|
2382
2370
|
args: [{
|
|
2383
2371
|
selector: 'sky-list-secondary-actions',
|
|
2384
|
-
|
|
2385
|
-
providers: [
|
|
2386
|
-
|
|
2387
|
-
],
|
|
2388
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2372
|
+
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",
|
|
2373
|
+
providers: [SkyListSecondaryActionsService],
|
|
2374
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2389
2375
|
}]
|
|
2390
2376
|
}], ctorParameters: function () { return [{ type: ListStateDispatcher }]; }, propDecorators: { secondaryActionsTemplate: [{
|
|
2391
2377
|
type: i0.ViewChild,
|
|
2392
2378
|
args: ['secondaryActions', {
|
|
2393
2379
|
read: i0.TemplateRef,
|
|
2394
|
-
static: true
|
|
2380
|
+
static: true,
|
|
2395
2381
|
}]
|
|
2396
2382
|
}] } });
|
|
2397
2383
|
|
|
@@ -2404,24 +2390,24 @@
|
|
|
2404
2390
|
}
|
|
2405
2391
|
SkyListSecondaryActionComponent.prototype.ngAfterContentInit = function () {
|
|
2406
2392
|
this.actionService.addSecondaryAction({
|
|
2407
|
-
template: this.templateRef
|
|
2393
|
+
template: this.templateRef,
|
|
2408
2394
|
});
|
|
2409
2395
|
};
|
|
2410
2396
|
return SkyListSecondaryActionComponent;
|
|
2411
2397
|
}());
|
|
2412
|
-
SkyListSecondaryActionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2413
|
-
SkyListSecondaryActionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2414
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2398
|
+
SkyListSecondaryActionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionComponent, deps: [{ token: SkyListSecondaryActionsService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2399
|
+
SkyListSecondaryActionComponent.ɵcmp = i0__namespace.ɵɵ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: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<ng-template #listSecondaryAction>\n <ng-content></ng-content>\n</ng-template>\n" });
|
|
2400
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionComponent, decorators: [{
|
|
2415
2401
|
type: i0.Component,
|
|
2416
2402
|
args: [{
|
|
2417
2403
|
selector: 'sky-list-secondary-action',
|
|
2418
|
-
|
|
2404
|
+
template: "<ng-template #listSecondaryAction>\n <ng-content></ng-content>\n</ng-template>\n",
|
|
2419
2405
|
}]
|
|
2420
2406
|
}], ctorParameters: function () { return [{ type: SkyListSecondaryActionsService }]; }, propDecorators: { templateRef: [{
|
|
2421
2407
|
type: i0.ViewChild,
|
|
2422
2408
|
args: ['listSecondaryAction', {
|
|
2423
2409
|
read: i0.TemplateRef,
|
|
2424
|
-
static: true
|
|
2410
|
+
static: true,
|
|
2425
2411
|
}]
|
|
2426
2412
|
}] } });
|
|
2427
2413
|
|
|
@@ -2430,41 +2416,37 @@
|
|
|
2430
2416
|
}
|
|
2431
2417
|
return SkyListSecondaryActionsModule;
|
|
2432
2418
|
}());
|
|
2433
|
-
SkyListSecondaryActionsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2434
|
-
SkyListSecondaryActionsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2419
|
+
SkyListSecondaryActionsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2420
|
+
SkyListSecondaryActionsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionsModule, declarations: [SkyListSecondaryActionsComponent,
|
|
2435
2421
|
SkyListSecondaryActionsHostComponent,
|
|
2436
2422
|
SkyListSecondaryActionComponent], imports: [i4.CommonModule,
|
|
2437
2423
|
i2.SkyDropdownModule,
|
|
2438
2424
|
i5.SkyI18nModule,
|
|
2439
2425
|
i3$1.SkyIconModule,
|
|
2440
|
-
SkyListBuilderResourcesModule], exports: [SkyListSecondaryActionsComponent,
|
|
2441
|
-
|
|
2442
|
-
SkyListSecondaryActionsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0__namespace, type: SkyListSecondaryActionsModule, imports: [[
|
|
2426
|
+
SkyListBuilderResourcesModule], exports: [SkyListSecondaryActionsComponent, SkyListSecondaryActionComponent] });
|
|
2427
|
+
SkyListSecondaryActionsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionsModule, imports: [[
|
|
2443
2428
|
i4.CommonModule,
|
|
2444
2429
|
i2.SkyDropdownModule,
|
|
2445
2430
|
i5.SkyI18nModule,
|
|
2446
2431
|
i3$1.SkyIconModule,
|
|
2447
|
-
SkyListBuilderResourcesModule
|
|
2432
|
+
SkyListBuilderResourcesModule,
|
|
2448
2433
|
]] });
|
|
2449
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2434
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionsModule, decorators: [{
|
|
2450
2435
|
type: i0.NgModule,
|
|
2451
2436
|
args: [{
|
|
2452
2437
|
declarations: [
|
|
2453
2438
|
SkyListSecondaryActionsComponent,
|
|
2454
2439
|
SkyListSecondaryActionsHostComponent,
|
|
2455
|
-
SkyListSecondaryActionComponent
|
|
2440
|
+
SkyListSecondaryActionComponent,
|
|
2456
2441
|
],
|
|
2457
2442
|
imports: [
|
|
2458
2443
|
i4.CommonModule,
|
|
2459
2444
|
i2.SkyDropdownModule,
|
|
2460
2445
|
i5.SkyI18nModule,
|
|
2461
2446
|
i3$1.SkyIconModule,
|
|
2462
|
-
SkyListBuilderResourcesModule
|
|
2447
|
+
SkyListBuilderResourcesModule,
|
|
2463
2448
|
],
|
|
2464
|
-
exports: [
|
|
2465
|
-
SkyListSecondaryActionsComponent,
|
|
2466
|
-
SkyListSecondaryActionComponent
|
|
2467
|
-
]
|
|
2449
|
+
exports: [SkyListSecondaryActionsComponent, SkyListSecondaryActionComponent],
|
|
2468
2450
|
}]
|
|
2469
2451
|
}] });
|
|
2470
2452
|
|
|
@@ -2484,9 +2466,9 @@
|
|
|
2484
2466
|
*/
|
|
2485
2467
|
this.index = -1;
|
|
2486
2468
|
/**
|
|
2487
|
-
* Specifies the toolbar location of the item. The valid options are `left`,
|
|
2488
|
-
* `center`, and `right`.
|
|
2489
|
-
* @default
|
|
2469
|
+
* Specifies the toolbar location of the item. The valid options are `"left"`,
|
|
2470
|
+
* `"center"`, and `"right"`.
|
|
2471
|
+
* @default "left"
|
|
2490
2472
|
*/
|
|
2491
2473
|
this.location = 'left';
|
|
2492
2474
|
}
|
|
@@ -2499,13 +2481,13 @@
|
|
|
2499
2481
|
});
|
|
2500
2482
|
return SkyListToolbarItemComponent;
|
|
2501
2483
|
}());
|
|
2502
|
-
SkyListToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2503
|
-
SkyListToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2504
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2484
|
+
SkyListToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2485
|
+
SkyListToolbarItemComponent.ɵcmp = i0__namespace.ɵɵ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: i0.TemplateRef }], ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true });
|
|
2486
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarItemComponent, decorators: [{
|
|
2505
2487
|
type: i0.Component,
|
|
2506
2488
|
args: [{
|
|
2507
2489
|
selector: 'sky-list-toolbar-item',
|
|
2508
|
-
template: '<ng-content></ng-content>'
|
|
2490
|
+
template: '<ng-content></ng-content>',
|
|
2509
2491
|
}]
|
|
2510
2492
|
}], propDecorators: { id: [{
|
|
2511
2493
|
type: i0.Input
|
|
@@ -2526,13 +2508,13 @@
|
|
|
2526
2508
|
}
|
|
2527
2509
|
return SkyListToolbarSortComponent;
|
|
2528
2510
|
}());
|
|
2529
|
-
SkyListToolbarSortComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2530
|
-
SkyListToolbarSortComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2531
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2511
|
+
SkyListToolbarSortComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarSortComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2512
|
+
SkyListToolbarSortComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: '', isInline: true });
|
|
2513
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarSortComponent, decorators: [{
|
|
2532
2514
|
type: i0.Component,
|
|
2533
2515
|
args: [{
|
|
2534
2516
|
selector: 'sky-list-toolbar-sort',
|
|
2535
|
-
template: ''
|
|
2517
|
+
template: '',
|
|
2536
2518
|
}]
|
|
2537
2519
|
}], propDecorators: { label: [{
|
|
2538
2520
|
type: i0.Input
|
|
@@ -2555,14 +2537,14 @@
|
|
|
2555
2537
|
}
|
|
2556
2538
|
return SkyListToolbarViewActionsComponent;
|
|
2557
2539
|
}());
|
|
2558
|
-
SkyListToolbarViewActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2559
|
-
SkyListToolbarViewActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2560
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2540
|
+
SkyListToolbarViewActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarViewActionsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2541
|
+
SkyListToolbarViewActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListToolbarViewActionsComponent, selector: "sky-list-toolbar-view-actions", ngImport: i0__namespace, 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"] });
|
|
2542
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarViewActionsComponent, decorators: [{
|
|
2561
2543
|
type: i0.Component,
|
|
2562
2544
|
args: [{
|
|
2563
2545
|
selector: 'sky-list-toolbar-view-actions',
|
|
2564
|
-
|
|
2565
|
-
|
|
2546
|
+
template: "<ng-content></ng-content>\n",
|
|
2547
|
+
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"],
|
|
2566
2548
|
}]
|
|
2567
2549
|
}] });
|
|
2568
2550
|
|
|
@@ -2598,9 +2580,9 @@
|
|
|
2598
2580
|
}
|
|
2599
2581
|
return ListToolbarStateDispatcher;
|
|
2600
2582
|
}(listBuilderCommon.StateDispatcher));
|
|
2601
|
-
ListToolbarStateDispatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2602
|
-
ListToolbarStateDispatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2603
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2583
|
+
ListToolbarStateDispatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarStateDispatcher, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2584
|
+
ListToolbarStateDispatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarStateDispatcher });
|
|
2585
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarStateDispatcher, decorators: [{
|
|
2604
2586
|
type: i0.Injectable
|
|
2605
2587
|
}] });
|
|
2606
2588
|
/**
|
|
@@ -2637,9 +2619,7 @@
|
|
|
2637
2619
|
/* istanbul ignore next */
|
|
2638
2620
|
function ListToolbarConfigOrchestrator() {
|
|
2639
2621
|
var _this = _super.call(this) || this;
|
|
2640
|
-
_this
|
|
2641
|
-
.register(ListToolbarConfigSetSearchEnabledAction, _this.setSearchEnabled)
|
|
2642
|
-
.register(ListToolbarConfigSetSortSelectorEnabledAction, _this.setSortSelectorEnabled);
|
|
2622
|
+
_this.register(ListToolbarConfigSetSearchEnabledAction, _this.setSearchEnabled).register(ListToolbarConfigSetSortSelectorEnabledAction, _this.setSortSelectorEnabled);
|
|
2643
2623
|
return _this;
|
|
2644
2624
|
}
|
|
2645
2625
|
ListToolbarConfigOrchestrator.prototype.setSearchEnabled = function (state, action) {
|
|
@@ -2668,16 +2648,14 @@
|
|
|
2668
2648
|
__extends(ListToolbarState, _super);
|
|
2669
2649
|
function ListToolbarState(initialState, dispatcher) {
|
|
2670
2650
|
var _this = _super.call(this, initialState, dispatcher) || this;
|
|
2671
|
-
_this
|
|
2672
|
-
.register('config', ListToolbarConfigOrchestrator)
|
|
2673
|
-
.begin();
|
|
2651
|
+
_this.register('config', ListToolbarConfigOrchestrator).begin();
|
|
2674
2652
|
return _this;
|
|
2675
2653
|
}
|
|
2676
2654
|
return ListToolbarState;
|
|
2677
2655
|
}(listBuilderCommon.StateNode));
|
|
2678
|
-
ListToolbarState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2679
|
-
ListToolbarState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2680
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2656
|
+
ListToolbarState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarState, deps: [{ token: ListToolbarStateModel }, { token: ListToolbarStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2657
|
+
ListToolbarState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarState });
|
|
2658
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarState, decorators: [{
|
|
2681
2659
|
type: i0.Injectable
|
|
2682
2660
|
}], ctorParameters: function () { return [{ type: ListToolbarStateModel }, { type: ListToolbarStateDispatcher }]; } });
|
|
2683
2661
|
|
|
@@ -2694,13 +2672,13 @@
|
|
|
2694
2672
|
};
|
|
2695
2673
|
return SkyListToolbarItemRendererComponent;
|
|
2696
2674
|
}());
|
|
2697
|
-
SkyListToolbarItemRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2698
|
-
SkyListToolbarItemRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2699
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2675
|
+
SkyListToolbarItemRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarItemRendererComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2676
|
+
SkyListToolbarItemRendererComponent.ɵcmp = i0__namespace.ɵɵ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: i0.ViewContainerRef, static: true }], ngImport: i0__namespace, template: '<ng-template #container></ng-template>', isInline: true });
|
|
2677
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarItemRendererComponent, decorators: [{
|
|
2700
2678
|
type: i0.Component,
|
|
2701
2679
|
args: [{
|
|
2702
2680
|
selector: 'sky-list-toolbar-item-renderer',
|
|
2703
|
-
template: '<ng-template #container></ng-template>'
|
|
2681
|
+
template: '<ng-template #container></ng-template>',
|
|
2704
2682
|
}]
|
|
2705
2683
|
}], propDecorators: { template: [{
|
|
2706
2684
|
type: i0.Input
|
|
@@ -2708,7 +2686,7 @@
|
|
|
2708
2686
|
type: i0.ViewChild,
|
|
2709
2687
|
args: ['container', {
|
|
2710
2688
|
read: i0.ViewContainerRef,
|
|
2711
|
-
static: true
|
|
2689
|
+
static: true,
|
|
2712
2690
|
}]
|
|
2713
2691
|
}] } });
|
|
2714
2692
|
|
|
@@ -2742,7 +2720,7 @@
|
|
|
2742
2720
|
.subscribe(function (filters) {
|
|
2743
2721
|
var showSelectedFilter = filters.find(function (filter) { return filter.name === 'show-selected'; });
|
|
2744
2722
|
if (showSelectedFilter) {
|
|
2745
|
-
_this.showOnlySelected =
|
|
2723
|
+
_this.showOnlySelected = showSelectedFilter.value === 'true';
|
|
2746
2724
|
}
|
|
2747
2725
|
});
|
|
2748
2726
|
};
|
|
@@ -2789,9 +2767,9 @@
|
|
|
2789
2767
|
// If "show selected" is checked and paging is enabled, go to page one.
|
|
2790
2768
|
/* istanbul ignore else */
|
|
2791
2769
|
if (isSelected) {
|
|
2792
|
-
this.state.pipe(operators.take(1))
|
|
2793
|
-
|
|
2794
|
-
|
|
2770
|
+
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
2771
|
+
if (currentState.paging.pageNumber &&
|
|
2772
|
+
currentState.paging.pageNumber !== 1) {
|
|
2795
2773
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
2796
2774
|
}
|
|
2797
2775
|
});
|
|
@@ -2809,7 +2787,7 @@
|
|
|
2809
2787
|
return _this.selectedIdMap.get(model.id);
|
|
2810
2788
|
}
|
|
2811
2789
|
},
|
|
2812
|
-
defaultValue: false.toString()
|
|
2790
|
+
defaultValue: false.toString(),
|
|
2813
2791
|
});
|
|
2814
2792
|
};
|
|
2815
2793
|
SkyListMultiselectToolbarComponent.prototype.showSelectedValuesEqual = function (prev, next) {
|
|
@@ -2820,7 +2798,8 @@
|
|
|
2820
2798
|
return true;
|
|
2821
2799
|
}
|
|
2822
2800
|
// Only one undefined.
|
|
2823
|
-
if ((prevShowSelectedFilter && !nextShowSelectedFilter) ||
|
|
2801
|
+
if ((prevShowSelectedFilter && !nextShowSelectedFilter) ||
|
|
2802
|
+
(!prevShowSelectedFilter && nextShowSelectedFilter)) {
|
|
2824
2803
|
return false;
|
|
2825
2804
|
}
|
|
2826
2805
|
// Defined, but with different "value".
|
|
@@ -2842,14 +2821,14 @@
|
|
|
2842
2821
|
};
|
|
2843
2822
|
return SkyListMultiselectToolbarComponent;
|
|
2844
2823
|
}());
|
|
2845
|
-
SkyListMultiselectToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2846
|
-
SkyListMultiselectToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2847
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2824
|
+
SkyListMultiselectToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListMultiselectToolbarComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2825
|
+
SkyListMultiselectToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListMultiselectToolbarComponent, selector: "sky-list-multiselect-toolbar", inputs: { showOnlySelected: "showOnlySelected" }, ngImport: i0__namespace, 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__namespace$2.λ37, selector: "sky-toolbar" }, { type: i3__namespace$2.λ38, selector: "sky-toolbar-section" }, { type: i3__namespace$2.λ39, selector: "sky-toolbar-item" }, { type: SkyListToolbarItemRendererComponent, selector: "sky-list-toolbar-item-renderer", inputs: ["template"] }, { type: i3__namespace$2.λ40, selector: "sky-toolbar-view-actions" }, { type: i5__namespace$1.λ3, selector: "sky-checkbox", inputs: ["label", "labelledBy", "id", "disabled", "tabindex", "name", "icon", "checkboxType", "checked", "required"], outputs: ["change", "checkedChange", "disabledChange"] }, { type: i5__namespace$1.λ4, selector: "sky-checkbox-label" }], directives: [{ type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyLibResources": i5__namespace.SkyLibResourcesPipe } });
|
|
2826
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListMultiselectToolbarComponent, decorators: [{
|
|
2848
2827
|
type: i0.Component,
|
|
2849
2828
|
args: [{
|
|
2850
2829
|
selector: 'sky-list-multiselect-toolbar',
|
|
2851
|
-
|
|
2852
|
-
|
|
2830
|
+
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",
|
|
2831
|
+
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"],
|
|
2853
2832
|
}]
|
|
2854
2833
|
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { showOnlySelected: [{
|
|
2855
2834
|
type: i0.Input
|
|
@@ -2870,7 +2849,7 @@
|
|
|
2870
2849
|
* Display the search bar in the standard position or in a separate section.
|
|
2871
2850
|
* To highlight the search bar in a section above all other toolbar items,
|
|
2872
2851
|
* set this property to `search`.
|
|
2873
|
-
* @default
|
|
2852
|
+
* @default "standard"
|
|
2874
2853
|
*/
|
|
2875
2854
|
this.toolbarType = 'standard';
|
|
2876
2855
|
this.isToolbarDisabled = false;
|
|
@@ -2912,7 +2891,9 @@
|
|
|
2912
2891
|
});
|
|
2913
2892
|
Object.defineProperty(SkyListToolbarComponent.prototype, "isFilterBarDisplayed", {
|
|
2914
2893
|
get: function () {
|
|
2915
|
-
return !this.isToolbarDisabled &&
|
|
2894
|
+
return (!this.isToolbarDisabled &&
|
|
2895
|
+
this.hasInlineFilters &&
|
|
2896
|
+
this.inlineFilterBarExpanded);
|
|
2916
2897
|
},
|
|
2917
2898
|
enumerable: false,
|
|
2918
2899
|
configurable: true
|
|
@@ -2951,23 +2932,20 @@
|
|
|
2951
2932
|
id: 'sort-selector',
|
|
2952
2933
|
template: _this.sortSelectorTemplate,
|
|
2953
2934
|
location: 'left',
|
|
2954
|
-
index: _this.sortSelectorItemToolbarIndex
|
|
2955
|
-
})
|
|
2935
|
+
index: _this.sortSelectorItemToolbarIndex,
|
|
2936
|
+
}),
|
|
2956
2937
|
]);
|
|
2957
2938
|
}
|
|
2958
2939
|
else if (currentSort.length < 1 && _this.hasSortSelectors) {
|
|
2959
2940
|
_this.hasSortSelectors = false;
|
|
2960
|
-
_this.dispatcher.toolbarRemoveItems([
|
|
2961
|
-
'sort-selector'
|
|
2962
|
-
]);
|
|
2941
|
+
_this.dispatcher.toolbarRemoveItems(['sort-selector']);
|
|
2963
2942
|
}
|
|
2964
2943
|
});
|
|
2965
2944
|
this.searchTextInput = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.search.searchText; }), operators.distinctUntilChanged());
|
|
2966
2945
|
this.view = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.views.active; }), operators.distinctUntilChanged());
|
|
2967
2946
|
this.watchTemplates();
|
|
2968
2947
|
this.type = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (state) { return state.toolbar.type; }), operators.distinctUntilChanged());
|
|
2969
|
-
this.type.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2970
|
-
.subscribe(function (toolbarType) {
|
|
2948
|
+
this.type.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (toolbarType) {
|
|
2971
2949
|
if (toolbarType === 'search') {
|
|
2972
2950
|
_this.dispatcher.toolbarRemoveItems(['search']);
|
|
2973
2951
|
}
|
|
@@ -2976,28 +2954,28 @@
|
|
|
2976
2954
|
new ListToolbarItemModel({
|
|
2977
2955
|
id: 'search',
|
|
2978
2956
|
template: _this.searchTemplate,
|
|
2979
|
-
location: 'right'
|
|
2980
|
-
})
|
|
2957
|
+
location: 'right',
|
|
2958
|
+
}),
|
|
2981
2959
|
]);
|
|
2982
2960
|
}
|
|
2983
2961
|
});
|
|
2984
2962
|
this.isSearchEnabled = this.toolbarState.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.config; }), operators.distinctUntilChanged(), operators.map(function (c) { return c.searchEnabled; }));
|
|
2985
|
-
this.state
|
|
2986
|
-
.
|
|
2963
|
+
this.state
|
|
2964
|
+
.pipe(operators.map(function (s) { return s.toolbar; }), operators.takeUntil(this.ngUnsubscribe), operators.distinctUntilChanged(), operators.map(function (c) { return c.disabled; }))
|
|
2965
|
+
.subscribe(function (isDisabled) { return (_this.isToolbarDisabled = isDisabled); });
|
|
2987
2966
|
this.isSortSelectorEnabled = this.toolbarState.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.config; }), operators.distinctUntilChanged(), operators.map(function (c) { return c.sortSelectorEnabled; }));
|
|
2988
2967
|
this.isMultiselectEnabled = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.toolbar; }), operators.distinctUntilChanged(), operators.map(function (t) { return t.showMultiselectToolbar; }));
|
|
2989
2968
|
this.hasAppliedFilters = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.filters; }), operators.distinctUntilChanged(), operators.map(function (filters) {
|
|
2990
2969
|
var activeFilters = filters.filter(function (f) {
|
|
2991
|
-
return f.value !== '' &&
|
|
2970
|
+
return (f.value !== '' &&
|
|
2992
2971
|
f.value !== undefined &&
|
|
2993
2972
|
f.value !== false &&
|
|
2994
|
-
f.value !== f.defaultValue;
|
|
2973
|
+
f.value !== f.defaultValue);
|
|
2995
2974
|
});
|
|
2996
2975
|
return activeFilters.length > 0;
|
|
2997
2976
|
}));
|
|
2998
|
-
this.state.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2999
|
-
.
|
|
3000
|
-
_this.hasAdditionalToolbarSection = (current.toolbar.items.length > 0);
|
|
2977
|
+
this.state.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (current) {
|
|
2978
|
+
_this.hasAdditionalToolbarSection = current.toolbar.items.length > 0;
|
|
3001
2979
|
_this.changeDetector.detectChanges();
|
|
3002
2980
|
});
|
|
3003
2981
|
};
|
|
@@ -3005,18 +2983,15 @@
|
|
|
3005
2983
|
var _this = this;
|
|
3006
2984
|
// Inject custom toolbar items.
|
|
3007
2985
|
this.toolbarItems.forEach(function (toolbarItem) {
|
|
3008
|
-
_this.dispatcher.toolbarAddItems([
|
|
3009
|
-
new ListToolbarItemModel(toolbarItem)
|
|
3010
|
-
]);
|
|
2986
|
+
_this.dispatcher.toolbarAddItems([new ListToolbarItemModel(toolbarItem)]);
|
|
3011
2987
|
_this.customItemIds.push(toolbarItem.id);
|
|
3012
2988
|
});
|
|
3013
|
-
this.toolbarItems.changes
|
|
2989
|
+
this.toolbarItems.changes
|
|
2990
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
3014
2991
|
.subscribe(function (newItems) {
|
|
3015
2992
|
newItems.forEach(function (item) {
|
|
3016
2993
|
if (_this.customItemIds.indexOf(item.id) < 0) {
|
|
3017
|
-
_this.dispatcher.toolbarAddItems([
|
|
3018
|
-
new ListToolbarItemModel(item)
|
|
3019
|
-
]);
|
|
2994
|
+
_this.dispatcher.toolbarAddItems([new ListToolbarItemModel(item)]);
|
|
3020
2995
|
_this.customItemIds.push(item.id);
|
|
3021
2996
|
}
|
|
3022
2997
|
});
|
|
@@ -3034,23 +3009,23 @@
|
|
|
3034
3009
|
fieldSelector: sort.field,
|
|
3035
3010
|
fieldType: sort.type,
|
|
3036
3011
|
global: true,
|
|
3037
|
-
descending: sort.descending
|
|
3012
|
+
descending: sort.descending,
|
|
3038
3013
|
}); });
|
|
3039
3014
|
this.dispatcher.sortSetGlobal(sortModels);
|
|
3040
3015
|
// Add inline filters.
|
|
3041
|
-
this.showFilterSummary =
|
|
3042
|
-
this.hasInlineFilters =
|
|
3016
|
+
this.showFilterSummary = this.filterSummary.length > 0;
|
|
3017
|
+
this.hasInlineFilters = this.inlineFilter.length > 0;
|
|
3043
3018
|
if (this.hasInlineFilters) {
|
|
3044
3019
|
this.dispatcher.toolbarAddItems([
|
|
3045
3020
|
new ListToolbarItemModel({
|
|
3046
3021
|
template: this.inlineFilterButtonTemplate,
|
|
3047
3022
|
location: 'left',
|
|
3048
|
-
index: this.inlineFiltersItemToolbarIndex
|
|
3049
|
-
})
|
|
3023
|
+
index: this.inlineFiltersItemToolbarIndex,
|
|
3024
|
+
}),
|
|
3050
3025
|
]);
|
|
3051
3026
|
}
|
|
3052
3027
|
// Check for view actions
|
|
3053
|
-
this.hasViewActions =
|
|
3028
|
+
this.hasViewActions = this.viewActions.length > 0;
|
|
3054
3029
|
};
|
|
3055
3030
|
SkyListToolbarComponent.prototype.ngOnDestroy = function () {
|
|
3056
3031
|
this.searchApplied.complete();
|
|
@@ -3060,10 +3035,13 @@
|
|
|
3060
3035
|
SkyListToolbarComponent.prototype.setSort = function (sort) {
|
|
3061
3036
|
var _this = this;
|
|
3062
3037
|
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
3063
|
-
if (currentState.paging.pageNumber &&
|
|
3038
|
+
if (currentState.paging.pageNumber &&
|
|
3039
|
+
currentState.paging.pageNumber !== 1) {
|
|
3064
3040
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
3065
3041
|
}
|
|
3066
|
-
_this.dispatcher.sortSetFieldSelectors([
|
|
3042
|
+
_this.dispatcher.sortSetFieldSelectors([
|
|
3043
|
+
{ fieldSelector: sort.fieldSelector, descending: sort.descending },
|
|
3044
|
+
]);
|
|
3067
3045
|
});
|
|
3068
3046
|
};
|
|
3069
3047
|
SkyListToolbarComponent.prototype.inlineFilterButtonClick = function () {
|
|
@@ -3074,7 +3052,8 @@
|
|
|
3074
3052
|
this.searchApplied.next(searchText);
|
|
3075
3053
|
if (this.inMemorySearchEnabled) {
|
|
3076
3054
|
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
3077
|
-
if (currentState.paging.pageNumber &&
|
|
3055
|
+
if (currentState.paging.pageNumber &&
|
|
3056
|
+
currentState.paging.pageNumber !== 1) {
|
|
3078
3057
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
3079
3058
|
}
|
|
3080
3059
|
_this.dispatcher.searchSetText(searchText);
|
|
@@ -3082,16 +3061,17 @@
|
|
|
3082
3061
|
}
|
|
3083
3062
|
};
|
|
3084
3063
|
SkyListToolbarComponent.prototype.itemIsInView = function (itemView, activeView) {
|
|
3085
|
-
return
|
|
3064
|
+
return itemView === undefined || itemView === activeView;
|
|
3086
3065
|
};
|
|
3087
3066
|
SkyListToolbarComponent.prototype.getSortSelectors = function () {
|
|
3088
3067
|
return rxjs.combineLatest(this.state.pipe(operators.map(function (s) { return s.sort.available; }), operators.distinctUntilChanged()), this.state.pipe(operators.map(function (s) { return s.sort.global; }), operators.distinctUntilChanged()), this.state.pipe(operators.map(function (s) { return s.sort.fieldSelectors; }), operators.distinctUntilChanged()), function (available, global, fieldSelectors) {
|
|
3089
3068
|
// Get sorts that are in the global that are not in the available
|
|
3090
|
-
var sorts = global.filter(function (g) { return available.filter(function (a) { return a.fieldSelector === g.fieldSelector; })
|
|
3069
|
+
var sorts = global.filter(function (g) { return available.filter(function (a) { return a.fieldSelector === g.fieldSelector; })
|
|
3070
|
+
.length === 0; });
|
|
3091
3071
|
var resultSortSelectors = __spreadArray(__spreadArray([], __read(sorts)), __read(available)).map(function (sortLabels) {
|
|
3092
3072
|
var fs = fieldSelectors.filter(function (f) {
|
|
3093
|
-
return f.fieldSelector === sortLabels.fieldSelector
|
|
3094
|
-
|
|
3073
|
+
return (f.fieldSelector === sortLabels.fieldSelector &&
|
|
3074
|
+
f.descending === sortLabels.descending);
|
|
3095
3075
|
});
|
|
3096
3076
|
var selected = false;
|
|
3097
3077
|
if (fs.length > 0) {
|
|
@@ -3099,7 +3079,7 @@
|
|
|
3099
3079
|
}
|
|
3100
3080
|
return {
|
|
3101
3081
|
sort: sortLabels,
|
|
3102
|
-
selected: selected
|
|
3082
|
+
selected: selected,
|
|
3103
3083
|
};
|
|
3104
3084
|
});
|
|
3105
3085
|
return resultSortSelectors;
|
|
@@ -3117,7 +3097,8 @@
|
|
|
3117
3097
|
templates[item.location].push(item);
|
|
3118
3098
|
});
|
|
3119
3099
|
return templates;
|
|
3120
|
-
})
|
|
3100
|
+
})
|
|
3101
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
3121
3102
|
.subscribe(function (value) {
|
|
3122
3103
|
_this.leftTemplates = value.left;
|
|
3123
3104
|
_this.centerTemplates = value.center;
|
|
@@ -3127,24 +3108,24 @@
|
|
|
3127
3108
|
};
|
|
3128
3109
|
return SkyListToolbarComponent;
|
|
3129
3110
|
}());
|
|
3130
|
-
SkyListToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3131
|
-
SkyListToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
3111
|
+
SkyListToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: ListState }, { token: ListStateDispatcher }, { token: ListToolbarState }, { token: ListToolbarStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3112
|
+
SkyListToolbarComponent.ɵcmp = i0__namespace.ɵɵ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: [
|
|
3132
3113
|
ListToolbarState,
|
|
3133
3114
|
ListToolbarStateDispatcher,
|
|
3134
|
-
ListToolbarStateModel
|
|
3135
|
-
], 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: i8.SkySearchComponent, descendants: true, read: i8.SkySearchComponent }, { propertyName: "searchTemplate", first: true, predicate: ["search"], descendants: true, read: i0.TemplateRef, static: true }, { propertyName: "sortSelectorTemplate", first: true, predicate: ["sortSelector"], descendants: true, read: i0.TemplateRef, static: true }, { propertyName: "inlineFilterButtonTemplate", first: true, predicate: ["inlineFilterButton"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<div class=\"sky-list-toolbar-container\">\n <sky-toolbar *ngIf=\"(type | async) !== 'search'\">\n
|
|
3136
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3115
|
+
ListToolbarStateModel,
|
|
3116
|
+
], 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: i8.SkySearchComponent, descendants: true, read: i8.SkySearchComponent }, { propertyName: "searchTemplate", first: true, predicate: ["search"], descendants: true, read: i0.TemplateRef, static: true }, { propertyName: "sortSelectorTemplate", first: true, predicate: ["sortSelector"], descendants: true, read: i0.TemplateRef, static: true }, { propertyName: "inlineFilterButtonTemplate", first: true, predicate: ["inlineFilterButton"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, 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__namespace$2.λ37, selector: "sky-toolbar" }, { type: i3__namespace$2.λ38, selector: "sky-toolbar-section" }, { type: i3__namespace$2.λ39, selector: "sky-toolbar-item" }, { type: SkyListToolbarItemRendererComponent, selector: "sky-list-toolbar-item-renderer", inputs: ["template"] }, { type: i3__namespace$2.λ40, selector: "sky-toolbar-view-actions" }, { type: SkyListMultiselectToolbarComponent, selector: "sky-list-multiselect-toolbar", inputs: ["showOnlySelected"] }, { type: i8__namespace.SkySearchComponent, selector: "sky-search", inputs: ["searchText", "expandMode", "debounceTime", "disabled", "placeholderText"], outputs: ["searchApply", "searchChange", "searchClear"] }, { type: i3__namespace.λ14, selector: "sky-sort", inputs: ["showButtonText"] }, { type: i3__namespace.λ13, selector: "sky-sort-item", inputs: ["active"], outputs: ["itemSelect"] }, { type: i3__namespace.λ1, selector: "sky-filter-button", inputs: ["filterButtonId", "ariaControls", "ariaExpanded", "active", "disabled", "showButtonText"], outputs: ["filterButtonClick"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
3117
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarComponent, decorators: [{
|
|
3137
3118
|
type: i0.Component,
|
|
3138
3119
|
args: [{
|
|
3139
3120
|
selector: 'sky-list-toolbar',
|
|
3140
|
-
|
|
3141
|
-
|
|
3121
|
+
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",
|
|
3122
|
+
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"],
|
|
3142
3123
|
providers: [
|
|
3143
3124
|
ListToolbarState,
|
|
3144
3125
|
ListToolbarStateDispatcher,
|
|
3145
|
-
ListToolbarStateModel
|
|
3126
|
+
ListToolbarStateModel,
|
|
3146
3127
|
],
|
|
3147
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3128
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3148
3129
|
}]
|
|
3149
3130
|
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: ListState }, { type: ListStateDispatcher }, { type: ListToolbarState }, { type: ListToolbarStateDispatcher }]; }, propDecorators: { inMemorySearchEnabled: [{
|
|
3150
3131
|
type: i0.Input
|
|
@@ -3156,7 +3137,7 @@
|
|
|
3156
3137
|
type: i0.ViewChild,
|
|
3157
3138
|
args: [i8.SkySearchComponent, {
|
|
3158
3139
|
read: i8.SkySearchComponent,
|
|
3159
|
-
static: false
|
|
3140
|
+
static: false,
|
|
3160
3141
|
}]
|
|
3161
3142
|
}], sortSelectorEnabled: [{
|
|
3162
3143
|
type: i0.Input
|
|
@@ -3183,19 +3164,19 @@
|
|
|
3183
3164
|
type: i0.ViewChild,
|
|
3184
3165
|
args: ['search', {
|
|
3185
3166
|
read: i0.TemplateRef,
|
|
3186
|
-
static: true
|
|
3167
|
+
static: true,
|
|
3187
3168
|
}]
|
|
3188
3169
|
}], sortSelectorTemplate: [{
|
|
3189
3170
|
type: i0.ViewChild,
|
|
3190
3171
|
args: ['sortSelector', {
|
|
3191
3172
|
read: i0.TemplateRef,
|
|
3192
|
-
static: true
|
|
3173
|
+
static: true,
|
|
3193
3174
|
}]
|
|
3194
3175
|
}], inlineFilterButtonTemplate: [{
|
|
3195
3176
|
type: i0.ViewChild,
|
|
3196
3177
|
args: ['inlineFilterButton', {
|
|
3197
3178
|
read: i0.TemplateRef,
|
|
3198
|
-
static: true
|
|
3179
|
+
static: true,
|
|
3199
3180
|
}]
|
|
3200
3181
|
}] } });
|
|
3201
3182
|
|
|
@@ -3207,15 +3188,15 @@
|
|
|
3207
3188
|
}
|
|
3208
3189
|
return SkyListToolbarSearchActionsComponent;
|
|
3209
3190
|
}());
|
|
3210
|
-
SkyListToolbarSearchActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3211
|
-
SkyListToolbarSearchActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
3212
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3191
|
+
SkyListToolbarSearchActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarSearchActionsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3192
|
+
SkyListToolbarSearchActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListToolbarSearchActionsComponent, selector: "sky-list-toolbar-search-actions", ngImport: i0__namespace, 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__namespace.ChangeDetectionStrategy.OnPush });
|
|
3193
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarSearchActionsComponent, decorators: [{
|
|
3213
3194
|
type: i0.Component,
|
|
3214
3195
|
args: [{
|
|
3215
3196
|
selector: 'sky-list-toolbar-search-actions',
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3197
|
+
template: "<div class=\"sky-list-toolbar-search-actions\">\n <ng-content></ng-content>\n</div>\n",
|
|
3198
|
+
styles: [".sky-list-toolbar-search-actions{margin-left:10px}\n"],
|
|
3199
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3219
3200
|
}]
|
|
3220
3201
|
}] });
|
|
3221
3202
|
|
|
@@ -3224,8 +3205,8 @@
|
|
|
3224
3205
|
}
|
|
3225
3206
|
return SkyListToolbarModule;
|
|
3226
3207
|
}());
|
|
3227
|
-
SkyListToolbarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3228
|
-
SkyListToolbarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
3208
|
+
SkyListToolbarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3209
|
+
SkyListToolbarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarModule, declarations: [SkyListToolbarComponent,
|
|
3229
3210
|
SkyListToolbarItemComponent,
|
|
3230
3211
|
SkyListToolbarItemRendererComponent,
|
|
3231
3212
|
SkyListMultiselectToolbarComponent,
|
|
@@ -3245,7 +3226,7 @@
|
|
|
3245
3226
|
SkyListToolbarSearchActionsComponent,
|
|
3246
3227
|
SkyListToolbarSortComponent,
|
|
3247
3228
|
SkyListToolbarViewActionsComponent] });
|
|
3248
|
-
SkyListToolbarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
3229
|
+
SkyListToolbarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarModule, imports: [[
|
|
3249
3230
|
i4.CommonModule,
|
|
3250
3231
|
i5$1.SkyCheckboxModule,
|
|
3251
3232
|
i5.SkyI18nModule,
|
|
@@ -3255,9 +3236,9 @@
|
|
|
3255
3236
|
i3.SkyFilterModule,
|
|
3256
3237
|
SkyListFiltersModule,
|
|
3257
3238
|
i3$1.SkyIconModule,
|
|
3258
|
-
SkyListBuilderResourcesModule
|
|
3239
|
+
SkyListBuilderResourcesModule,
|
|
3259
3240
|
]] });
|
|
3260
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3241
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarModule, decorators: [{
|
|
3261
3242
|
type: i0.NgModule,
|
|
3262
3243
|
args: [{
|
|
3263
3244
|
declarations: [
|
|
@@ -3267,7 +3248,7 @@
|
|
|
3267
3248
|
SkyListMultiselectToolbarComponent,
|
|
3268
3249
|
SkyListToolbarSearchActionsComponent,
|
|
3269
3250
|
SkyListToolbarSortComponent,
|
|
3270
|
-
SkyListToolbarViewActionsComponent
|
|
3251
|
+
SkyListToolbarViewActionsComponent,
|
|
3271
3252
|
],
|
|
3272
3253
|
imports: [
|
|
3273
3254
|
i4.CommonModule,
|
|
@@ -3279,15 +3260,15 @@
|
|
|
3279
3260
|
i3.SkyFilterModule,
|
|
3280
3261
|
SkyListFiltersModule,
|
|
3281
3262
|
i3$1.SkyIconModule,
|
|
3282
|
-
SkyListBuilderResourcesModule
|
|
3263
|
+
SkyListBuilderResourcesModule,
|
|
3283
3264
|
],
|
|
3284
3265
|
exports: [
|
|
3285
3266
|
SkyListToolbarComponent,
|
|
3286
3267
|
SkyListToolbarItemComponent,
|
|
3287
3268
|
SkyListToolbarSearchActionsComponent,
|
|
3288
3269
|
SkyListToolbarSortComponent,
|
|
3289
|
-
SkyListToolbarViewActionsComponent
|
|
3290
|
-
]
|
|
3270
|
+
SkyListToolbarViewActionsComponent,
|
|
3271
|
+
],
|
|
3291
3272
|
}]
|
|
3292
3273
|
}] });
|
|
3293
3274
|
|
|
@@ -3357,19 +3338,19 @@
|
|
|
3357
3338
|
exports.SkyListSecondaryActionsModule = SkyListSecondaryActionsModule;
|
|
3358
3339
|
exports.SkyListToolbarComponent = SkyListToolbarComponent;
|
|
3359
3340
|
exports.SkyListToolbarModule = SkyListToolbarModule;
|
|
3360
|
-
exports
|
|
3361
|
-
exports
|
|
3362
|
-
exports
|
|
3363
|
-
exports
|
|
3364
|
-
exports
|
|
3365
|
-
exports
|
|
3366
|
-
exports
|
|
3367
|
-
exports
|
|
3368
|
-
exports
|
|
3369
|
-
exports
|
|
3370
|
-
exports
|
|
3341
|
+
exports["λ1"] = SkyListFilterButtonComponent;
|
|
3342
|
+
exports["λ10"] = SkyListToolbarViewActionsComponent;
|
|
3343
|
+
exports["λ11"] = SkyListToolbarSearchActionsComponent;
|
|
3344
|
+
exports["λ2"] = SkyListFilterSummaryComponent;
|
|
3345
|
+
exports["λ3"] = SkyListFilterInlineItemComponent;
|
|
3346
|
+
exports["λ4"] = SkyListFilterInlineComponent;
|
|
3347
|
+
exports["λ5"] = SkyListPagingComponent;
|
|
3348
|
+
exports["λ6"] = SkyListSecondaryActionComponent;
|
|
3349
|
+
exports["λ7"] = SkyListSecondaryActionsComponent;
|
|
3350
|
+
exports["λ8"] = SkyListToolbarItemComponent;
|
|
3351
|
+
exports["λ9"] = SkyListToolbarSortComponent;
|
|
3371
3352
|
|
|
3372
3353
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3373
3354
|
|
|
3374
|
-
}))
|
|
3355
|
+
}));
|
|
3375
3356
|
//# sourceMappingURL=skyux-list-builder.umd.js.map
|