As this obviously isn't out of the box then you will need to write a GUI Extension.

My post here may offer some starting points: https://tridion.stackexchange.com/questions/17638/how-to-disable-translation-property-based-on-bundle-type/17639#17639

I would also recommend you confirm what you've tried/read/thought about thus far and I can add more detail to this response.

Some simple questions come to mind immediately which makes me think there could be a lot more detail in here.

- are you expecting the resolving to happen every time someone opens the bundle? what if there are 500 components in that bundle?
- have you considered link resolving in here to be certain what pages will be published/unpublished

There are a lot more challenges with this but we should first understand what you've already thought about so advisors don't re-invent the wheel.