@ng-atomic/components 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/bundles/ng-atomic-components-frames-auto-layout.umd.js +86 -0
- package/bundles/ng-atomic-components-frames-auto-layout.umd.js.map +1 -0
- package/bundles/ng-atomic-components-frames-auto-layout.umd.min.js +2 -0
- package/bundles/ng-atomic-components-frames-auto-layout.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-frames-card.umd.js +94 -0
- package/bundles/ng-atomic-components-frames-card.umd.js.map +1 -0
- package/bundles/ng-atomic-components-frames-card.umd.min.js +2 -0
- package/bundles/ng-atomic-components-frames-card.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-frames-line-up.umd.js +581 -0
- package/bundles/ng-atomic-components-frames-line-up.umd.js.map +1 -0
- package/bundles/ng-atomic-components-frames-line-up.umd.min.js +2 -0
- package/bundles/ng-atomic-components-frames-line-up.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-frames-overlay.umd.js +126 -0
- package/bundles/ng-atomic-components-frames-overlay.umd.js.map +1 -0
- package/bundles/ng-atomic-components-frames-overlay.umd.min.js +2 -0
- package/bundles/ng-atomic-components-frames-overlay.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-frames-scroll.umd.js +91 -0
- package/bundles/ng-atomic-components-frames-scroll.umd.js.map +1 -0
- package/bundles/ng-atomic-components-frames-scroll.umd.min.js +2 -0
- package/bundles/ng-atomic-components-frames-scroll.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-molecules-actions-column.umd.js +163 -0
- package/bundles/ng-atomic-components-molecules-actions-column.umd.js.map +1 -0
- package/bundles/ng-atomic-components-molecules-actions-column.umd.min.js +2 -0
- package/bundles/ng-atomic-components-molecules-actions-column.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-molecules-checkbox-column.umd.js +154 -0
- package/bundles/ng-atomic-components-molecules-checkbox-column.umd.js.map +1 -0
- package/bundles/ng-atomic-components-molecules-checkbox-column.umd.min.js +2 -0
- package/bundles/ng-atomic-components-molecules-checkbox-column.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-molecules-chips-input-field.umd.js +130 -0
- package/bundles/ng-atomic-components-molecules-chips-input-field.umd.js.map +1 -0
- package/bundles/ng-atomic-components-molecules-chips-input-field.umd.min.js +2 -0
- package/bundles/ng-atomic-components-molecules-chips-input-field.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-molecules-select-input-field.umd.js +108 -0
- package/bundles/ng-atomic-components-molecules-select-input-field.umd.js.map +1 -0
- package/bundles/ng-atomic-components-molecules-select-input-field.umd.min.js +2 -0
- package/bundles/ng-atomic-components-molecules-select-input-field.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-molecules-smart-column.umd.js +427 -0
- package/bundles/ng-atomic-components-molecules-smart-column.umd.js.map +1 -0
- package/bundles/ng-atomic-components-molecules-smart-column.umd.min.js +16 -0
- package/bundles/ng-atomic-components-molecules-smart-column.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-action-buttons-section.umd.js +101 -0
- package/bundles/ng-atomic-components-organisms-action-buttons-section.umd.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-action-buttons-section.umd.min.js +2 -0
- package/bundles/ng-atomic-components-organisms-action-buttons-section.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-back-navigator.umd.js +117 -0
- package/bundles/ng-atomic-components-organisms-back-navigator.umd.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-back-navigator.umd.min.js +2 -0
- package/bundles/ng-atomic-components-organisms-back-navigator.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-date-input-section.umd.js +430 -0
- package/bundles/ng-atomic-components-organisms-date-input-section.umd.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-date-input-section.umd.min.js +16 -0
- package/bundles/ng-atomic-components-organisms-date-input-section.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-heading.umd.js +86 -0
- package/bundles/ng-atomic-components-organisms-heading.umd.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-heading.umd.min.js +2 -0
- package/bundles/ng-atomic-components-organisms-heading.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-input-field-section.umd.js +110 -0
- package/bundles/ng-atomic-components-organisms-input-field-section.umd.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-input-field-section.umd.min.js +2 -0
- package/bundles/ng-atomic-components-organisms-input-field-section.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-menu.umd.js +96 -0
- package/bundles/ng-atomic-components-organisms-menu.umd.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-menu.umd.min.js +2 -0
- package/bundles/ng-atomic-components-organisms-menu.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-paginator.umd.js +121 -0
- package/bundles/ng-atomic-components-organisms-paginator.umd.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-paginator.umd.min.js +2 -0
- package/bundles/ng-atomic-components-organisms-paginator.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-select-input-section.umd.js +103 -0
- package/bundles/ng-atomic-components-organisms-select-input-section.umd.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-select-input-section.umd.min.js +2 -0
- package/bundles/ng-atomic-components-organisms-select-input-section.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-smart-table.umd.js +480 -0
- package/bundles/ng-atomic-components-organisms-smart-table.umd.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-smart-table.umd.min.js +16 -0
- package/bundles/ng-atomic-components-organisms-smart-table.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-social-login-section.umd.js +97 -0
- package/bundles/ng-atomic-components-organisms-social-login-section.umd.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-social-login-section.umd.min.js +2 -0
- package/bundles/ng-atomic-components-organisms-social-login-section.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-top-navigator.umd.js +112 -0
- package/bundles/ng-atomic-components-organisms-top-navigator.umd.js.map +1 -0
- package/bundles/ng-atomic-components-organisms-top-navigator.umd.min.js +2 -0
- package/bundles/ng-atomic-components-organisms-top-navigator.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-pages-_index.umd.js +89 -0
- package/bundles/ng-atomic-components-pages-_index.umd.js.map +1 -0
- package/bundles/ng-atomic-components-pages-_index.umd.min.js +2 -0
- package/bundles/ng-atomic-components-pages-_index.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-pages-blank.umd.js +84 -0
- package/bundles/ng-atomic-components-pages-blank.umd.js.map +1 -0
- package/bundles/ng-atomic-components-pages-blank.umd.min.js +2 -0
- package/bundles/ng-atomic-components-pages-blank.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-templates-entrance.umd.js +121 -0
- package/bundles/ng-atomic-components-templates-entrance.umd.js.map +1 -0
- package/bundles/ng-atomic-components-templates-entrance.umd.min.js +2 -0
- package/bundles/ng-atomic-components-templates-entrance.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-templates-loading.umd.js +94 -0
- package/bundles/ng-atomic-components-templates-loading.umd.js.map +1 -0
- package/bundles/ng-atomic-components-templates-loading.umd.min.js +2 -0
- package/bundles/ng-atomic-components-templates-loading.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-templates-smart-crud.umd.js +507 -0
- package/bundles/ng-atomic-components-templates-smart-crud.umd.js.map +1 -0
- package/bundles/ng-atomic-components-templates-smart-crud.umd.min.js +16 -0
- package/bundles/ng-atomic-components-templates-smart-crud.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components-templates-smart-index.umd.js +178 -0
- package/bundles/ng-atomic-components-templates-smart-index.umd.js.map +1 -0
- package/bundles/ng-atomic-components-templates-smart-index.umd.min.js +2 -0
- package/bundles/ng-atomic-components-templates-smart-index.umd.min.js.map +1 -0
- package/bundles/ng-atomic-components.umd.js +11 -0
- package/bundles/ng-atomic-components.umd.js.map +1 -0
- package/bundles/ng-atomic-components.umd.min.js +2 -0
- package/bundles/ng-atomic-components.umd.min.js.map +1 -0
- package/esm2015/frames/auto-layout/auto-layout.frame.js +16 -0
- package/esm2015/frames/auto-layout/auto-layout.frame.js.map +1 -0
- package/esm2015/frames/auto-layout/auto-layout.module.js +27 -0
- package/esm2015/frames/auto-layout/auto-layout.module.js.map +1 -0
- package/esm2015/frames/auto-layout/index.js +3 -0
- package/esm2015/frames/auto-layout/index.js.map +1 -0
- package/esm2015/frames/auto-layout/ng-atomic-components-frames-auto-layout.js +5 -0
- package/esm2015/frames/auto-layout/ng-atomic-components-frames-auto-layout.js.map +1 -0
- package/esm2015/frames/card/card.frame.js +17 -0
- package/esm2015/frames/card/card.frame.js.map +1 -0
- package/esm2015/frames/card/card.module.js +34 -0
- package/esm2015/frames/card/card.module.js.map +1 -0
- package/esm2015/frames/card/index.js +3 -0
- package/esm2015/frames/card/index.js.map +1 -0
- package/esm2015/frames/card/ng-atomic-components-frames-card.js +5 -0
- package/esm2015/frames/card/ng-atomic-components-frames-card.js.map +1 -0
- package/esm2015/frames/line-up/index.js +3 -0
- package/esm2015/frames/line-up/index.js.map +1 -0
- package/esm2015/frames/line-up/line-up.animations.js +67 -0
- package/esm2015/frames/line-up/line-up.animations.js.map +1 -0
- package/esm2015/frames/line-up/line-up.frame.js +68 -0
- package/esm2015/frames/line-up/line-up.frame.js.map +1 -0
- package/esm2015/frames/line-up/line-up.module.js +27 -0
- package/esm2015/frames/line-up/line-up.module.js.map +1 -0
- package/esm2015/frames/line-up/ng-atomic-components-frames-line-up.js +5 -0
- package/esm2015/frames/line-up/ng-atomic-components-frames-line-up.js.map +1 -0
- package/esm2015/frames/line-up/resize-observer.js +27 -0
- package/esm2015/frames/line-up/resize-observer.js.map +1 -0
- package/esm2015/frames/overlay/index.js +3 -0
- package/esm2015/frames/overlay/index.js.map +1 -0
- package/esm2015/frames/overlay/ng-atomic-components-frames-overlay.js +5 -0
- package/esm2015/frames/overlay/ng-atomic-components-frames-overlay.js.map +1 -0
- package/esm2015/frames/overlay/overlay.animations.js +28 -0
- package/esm2015/frames/overlay/overlay.animations.js.map +1 -0
- package/esm2015/frames/overlay/overlay.frame.js +32 -0
- package/esm2015/frames/overlay/overlay.frame.js.map +1 -0
- package/esm2015/frames/overlay/overlay.module.js +29 -0
- package/esm2015/frames/overlay/overlay.module.js.map +1 -0
- package/esm2015/frames/scroll/index.js +3 -0
- package/esm2015/frames/scroll/index.js.map +1 -0
- package/esm2015/frames/scroll/ng-atomic-components-frames-scroll.js +5 -0
- package/esm2015/frames/scroll/ng-atomic-components-frames-scroll.js.map +1 -0
- package/esm2015/frames/scroll/scroll.frame.js +17 -0
- package/esm2015/frames/scroll/scroll.frame.js.map +1 -0
- package/esm2015/frames/scroll/scroll.module.js +31 -0
- package/esm2015/frames/scroll/scroll.module.js.map +1 -0
- package/esm2015/index.js +2 -0
- package/esm2015/index.js.map +1 -0
- package/esm2015/molecules/actions-column/actions-column.module.js +46 -0
- package/esm2015/molecules/actions-column/actions-column.module.js.map +1 -0
- package/esm2015/molecules/actions-column/actions-column.molecule.js +79 -0
- package/esm2015/molecules/actions-column/actions-column.molecule.js.map +1 -0
- package/esm2015/molecules/actions-column/index.js +3 -0
- package/esm2015/molecules/actions-column/index.js.map +1 -0
- package/esm2015/molecules/actions-column/ng-atomic-components-molecules-actions-column.js +5 -0
- package/esm2015/molecules/actions-column/ng-atomic-components-molecules-actions-column.js.map +1 -0
- package/esm2015/molecules/checkbox-column/checkbox-column.module.js +43 -0
- package/esm2015/molecules/checkbox-column/checkbox-column.module.js.map +1 -0
- package/esm2015/molecules/checkbox-column/checkbox-column.molecule.js +68 -0
- package/esm2015/molecules/checkbox-column/checkbox-column.molecule.js.map +1 -0
- package/esm2015/molecules/checkbox-column/index.js +3 -0
- package/esm2015/molecules/checkbox-column/index.js.map +1 -0
- package/esm2015/molecules/checkbox-column/ng-atomic-components-molecules-checkbox-column.js +5 -0
- package/esm2015/molecules/checkbox-column/ng-atomic-components-molecules-checkbox-column.js.map +1 -0
- package/esm2015/molecules/chips-input-field/chips-input-field.module.js +46 -0
- package/esm2015/molecules/chips-input-field/chips-input-field.module.js.map +1 -0
- package/esm2015/molecules/chips-input-field/chips-input-field.molecule.js +50 -0
- package/esm2015/molecules/chips-input-field/chips-input-field.molecule.js.map +1 -0
- package/esm2015/molecules/chips-input-field/index.js +3 -0
- package/esm2015/molecules/chips-input-field/index.js.map +1 -0
- package/esm2015/molecules/chips-input-field/ng-atomic-components-molecules-chips-input-field.js +5 -0
- package/esm2015/molecules/chips-input-field/ng-atomic-components-molecules-chips-input-field.js.map +1 -0
- package/esm2015/molecules/select-input-field/index.js +3 -0
- package/esm2015/molecules/select-input-field/index.js.map +1 -0
- package/esm2015/molecules/select-input-field/ng-atomic-components-molecules-select-input-field.js +5 -0
- package/esm2015/molecules/select-input-field/ng-atomic-components-molecules-select-input-field.js.map +1 -0
- package/esm2015/molecules/select-input-field/select-input-field.module.js +38 -0
- package/esm2015/molecules/select-input-field/select-input-field.module.js.map +1 -0
- package/esm2015/molecules/select-input-field/select-input-field.molecule.js +35 -0
- package/esm2015/molecules/select-input-field/select-input-field.molecule.js.map +1 -0
- package/esm2015/molecules/smart-column/index.js +3 -0
- package/esm2015/molecules/smart-column/index.js.map +1 -0
- package/esm2015/molecules/smart-column/ng-atomic-components-molecules-smart-column.js +5 -0
- package/esm2015/molecules/smart-column/ng-atomic-components-molecules-smart-column.js.map +1 -0
- package/esm2015/molecules/smart-column/smart-column.module.js +41 -0
- package/esm2015/molecules/smart-column/smart-column.module.js.map +1 -0
- package/esm2015/molecules/smart-column/smart-column.molecule.js +31 -0
- package/esm2015/molecules/smart-column/smart-column.molecule.js.map +1 -0
- package/esm2015/ng-atomic-components.js +5 -0
- package/esm2015/ng-atomic-components.js.map +1 -0
- package/esm2015/organisms/action-buttons-section/action-buttons-section.module.js +34 -0
- package/esm2015/organisms/action-buttons-section/action-buttons-section.module.js.map +1 -0
- package/esm2015/organisms/action-buttons-section/action-buttons-section.organism.js +27 -0
- package/esm2015/organisms/action-buttons-section/action-buttons-section.organism.js.map +1 -0
- package/esm2015/organisms/action-buttons-section/index.js +3 -0
- package/esm2015/organisms/action-buttons-section/index.js.map +1 -0
- package/esm2015/organisms/action-buttons-section/ng-atomic-components-organisms-action-buttons-section.js +5 -0
- package/esm2015/organisms/action-buttons-section/ng-atomic-components-organisms-action-buttons-section.js.map +1 -0
- package/esm2015/organisms/back-navigator/back-navigator.module.js +46 -0
- package/esm2015/organisms/back-navigator/back-navigator.module.js.map +1 -0
- package/esm2015/organisms/back-navigator/back-navigator.organism.js +37 -0
- package/esm2015/organisms/back-navigator/back-navigator.organism.js.map +1 -0
- package/esm2015/organisms/back-navigator/index.js +3 -0
- package/esm2015/organisms/back-navigator/index.js.map +1 -0
- package/esm2015/organisms/back-navigator/ng-atomic-components-organisms-back-navigator.js +5 -0
- package/esm2015/organisms/back-navigator/ng-atomic-components-organisms-back-navigator.js.map +1 -0
- package/esm2015/organisms/date-input-section/date-input-section.module.js +44 -0
- package/esm2015/organisms/date-input-section/date-input-section.module.js.map +1 -0
- package/esm2015/organisms/date-input-section/date-input-section.organism.js +34 -0
- package/esm2015/organisms/date-input-section/date-input-section.organism.js.map +1 -0
- package/esm2015/organisms/date-input-section/index.js +3 -0
- package/esm2015/organisms/date-input-section/index.js.map +1 -0
- package/esm2015/organisms/date-input-section/ng-atomic-components-organisms-date-input-section.js +5 -0
- package/esm2015/organisms/date-input-section/ng-atomic-components-organisms-date-input-section.js.map +1 -0
- package/esm2015/organisms/heading/heading.module.js +27 -0
- package/esm2015/organisms/heading/heading.module.js.map +1 -0
- package/esm2015/organisms/heading/heading.organism.js +16 -0
- package/esm2015/organisms/heading/heading.organism.js.map +1 -0
- package/esm2015/organisms/heading/index.js +3 -0
- package/esm2015/organisms/heading/index.js.map +1 -0
- package/esm2015/organisms/heading/ng-atomic-components-organisms-heading.js +5 -0
- package/esm2015/organisms/heading/ng-atomic-components-organisms-heading.js.map +1 -0
- package/esm2015/organisms/input-field-section/index.js +3 -0
- package/esm2015/organisms/input-field-section/index.js.map +1 -0
- package/esm2015/organisms/input-field-section/input-field-section.module.js +42 -0
- package/esm2015/organisms/input-field-section/input-field-section.module.js.map +1 -0
- package/esm2015/organisms/input-field-section/input-field-section.organism.js +32 -0
- package/esm2015/organisms/input-field-section/input-field-section.organism.js.map +1 -0
- package/esm2015/organisms/input-field-section/ng-atomic-components-organisms-input-field-section.js +5 -0
- package/esm2015/organisms/input-field-section/ng-atomic-components-organisms-input-field-section.js.map +1 -0
- package/esm2015/organisms/menu/index.js +3 -0
- package/esm2015/organisms/menu/index.js.map +1 -0
- package/esm2015/organisms/menu/menu.module.js +31 -0
- package/esm2015/organisms/menu/menu.module.js.map +1 -0
- package/esm2015/organisms/menu/menu.organism.js +28 -0
- package/esm2015/organisms/menu/menu.organism.js.map +1 -0
- package/esm2015/organisms/menu/ng-atomic-components-organisms-menu.js +5 -0
- package/esm2015/organisms/menu/ng-atomic-components-organisms-menu.js.map +1 -0
- package/esm2015/organisms/paginator/index.js +3 -0
- package/esm2015/organisms/paginator/index.js.map +1 -0
- package/esm2015/organisms/paginator/ng-atomic-components-organisms-paginator.js +5 -0
- package/esm2015/organisms/paginator/ng-atomic-components-organisms-paginator.js.map +1 -0
- package/esm2015/organisms/paginator/paginator.module.js +48 -0
- package/esm2015/organisms/paginator/paginator.module.js.map +1 -0
- package/esm2015/organisms/paginator/paginator.organism.js +38 -0
- package/esm2015/organisms/paginator/paginator.organism.js.map +1 -0
- package/esm2015/organisms/select-input-section/index.js +3 -0
- package/esm2015/organisms/select-input-section/index.js.map +1 -0
- package/esm2015/organisms/select-input-section/ng-atomic-components-organisms-select-input-section.js +5 -0
- package/esm2015/organisms/select-input-section/ng-atomic-components-organisms-select-input-section.js.map +1 -0
- package/esm2015/organisms/select-input-section/select-input-section.module.js +34 -0
- package/esm2015/organisms/select-input-section/select-input-section.module.js.map +1 -0
- package/esm2015/organisms/select-input-section/select-input-section.organism.js +29 -0
- package/esm2015/organisms/select-input-section/select-input-section.organism.js.map +1 -0
- package/esm2015/organisms/smart-table/index.js +3 -0
- package/esm2015/organisms/smart-table/index.js.map +1 -0
- package/esm2015/organisms/smart-table/ng-atomic-components-organisms-smart-table.js +5 -0
- package/esm2015/organisms/smart-table/ng-atomic-components-organisms-smart-table.js.map +1 -0
- package/esm2015/organisms/smart-table/smart-table.module.js +72 -0
- package/esm2015/organisms/smart-table/smart-table.module.js.map +1 -0
- package/esm2015/organisms/smart-table/smart-table.organism.js +58 -0
- package/esm2015/organisms/smart-table/smart-table.organism.js.map +1 -0
- package/esm2015/organisms/social-login-section/index.js +3 -0
- package/esm2015/organisms/social-login-section/index.js.map +1 -0
- package/esm2015/organisms/social-login-section/ng-atomic-components-organisms-social-login-section.js +5 -0
- package/esm2015/organisms/social-login-section/ng-atomic-components-organisms-social-login-section.js.map +1 -0
- package/esm2015/organisms/social-login-section/social-login-section.module.js +34 -0
- package/esm2015/organisms/social-login-section/social-login-section.module.js.map +1 -0
- package/esm2015/organisms/social-login-section/social-login-section.organism.js +22 -0
- package/esm2015/organisms/social-login-section/social-login-section.organism.js.map +1 -0
- package/esm2015/organisms/top-navigator/index.js +3 -0
- package/esm2015/organisms/top-navigator/index.js.map +1 -0
- package/esm2015/organisms/top-navigator/ng-atomic-components-organisms-top-navigator.js +5 -0
- package/esm2015/organisms/top-navigator/ng-atomic-components-organisms-top-navigator.js.map +1 -0
- package/esm2015/organisms/top-navigator/top-navigator.module.js +46 -0
- package/esm2015/organisms/top-navigator/top-navigator.module.js.map +1 -0
- package/esm2015/organisms/top-navigator/top-navigator.organism.js +32 -0
- package/esm2015/organisms/top-navigator/top-navigator.organism.js.map +1 -0
- package/esm2015/pages/_index/index.js +3 -0
- package/esm2015/pages/_index/index.js.map +1 -0
- package/esm2015/pages/_index/index.module.js +33 -0
- package/esm2015/pages/_index/index.module.js.map +1 -0
- package/esm2015/pages/_index/index.page.js +15 -0
- package/esm2015/pages/_index/index.page.js.map +1 -0
- package/esm2015/pages/_index/ng-atomic-components-pages-_index.js +5 -0
- package/esm2015/pages/_index/ng-atomic-components-pages-_index.js.map +1 -0
- package/esm2015/pages/blank/blank.module.js +28 -0
- package/esm2015/pages/blank/blank.module.js.map +1 -0
- package/esm2015/pages/blank/blank.page.js +15 -0
- package/esm2015/pages/blank/blank.page.js.map +1 -0
- package/esm2015/pages/blank/index.js +3 -0
- package/esm2015/pages/blank/index.js.map +1 -0
- package/esm2015/pages/blank/ng-atomic-components-pages-blank.js +5 -0
- package/esm2015/pages/blank/ng-atomic-components-pages-blank.js.map +1 -0
- package/esm2015/templates/entrance/entrance.module.js +57 -0
- package/esm2015/templates/entrance/entrance.module.js.map +1 -0
- package/esm2015/templates/entrance/entrance.template.js +34 -0
- package/esm2015/templates/entrance/entrance.template.js.map +1 -0
- package/esm2015/templates/entrance/index.js +3 -0
- package/esm2015/templates/entrance/index.js.map +1 -0
- package/esm2015/templates/entrance/ng-atomic-components-templates-entrance.js +5 -0
- package/esm2015/templates/entrance/ng-atomic-components-templates-entrance.js.map +1 -0
- package/esm2015/templates/loading/index.js +3 -0
- package/esm2015/templates/loading/index.js.map +1 -0
- package/esm2015/templates/loading/loading.module.js +34 -0
- package/esm2015/templates/loading/loading.module.js.map +1 -0
- package/esm2015/templates/loading/loading.template.js +17 -0
- package/esm2015/templates/loading/loading.template.js.map +1 -0
- package/esm2015/templates/loading/ng-atomic-components-templates-loading.js +5 -0
- package/esm2015/templates/loading/ng-atomic-components-templates-loading.js.map +1 -0
- package/esm2015/templates/smart-crud/index.js +3 -0
- package/esm2015/templates/smart-crud/index.js.map +1 -0
- package/esm2015/templates/smart-crud/ng-atomic-components-templates-smart-crud.js +5 -0
- package/esm2015/templates/smart-crud/ng-atomic-components-templates-smart-crud.js.map +1 -0
- package/esm2015/templates/smart-crud/smart-crud.module.js +76 -0
- package/esm2015/templates/smart-crud/smart-crud.module.js.map +1 -0
- package/esm2015/templates/smart-crud/smart-crud.template.js +77 -0
- package/esm2015/templates/smart-crud/smart-crud.template.js.map +1 -0
- package/esm2015/templates/smart-index/index.js +3 -0
- package/esm2015/templates/smart-index/index.js.map +1 -0
- package/esm2015/templates/smart-index/ng-atomic-components-templates-smart-index.js +5 -0
- package/esm2015/templates/smart-index/ng-atomic-components-templates-smart-index.js.map +1 -0
- package/esm2015/templates/smart-index/smart-index.module.js +53 -0
- package/esm2015/templates/smart-index/smart-index.module.js.map +1 -0
- package/esm2015/templates/smart-index/smart-index.template.js +81 -0
- package/esm2015/templates/smart-index/smart-index.template.js.map +1 -0
- package/fesm2015/ng-atomic-components-frames-auto-layout.js +47 -0
- package/fesm2015/ng-atomic-components-frames-auto-layout.js.map +1 -0
- package/fesm2015/ng-atomic-components-frames-card.js +54 -0
- package/fesm2015/ng-atomic-components-frames-card.js.map +1 -0
- package/fesm2015/ng-atomic-components-frames-line-up.js +189 -0
- package/fesm2015/ng-atomic-components-frames-line-up.js.map +1 -0
- package/fesm2015/ng-atomic-components-frames-overlay.js +90 -0
- package/fesm2015/ng-atomic-components-frames-overlay.js.map +1 -0
- package/fesm2015/ng-atomic-components-frames-scroll.js +51 -0
- package/fesm2015/ng-atomic-components-frames-scroll.js.map +1 -0
- package/fesm2015/ng-atomic-components-molecules-actions-column.js +123 -0
- package/fesm2015/ng-atomic-components-molecules-actions-column.js.map +1 -0
- package/fesm2015/ng-atomic-components-molecules-checkbox-column.js +112 -0
- package/fesm2015/ng-atomic-components-molecules-checkbox-column.js.map +1 -0
- package/fesm2015/ng-atomic-components-molecules-chips-input-field.js +96 -0
- package/fesm2015/ng-atomic-components-molecules-chips-input-field.js.map +1 -0
- package/fesm2015/ng-atomic-components-molecules-select-input-field.js +74 -0
- package/fesm2015/ng-atomic-components-molecules-select-input-field.js.map +1 -0
- package/fesm2015/ng-atomic-components-molecules-smart-column.js +72 -0
- package/fesm2015/ng-atomic-components-molecules-smart-column.js.map +1 -0
- package/fesm2015/ng-atomic-components-organisms-action-buttons-section.js +63 -0
- package/fesm2015/ng-atomic-components-organisms-action-buttons-section.js.map +1 -0
- package/fesm2015/ng-atomic-components-organisms-back-navigator.js +82 -0
- package/fesm2015/ng-atomic-components-organisms-back-navigator.js.map +1 -0
- package/fesm2015/ng-atomic-components-organisms-date-input-section.js +79 -0
- package/fesm2015/ng-atomic-components-organisms-date-input-section.js.map +1 -0
- package/fesm2015/ng-atomic-components-organisms-heading.js +47 -0
- package/fesm2015/ng-atomic-components-organisms-heading.js.map +1 -0
- package/fesm2015/ng-atomic-components-organisms-input-field-section.js +75 -0
- package/fesm2015/ng-atomic-components-organisms-input-field-section.js.map +1 -0
- package/fesm2015/ng-atomic-components-organisms-menu.js +60 -0
- package/fesm2015/ng-atomic-components-organisms-menu.js.map +1 -0
- package/fesm2015/ng-atomic-components-organisms-paginator.js +86 -0
- package/fesm2015/ng-atomic-components-organisms-paginator.js.map +1 -0
- package/fesm2015/ng-atomic-components-organisms-select-input-section.js +66 -0
- package/fesm2015/ng-atomic-components-organisms-select-input-section.js.map +1 -0
- package/fesm2015/ng-atomic-components-organisms-smart-table.js +128 -0
- package/fesm2015/ng-atomic-components-organisms-smart-table.js.map +1 -0
- package/fesm2015/ng-atomic-components-organisms-social-login-section.js +59 -0
- package/fesm2015/ng-atomic-components-organisms-social-login-section.js.map +1 -0
- package/fesm2015/ng-atomic-components-organisms-top-navigator.js +77 -0
- package/fesm2015/ng-atomic-components-organisms-top-navigator.js.map +1 -0
- package/fesm2015/ng-atomic-components-pages-_index.js +51 -0
- package/fesm2015/ng-atomic-components-pages-_index.js.map +1 -0
- package/fesm2015/ng-atomic-components-pages-blank.js +46 -0
- package/fesm2015/ng-atomic-components-pages-blank.js.map +1 -0
- package/fesm2015/ng-atomic-components-templates-entrance.js +88 -0
- package/fesm2015/ng-atomic-components-templates-entrance.js.map +1 -0
- package/fesm2015/ng-atomic-components-templates-loading.js +54 -0
- package/fesm2015/ng-atomic-components-templates-loading.js.map +1 -0
- package/fesm2015/ng-atomic-components-templates-smart-crud.js +147 -0
- package/fesm2015/ng-atomic-components-templates-smart-crud.js.map +1 -0
- package/fesm2015/ng-atomic-components-templates-smart-index.js +133 -0
- package/fesm2015/ng-atomic-components-templates-smart-index.js.map +1 -0
- package/fesm2015/ng-atomic-components.js +4 -0
- package/fesm2015/ng-atomic-components.js.map +1 -0
- package/frames/auto-layout/auto-layout.frame.d.ts +5 -0
- package/frames/auto-layout/auto-layout.module.d.ts +8 -0
- package/frames/auto-layout/index.d.ts +2 -0
- package/frames/auto-layout/ng-atomic-components-frames-auto-layout.d.ts +5 -0
- package/frames/auto-layout/package.json +10 -0
- package/frames/card/card.frame.d.ts +5 -0
- package/frames/card/card.module.d.ts +9 -0
- package/frames/card/index.d.ts +2 -0
- package/frames/card/ng-atomic-components-frames-card.d.ts +5 -0
- package/frames/card/package.json +10 -0
- package/frames/line-up/index.d.ts +2 -0
- package/frames/line-up/line-up.animations.d.ts +1 -0
- package/frames/line-up/line-up.frame.d.ts +24 -0
- package/frames/line-up/line-up.module.d.ts +9 -0
- package/frames/line-up/ng-atomic-components-frames-line-up.d.ts +5 -0
- package/frames/line-up/package.json +10 -0
- package/frames/line-up/resize-observer.d.ts +16 -0
- package/frames/overlay/index.d.ts +2 -0
- package/frames/overlay/ng-atomic-components-frames-overlay.d.ts +5 -0
- package/frames/overlay/overlay.animations.d.ts +1 -0
- package/frames/overlay/overlay.frame.d.ts +9 -0
- package/frames/overlay/overlay.module.d.ts +9 -0
- package/frames/overlay/package.json +10 -0
- package/frames/scroll/index.d.ts +2 -0
- package/frames/scroll/ng-atomic-components-frames-scroll.d.ts +5 -0
- package/frames/scroll/package.json +10 -0
- package/frames/scroll/scroll.frame.d.ts +5 -0
- package/frames/scroll/scroll.module.d.ts +9 -0
- package/index.d.ts +1 -0
- package/molecules/actions-column/actions-column.module.d.ts +12 -0
- package/molecules/actions-column/actions-column.molecule.d.ts +22 -0
- package/molecules/actions-column/index.d.ts +2 -0
- package/molecules/actions-column/ng-atomic-components-molecules-actions-column.d.ts +5 -0
- package/molecules/actions-column/package.json +10 -0
- package/molecules/checkbox-column/checkbox-column.module.d.ts +10 -0
- package/molecules/checkbox-column/checkbox-column.molecule.d.ts +20 -0
- package/molecules/checkbox-column/index.d.ts +2 -0
- package/molecules/checkbox-column/ng-atomic-components-molecules-checkbox-column.d.ts +5 -0
- package/molecules/checkbox-column/package.json +10 -0
- package/molecules/chips-input-field/chips-input-field.module.d.ts +12 -0
- package/molecules/chips-input-field/chips-input-field.molecule.d.ts +18 -0
- package/molecules/chips-input-field/index.d.ts +2 -0
- package/molecules/chips-input-field/ng-atomic-components-molecules-chips-input-field.d.ts +5 -0
- package/molecules/chips-input-field/package.json +10 -0
- package/molecules/select-input-field/index.d.ts +2 -0
- package/molecules/select-input-field/ng-atomic-components-molecules-select-input-field.d.ts +5 -0
- package/molecules/select-input-field/package.json +10 -0
- package/molecules/select-input-field/select-input-field.module.d.ts +10 -0
- package/molecules/select-input-field/select-input-field.molecule.d.ts +15 -0
- package/molecules/smart-column/index.d.ts +2 -0
- package/molecules/smart-column/ng-atomic-components-molecules-smart-column.d.ts +5 -0
- package/molecules/smart-column/package.json +10 -0
- package/molecules/smart-column/smart-column.module.d.ts +10 -0
- package/molecules/smart-column/smart-column.molecule.d.ts +7 -0
- package/ng-atomic-components.d.ts +5 -0
- package/organisms/action-buttons-section/action-buttons-section.module.d.ts +9 -0
- package/organisms/action-buttons-section/action-buttons-section.organism.d.ts +9 -0
- package/organisms/action-buttons-section/index.d.ts +2 -0
- package/organisms/action-buttons-section/ng-atomic-components-organisms-action-buttons-section.d.ts +5 -0
- package/organisms/action-buttons-section/package.json +10 -0
- package/organisms/back-navigator/back-navigator.module.d.ts +12 -0
- package/organisms/back-navigator/back-navigator.organism.d.ts +12 -0
- package/organisms/back-navigator/index.d.ts +2 -0
- package/organisms/back-navigator/ng-atomic-components-organisms-back-navigator.d.ts +5 -0
- package/organisms/back-navigator/package.json +10 -0
- package/organisms/date-input-section/date-input-section.module.d.ts +12 -0
- package/organisms/date-input-section/date-input-section.organism.d.ts +11 -0
- package/organisms/date-input-section/index.d.ts +2 -0
- package/organisms/date-input-section/ng-atomic-components-organisms-date-input-section.d.ts +5 -0
- package/organisms/date-input-section/package.json +10 -0
- package/organisms/heading/heading.module.d.ts +8 -0
- package/organisms/heading/heading.organism.d.ts +5 -0
- package/organisms/heading/index.d.ts +2 -0
- package/organisms/heading/ng-atomic-components-organisms-heading.d.ts +5 -0
- package/organisms/heading/package.json +10 -0
- package/organisms/input-field-section/index.d.ts +2 -0
- package/organisms/input-field-section/input-field-section.module.d.ts +11 -0
- package/organisms/input-field-section/input-field-section.organism.d.ts +9 -0
- package/organisms/input-field-section/ng-atomic-components-organisms-input-field-section.d.ts +5 -0
- package/organisms/input-field-section/package.json +10 -0
- package/organisms/menu/index.d.ts +2 -0
- package/organisms/menu/menu.module.d.ts +10 -0
- package/organisms/menu/menu.organism.d.ts +9 -0
- package/organisms/menu/ng-atomic-components-organisms-menu.d.ts +5 -0
- package/organisms/menu/package.json +10 -0
- package/organisms/paginator/index.d.ts +2 -0
- package/organisms/paginator/ng-atomic-components-organisms-paginator.d.ts +5 -0
- package/organisms/paginator/package.json +10 -0
- package/organisms/paginator/paginator.module.d.ts +11 -0
- package/organisms/paginator/paginator.organism.d.ts +13 -0
- package/organisms/select-input-section/index.d.ts +2 -0
- package/organisms/select-input-section/ng-atomic-components-organisms-select-input-section.d.ts +5 -0
- package/organisms/select-input-section/package.json +10 -0
- package/organisms/select-input-section/select-input-section.module.d.ts +9 -0
- package/organisms/select-input-section/select-input-section.organism.d.ts +12 -0
- package/organisms/smart-table/index.d.ts +2 -0
- package/organisms/smart-table/ng-atomic-components-organisms-smart-table.d.ts +5 -0
- package/organisms/smart-table/package.json +10 -0
- package/organisms/smart-table/smart-table.module.d.ts +17 -0
- package/organisms/smart-table/smart-table.organism.d.ts +18 -0
- package/organisms/social-login-section/index.d.ts +2 -0
- package/organisms/social-login-section/ng-atomic-components-organisms-social-login-section.d.ts +5 -0
- package/organisms/social-login-section/package.json +10 -0
- package/organisms/social-login-section/social-login-section.module.d.ts +9 -0
- package/organisms/social-login-section/social-login-section.organism.d.ts +7 -0
- package/organisms/top-navigator/index.d.ts +2 -0
- package/organisms/top-navigator/ng-atomic-components-organisms-top-navigator.d.ts +5 -0
- package/organisms/top-navigator/package.json +10 -0
- package/organisms/top-navigator/top-navigator.module.d.ts +12 -0
- package/organisms/top-navigator/top-navigator.organism.d.ts +13 -0
- package/package.json +30 -0
- package/pages/_index/index.d.ts +2 -0
- package/pages/_index/index.module.d.ts +9 -0
- package/pages/_index/index.page.d.ts +5 -0
- package/pages/_index/ng-atomic-components-pages-_index.d.ts +5 -0
- package/pages/_index/package.json +10 -0
- package/pages/blank/blank.module.d.ts +9 -0
- package/pages/blank/blank.page.d.ts +5 -0
- package/pages/blank/index.d.ts +2 -0
- package/pages/blank/ng-atomic-components-pages-blank.d.ts +5 -0
- package/pages/blank/package.json +10 -0
- package/templates/entrance/entrance.module.d.ts +14 -0
- package/templates/entrance/entrance.template.d.ts +9 -0
- package/templates/entrance/index.d.ts +2 -0
- package/templates/entrance/ng-atomic-components-templates-entrance.d.ts +5 -0
- package/templates/entrance/package.json +10 -0
- package/templates/loading/index.d.ts +2 -0
- package/templates/loading/loading.module.d.ts +9 -0
- package/templates/loading/loading.template.d.ts +5 -0
- package/templates/loading/ng-atomic-components-templates-loading.d.ts +5 -0
- package/templates/loading/package.json +10 -0
- package/templates/smart-crud/index.d.ts +2 -0
- package/templates/smart-crud/ng-atomic-components-templates-smart-crud.d.ts +5 -0
- package/templates/smart-crud/package.json +10 -0
- package/templates/smart-crud/smart-crud.module.d.ts +17 -0
- package/templates/smart-crud/smart-crud.template.d.ts +22 -0
- package/templates/smart-index/index.d.ts +2 -0
- package/templates/smart-index/ng-atomic-components-templates-smart-index.d.ts +5 -0
- package/templates/smart-index/package.json +10 -0
- package/templates/smart-index/smart-index.module.d.ts +13 -0
- package/templates/smart-index/smart-index.template.d.ts +31 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/table'), require('@angular/material/menu'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/cdk/table')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@ng-atomic/components/molecules/actions-column', ['exports', '@angular/core', '@angular/common', '@angular/material/table', '@angular/material/menu', '@angular/material/button', '@angular/material/icon', '@angular/cdk/table'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['ng-atomic'] = global['ng-atomic'] || {}, global['ng-atomic'].components = global['ng-atomic'].components || {}, global['ng-atomic'].components.molecules = global['ng-atomic'].components.molecules || {}, global['ng-atomic'].components.molecules['actions-column'] = {}), global.ng.core, global.ng.common, global.ng.material.table, global.ng.material.menu, global.ng.material.button, global.ng.material.icon, global.ng.cdk.table));
|
|
5
|
+
}(this, (function (exports, i0, i3, i2, i5, i4, i6, i1) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return e[k];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n['default'] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
+
|
|
29
|
+
var ActionsColumnMolecule = /** @class */ (function () {
|
|
30
|
+
function ActionsColumnMolecule(_table, _options) {
|
|
31
|
+
var _a;
|
|
32
|
+
this._table = _table;
|
|
33
|
+
this._options = _options;
|
|
34
|
+
this.actionItems = [];
|
|
35
|
+
this.actionItemClick = new i0.EventEmitter();
|
|
36
|
+
(_a = this._options) !== null && _a !== void 0 ? _a : (this._options = {});
|
|
37
|
+
}
|
|
38
|
+
Object.defineProperty(ActionsColumnMolecule.prototype, "name", {
|
|
39
|
+
get: function () {
|
|
40
|
+
return this._name;
|
|
41
|
+
},
|
|
42
|
+
set: function (name) {
|
|
43
|
+
this._name = name;
|
|
44
|
+
this._syncColumnDefName();
|
|
45
|
+
},
|
|
46
|
+
enumerable: false,
|
|
47
|
+
configurable: true
|
|
48
|
+
});
|
|
49
|
+
ActionsColumnMolecule.prototype.ngOnInit = function () {
|
|
50
|
+
this._syncColumnDefName();
|
|
51
|
+
if (this._table) {
|
|
52
|
+
this.columnDef.cell = this.cell;
|
|
53
|
+
this.columnDef.headerCell = this.headerCell;
|
|
54
|
+
this._table.addColumnDef(this.columnDef);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
ActionsColumnMolecule.prototype.ngOnDestroy = function () {
|
|
58
|
+
if (this._table) {
|
|
59
|
+
this._table.removeColumnDef(this.columnDef);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
ActionsColumnMolecule.prototype._syncColumnDefName = function () {
|
|
63
|
+
if (this.columnDef) {
|
|
64
|
+
this.columnDef.name = this.name;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
return ActionsColumnMolecule;
|
|
68
|
+
}());
|
|
69
|
+
ActionsColumnMolecule.ɵfac = function ActionsColumnMolecule_Factory(t) { return new (t || ActionsColumnMolecule)(i0.ɵɵdirectiveInject(i1.CdkTable, 8), i0.ɵɵdirectiveInject(i1.TEXT_COLUMN_OPTIONS, 8)); };
|
|
70
|
+
ActionsColumnMolecule.ɵcmp = i0.ɵɵngDeclareComponent({ version: "11.2.14", type: ActionsColumnMolecule, selector: "molecules-actions-column", inputs: { name: "name", actionItems: "actionItems" }, outputs: { actionItemClick: "actionItemClick" }, viewQueries: [{ propertyName: "columnDef", first: true, predicate: i1.CdkColumnDef, emitDistinctChangesOnly: false, descendants: true, static: true }, { propertyName: "cell", first: true, predicate: i1.CdkCellDef, emitDistinctChangesOnly: false, descendants: true, static: true }, { propertyName: "headerCell", first: true, predicate: i1.CdkHeaderCellDef, emitDistinctChangesOnly: false, descendants: true, static: true }], ngImport: i0__namespace, template: "<ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef>\u64CD\u4F5C</th>\n <td mat-cell *matCellDef=\"let item\">\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" *ngIf=\"actionItems?.length\"><mat-icon>menu</mat-icon></button>\n <mat-menu #menu=\"matMenu\">\n <button *ngFor=\"let actionItem of actionItems\" mat-menu-item (click)=\"actionItemClick.emit([actionItem, item])\">\n {{ actionItem?.name }}\n </button>\n </mat-menu>\n </td>\n</ng-container>\n", styles: [""], directives: [{ type: i2.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { type: i2.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { type: i2.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { type: i2.MatCellDef, selector: "[matCellDef]" }, { type: i2.MatCell, selector: "mat-cell, td[mat-cell]" }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["matMenuTriggerRestoreFocus", "mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i5.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
71
|
+
(function () {
|
|
72
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActionsColumnMolecule, [{
|
|
73
|
+
type: i0.Component,
|
|
74
|
+
args: [{
|
|
75
|
+
selector: 'molecules-actions-column',
|
|
76
|
+
templateUrl: './actions-column.molecule.html',
|
|
77
|
+
styleUrls: ['./actions-column.molecule.scss'],
|
|
78
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
79
|
+
changeDetection: i0.ChangeDetectionStrategy.Default,
|
|
80
|
+
}]
|
|
81
|
+
}], function () {
|
|
82
|
+
return [{ type: i1.CdkTable, decorators: [{
|
|
83
|
+
type: i0.Optional
|
|
84
|
+
}] }, { type: undefined, decorators: [{
|
|
85
|
+
type: i0.Optional
|
|
86
|
+
}, {
|
|
87
|
+
type: i0.Inject,
|
|
88
|
+
args: [i1.TEXT_COLUMN_OPTIONS]
|
|
89
|
+
}] }];
|
|
90
|
+
}, { name: [{
|
|
91
|
+
type: i0.Input
|
|
92
|
+
}], actionItems: [{
|
|
93
|
+
type: i0.Input
|
|
94
|
+
}], actionItemClick: [{
|
|
95
|
+
type: i0.Output
|
|
96
|
+
}], columnDef: [{
|
|
97
|
+
type: i0.ViewChild,
|
|
98
|
+
args: [i1.CdkColumnDef, { static: true }]
|
|
99
|
+
}], cell: [{
|
|
100
|
+
type: i0.ViewChild,
|
|
101
|
+
args: [i1.CdkCellDef, { static: true }]
|
|
102
|
+
}], headerCell: [{
|
|
103
|
+
type: i0.ViewChild,
|
|
104
|
+
args: [i1.CdkHeaderCellDef, { static: true }]
|
|
105
|
+
}] });
|
|
106
|
+
})();
|
|
107
|
+
|
|
108
|
+
var ActionsColumnModule = /** @class */ (function () {
|
|
109
|
+
function ActionsColumnModule() {
|
|
110
|
+
}
|
|
111
|
+
return ActionsColumnModule;
|
|
112
|
+
}());
|
|
113
|
+
ActionsColumnModule.ɵfac = function ActionsColumnModule_Factory(t) { return new (t || ActionsColumnModule)(); };
|
|
114
|
+
ActionsColumnModule.ɵmod = i0.ɵɵdefineNgModule({ type: ActionsColumnModule });
|
|
115
|
+
ActionsColumnModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
116
|
+
i3.CommonModule,
|
|
117
|
+
// Materials
|
|
118
|
+
i2.MatTableModule,
|
|
119
|
+
i5.MatMenuModule,
|
|
120
|
+
i4.MatButtonModule,
|
|
121
|
+
i6.MatIconModule,
|
|
122
|
+
]] });
|
|
123
|
+
(function () {
|
|
124
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ActionsColumnModule, { declarations: [ActionsColumnMolecule], imports: [i3.CommonModule,
|
|
125
|
+
// Materials
|
|
126
|
+
i2.MatTableModule,
|
|
127
|
+
i5.MatMenuModule,
|
|
128
|
+
i4.MatButtonModule,
|
|
129
|
+
i6.MatIconModule], exports: [ActionsColumnMolecule] });
|
|
130
|
+
})();
|
|
131
|
+
(function () {
|
|
132
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActionsColumnModule, [{
|
|
133
|
+
type: i0.NgModule,
|
|
134
|
+
args: [{
|
|
135
|
+
declarations: [
|
|
136
|
+
ActionsColumnMolecule
|
|
137
|
+
],
|
|
138
|
+
imports: [
|
|
139
|
+
i3.CommonModule,
|
|
140
|
+
// Materials
|
|
141
|
+
i2.MatTableModule,
|
|
142
|
+
i5.MatMenuModule,
|
|
143
|
+
i4.MatButtonModule,
|
|
144
|
+
i6.MatIconModule,
|
|
145
|
+
],
|
|
146
|
+
exports: [
|
|
147
|
+
ActionsColumnMolecule
|
|
148
|
+
]
|
|
149
|
+
}]
|
|
150
|
+
}], null, null);
|
|
151
|
+
})();
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Generated bundle index. Do not edit.
|
|
155
|
+
*/
|
|
156
|
+
|
|
157
|
+
exports.ActionsColumnModule = ActionsColumnModule;
|
|
158
|
+
exports.ActionsColumnMolecule = ActionsColumnMolecule;
|
|
159
|
+
|
|
160
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
161
|
+
|
|
162
|
+
})));
|
|
163
|
+
//# sourceMappingURL=ng-atomic-components-molecules-actions-column.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-molecules-actions-column.umd.js","sources":["../../../../libs/components/molecules/actions-column/actions-column.molecule.ts","../../../../libs/components/molecules/actions-column/actions-column.molecule.html","../../../../libs/components/molecules/actions-column/actions-column.module.ts","../../../../libs/components/molecules/actions-column/ng-atomic-components-molecules-actions-column.ts"],"sourcesContent":["import { CdkCellDef, CdkColumnDef, CdkHeaderCellDef, CdkTable, TextColumnOptions, TEXT_COLUMN_OPTIONS } from '@angular/cdk/table';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, Optional, Output, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { ActionItem } from '@ng-atomic/common/models';\n\n@Component({\n selector: 'molecules-actions-column',\n templateUrl: './actions-column.molecule.html',\n styleUrls: ['./actions-column.molecule.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class ActionsColumnMolecule<T> {\n @Input()\n get name(): string {\n return this._name;\n }\n set name(name: string) {\n this._name = name;\n this._syncColumnDefName();\n }\n _name!: string;\n\n @Input()\n actionItems: ActionItem[] = [];\n\n\n @Output()\n actionItemClick = new EventEmitter<[ActionItem, T]>();\n\n @ViewChild(CdkColumnDef, {static: true})\n columnDef!: CdkColumnDef;\n \n @ViewChild(CdkCellDef, {static: true})\n cell!: CdkCellDef;\n\n @ViewChild(CdkHeaderCellDef, {static: true})\n headerCell!: CdkHeaderCellDef;\n\n constructor(\n @Optional() private _table: CdkTable<T>,\n @Optional() @Inject(TEXT_COLUMN_OPTIONS) private _options: TextColumnOptions<T>,\n ) {\n this._options ??= {};\n }\n\n ngOnInit() {\n this._syncColumnDefName();\n\n if (this._table) {\n this.columnDef.cell = this.cell;\n this.columnDef.headerCell = this.headerCell;\n this._table.addColumnDef(this.columnDef);\n }\n }\n\n ngOnDestroy() {\n if (this._table) {\n this._table.removeColumnDef(this.columnDef);\n }\n }\n\n private _syncColumnDefName() {\n if (this.columnDef) {\n this.columnDef.name = this.name;\n }\n }\n}\n","<ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef>操作</th>\n <td mat-cell *matCellDef=\"let item\">\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" *ngIf=\"actionItems?.length\"><mat-icon>menu</mat-icon></button>\n <mat-menu #menu=\"matMenu\">\n <button *ngFor=\"let actionItem of actionItems\" mat-menu-item (click)=\"actionItemClick.emit([actionItem, item])\">\n {{ actionItem?.name }}\n </button>\n </mat-menu>\n </td>\n</ng-container>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\n\nimport { ActionsColumnMolecule } from './actions-column.molecule';\n\n@NgModule({\n declarations: [\n ActionsColumnMolecule\n ],\n imports: [\n CommonModule,\n // Materials\n MatTableModule,\n MatMenuModule,\n MatButtonModule,\n MatIconModule,\n ],\n exports: [\n ActionsColumnMolecule\n ]\n})\nexport class ActionsColumnModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["EventEmitter","TEXT_COLUMN_OPTIONS","CdkColumnDef","CdkCellDef","CdkHeaderCellDef","Component","ViewEncapsulation","ChangeDetectionStrategy","Optional","Inject","Input","Output","ViewChild","CommonModule","MatTableModule","MatMenuModule","MatButtonModule","MatIconModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAsCE,+BACsB,MAAmB,EACU,QAA8B;;YAD3D,WAAM,GAAN,MAAM,CAAa;YACU,aAAQ,GAAR,QAAQ,CAAsB;YAjBjF,gBAAW,GAAiB,EAAE,CAAC;YAI/B,oBAAe,GAAG,IAAIA,eAAY,EAAmB,CAAC;YAepD,MAAA,IAAI,CAAC,QAAQ,oCAAb,IAAI,CAAC,QAAQ,GAAK,EAAE,EAAC;SACtB;QA/BD,sBACI,uCAAI;iBADR;gBAEE,OAAO,IAAI,CAAC,KAAK,CAAC;aACnB;iBACD,UAAS,IAAY;gBACnB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;gBAClB,IAAI,CAAC,kBAAkB,EAAE,CAAC;aAC3B;;;WAJA;QA8BD,wCAAQ,GAAR;YACE,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAE1B,IAAI,IAAI,CAAC,MAAM,EAAE;gBACf,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;gBAChC,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;gBAC5C,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC1C;SACF;QAED,2CAAW,GAAX;YACE,IAAI,IAAI,CAAC,MAAM,EAAE;gBACf,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC7C;SACF;QAEO,kDAAkB,GAAlB;YACN,IAAI,IAAI,CAAC,SAAS,EAAE;gBAClB,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC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qBACF;;;;ICxBD;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/material/table"),require("@angular/material/menu"),require("@angular/material/button"),require("@angular/material/icon"),require("@angular/cdk/table")):"function"==typeof define&&define.amd?define("@ng-atomic/components/molecules/actions-column",["exports","@angular/core","@angular/common","@angular/material/table","@angular/material/menu","@angular/material/button","@angular/material/icon","@angular/cdk/table"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["ng-atomic"]=e["ng-atomic"]||{},e["ng-atomic"].components=e["ng-atomic"].components||{},e["ng-atomic"].components.molecules=e["ng-atomic"].components.molecules||{},e["ng-atomic"].components.molecules["actions-column"]={}),e.ng.core,e.ng.common,e.ng.material.table,e.ng.material.menu,e.ng.material.button,e.ng.material.icon,e.ng.cdk.table)}(this,(function(e,t,n,o,a,l,i,r){"use strict";function u(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var c=u(t),m=function(){function e(e,n){var o;this._table=e,this._options=n,this.actionItems=[],this.actionItemClick=new t.EventEmitter,null!==(o=this._options)&&void 0!==o||(this._options={})}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e,this._syncColumnDefName()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._syncColumnDefName(),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))},e.prototype.ngOnDestroy=function(){this._table&&this._table.removeColumnDef(this.columnDef)},e.prototype._syncColumnDefName=function(){this.columnDef&&(this.columnDef.name=this.name)},e}();m.ɵfac=function(e){return new(e||m)(t.ɵɵdirectiveInject(r.CdkTable,8),t.ɵɵdirectiveInject(r.TEXT_COLUMN_OPTIONS,8))},m.ɵcmp=t.ɵɵngDeclareComponent({version:"11.2.14",type:m,selector:"molecules-actions-column",inputs:{name:"name",actionItems:"actionItems"},outputs:{actionItemClick:"actionItemClick"},viewQueries:[{propertyName:"columnDef",first:!0,predicate:r.CdkColumnDef,emitDistinctChangesOnly:!1,descendants:!0,static:!0},{propertyName:"cell",first:!0,predicate:r.CdkCellDef,emitDistinctChangesOnly:!1,descendants:!0,static:!0},{propertyName:"headerCell",first:!0,predicate:r.CdkHeaderCellDef,emitDistinctChangesOnly:!1,descendants:!0,static:!0}],ngImport:c,template:'<ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef>操作</th>\n <td mat-cell *matCellDef="let item">\n <button mat-icon-button [matMenuTriggerFor]="menu" *ngIf="actionItems?.length"><mat-icon>menu</mat-icon></button>\n <mat-menu #menu="matMenu">\n <button *ngFor="let actionItem of actionItems" mat-menu-item (click)="actionItemClick.emit([actionItem, item])">\n {{ actionItem?.name }}\n </button>\n </mat-menu>\n </td>\n</ng-container>\n',styles:[""],directives:[{type:o.MatColumnDef,selector:"[matColumnDef]",inputs:["sticky","matColumnDef"]},{type:o.MatHeaderCellDef,selector:"[matHeaderCellDef]"},{type:o.MatHeaderCell,selector:"mat-header-cell, th[mat-header-cell]"},{type:o.MatCellDef,selector:"[matCellDef]"},{type:o.MatCell,selector:"mat-cell, td[mat-cell]"},{type:n.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:l.MatButton,selector:"button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]",inputs:["disabled","disableRipple","color"],exportAs:["matButton"]},{type:a.MatMenuTrigger,selector:"[mat-menu-trigger-for], [matMenuTriggerFor]",inputs:["matMenuTriggerRestoreFocus","mat-menu-trigger-for","matMenuTriggerFor","matMenuTriggerData"],outputs:["menuOpened","onMenuOpen","menuClosed","onMenuClose"],exportAs:["matMenuTrigger"]},{type:i.MatIcon,selector:"mat-icon",inputs:["color","inline","svgIcon","fontSet","fontIcon"],exportAs:["matIcon"]},{type:a.MatMenu,selector:"mat-menu",exportAs:["matMenu"]},{type:n.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:a.MatMenuItem,selector:"[mat-menu-item]",inputs:["disabled","disableRipple","role"],exportAs:["matMenuItem"]}],changeDetection:t.ChangeDetectionStrategy.Default,encapsulation:t.ViewEncapsulation.None}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(m,[{type:t.Component,args:[{selector:"molecules-actions-column",templateUrl:"./actions-column.molecule.html",styleUrls:["./actions-column.molecule.scss"],encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.Default}]}],(function(){return[{type:r.CdkTable,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[r.TEXT_COLUMN_OPTIONS]}]}]}),{name:[{type:t.Input}],actionItems:[{type:t.Input}],actionItemClick:[{type:t.Output}],columnDef:[{type:t.ViewChild,args:[r.CdkColumnDef,{static:!0}]}],cell:[{type:t.ViewChild,args:[r.CdkCellDef,{static:!0}]}],headerCell:[{type:t.ViewChild,args:[r.CdkHeaderCellDef,{static:!0}]}]});var s=function(){};s.ɵfac=function(e){return new(e||s)},s.ɵmod=t.ɵɵdefineNgModule({type:s}),s.ɵinj=t.ɵɵdefineInjector({imports:[[n.CommonModule,o.MatTableModule,a.MatMenuModule,l.MatButtonModule,i.MatIconModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(s,{declarations:[m],imports:[n.CommonModule,o.MatTableModule,a.MatMenuModule,l.MatButtonModule,i.MatIconModule],exports:[m]}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(s,[{type:t.NgModule,args:[{declarations:[m],imports:[n.CommonModule,o.MatTableModule,a.MatMenuModule,l.MatButtonModule,i.MatIconModule],exports:[m]}]}],null,null),e.ActionsColumnModule=s,e.ActionsColumnMolecule=m,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
|
+
//# sourceMappingURL=ng-atomic-components-molecules-actions-column.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../libs/components/molecules/actions-column/actions-column.molecule.ts","../../../../libs/components/molecules/actions-column/actions-column.molecule.html","../../../../libs/components/molecules/actions-column/actions-column.module.ts"],"names":["ActionsColumnMolecule","_table","_options","this","actionItems","actionItemClick","EventEmitter","_a","Object","defineProperty","prototype","_name","name","_syncColumnDefName","ngOnInit","columnDef","cell","headerCell","addColumnDef","ngOnDestroy","removeColumnDef","i0","ɵɵdirectiveInject","i1","CdkTable","TEXT_COLUMN_OPTIONS","selector","inputs","outputs","viewQueries","propertyName","first","predicate","CdkColumnDef","emitDistinctChangesOnly","descendants","static","CdkCellDef","CdkHeaderCellDef","ngImport","i0__namespace","template","styles","directives","type","i2","MatColumnDef","MatHeaderCellDef","MatHeaderCell","MatCellDef","MatCell","i3","NgIf","i4","MatButton","exportAs","i5","MatMenuTrigger","i6","MatIcon","MatMenu","NgForOf","MatMenuItem","changeDetection","ChangeDetectionStrategy","Default","encapsulation","ViewEncapsulation","None","Component","templateUrl","styleUrls","Optional","Inject","Input","Output","ViewChild","ActionsColumnModule","CommonModule","MatTableModule","MatMenuModule","MatButtonModule","MatIconModule","declarations","imports","exports","NgModule"],"mappings":"wyCAsCE,SAAAA,EACsBC,EAC6BC,SAD7BC,KAAAF,OAAAA,EAC6BE,KAAAD,SAAAA,EAjBnDC,KAAAC,YAA4B,GAI5BD,KAAAE,gBAAkB,IAAIC,EAAAA,aAeP,QAAbC,EAAAJ,KAAKD,gBAAQ,IAAAK,IAAbJ,KAAKD,SAAa,WA9BpBM,OAAAC,eACIT,EAAAU,UAAA,OAAI,KADR,WAEE,OAAOP,KAAKQ,WAEd,SAASC,GACPT,KAAKQ,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C,EAAAA,aAEAC,EAAAA,eACAC,EAAAA,cACAC,EAAAA,gBACAC,EAAAA,mFAMSL,EAAmB,CAAAM,aAAA,CAd5BnF,GAAqBoF,QAAA,CAGrBN,EAAAA,aAEAC,EAAAA,eACAC,EAAAA,cACAC,EAAAA,gBACAC,EAAAA,eAAaG,QAAA,CAGbrF,qEAGS6E,EAAmB,CAAA,MAhB/BS,EAAAA,eAAS,CACRH,aAAc,CACZnF,GAEFoF,QAAS,CACPN,EAAAA,aAEAC,EAAAA,eACAC,EAAAA,cACAC,EAAAA,gBACAC,EAAAA,eAEFG,QAAS,CACPrF","sourcesContent":["import { CdkCellDef, CdkColumnDef, CdkHeaderCellDef, CdkTable, TextColumnOptions, TEXT_COLUMN_OPTIONS } from '@angular/cdk/table';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, Optional, Output, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { ActionItem } from '@ng-atomic/common/models';\n\n@Component({\n selector: 'molecules-actions-column',\n templateUrl: './actions-column.molecule.html',\n styleUrls: ['./actions-column.molecule.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class ActionsColumnMolecule<T> {\n @Input()\n get name(): string {\n return this._name;\n }\n set name(name: string) {\n this._name = name;\n this._syncColumnDefName();\n }\n _name!: string;\n\n @Input()\n actionItems: ActionItem[] = [];\n\n\n @Output()\n actionItemClick = new EventEmitter<[ActionItem, T]>();\n\n @ViewChild(CdkColumnDef, {static: true})\n columnDef!: CdkColumnDef;\n \n @ViewChild(CdkCellDef, {static: true})\n cell!: CdkCellDef;\n\n @ViewChild(CdkHeaderCellDef, {static: true})\n headerCell!: CdkHeaderCellDef;\n\n constructor(\n @Optional() private _table: CdkTable<T>,\n @Optional() @Inject(TEXT_COLUMN_OPTIONS) private _options: TextColumnOptions<T>,\n ) {\n this._options ??= {};\n }\n\n ngOnInit() {\n this._syncColumnDefName();\n\n if (this._table) {\n this.columnDef.cell = this.cell;\n this.columnDef.headerCell = this.headerCell;\n this._table.addColumnDef(this.columnDef);\n }\n }\n\n ngOnDestroy() {\n if (this._table) {\n this._table.removeColumnDef(this.columnDef);\n }\n }\n\n private _syncColumnDefName() {\n if (this.columnDef) {\n this.columnDef.name = this.name;\n }\n }\n}\n","<ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef>操作</th>\n <td mat-cell *matCellDef=\"let item\">\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" *ngIf=\"actionItems?.length\"><mat-icon>menu</mat-icon></button>\n <mat-menu #menu=\"matMenu\">\n <button *ngFor=\"let actionItem of actionItems\" mat-menu-item (click)=\"actionItemClick.emit([actionItem, item])\">\n {{ actionItem?.name }}\n </button>\n </mat-menu>\n </td>\n</ng-container>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\n\nimport { ActionsColumnMolecule } from './actions-column.molecule';\n\n@NgModule({\n declarations: [\n ActionsColumnMolecule\n ],\n imports: [\n CommonModule,\n // Materials\n MatTableModule,\n MatMenuModule,\n MatButtonModule,\n MatIconModule,\n ],\n exports: [\n ActionsColumnMolecule\n ]\n})\nexport class ActionsColumnModule { }\n"]}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/table'), require('@angular/material/checkbox'), require('@angular/cdk/table')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@ng-atomic/components/molecules/checkbox-column', ['exports', '@angular/core', '@angular/common', '@angular/material/table', '@angular/material/checkbox', '@angular/cdk/table'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['ng-atomic'] = global['ng-atomic'] || {}, global['ng-atomic'].components = global['ng-atomic'].components || {}, global['ng-atomic'].components.molecules = global['ng-atomic'].components.molecules || {}, global['ng-atomic'].components.molecules['checkbox-column'] = {}), global.ng.core, global.ng.common, global.ng.material.table, global.ng.material.checkbox, global.ng.cdk.table));
|
|
5
|
+
}(this, (function (exports, i0, common, i2, i3, i1) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return e[k];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n['default'] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
+
|
|
29
|
+
var CheckboxColumnMolecule = /** @class */ (function () {
|
|
30
|
+
function CheckboxColumnMolecule(_table) {
|
|
31
|
+
this._table = _table;
|
|
32
|
+
this.selectedIdSet = new Set();
|
|
33
|
+
this.checkboxClick = new i0.EventEmitter();
|
|
34
|
+
}
|
|
35
|
+
Object.defineProperty(CheckboxColumnMolecule.prototype, "name", {
|
|
36
|
+
get: function () {
|
|
37
|
+
return this._name;
|
|
38
|
+
},
|
|
39
|
+
set: function (name) {
|
|
40
|
+
this._name = name;
|
|
41
|
+
this._syncColumnDefName();
|
|
42
|
+
},
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
CheckboxColumnMolecule.prototype.ngOnInit = function () {
|
|
47
|
+
this._syncColumnDefName();
|
|
48
|
+
if (this._table) {
|
|
49
|
+
this.columnDef.cell = this.cell;
|
|
50
|
+
this.columnDef.headerCell = this.headerCell;
|
|
51
|
+
this._table.addColumnDef(this.columnDef);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
CheckboxColumnMolecule.prototype.ngOnDestroy = function () {
|
|
55
|
+
if (this._table) {
|
|
56
|
+
this._table.removeColumnDef(this.columnDef);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
CheckboxColumnMolecule.prototype._syncColumnDefName = function () {
|
|
60
|
+
if (this.columnDef) {
|
|
61
|
+
this.columnDef.name = this.name;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
return CheckboxColumnMolecule;
|
|
65
|
+
}());
|
|
66
|
+
CheckboxColumnMolecule.ɵfac = function CheckboxColumnMolecule_Factory(t) { return new (t || CheckboxColumnMolecule)(i0.ɵɵdirectiveInject(i1.CdkTable, 8)); };
|
|
67
|
+
CheckboxColumnMolecule.ɵcmp = i0.ɵɵngDeclareComponent({ version: "11.2.14", type: CheckboxColumnMolecule, selector: "molecules-checkbox-column", inputs: { name: "name", selectedIdSet: "selectedIdSet" }, outputs: { checkboxClick: "checkboxClick" }, viewQueries: [{ propertyName: "columnDef", first: true, predicate: i1.CdkColumnDef, emitDistinctChangesOnly: false, descendants: true, static: true }, { propertyName: "cell", first: true, predicate: i1.CdkCellDef, emitDistinctChangesOnly: false, descendants: true, static: true }, { propertyName: "headerCell", first: true, predicate: i1.CdkHeaderCellDef, emitDistinctChangesOnly: false, descendants: true, static: true }], ngImport: i0__namespace, template: "<ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef></th>\n <td mat-cell *matCellDef=\"let item\">\n <mat-checkbox\n (click)=\"checkboxClick.emit(item)\"\n [checked]=\"selectedIdSet.has(item.id)\"\n ></mat-checkbox>\n </td>\n</ng-container>\n", styles: [""], directives: [{ type: i2.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { type: i2.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { type: i2.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { type: i2.MatCellDef, selector: "[matCellDef]" }, { type: i2.MatCell, selector: "mat-cell, td[mat-cell]" }, { type: i3.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
68
|
+
(function () {
|
|
69
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxColumnMolecule, [{
|
|
70
|
+
type: i0.Component,
|
|
71
|
+
args: [{
|
|
72
|
+
selector: 'molecules-checkbox-column',
|
|
73
|
+
templateUrl: './checkbox-column.molecule.html',
|
|
74
|
+
styleUrls: ['./checkbox-column.molecule.scss'],
|
|
75
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
76
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
77
|
+
}]
|
|
78
|
+
}], function () {
|
|
79
|
+
return [{ type: i1.CdkTable, decorators: [{
|
|
80
|
+
type: i0.Optional
|
|
81
|
+
}] }];
|
|
82
|
+
}, { name: [{
|
|
83
|
+
type: i0.Input
|
|
84
|
+
}], selectedIdSet: [{
|
|
85
|
+
type: i0.Input
|
|
86
|
+
}], checkboxClick: [{
|
|
87
|
+
type: i0.Output
|
|
88
|
+
}], columnDef: [{
|
|
89
|
+
type: i0.ViewChild,
|
|
90
|
+
args: [i1.CdkColumnDef, { static: true }]
|
|
91
|
+
}], cell: [{
|
|
92
|
+
type: i0.ViewChild,
|
|
93
|
+
args: [i1.CdkCellDef, { static: true }]
|
|
94
|
+
}], headerCell: [{
|
|
95
|
+
type: i0.ViewChild,
|
|
96
|
+
args: [i1.CdkHeaderCellDef, { static: true }]
|
|
97
|
+
}] });
|
|
98
|
+
})();
|
|
99
|
+
|
|
100
|
+
var CheckboxColumnModule = /** @class */ (function () {
|
|
101
|
+
function CheckboxColumnModule() {
|
|
102
|
+
}
|
|
103
|
+
return CheckboxColumnModule;
|
|
104
|
+
}());
|
|
105
|
+
CheckboxColumnModule.ɵfac = function CheckboxColumnModule_Factory(t) { return new (t || CheckboxColumnModule)(); };
|
|
106
|
+
CheckboxColumnModule.ɵmod = i0.ɵɵdefineNgModule({ type: CheckboxColumnModule });
|
|
107
|
+
CheckboxColumnModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
108
|
+
{ provide: i3.MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: { clickAction: 'noop' } }
|
|
109
|
+
], imports: [[
|
|
110
|
+
common.CommonModule,
|
|
111
|
+
// Materials
|
|
112
|
+
i2.MatTableModule,
|
|
113
|
+
i3.MatCheckboxModule,
|
|
114
|
+
]] });
|
|
115
|
+
(function () {
|
|
116
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CheckboxColumnModule, { declarations: [CheckboxColumnMolecule], imports: [common.CommonModule,
|
|
117
|
+
// Materials
|
|
118
|
+
i2.MatTableModule,
|
|
119
|
+
i3.MatCheckboxModule], exports: [CheckboxColumnMolecule] });
|
|
120
|
+
})();
|
|
121
|
+
(function () {
|
|
122
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxColumnModule, [{
|
|
123
|
+
type: i0.NgModule,
|
|
124
|
+
args: [{
|
|
125
|
+
declarations: [
|
|
126
|
+
CheckboxColumnMolecule
|
|
127
|
+
],
|
|
128
|
+
imports: [
|
|
129
|
+
common.CommonModule,
|
|
130
|
+
// Materials
|
|
131
|
+
i2.MatTableModule,
|
|
132
|
+
i3.MatCheckboxModule,
|
|
133
|
+
],
|
|
134
|
+
exports: [
|
|
135
|
+
CheckboxColumnMolecule
|
|
136
|
+
],
|
|
137
|
+
providers: [
|
|
138
|
+
{ provide: i3.MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: { clickAction: 'noop' } }
|
|
139
|
+
]
|
|
140
|
+
}]
|
|
141
|
+
}], null, null);
|
|
142
|
+
})();
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Generated bundle index. Do not edit.
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
exports.CheckboxColumnModule = CheckboxColumnModule;
|
|
149
|
+
exports.CheckboxColumnMolecule = CheckboxColumnMolecule;
|
|
150
|
+
|
|
151
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
152
|
+
|
|
153
|
+
})));
|
|
154
|
+
//# sourceMappingURL=ng-atomic-components-molecules-checkbox-column.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-molecules-checkbox-column.umd.js","sources":["../../../../libs/components/molecules/checkbox-column/checkbox-column.molecule.ts","../../../../libs/components/molecules/checkbox-column/checkbox-column.molecule.html","../../../../libs/components/molecules/checkbox-column/checkbox-column.module.ts","../../../../libs/components/molecules/checkbox-column/ng-atomic-components-molecules-checkbox-column.ts"],"sourcesContent":["import { CdkCellDef, CdkColumnDef, CdkHeaderCellDef, CdkTable } from '@angular/cdk/table';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Optional, Output, ViewChild, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'molecules-checkbox-column',\n templateUrl: './checkbox-column.molecule.html',\n styleUrls: ['./checkbox-column.molecule.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CheckboxColumnMolecule<T> implements OnInit {\n @Input()\n get name(): string {\n return this._name;\n }\n set name(name: string) {\n this._name = name;\n this._syncColumnDefName();\n }\n _name!: string;\n\n @Input()\n selectedIdSet = new Set<string>();\n\n @Output()\n checkboxClick = new EventEmitter<T>();\n\n @ViewChild(CdkColumnDef, {static: true})\n columnDef!: CdkColumnDef;\n\n @ViewChild(CdkCellDef, {static: true})\n cell!: CdkCellDef;\n\n @ViewChild(CdkHeaderCellDef, {static: true})\n headerCell!: CdkHeaderCellDef;\n\n constructor(@Optional() private _table: CdkTable<T>) { }\n\n ngOnInit() {\n this._syncColumnDefName();\n\n if (this._table) {\n this.columnDef.cell = this.cell;\n this.columnDef.headerCell = this.headerCell;\n this._table.addColumnDef(this.columnDef);\n }\n }\n\n ngOnDestroy() {\n if (this._table) {\n this._table.removeColumnDef(this.columnDef);\n }\n }\n\n private _syncColumnDefName() {\n if (this.columnDef) {\n this.columnDef.name = this.name;\n }\n }\n}\n","<ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef></th>\n <td mat-cell *matCellDef=\"let item\">\n <mat-checkbox\n (click)=\"checkboxClick.emit(item)\"\n [checked]=\"selectedIdSet.has(item.id)\"\n ></mat-checkbox>\n </td>\n</ng-container>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatCheckboxModule, MAT_CHECKBOX_DEFAULT_OPTIONS, MatCheckboxDefaultOptions } from '@angular/material/checkbox';\n\nimport { CheckboxColumnMolecule } from './checkbox-column.molecule';\n\n\n\n@NgModule({\n declarations: [\n CheckboxColumnMolecule\n ],\n imports: [\n CommonModule,\n // Materials\n MatTableModule,\n MatCheckboxModule,\n ],\n exports: [\n CheckboxColumnMolecule\n ],\n providers: [\n {provide: MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: { clickAction: 'noop' } as MatCheckboxDefaultOptions}\n ]\n})\nexport class CheckboxColumnModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["EventEmitter","CdkColumnDef","CdkCellDef","CdkHeaderCellDef","Component","ViewEncapsulation","ChangeDetectionStrategy","Optional","Input","Output","ViewChild","MAT_CHECKBOX_DEFAULT_OPTIONS","CommonModule","MatTableModule","MatCheckboxModule","NgModule"],"mappings":";;;;;;;;;;;;;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eAAe,EAAEC,0BAAuB,CAAC,MAAM;qBAChD;;;kCA2BcC,WAAQ;;aAxBjB,IAAI;0BADPC,QAAK;oBAWN,aAAa;0BADZA,QAAK;oBAIN,aAAa;0BADZC,SAAM;oBAIP,SAAS;0BADRC,YAAS;2BAACT,eAAY,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC;oBAIvC,IAAI;0BADHS,YAAS;2BAACR,aAAU,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC;oBAIrC,UAAU;0BADTQ,YAAS;2BAACP,mBAAgB,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC;;;;;QEP7C;;;;4FAAa,oBAAoB;4DAApB,oBAAoB;iEAJpB;YACT,EAAC,OAAO,EAAEQ,+BAA4B,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,MAAM,EAA+B,EAAC;SACxG,YAXQ;gBACPC,mBAAY;;gBAEZC,iBAAc;gBACdC,oBAAiB;aAClB;;iFAQU,oBAAoB,mBAf7B,sBAAsB,aAGtBF,mBAAY;;gBAEZC,iBAAc;gBACdC,oBAAiB,aAGjB,sBAAsB;;;gFAMb,oBAAoB;sBAjBhCC,WAAQ;uBAAC;wBACR,YAAY,EAAE;4BACZ,sBAAsB;yBACvB;wBACD,OAAO,EAAE;4BACPH,mBAAY;;4BAEZC,iBAAc;4BACdC,oBAAiB;yBAClB;wBACD,OAAO,EAAE;4BACP,sBAAsB;yBACvB;wBACD,SAAS,EAAE;4BACT,EAAC,OAAO,EAAEH,+BAA4B,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,MAAM,EAA+B,EAAC;yBACxG;qBACF;;;;ICzBD;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/material/table"),require("@angular/material/checkbox"),require("@angular/cdk/table")):"function"==typeof define&&define.amd?define("@ng-atomic/components/molecules/checkbox-column",["exports","@angular/core","@angular/common","@angular/material/table","@angular/material/checkbox","@angular/cdk/table"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["ng-atomic"]=e["ng-atomic"]||{},e["ng-atomic"].components=e["ng-atomic"].components||{},e["ng-atomic"].components.molecules=e["ng-atomic"].components.molecules||{},e["ng-atomic"].components.molecules["checkbox-column"]={}),e.ng.core,e.ng.common,e.ng.material.table,e.ng.material.checkbox,e.ng.cdk.table)}(this,(function(e,t,n,o,l,a){"use strict";function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=c(t),r=function(){function e(e){this._table=e,this.selectedIdSet=new Set,this.checkboxClick=new t.EventEmitter}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e,this._syncColumnDefName()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._syncColumnDefName(),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))},e.prototype.ngOnDestroy=function(){this._table&&this._table.removeColumnDef(this.columnDef)},e.prototype._syncColumnDefName=function(){this.columnDef&&(this.columnDef.name=this.name)},e}();r.ɵfac=function(e){return new(e||r)(t.ɵɵdirectiveInject(a.CdkTable,8))},r.ɵcmp=t.ɵɵngDeclareComponent({version:"11.2.14",type:r,selector:"molecules-checkbox-column",inputs:{name:"name",selectedIdSet:"selectedIdSet"},outputs:{checkboxClick:"checkboxClick"},viewQueries:[{propertyName:"columnDef",first:!0,predicate:a.CdkColumnDef,emitDistinctChangesOnly:!1,descendants:!0,static:!0},{propertyName:"cell",first:!0,predicate:a.CdkCellDef,emitDistinctChangesOnly:!1,descendants:!0,static:!0},{propertyName:"headerCell",first:!0,predicate:a.CdkHeaderCellDef,emitDistinctChangesOnly:!1,descendants:!0,static:!0}],ngImport:i,template:'<ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef></th>\n <td mat-cell *matCellDef="let item">\n <mat-checkbox\n (click)="checkboxClick.emit(item)"\n [checked]="selectedIdSet.has(item.id)"\n ></mat-checkbox>\n </td>\n</ng-container>\n',styles:[""],directives:[{type:o.MatColumnDef,selector:"[matColumnDef]",inputs:["sticky","matColumnDef"]},{type:o.MatHeaderCellDef,selector:"[matHeaderCellDef]"},{type:o.MatHeaderCell,selector:"mat-header-cell, th[mat-header-cell]"},{type:o.MatCellDef,selector:"[matCellDef]"},{type:o.MatCell,selector:"mat-cell, td[mat-cell]"},{type:l.MatCheckbox,selector:"mat-checkbox",inputs:["disableRipple","color","tabIndex","aria-label","aria-labelledby","id","labelPosition","name","required","checked","disabled","indeterminate","aria-describedby","value"],outputs:["change","indeterminateChange"],exportAs:["matCheckbox"]}],changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(r,[{type:t.Component,args:[{selector:"molecules-checkbox-column",templateUrl:"./checkbox-column.molecule.html",styleUrls:["./checkbox-column.molecule.scss"],encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}]}],(function(){return[{type:a.CdkTable,decorators:[{type:t.Optional}]}]}),{name:[{type:t.Input}],selectedIdSet:[{type:t.Input}],checkboxClick:[{type:t.Output}],columnDef:[{type:t.ViewChild,args:[a.CdkColumnDef,{static:!0}]}],cell:[{type:t.ViewChild,args:[a.CdkCellDef,{static:!0}]}],headerCell:[{type:t.ViewChild,args:[a.CdkHeaderCellDef,{static:!0}]}]});var s=function(){};s.ɵfac=function(e){return new(e||s)},s.ɵmod=t.ɵɵdefineNgModule({type:s}),s.ɵinj=t.ɵɵdefineInjector({providers:[{provide:l.MAT_CHECKBOX_DEFAULT_OPTIONS,useValue:{clickAction:"noop"}}],imports:[[n.CommonModule,o.MatTableModule,l.MatCheckboxModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(s,{declarations:[r],imports:[n.CommonModule,o.MatTableModule,l.MatCheckboxModule],exports:[r]}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(s,[{type:t.NgModule,args:[{declarations:[r],imports:[n.CommonModule,o.MatTableModule,l.MatCheckboxModule],exports:[r],providers:[{provide:l.MAT_CHECKBOX_DEFAULT_OPTIONS,useValue:{clickAction:"noop"}}]}]}],null,null),e.CheckboxColumnModule=s,e.CheckboxColumnMolecule=r,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
|
+
//# sourceMappingURL=ng-atomic-components-molecules-checkbox-column.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../libs/components/molecules/checkbox-column/checkbox-column.molecule.ts","../../../../libs/components/molecules/checkbox-column/checkbox-column.molecule.html","../../../../libs/components/molecules/checkbox-column/checkbox-column.module.ts"],"names":["CheckboxColumnMolecule","_table","this","selectedIdSet","Set","checkboxClick","EventEmitter","Object","defineProperty","prototype","_name","name","_syncColumnDefName","ngOnInit","columnDef","cell","headerCell","addColumnDef","ngOnDestroy","removeColumnDef","i0","ɵɵdirectiveInject","i1","CdkTable","selector","inputs","outputs","viewQueries","propertyName","first","predicate","CdkColumnDef","emitDistinctChangesOnly","descendants","static","CdkCellDef","CdkHeaderCellDef","ngImport","i0__namespace","template","styles","directives","type","i2","MatColumnDef","MatHeaderCellDef","MatHeaderCell","MatCellDef","MatCell","i3","MatCheckbox","exportAs","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","Component","templateUrl","styleUrls","Optional","Input","Output","ViewChild","CheckboxColumnModule","provide","MAT_CHECKBOX_DEFAULT_OPTIONS","useValue","clickAction","imports","CommonModule","MatTableModule","MatCheckboxModule","declarations","exports","NgModule","providers"],"mappings":"gpCAoCE,SAAAA,EAAgCC,GAAAC,KAAAD,OAAAA,E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,CACT,CAACX,QAASC,EAAAA,6BAA8BC,SAAU,CAAEC,YAAa","sourcesContent":["import { CdkCellDef, CdkColumnDef, CdkHeaderCellDef, CdkTable } from '@angular/cdk/table';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Optional, Output, ViewChild, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'molecules-checkbox-column',\n templateUrl: './checkbox-column.molecule.html',\n styleUrls: ['./checkbox-column.molecule.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CheckboxColumnMolecule<T> implements OnInit {\n @Input()\n get name(): string {\n return this._name;\n }\n set name(name: string) {\n this._name = name;\n this._syncColumnDefName();\n }\n _name!: string;\n\n @Input()\n selectedIdSet = new Set<string>();\n\n @Output()\n checkboxClick = new EventEmitter<T>();\n\n @ViewChild(CdkColumnDef, {static: true})\n columnDef!: CdkColumnDef;\n\n @ViewChild(CdkCellDef, {static: true})\n cell!: CdkCellDef;\n\n @ViewChild(CdkHeaderCellDef, {static: true})\n headerCell!: CdkHeaderCellDef;\n\n constructor(@Optional() private _table: CdkTable<T>) { }\n\n ngOnInit() {\n this._syncColumnDefName();\n\n if (this._table) {\n this.columnDef.cell = this.cell;\n this.columnDef.headerCell = this.headerCell;\n this._table.addColumnDef(this.columnDef);\n }\n }\n\n ngOnDestroy() {\n if (this._table) {\n this._table.removeColumnDef(this.columnDef);\n }\n }\n\n private _syncColumnDefName() {\n if (this.columnDef) {\n this.columnDef.name = this.name;\n }\n }\n}\n","<ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef></th>\n <td mat-cell *matCellDef=\"let item\">\n <mat-checkbox\n (click)=\"checkboxClick.emit(item)\"\n [checked]=\"selectedIdSet.has(item.id)\"\n ></mat-checkbox>\n </td>\n</ng-container>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatCheckboxModule, MAT_CHECKBOX_DEFAULT_OPTIONS, MatCheckboxDefaultOptions } from '@angular/material/checkbox';\n\nimport { CheckboxColumnMolecule } from './checkbox-column.molecule';\n\n\n\n@NgModule({\n declarations: [\n CheckboxColumnMolecule\n ],\n imports: [\n CommonModule,\n // Materials\n MatTableModule,\n MatCheckboxModule,\n ],\n exports: [\n CheckboxColumnMolecule\n ],\n providers: [\n {provide: MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: { clickAction: 'noop' } as MatCheckboxDefaultOptions}\n ]\n})\nexport class CheckboxColumnModule { }\n"]}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/keycodes'), require('@ngneat/reactive-forms'), require('@angular/material/chips'), require('@angular/material/icon'), require('@angular/forms'), require('@angular/material/input')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@ng-atomic/components/molecules/chips-input-field', ['exports', '@angular/core', '@angular/common', '@angular/cdk/keycodes', '@ngneat/reactive-forms', '@angular/material/chips', '@angular/material/icon', '@angular/forms', '@angular/material/input'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['ng-atomic'] = global['ng-atomic'] || {}, global['ng-atomic'].components = global['ng-atomic'].components || {}, global['ng-atomic'].components.molecules = global['ng-atomic'].components.molecules || {}, global['ng-atomic'].components.molecules['chips-input-field'] = {}), global.ng.core, global.ng.common, global.ng.cdk.keycodes, global.reactiveForms, global.ng.material.chips, global.ng.material.icon, global.ng.forms, global.ng.material.input));
|
|
5
|
+
}(this, (function (exports, i0, i2, keycodes, reactiveForms, i1, i3, i4, input) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return e[k];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n['default'] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
+
|
|
29
|
+
var ChipsInputFieldMolecule = /** @class */ (function () {
|
|
30
|
+
function ChipsInputFieldMolecule() {
|
|
31
|
+
this._control = new reactiveForms.FormControl('');
|
|
32
|
+
this.control = new reactiveForms.FormControl();
|
|
33
|
+
this.placeholder = '';
|
|
34
|
+
this.separatorKeysCodes = [keycodes.ENTER, keycodes.COMMA];
|
|
35
|
+
this.chips = [];
|
|
36
|
+
}
|
|
37
|
+
ChipsInputFieldMolecule.prototype.ngOnInit = function () {
|
|
38
|
+
var _this = this;
|
|
39
|
+
this.control.value && this._add(this.control.value);
|
|
40
|
+
this._control.valueChanges.subscribe(function () { return _this.control.setValue(_this.chips.join(' ')); });
|
|
41
|
+
};
|
|
42
|
+
ChipsInputFieldMolecule.prototype.add = function (event) {
|
|
43
|
+
this._add((event.value || '').trim());
|
|
44
|
+
event.input.value = '';
|
|
45
|
+
};
|
|
46
|
+
ChipsInputFieldMolecule.prototype.remove = function (chip) {
|
|
47
|
+
var index = this.chips.indexOf(chip);
|
|
48
|
+
index >= 0 && this.chips.splice(index, 1);
|
|
49
|
+
this.control.setValue(this.chips.join(' '));
|
|
50
|
+
};
|
|
51
|
+
ChipsInputFieldMolecule.prototype._add = function (value) {
|
|
52
|
+
value && this.chips.push(value);
|
|
53
|
+
this.control.setValue(this.chips.join(' '));
|
|
54
|
+
};
|
|
55
|
+
return ChipsInputFieldMolecule;
|
|
56
|
+
}());
|
|
57
|
+
ChipsInputFieldMolecule.ɵfac = function ChipsInputFieldMolecule_Factory(t) { return new (t || ChipsInputFieldMolecule)(); };
|
|
58
|
+
ChipsInputFieldMolecule.ɵcmp = i0.ɵɵngDeclareComponent({ version: "11.2.14", type: ChipsInputFieldMolecule, selector: "molecules-chips-input-field", inputs: { control: "control", placeholder: "placeholder" }, ngImport: i0__namespace, template: "<mat-chip-list #chipList>\n <mat-chip *ngFor=\"let chip of chips\" (removed)=\"remove(chip)\">\n {{chip}} <mat-icon matChipRemove>cancel</mat-icon>\n </mat-chip>\n <input\n [placeholder]=\"placeholder\"\n [matChipInputFor]=\"chipList\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"add($event)\"\n [formControl]=\"_control\"\n >\n</mat-chip-list>\n", styles: [":host{display:flex;justify-content:flex-start;align-items:center}:host,:host mat-input{width:100%;height:100%}"], directives: [{ type: i1.MatChipList, selector: "mat-chip-list", inputs: ["aria-orientation", "multiple", "compareWith", "value", "required", "placeholder", "disabled", "selectable", "tabIndex", "errorStateMatcher"], outputs: ["change", "valueChange"], exportAs: ["matChipList"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["color", "disableRipple", "tabIndex", "selected", "value", "selectable", "disabled", "removable"], outputs: ["selectionChange", "destroyed", "removed"], exportAs: ["matChip"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i1.MatChipRemove, selector: "[matChipRemove]" }, { type: i1.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputSeparatorKeyCodes", "placeholder", "id", "matChipInputFor", "matChipInputAddOnBlur", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
59
|
+
(function () {
|
|
60
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChipsInputFieldMolecule, [{
|
|
61
|
+
type: i0.Component,
|
|
62
|
+
args: [{
|
|
63
|
+
selector: 'molecules-chips-input-field',
|
|
64
|
+
templateUrl: './chips-input-field.molecule.html',
|
|
65
|
+
styleUrls: ['./chips-input-field.molecule.scss'],
|
|
66
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
67
|
+
}]
|
|
68
|
+
}], function () { return []; }, { control: [{
|
|
69
|
+
type: i0.Input
|
|
70
|
+
}], placeholder: [{
|
|
71
|
+
type: i0.Input
|
|
72
|
+
}] });
|
|
73
|
+
})();
|
|
74
|
+
|
|
75
|
+
var ChipsInputFieldModule = /** @class */ (function () {
|
|
76
|
+
function ChipsInputFieldModule() {
|
|
77
|
+
}
|
|
78
|
+
return ChipsInputFieldModule;
|
|
79
|
+
}());
|
|
80
|
+
ChipsInputFieldModule.ɵfac = function ChipsInputFieldModule_Factory(t) { return new (t || ChipsInputFieldModule)(); };
|
|
81
|
+
ChipsInputFieldModule.ɵmod = i0.ɵɵdefineNgModule({ type: ChipsInputFieldModule });
|
|
82
|
+
ChipsInputFieldModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
83
|
+
i2.CommonModule,
|
|
84
|
+
i4.ReactiveFormsModule,
|
|
85
|
+
// Materials
|
|
86
|
+
i1.MatChipsModule,
|
|
87
|
+
i3.MatIconModule,
|
|
88
|
+
input.MatInputModule,
|
|
89
|
+
]] });
|
|
90
|
+
(function () {
|
|
91
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ChipsInputFieldModule, { declarations: [ChipsInputFieldMolecule], imports: [i2.CommonModule,
|
|
92
|
+
i4.ReactiveFormsModule,
|
|
93
|
+
// Materials
|
|
94
|
+
i1.MatChipsModule,
|
|
95
|
+
i3.MatIconModule,
|
|
96
|
+
input.MatInputModule], exports: [ChipsInputFieldMolecule] });
|
|
97
|
+
})();
|
|
98
|
+
(function () {
|
|
99
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChipsInputFieldModule, [{
|
|
100
|
+
type: i0.NgModule,
|
|
101
|
+
args: [{
|
|
102
|
+
declarations: [
|
|
103
|
+
ChipsInputFieldMolecule
|
|
104
|
+
],
|
|
105
|
+
imports: [
|
|
106
|
+
i2.CommonModule,
|
|
107
|
+
i4.ReactiveFormsModule,
|
|
108
|
+
// Materials
|
|
109
|
+
i1.MatChipsModule,
|
|
110
|
+
i3.MatIconModule,
|
|
111
|
+
input.MatInputModule,
|
|
112
|
+
],
|
|
113
|
+
exports: [
|
|
114
|
+
ChipsInputFieldMolecule
|
|
115
|
+
]
|
|
116
|
+
}]
|
|
117
|
+
}], null, null);
|
|
118
|
+
})();
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Generated bundle index. Do not edit.
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
exports.ChipsInputFieldModule = ChipsInputFieldModule;
|
|
125
|
+
exports.ChipsInputFieldMolecule = ChipsInputFieldMolecule;
|
|
126
|
+
|
|
127
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
128
|
+
|
|
129
|
+
})));
|
|
130
|
+
//# sourceMappingURL=ng-atomic-components-molecules-chips-input-field.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-components-molecules-chips-input-field.umd.js","sources":["../../../../libs/components/molecules/chips-input-field/chips-input-field.molecule.ts","../../../../libs/components/molecules/chips-input-field/chips-input-field.molecule.html","../../../../libs/components/molecules/chips-input-field/chips-input-field.module.ts","../../../../libs/components/molecules/chips-input-field/ng-atomic-components-molecules-chips-input-field.ts"],"sourcesContent":["import {COMMA, ENTER} from '@angular/cdk/keycodes';\nimport { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\nimport { MatChipInputEvent } from '@angular/material/chips';\nimport { FormControl } from '@ngneat/reactive-forms';\n\n@Component({\n selector: 'molecules-chips-input-field',\n templateUrl: './chips-input-field.molecule.html',\n styleUrls: ['./chips-input-field.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChipsInputFieldMolecule implements OnInit {\n\n _control = new FormControl<string>('');\n\n @Input()\n control = new FormControl<string>();\n\n @Input()\n placeholder = '';\n\n constructor() { }\n\n ngOnInit(): void {\n this.control.value && this._add(this.control.value);\n\n this._control.valueChanges.subscribe(() => this.control.setValue(this.chips.join(' ')));\n }\n\n readonly separatorKeysCodes = [ENTER, COMMA] as const;\n chips: string[] = [];\n\n add(event: MatChipInputEvent): void {\n this._add((event.value || '').trim());\n event.input.value = '';\n }\n\n remove(chip: string): void {\n const index = this.chips.indexOf(chip);\n index >= 0 && this.chips.splice(index, 1);\n this.control.setValue(this.chips.join(' '));\n }\n\n private _add(value: string) {\n value && this.chips.push(value);\n this.control.setValue(this.chips.join(' '));\n }\n\n}\n","<mat-chip-list #chipList>\n <mat-chip *ngFor=\"let chip of chips\" (removed)=\"remove(chip)\">\n {{chip}} <mat-icon matChipRemove>cancel</mat-icon>\n </mat-chip>\n <input\n [placeholder]=\"placeholder\"\n [matChipInputFor]=\"chipList\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"add($event)\"\n [formControl]=\"_control\"\n >\n</mat-chip-list>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ChipsInputFieldMolecule } from './chips-input-field.molecule';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\n\n@NgModule({\n declarations: [\n ChipsInputFieldMolecule\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n // Materials\n MatChipsModule,\n MatIconModule,\n MatInputModule,\n ],\n exports: [\n ChipsInputFieldMolecule\n ]\n})\nexport class ChipsInputFieldModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["FormControl","ENTER","COMMA","Component","ChangeDetectionStrategy","Input","CommonModule","ReactiveFormsModule","MatChipsModule","MatIconModule","MatInputModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAqBE;YARA,aAAQ,GAAG,IAAIA,yBAAW,CAAS,EAAE,CAAC,CAAC;YAGvC,YAAO,GAAG,IAAIA,yBAAW,EAAU,CAAC;YAGpC,gBAAW,GAAG,EAAE,CAAC;YAUR,uBAAkB,GAAG,CAACC,cAAK,EAAEC,cAAK,CAAU,CAAC;YACtD,UAAK,GAAa,EAAE,CAAC;SATJ;QAEjB,0CAAQ,GAAR;YAAA,iBAIC;YAHC,IAAI,CAAC,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAEpD,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,SAAS,CAAC,cAAM,OAAA,KAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAA,CAAC,CAAC;SACzF;QAKD,qCAAG,GAAH,UAAI,KAAwB;YAC1B,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,EAAE,I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BAAuB;yBACxB;wBACD,OAAO,EAAE;4BACPL,eAAY;4BACZC,sBAAmB;;4BAEnBC,iBAAc;4BACdC,gBAAa;4BACbC,oBAAc;yBACf;wBACD,OAAO,EAAE;4BACP,uBAAuB;yBACxB;qBACF;;;;ICvBD;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/cdk/keycodes"),require("@ngneat/reactive-forms"),require("@angular/material/chips"),require("@angular/material/icon"),require("@angular/forms"),require("@angular/material/input")):"function"==typeof define&&define.amd?define("@ng-atomic/components/molecules/chips-input-field",["exports","@angular/core","@angular/common","@angular/cdk/keycodes","@ngneat/reactive-forms","@angular/material/chips","@angular/material/icon","@angular/forms","@angular/material/input"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["ng-atomic"]=e["ng-atomic"]||{},e["ng-atomic"].components=e["ng-atomic"].components||{},e["ng-atomic"].components.molecules=e["ng-atomic"].components.molecules||{},e["ng-atomic"].components.molecules["chips-input-field"]={}),e.ng.core,e.ng.common,e.ng.cdk.keycodes,e.reactiveForms,e.ng.material.chips,e.ng.material.icon,e.ng.forms,e.ng.material.input)}(this,(function(e,t,o,n,i,r,a,l,c){"use strict";function p(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var s=p(t),u=function(){function e(){this._control=new i.FormControl(""),this.control=new i.FormControl,this.placeholder="",this.separatorKeysCodes=[n.ENTER,n.COMMA],this.chips=[]}return e.prototype.ngOnInit=function(){var e=this;this.control.value&&this._add(this.control.value),this._control.valueChanges.subscribe((function(){return e.control.setValue(e.chips.join(" "))}))},e.prototype.add=function(e){this._add((e.value||"").trim()),e.input.value=""},e.prototype.remove=function(e){var t=this.chips.indexOf(e);t>=0&&this.chips.splice(t,1),this.control.setValue(this.chips.join(" "))},e.prototype._add=function(e){e&&this.chips.push(e),this.control.setValue(this.chips.join(" "))},e}();u.ɵfac=function(e){return new(e||u)},u.ɵcmp=t.ɵɵngDeclareComponent({version:"11.2.14",type:u,selector:"molecules-chips-input-field",inputs:{control:"control",placeholder:"placeholder"},ngImport:s,template:'<mat-chip-list #chipList>\n <mat-chip *ngFor="let chip of chips" (removed)="remove(chip)">\n {{chip}} <mat-icon matChipRemove>cancel</mat-icon>\n </mat-chip>\n <input\n [placeholder]="placeholder"\n [matChipInputFor]="chipList"\n [matChipInputSeparatorKeyCodes]="separatorKeysCodes"\n [matChipInputAddOnBlur]="true"\n (matChipInputTokenEnd)="add($event)"\n [formControl]="_control"\n >\n</mat-chip-list>\n',styles:[":host{display:flex;justify-content:flex-start;align-items:center}:host,:host mat-input{width:100%;height:100%}"],directives:[{type:r.MatChipList,selector:"mat-chip-list",inputs:["aria-orientation","multiple","compareWith","value","required","placeholder","disabled","selectable","tabIndex","errorStateMatcher"],outputs:["change","valueChange"],exportAs:["matChipList"]},{type:o.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:r.MatChip,selector:"mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]",inputs:["color","disableRipple","tabIndex","selected","value","selectable","disabled","removable"],outputs:["selectionChange","destroyed","removed"],exportAs:["matChip"]},{type:a.MatIcon,selector:"mat-icon",inputs:["color","inline","svgIcon","fontSet","fontIcon"],exportAs:["matIcon"]},{type:r.MatChipRemove,selector:"[matChipRemove]"},{type:r.MatChipInput,selector:"input[matChipInputFor]",inputs:["matChipInputSeparatorKeyCodes","placeholder","id","matChipInputFor","matChipInputAddOnBlur","disabled"],outputs:["matChipInputTokenEnd"],exportAs:["matChipInput","matChipInputFor"]},{type:l.DefaultValueAccessor,selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]"},{type:l.NgControlStatus,selector:"[formControlName],[ngModel],[formControl]"},{type:l.FormControlDirective,selector:"[formControl]",inputs:["disabled","formControl","ngModel"],outputs:["ngModelChange"],exportAs:["ngForm"]}],changeDetection:t.ChangeDetectionStrategy.OnPush}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(u,[{type:t.Component,args:[{selector:"molecules-chips-input-field",templateUrl:"./chips-input-field.molecule.html",styleUrls:["./chips-input-field.molecule.scss"],changeDetection:t.ChangeDetectionStrategy.OnPush}]}],(function(){return[]}),{control:[{type:t.Input}],placeholder:[{type:t.Input}]});var m=function(){};m.ɵfac=function(e){return new(e||m)},m.ɵmod=t.ɵɵdefineNgModule({type:m}),m.ɵinj=t.ɵɵdefineInjector({imports:[[o.CommonModule,l.ReactiveFormsModule,r.MatChipsModule,a.MatIconModule,c.MatInputModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(m,{declarations:[u],imports:[o.CommonModule,l.ReactiveFormsModule,r.MatChipsModule,a.MatIconModule,c.MatInputModule],exports:[u]}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(m,[{type:t.NgModule,args:[{declarations:[u],imports:[o.CommonModule,l.ReactiveFormsModule,r.MatChipsModule,a.MatIconModule,c.MatInputModule],exports:[u]}]}],null,null),e.ChipsInputFieldModule=m,e.ChipsInputFieldMolecule=u,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
|
+
//# sourceMappingURL=ng-atomic-components-molecules-chips-input-field.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../libs/components/molecules/chips-input-field/chips-input-field.molecule.ts","../../../../libs/components/molecules/chips-input-field/chips-input-field.molecule.html","../../../../libs/components/molecules/chips-input-field/chips-input-field.module.ts"],"names":["ChipsInputFieldMolecule","this","_control","FormControl","control","placeholder","separatorKeysCodes","ENTER","COMMA","chips","prototype","ngOnInit","_this","value","_add","valueChanges","subscribe","setValue","join","add","event","trim","input","remove","chip","index","indexOf","splice","push","selector","inputs","ngImport","i0__namespace","template","styles","directives","type","i1","MatChipList","outputs","exportAs","i2","NgForOf","MatChip","i3","MatIcon","MatChipRemove","MatChipInput","i4","DefaultValueAccessor","NgControlStatus","FormControlDirective","changeDetection","i0","ChangeDetectionStrategy","OnPush","Component","templateUrl","styleUrls","Input","ChipsInputFieldModule","CommonModule","ReactiveFormsModule","MatChipsModule","MatIconModule","MatInputModule","declarations","imports","exports","NgModule"],"mappings":"y2CAqBE,SAAAA,IARAC,KAAAC,SAAW,IAAIC,EAAAA,YAAoB,IAGnCF,KAAAG,QAAU,IAAID,EAAAA,YAGdF,KAAAI,YAAc,GAULJ,KAAAK,mBAAqB,CAACC,EAAAA,MAAOC,EAAAA,OACtCP,KAAAQ,MAAkB,UAPlBT,EAAAU,UAAAC,SAAA,WAAA,IAAAC,EAAAX,KACEA,KAAKG,QAAQS,OAASZ,KAAKa,KAAKb,KAAKG,QAAQS,OAE7CZ,KAAKC,SAASa,aAAaC,WAAU,WAAM,OAAAJ,EAAKR,QAAQa,SAASL,EAAKH,MAAMS,KAAK,UAMnFlB,EAAAU,UAAAS,IAAA,SAAIC,GACFnB,KAAKa,MAAMM,EAAMP,OAAS,IAAIQ,QAC9BD,EAAME,MAAMT,MAAQ,IAGtBb,EAAAU,UAAAa,OAAA,SAAOC,GACL,IAAMC,EAAQxB,KAAKQ,MAAMiB,QAAQF,GACjCC,GAAS,GAAKxB,KAAKQ,MAAMkB,OAAOF,EAAO,GACvCxB,KAAKG,QAAQa,SAAShB,KAAKQ,MAAMS,KAAK,OAGhClB,EAAAU,UAAAI,KAAA,SAAKD,GACXA,GAASZ,KAAKQ,MAAMmB,KAAKf,GACzBZ,KAAKG,QAAQa,SAAShB,KAAKQ,MAAMS,KAAK,6CAlC7BlB,0DAAAA,EAAuB6B,SAAA,8BAAA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CAAaC,oCAAAA,wCAZF,CACPC,EAAAA,aACAC,EAAAA,oBAEAC,EAAAA,eACAC,EAAAA,cACAC,EAAAA,oFAMSL,EAAqB,CAAAM,aAAA,CAd9BlE,GAAuBmE,QAAA,CAGvBN,EAAAA,aACAC,EAAAA,oBAEAC,EAAAA,eACAC,EAAAA,cACAC,EAAAA,gBAAcG,QAAA,CAGdpE,qEAGS4D,EAAqB,CAAA,MAhBjCS,EAAAA,eAAS,CACRH,aAAc,CACZlE,GAEFmE,QAAS,CACPN,EAAAA,aACAC,EAAAA,oBAEAC,EAAAA,eACAC,EAAAA,cACAC,EAAAA,gBAEFG,QAAS,CACPpE","sourcesContent":["import {COMMA, ENTER} from '@angular/cdk/keycodes';\nimport { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\nimport { MatChipInputEvent } from '@angular/material/chips';\nimport { FormControl } from '@ngneat/reactive-forms';\n\n@Component({\n selector: 'molecules-chips-input-field',\n templateUrl: './chips-input-field.molecule.html',\n styleUrls: ['./chips-input-field.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ChipsInputFieldMolecule implements OnInit {\n\n _control = new FormControl<string>('');\n\n @Input()\n control = new FormControl<string>();\n\n @Input()\n placeholder = '';\n\n constructor() { }\n\n ngOnInit(): void {\n this.control.value && this._add(this.control.value);\n\n this._control.valueChanges.subscribe(() => this.control.setValue(this.chips.join(' ')));\n }\n\n readonly separatorKeysCodes = [ENTER, COMMA] as const;\n chips: string[] = [];\n\n add(event: MatChipInputEvent): void {\n this._add((event.value || '').trim());\n event.input.value = '';\n }\n\n remove(chip: string): void {\n const index = this.chips.indexOf(chip);\n index >= 0 && this.chips.splice(index, 1);\n this.control.setValue(this.chips.join(' '));\n }\n\n private _add(value: string) {\n value && this.chips.push(value);\n this.control.setValue(this.chips.join(' '));\n }\n\n}\n","<mat-chip-list #chipList>\n <mat-chip *ngFor=\"let chip of chips\" (removed)=\"remove(chip)\">\n {{chip}} <mat-icon matChipRemove>cancel</mat-icon>\n </mat-chip>\n <input\n [placeholder]=\"placeholder\"\n [matChipInputFor]=\"chipList\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"add($event)\"\n [formControl]=\"_control\"\n >\n</mat-chip-list>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ChipsInputFieldMolecule } from './chips-input-field.molecule';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\n\n@NgModule({\n declarations: [\n ChipsInputFieldMolecule\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n // Materials\n MatChipsModule,\n MatIconModule,\n MatInputModule,\n ],\n exports: [\n ChipsInputFieldMolecule\n ]\n})\nexport class ChipsInputFieldModule { }\n"]}
|